mudlet-map-editor 0.16.3 → 0.18.0

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.
@@ -14,7 +14,7 @@ export interface PluginCheckResult {
14
14
  }
15
15
  export interface SidebarTab {
16
16
  id: string;
17
- label: string;
17
+ label: ReactNode;
18
18
  render(sceneRef: {
19
19
  current: SceneHandle | null;
20
20
  }): ReactNode;
@@ -78,6 +78,7 @@ export declare class EditorArea {
78
78
  addRoomsLive(newRooms: LiveRoom[]): void;
79
79
  removeRoomById(id: number): void;
80
80
  removeRoomsById(ids: Set<number>): void;
81
+ renameRoomId(fromId: number, toId: number): void;
81
82
  rebuildPlanes(): void;
82
83
  rebuildExits(): void;
83
84
  }
@@ -120,6 +121,7 @@ export declare class EditorMapReader {
120
121
  setRoomField(id: number, field: 'name' | 'environment' | 'weight' | 'symbol', value: string | number): void;
121
122
  setRoomLock(id: number, lock: boolean): void;
122
123
  setUserDataEntry(id: number, key: string, value: string | null): void;
124
+ renameRoomId(fromId: number, toId: number): void;
123
125
  /** Add a raw room (expected `raw.rooms[id]` already set or not, we set it). */
124
126
  addRoom(id: number, rawRoom: MudletRoom): void;
125
127
  /** Bulk-add many rooms. Does one rebuildPlanes/rebuildExits per affected area. */
@@ -291,6 +291,10 @@ export type Command = {
291
291
  room: RoomSnapshot;
292
292
  areaId: number;
293
293
  neighborEdits: NeighborEdit[];
294
+ } | {
295
+ kind: 'renameRoomId';
296
+ fromId: number;
297
+ toId: number;
294
298
  } | {
295
299
  kind: 'addExit';
296
300
  fromId: number;
@@ -17,6 +17,7 @@ export declare const panelsEn: {
17
17
  };
18
18
  readonly room: {
19
19
  readonly heading: "Room #{{id}}";
20
+ readonly id: "Room ID";
20
21
  readonly centerView: "Center view on room";
21
22
  readonly exits: "Exits";
22
23
  readonly specialExits: "Special Exits";
@@ -66,7 +67,12 @@ export declare const panelsEn: {
66
67
  readonly dashDotDot: "Dash-Dot-Dot";
67
68
  readonly enterExitNameFirst: "Enter exit name first.";
68
69
  readonly updatedField: "Updated {{field}} on room {{id}}";
70
+ readonly idUpdated: "Room #{{from}} renamed to #{{to}}";
71
+ readonly idExists: "Room #{{id}} already exists.";
69
72
  readonly exitAdded: "Exit {{dir}} → room {{id}} added.";
73
+ readonly exitRoomCreated: "Created room #{{id}} {{dir}} of room #{{from}}.";
74
+ readonly exitCreateOccupied: "Cannot create room #{{id}}: cell ({{x}}, {{y}}, {{z}}) is already occupied.";
75
+ readonly exitCreateInOut: "Cannot auto-create rooms for in/out directions.";
70
76
  readonly specialExitAdded: "Special exit '{{name}}' → {{id}} added";
71
77
  readonly specialExitRemoved: "Special exit '{{name}}' removed";
72
78
  readonly customLineRemoved: "Custom line '{{name}}' removed";
@@ -126,6 +132,7 @@ export declare const panelsEn: {
126
132
  readonly moveRoom: "Move room #{{id}}";
127
133
  readonly addRoom: "Add room #{{id}}";
128
134
  readonly deleteRoom: "Delete room #{{id}}";
135
+ readonly renameRoomId: "Rename room #{{from}} -> #{{to}}";
129
136
  readonly addExitBidi: "Add exit #{{from}} {{dir}} ↔ #{{to}}";
130
137
  readonly addExitUni: "Add exit #{{from}} {{dir}} → #{{to}}";
131
138
  readonly removeExit: "Remove exit #{{from}} {{dir}}";