mudlet-map-editor 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import type { PendingCustomLine } from '../../editor/types';
1
+ import { PendingCustomLine } from '../../editor/types';
2
2
  import type { SceneHandle } from '../../editor/scene';
3
3
  import type { MudletMap } from '../../mapIO';
4
4
  export declare function CustomLineDrawPanel({ pending, sceneRef }: {
@@ -12,6 +12,7 @@ export declare function CustomLineSelectPanel({ selection, map, sceneRef }: {
12
12
  kind: 'customLine';
13
13
  roomId: number;
14
14
  exitName: string;
15
+ pointIndex?: number;
15
16
  };
16
17
  map: MudletMap;
17
18
  sceneRef: {
@@ -5,7 +5,7 @@ export declare function nextAreaId(map: MudletMap): number;
5
5
  export declare function nextRoomId(map: MudletMap): number;
6
6
  export declare function createDefaultRoom(id: number, areaId: number, x: number, y: number, z: number): MudletRoom;
7
7
  export declare function inferDirection(sx: number, sy: number, tx: number, ty: number): Direction;
8
- export declare function getExit(room: MudletRoom, dir: Direction): number;
8
+ export declare function getExit(room: MudletRoom, dir: string): number;
9
9
  export declare function setExit(room: MudletRoom, dir: Direction, value: number): void;
10
10
  /** Returns all incoming cardinal-exit references to `targetId` from any room in the map. */
11
11
  export declare function findNeighborsPointingAt(map: MudletMap, targetId: number): Array<{
@@ -42,6 +42,7 @@ export type Direction = 'north' | 'northeast' | 'east' | 'southeast' | 'south' |
42
42
  export declare const CARDINAL_DIRECTIONS: Direction[];
43
43
  export declare const OPPOSITE: Record<Direction, Direction>;
44
44
  export declare const DIR_SHORT: Record<Direction, string>;
45
+ export declare const DIR_LONG: Record<string, Direction>;
45
46
  /** 1-based direction index used by Mudlet's stubs/exitLocks arrays. */
46
47
  export declare const DIR_INDEX: Record<Direction, number>;
47
48
  /** Inverse of DIR_SHORT — short-form cardinal key → full Direction name. */