diff options
| author | historia <[not public]> | 2026-06-29 18:13:33 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-06-29 18:13:33 -0400 |
| commit | 7d76673fa0707d204c7d084c8f90c8133c22a31a (patch) | |
| tree | 6fc832b9f3fde6ed455abb535f6e28b0e5db1fd9 /AGENTS.md | |
| parent | feb80b7dde200d4121cd9f9c583a08f9869c5588 (diff) | |
| download | thehouseoficarus-7d76673fa0707d204c7d084c8f90c8133c22a31a.tar.gz | |
feat: migrated map (and bfs) to full 3D instead of individual 2D maps on different planes.
Diffstat (limited to 'AGENTS.md')
| -rw-r--r-- | AGENTS.md | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -165,3 +165,8 @@ Full field reference in `item/item.go`. Key fields: equip_slot, weapon_type, att - **Tick subscriber ordering**: `AdvanceActions`, combat subscriptions, mob attack subscriptions, and hazard ticks are independent subscribers without priority guarantees. A trigger completing and a mob landing a hit on the same tick have non-deterministic ordering. +- **3D map BFS cost**: `buildGraph()` does a full 3D BFS across the entire reachable world on every + map render (`map`/`look`/move). For large worlds (10k+ rooms) this could become expensive. Options: + (a) cache the graph keyed by player room and invalidate on world edits (`dig`/`room insert`/`undig`), + (b) prune by visited rooms (revert to horizontal-only expansion from unvisited), or (c) compute z-level + assignments once at startup and use precomputed plane membership. |
