Commit Graph
81 Commits
Author SHA1 Message Date
AncTe a7dc542671 fix: IDataCommon 漏写 enemyStore 2026-10-20 21:25:16 +08:00
AncTe e6f4346924 refactor: 插件系统结构 2026-10-20 20:44:33 +08:00
AncTe 3f74d5f25e feat: 完善内置特殊属性 2026-10-16 20:30:04 +08:00
AncTe a0e402728e refactor: 数据端用户结构 2026-10-16 17:29:51 +08:00
AncTe d1ebca0b16 chore: 调整加载接口 2026-10-14 20:41:14 +08:00
AncTe 2f3d3387a0 refactor: 插件系统 & 数据端顶层移植 2026-10-14 20:32:46 +08:00
AncTe 1bcdcc3677 refactor: 特殊属性定义方式 2026-10-09 20:09:51 +08:00
AncTe 8fb16a103d refactor: 删除 setAttributeDefaults 接口 2026-10-08 19:17:54 +08:00
AncTe ce459d9e2d chore: 调整部分错误 2026-10-04 15:44:52 +08:00
AncTe 50bd679fad feat: 渲染端配置加载 2026-09-21 10:09:20 +08:00
AncTe d65b107819 refactor: 渲染端配置文件 2026-09-20 23:49:27 +08:00
AncTe cc434a6c66 refactor: 加载系统重构 2026-09-20 20:53:46 +08:00
AncTe d12790280a feat: 完成数据端数据类型的构建 2026-09-20 19:11:43 +08:00
AncTe f5a6ed8cf6 refactor: 加载系统 2026-09-18 20:30:40 +08:00
AncTe ae5a956492 chore: 删除 IDirectionMapper,全换成 IFaceHandler 2026-09-18 08:26:57 +08:00
AncTe 4aaea68b65 refactor: 寻路系统改进 2026-09-17 21:21:08 +08:00
AncTe e9e9939bd8 refactor: 删除 data-state 中的 legacy 文件夹 2026-09-17 19:37:30 +08:00
AncTe a2a8e6ec35 refactor: ReplaySystem.route -> ReplaySystem.array,修复 disabled 标记在 setReplayArray 中清零可能导致意外记录的问题 2026-09-17 19:18:30 +08:00
AncTe fe595b7983 refactor: 存档系统应处于渲染层 2026-09-16 21:54:12 +08:00
AncTe 49aacb087a refactor: 调整录像命名 2026-09-16 21:51:19 +08:00
AncTe 513a9c354c fix: 读档的 executor 未执行 2026-09-16 21:44:52 +08:00
AncTe 1ff22dd07d feat: 寻路系统接线 2026-09-15 21:28:52 +08:00
AncTe 95ea6609c6 fix(07-07): #06-09-5 warn code 178 for unloaded save keys
- core.ts loadState: 差集方向改为 loaded.difference(total),178 = 存档出现但未加载的 key
- saveablesRoundTrip.test.ts:322-334 改写为「缺 key 不触发 178、仍触发 177」负向见证并更名
- saveablesRoundTrip.test.ts:337-349 取消 it.skip,承担「多出 key 触发 178」正向见证
2026-09-15 21:10:33 +08:00
AncTe 82205a9dc1 feat: 录像存储 2026-09-14 18:17:37 +08:00
AncTe cee843981f feat: 录像记录 & CoreState 存储接口 2026-09-14 18:09:45 +08:00
AncTe f0fd2f54a1 refactor(event): class-based built-ins, shared utils, single registration
- rewrite every built-in as EventXxx implements BuiltInFunction<P, E>
  (setBlock/moveBlock/deleteBlock/moveHero/moveHeroStep/touchFront/
  insertEvents/insertEvent), matching the EventSetBlock reference style
- move shared helpers to event/utils.ts (getPossibleMap, getPossibleLayer,
  getEventExecutor, enter/exitEventInsert); utils is not exported via index
- move per-class helpers into private methods (EventTouchFront and
  EventInsertEvents collectInvocations)
- use IObjectMover.push for move sequences instead of manual step calls
- registrations.ts: one createEventRegistrations() writing the eight entries
  in order, categories separated by single-line comments
- remove EventBuiltinName; classes own short string names
- update event tests; core.ts uses createEventRegistrations
2026-09-13 19:17:32 +08:00
AncTe 46a38fa0c6 refactor: 录像系统指令 2026-09-13 16:38:19 +08:00
AncTe dd4e66a335 refactor(replay): rewrite remaining commands and register in CoreState
- ReplayUseItemCommand / ReplayEquipCommand / ReplayUnequipCommand now extend
  BaseReplayCommand with fixed numeric params and per-false-position logger
  error codes (2006-2010); string item/slot params removed, autoUnload is a
  required bool.
- remove isNumber/isItem/isBoolean/isSlot/resolveSlot helpers; all logic now
  lives in the command classes.
- drop createReplayCommandItems/registerReplayCommandItems; CoreState owns a
  private registerReplayCommand() registering the eight stable codes directly.
- prune unused replay boundary types from replay/types.ts.
- fix ReplaySandbox: a replay ending on a run of moves now finalizes the
  trailing run through notExecuted (previously the last move never started).
- rewrite commands.test.ts for the base-class design and direct registration.

Verified: data type gate 0 in-scope; vitest 19 files / 112 tests pass; prettier
and eslint clean on touched files.
2026-09-13 15:39:12 +08:00
AncTe 37bfb77301 refactor(replay): add command base class and rewrite move/teleport
- BaseReplayCommand with name/paramTypes and assertParameter guard
- add optional IReplayCommand.notExecuted for trailing-step finalization
- sandbox invokes previous command notExecuted when the next command differs
- rewrite ReplayMoveCommand (batched step + notExecuted start/await) and ReplayTeleportCommand
- add replay logger error codes 2001-2005 and warn 175

NOTE: command tests still reference the pre-rewrite class names; updated in follow-up.
2026-09-13 15:16:51 +08:00
AncTe 0dc30aace8 refactor(03-18): move event registration assembly out of the barrel
- Add event/registrations.ts as the sole direct-construction assembler for
  the eight class-based registrations in stable map/hero/control order
- Reduce event/index.ts and data-state/src/index.ts to export-only barrels
  that re-export the four public registration creators
- Point CoreState at event/registrations and record the ownership and
  public-export boundaries in the event contract
2026-09-11 23:02:15 +08:00
AncTe febdcdc967 refactor: align state system replay and path contracts 2026-09-11 22:36:09 +08:00
AncTe e4e39f7b2b fix(03-10): restore compatibility loading path
- Remove Phase 3 legacy dependency and serialized loading adapters
- Restore SaveSystem, converter, bridge, and loading callback assembly
2026-09-11 13:52:54 +08:00
AncTe c0444510d1 chore: 调整引入 2026-09-11 09:56:03 +08:00
AncTe a111b8dcd4 feat(03-07): wire serialized event loading boundary
- Register validated serialized events through the CoreState load seam
- Bind raw map event ids with MapState.fromRaw before replay execution
2026-09-10 20:12:47 +08:00
AncTe 09481451d4 feat(03-03): assemble CoreState replay registry
- Bind the L2 pathfinder to each fresh hero state
- Give each CoreState an independent ReplaySystem
- Assert all eight stable commands are assembled at the top level
2026-09-10 16:44:46 +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 4eec08638e feat(03-01): add awaited replay movement tracer
- exercise source-aware event mutation on a fixed map
- verify Node replay reaches its normal end state
2026-09-10 15:43:26 +08:00
AncTe a707be4856 feat(03-01): add Node-safe core state construction
- isolate legacy loading behind internal dependencies
- provide memory saves and remove singleton back-edges
2026-09-10 15:35:01 +08:00
AncTe 26f7ad6b2e refactor(02-06): align pathfinding structure with user scope 2026-09-10 11:21:53 +08:00
AncTe 2759df531e feat(02-03): wire hero pathfinding movement
- Bind the hero predicate and event layer into the L2 finder
- Execute translated paths through the hero mover and export the L3 entry
2026-09-09 21:13:30 +08:00
AncTe a297311ea6 feat(event): complete phase one event system 2026-09-09 12:01:21 +08:00
AncTe 5f855d0ccc fix(01-11): wire legacy maps to event layers
- assign each legacy event alias layer to GameMap.eventLayer\n- add regression coverage for map-layer ownership and initialization state
2026-09-09 10:58:20 +08:00
AncTe 7eeab32134 refactor: 游戏地图接口重构 2026-08-21 01:39:47 +08:00
AncTe f4c77d152f feat: 楼层切换 2026-07-26 20:22:36 +08:00
AncTe 4bf39062a8 feat: MapStore 2026-07-17 22:42:16 +08:00
AncTe 74370bba3a feat: 装备道具属性 2026-07-02 19:41:13 +08:00
AncTe 2d6f709201 chore: 调整存档系统初始化位置 2026-07-01 23:49:22 +08:00
AncTe 9b3c3a4e40 feat: 道具效果存储 2026-07-01 23:45:06 +08:00
AncTe e72ad36e8d refactor: 存档系统迁移至 L0 2026-07-01 20:53:29 +08:00
AncTe 94a16b31ba chore: 调整 DefaultHeroMoveTopImpl 的构造器参数 2026-06-30 00:06:57 +08:00