AncTe
109fad3b29
chore: 调整事件系统注释
2026-10-04 15:49:17 +08:00
AncTe
a66be585d1
feat(event): rework built-ins and centralize trigger collection
...
- rename deleteBlock -> removeBlock (dynamic tiles need dynamic:true),
moveHeroStep -> stepHero; touchFront steps forward and lets the mover bump
- GameEventSystem.collectEvent owns point/tile source collection; moverImpl
enter/leave/hit reuse it with OnEnter/OnLeave/OnTouch
- IBlockEventEnv gains required system field and nullable heroFloor
- MapLayer.removeBlock added and setBlock guarded by inMap; GameMap owns floorId
- IObjectMover.push accepts readonly steps
- update event/eventDispatch tests to the current implementation (fixtures
supply system, hero location snapshots, renamed registrations)
Verified: data type gate 0 in-scope; vitest 19 files / 112 tests pass; prettier
and eslint clean on touched files.
2026-09-13 20:37:32 +08:00
AncTe
a701aa6da9
refactor(anon-tokyo): import embedded workspace package everywhere
...
- rename all anon-tokyo imports to @motajs/anon-tokyo in data-common,
data-system and data-state
- declare @motajs/anon-tokyo workspace dependency in data-common and
data-system; refresh pnpm-lock.yaml
2026-09-13 19:17:21 +08:00
AncTe
3134537d30
feat(03-02): implement approved event built-ins
...
- Add map, hero, touch, and temporary event controls
- Register exactly eight built-ins through top-level event assembly
- Cover awaited behavior and safe failure with explicit fixtures
2026-09-10 16:25:02 +08:00
AncTe
a297311ea6
feat(event): complete phase one event system
2026-09-09 12:01:21 +08:00