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.
This commit is contained in:
AncTe committed 2026-09-09 00:18:00 +08:00
1 parent 87f2252ccc
commit 22056140bd
5 files changed
+729 -41

No files matched your search

+7
View File
@@ -54,6 +54,13 @@ export interface IBlockEventEnv extends IDataCommonExtended {
readonly map: IGameMap | null;
}
export interface IGameEventInvocation {
/** 事件在 `IGameEventStore` 中的 id */
readonly id: string;
/** 此次调用对应的真实来源环境 */
readonly env: IBlockEventEnv;
}
export interface IReadonlyBlockEvent<R = void> extends IReadonlyGameEvent<
IBlockEventParam,
IBlockEventEnv,