mirror of
https://github.com/motajs/template.git
synced 2026-11-16 08:54:30 +08:00
docs(event-contract): sync with current built-in names and collection design
- built-in names: setBlock/moveBlock/removeBlock/moveHero/stepHero/touchFront/ insertEvents/insertEvent (class names Event*) - removeBlock: static by default, dynamic:true also removes dynamic tiles - touchFront: steps the hero forward; the mover produces the OnTouch on bump - GameEventSystem.collectEvent owns source collection; mover enter/leave/hit reuse it - IBlockEventEnv gains required system and nullable heroFloor; utils.ts keeps only getPossibleMap/getPossibleLayer
This commit is contained in:
1 parent
a66be585d1
commit
0ba70e1a63
2 files changed
+58
-41
No files matched your search
@@ -50,7 +50,7 @@ export interface IMoveHeroEventParam {
|
||||
/** 事件:向前移动一步 */
|
||||
export interface IStepHeroEventParam {}
|
||||
|
||||
/** 事件:触发勇士面前的 onTouch */
|
||||
/** 事件:勇士向前一步,前方不可通行时触发撞击 */
|
||||
export interface ITouchFrontEventParam {}
|
||||
|
||||
//#endregion
|
||||
|
||||
Reference in new issue
Block a user