Commit Graph
24 Commits
Author SHA1 Message Date
AncTe c5b0a255ba fix: 注释与实现错位问题 2026-10-26 22:18:30 +08:00
AncTe a0e402728e refactor: 数据端用户结构 2026-10-16 17:29:51 +08:00
AncTe 2f3d3387a0 refactor: 插件系统 & 数据端顶层移植 2026-10-14 20:32:46 +08:00
AncTe 47c6e2c8db test(08-10): cover data-system/data-state gap codes and add loader tests
- eventDispatch: assert codes 171 (missing event id) and 172 (non-boolean reduce result)

- path/system: assert code 182 when binding a foreign CoreState layer

- data-state event: assert code 1001 for an unknown setBlock tile

- loader: new loader.test.ts covering PrefixedJSONCProcessor 66/67, DefaultDataLoaderHook 69/success, and MotaDataLoader public surface (66/67/68/69; 68 recorded unreachable)
2026-10-08 14:45:10 +08:00
AncTe e024e2d2ea test(08-06): align eventDispatch test to shipped interfaces
- remove obsolete DirectionMapper injection and its module entries (Q2)
- construct MapState with commonState only (single-arg constructor)
- resolve the event layer via shipped GameMap.eventLayer instead of the removed getLayerByAlias
- focused combat+event: 96 passed / 0 failed; eslint clean
2026-10-05 17:26:41 +08:00
AncTe 36d8b4fb3c test(08-01): migrate data-layer tests into __test__ dirs
Move 65 *.test.ts + 6 *.perf.ts across data-{common,base,system,state} into sibling __test__/ (data-state/test -> data-state/__test__), incl. fixtures/floors.json and non-test helpers; rewrite Rule A relative specifiers (+1 depth), keep Rule B unchanged; sync script/test-data-node.ts require paths. Gates: test:ci=66 files, test:perf=6 files, eslint clean, zero config/production changes.
2026-10-04 17:34:09 +08:00
AncTe 109fad3b29 chore: 调整事件系统注释 2026-10-04 15:49:17 +08:00
AncTe d74cc35c8e feat: Adding should replay flag 2026-09-23 13:09:43 +08:00
AncTe aa3c7296c7 chore: 将事件执行标记为 ignoreReplay 2026-09-13 20:52:42 +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 7f19773477 chore(03): checkpoint data layer structure 2026-09-10 13:30:53 +08:00
AncTe 26f7ad6b2e refactor(02-06): align pathfinding structure with user scope 2026-09-10 11:21:53 +08:00
AncTe 1d9b180d5f docs(test): describe individual test cases 2026-09-09 13:33:42 +08:00
AncTe 4349e67669 docs(test): require test scope comments 2026-09-09 13:12:10 +08:00
AncTe 33966fb4dd test(event): polyfill map insertion in fixtures 2026-09-09 13:06:27 +08:00
AncTe 63d4d37ff3 fix(event): finalize event reference changes 2026-09-09 13:03:42 +08:00
AncTe 64efcf2555 refactor(event): centralize point event references 2026-09-09 12:53:37 +08:00
AncTe a297311ea6 feat(event): complete phase one event system 2026-09-09 12:01:21 +08:00
AncTe 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
AncTe 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
AncTe 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
AncTe 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