mirror of
https://github.com/motajs/template.git
synced 2026-11-23 14:04:30 +08:00
feat: Adding should replay flag
This commit is contained in:
1 parent
7743795948
commit
d74cc35c8e
16 files changed
+86
-186
No files matched your search
@@ -1,5 +1,5 @@
|
||||
import { logger } from '@motajs/common';
|
||||
import { IGameEventStore, ignoreReplay } from '@user/data-common';
|
||||
import { IGameEventStore, shouldReplay } from '@user/data-common';
|
||||
import { AnonTokyoInterpreter } from '@motajs/anon-tokyo';
|
||||
import {
|
||||
EventExecuteMode,
|
||||
@@ -52,8 +52,7 @@ export class EventExecutor implements IGameEventExecutor {
|
||||
}
|
||||
}
|
||||
|
||||
// @ts-expect-error 泛型无法推导
|
||||
@ignoreReplay('事件一般由其他动作被动触发,不应计入录像')
|
||||
@shouldReplay('Executing event should be replayed.')
|
||||
async execute<R = void>(
|
||||
events: IGameEventInvocation[],
|
||||
param: IBlockEventParam
|
||||
|
||||
Reference in new issue
Block a user