mirror of
https://github.com/motajs/template.git
synced 2026-11-03 07:24:30 +08:00
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:
1 parent
87f2252ccc
commit
22056140bd
5 files changed
+729
-41
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user