AncTe
d5b2a820d8
fix: 动静转换的 keepEvent 问题
2026-10-22 20:18:31 +08:00
AncTe
3f74d5f25e
feat: 完善内置特殊属性
2026-10-16 20:30:04 +08:00
AncTe
59e190b468
chore: 调整 AI 计划执行不按流程导致的代码问题
2026-10-05 17:15:35 +08:00
AncTe
58def1809d
fix(08-05): expose MapTileBase.restoreDefaultEvents and use it in toStatic
...
- MapTileBase.restoreDefaultEvents: protected -> public; declare on ITileBase with jsDoc
- MapLayer.toStatic(keepEvent=false): reset reused static tile via restoreDefaultEvents() instead of loadState({})
2026-10-05 16:34:18 +08:00
AncTe
a76137f2a0
fix(08-05): correct map layer region/event logic (D-10 authorized)
...
- getMapData(x,y,w,h): end index lineStart+nw and buffer width*height (keep out-of-range zero padding)
- toStatic(keepEvent=false): reset reused static tile to default events via loadState({})
- cropPointEvents: reindex by new width; resize/resize2 sync indexer width; resize2 clears point events on same-size reset
- eventView.reset(): clear dirty counter so dirty() returns false after restoring reference
2026-10-05 15:19:37 +08:00
AncTe
b262918082
refactor: 地图 MapLayer
2026-09-29 20:21:50 +08:00
AncTe
bbdea04393
refactor: 地图前半部分
2026-09-28 23:36:54 +08:00
AncTe
1fb92c3976
refactor: data-common/common
2026-09-23 16:04:50 +08:00
AncTe
d74cc35c8e
feat: Adding should replay flag
2026-09-23 13:09:43 +08:00
AncTe
13234b762a
fix(07-13): clear existing dynamic tiles before loading
...
- add private clearDynamics() that snapshots the managed dynamic tiles and drops each via the deleteDynamic semantics (syncStaticEvent + removeTile + onDeleteDynamic), without awaiting the hook
- call it as the first line of loadState so all three compression tiers and the missing-dynamicBlocks case start from a clean slate (#06-17-8)
- add regressions: mapLayer hook/instance witness and the three-tier repeated-load non-accumulation case
2026-09-17 17:27:09 +08:00
AncTe
620382cc5f
fix(07-05): #06-06-1 warn code 128 for an out-of-map dynamic transfer
...
- transferToDynamic 越界分支由 131 改为 128,对齐两个 transferToStatic* 兄弟分支
- 取消 mapLayer.test.ts 的码 128 用例 skip
2026-09-15 20:45:01 +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
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
7dd4f39e7e
fix: getLocationData logic
2026-09-09 19:42:37 +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
bcfa1f9467
fix(01-10): restore tile defaults and stable event snapshots
...
- Rebuild raw tile event baselines on construction, set, load, and conversion.
- Preserve coordinate-owned point events through dynamic movement and copy save Maps.
2026-09-09 00:08:38 +08:00
AncTe
974669b00a
fix(01-06): remove unsupported map upsert runtime calls
...
- Use explicit Map lookup and insertion in point and dynamic indexes.
- Keep raw event tests runnable in the Node Vitest environment.
2026-09-08 23:54:09 +08:00
AncTe
7eeab32134
refactor: 游戏地图接口重构
2026-08-21 01:39:47 +08:00
AncTe
1717400945
refactor: 触发器
2026-07-27 18:04:05 +08:00
AncTe
eb34d63e96
feat: 图块信息接口
2026-06-28 19:32:46 +08:00
AncTe
8f4c4b7df2
refactor: 将 Layer 0 单独放到一个包
2026-05-17 21:32:23 +08:00
AncTe
bf781c5ee8
feat: 静态触发器存储
2026-05-17 20:49:08 +08:00
AncTe
fbdd609001
feat: 动态图层
2026-05-11 23:35:46 +08:00
AncTe and Copilot
70a58ef4dc
refactor: 地图存储
...
Co-authored-by: Copilot <copilot@github.com >
2026-04-26 13:33:49 +08:00
AncTe
ec59a44efc
refactor: CoreState 一部分类型声明挪到 data-base
2026-04-21 21:01:53 +08:00