Define overworld chunk/zone/region plan and live editor client contract
This commit is contained in:
@@ -63,3 +63,38 @@
|
||||
- `STASH_DEPOSIT` (`612`)
|
||||
- `STASH_WITHDRAW` (`613`)
|
||||
- `STASH_RESULT` (`614`)
|
||||
|
||||
## Overworld Live Editing (Planned)
|
||||
|
||||
- Browser editor needs world hierarchy selection:
|
||||
- region -> zone -> chunk
|
||||
- optional full-zone load mode
|
||||
- Region minimap support:
|
||||
- zone outlines for the full region
|
||||
- selected zone/chunk highlight
|
||||
|
||||
### Tile editing requirements
|
||||
|
||||
- Tile picker flow:
|
||||
- select sprite sheet
|
||||
- select frame index
|
||||
- set `isWalkable` (bool)
|
||||
- set `isInvisiblePaywall` (bool)
|
||||
- Live placement and erase should apply immediately via proximity-safe delta updates.
|
||||
|
||||
### Object/NPC editing requirements
|
||||
|
||||
- Place/move/remove object instances from filterable definition lists.
|
||||
- Place/move/remove NPC spawns from filterable NPC definition lists.
|
||||
- Changes should be chunk-scoped and include version numbers to prevent stale overwrites.
|
||||
|
||||
### Proposed payload additions
|
||||
|
||||
- Chunk state payload:
|
||||
- `regionId`, `zoneId`, `chunkX`, `chunkY`, `version`
|
||||
- `tiles[]` with `{ x, y, sheetId, frameIndex, isWalkable, isInvisiblePaywall }`
|
||||
- `objects[]` with placement + definition id
|
||||
- `npcs[]` with spawn placement + npc definition id
|
||||
- Delta update payload:
|
||||
- `regionId`, `zoneId`, `chunkX`, `chunkY`, `fromVersion`, `toVersion`
|
||||
- operations list (tile upsert/remove, object upsert/remove, npc upsert/remove)
|
||||
|
||||
Reference in New Issue
Block a user