aa3c7296c7
chore: 将事件执行标记为 ignoreReplay
2026-09-13 20:52:42 +08:00
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
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
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
7f19773477
chore(03): checkpoint data layer structure
2026-09-10 13:30:53 +08:00
26f7ad6b2e
refactor(02-06): align pathfinding structure with user scope
2026-09-10 11:21:53 +08:00
1d9b180d5f
docs(test): describe individual test cases
2026-09-09 13:33:42 +08:00
4349e67669
docs(test): require test scope comments
2026-09-09 13:12:10 +08:00
33966fb4dd
test(event): polyfill map insertion in fixtures
2026-09-09 13:06:27 +08:00
63d4d37ff3
fix(event): finalize event reference changes
2026-09-09 13:03:42 +08:00
64efcf2555
refactor(event): centralize point event references
2026-09-09 12:53:37 +08:00
a297311ea6
feat(event): complete phase one event system
2026-09-09 12:01:21 +08:00
15d9f25b44
fix(01-12): repair event phase type fixtures
...
- Import the existing block event environment contract. - Type focused invocation, raw-event, and map lifecycle fixtures without changing behavior.
2026-09-09 11:33:34 +08:00
073e009816
test(01-11): cover legacy map event dispatch
...
- prove an existing point-event id reaches the mover executor\n- assert PointEvent source and approved locator environment
2026-09-09 10:59:02 +08:00
ff41ab3d6c
test(01-07): cover complete event mode matrix
...
- Verify unmatched triggers do not affect cut or reduction results.
- Cover unknown ids, hook trigger mapping, coordinates, and source environments.
2026-09-09 00:19:47 +08:00
22056140bd
fix(01-07): dispatch events with source-aware trigger matching
...
- Carry each event id with its real point or tile environment.
- Filter mismatched triggers before execution and include every dynamic tile in priority order.
2026-09-09 00:18:00 +08:00