EditorEvents.ts
2.93 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
import { EventEmitter as emitter } from "simba-avg-core";
export namespace EditorEvents {
// 第1个选项事件
export const SELECT_OPTION_1 = emitter.createEvent<(param: string) => void>("SELECT_OPTION_1");
// 第2个选项事件
export const SELECT_OPTION_2 = emitter.createEvent<(param: string) => void>("SELECT_OPTION_2");
// 第3个选项事件
export const SELECT_OPTION_3 = emitter.createEvent<(param: string) => void>("SELECT_OPTION_3");
// 第4个选项事件
export const SELECT_OPTION_4 = emitter.createEvent<(param: string) => void>("SELECT_OPTION_4");
// 开启新的分支剧情
export const START_PLOT_BRANCH = emitter.createEvent<(param: string) => void>("START_PLOT_BRANCH");
// 剧情结束时调用
export const PLOT_END = emitter.createEvent<(param: string) => void>("PLOT_END");
// 送礼解锁
export const UNLOCK_GIFT = emitter.createEvent<(param: string) => void>("UNLOCK_GIFT");
// 设置约会背景图
export const SET_DATING_BG = emitter.createEvent<(param: string) => void>("SET_DATING_BG");
// 立绘淡入
export const PORTRAIT_APPEAR = emitter.createEvent<(param: string) => void>("PORTRAIT_APPEAR");
// 立绘淡出
export const PORTRAIT_DISAPPEAR = emitter.createEvent<(param: string) => void>("PORTRAIT_DISAPPEAR");
// 主tab栏新增指引
export const GUIDE_MAIN_TAB = emitter.createEvent<(param: string) => void>("GUIDE_MAIN_TAB");
// 对应GuideType:Tab_Msg
export const GUIDE_TAB_MSG = emitter.createEvent<(param: string) => void>("GUIDE_TAB_MSG");
// 对应GuideType:Tab_Date
export const GUIDE_TAB_DATE = emitter.createEvent<(param: string) => void>("GUIDE_TAB_DATE");
// 对应GuideType:View_Msg
export const GUIDE_VIEW_MSG = emitter.createEvent<(param: string) => void>("GUIDE_VIEW_MSG");
// 对应GuideType:View_Date
export const GUIDE_VIEW_DATE = emitter.createEvent<(param: string) => void>("GUIDE_VIEW_DATE");
// 解锁物品
export const UNLOCK_ITEM = emitter.createEvent<(param: string) => void>("UNLOCK_ITEM");
// 解锁番外剧情
export const UNLOCK_SPECIAL_PLOT = emitter.createEvent<(param: string) => void>("UNLOCK_SPECIAL_PLOT");
// 触发死亡事件
export const DEAD_EVENT = emitter.createEvent<(param: string) => void>("DEAD_EVENT");
// 设置约会背景图(特殊效果)
export const SET_DATING_BG_EFFECT = emitter.createEvent<(param: string) => void>("SET_DATING_BG_EFFECT");
// 剧情属性值变化触发特殊Toast,其中通用Toast为0,艾尔专属Toast为1,该隐专属Toast为2
export const SPECIAL_TOAST = emitter.createEvent<(param: string) => void>("SPECIAL_TOAST");
// 委托死亡事件
export const COMMISSION_DEAD_EVENT = emitter.createEvent<(param: string) => void>("COMMISSION_DEAD_EVENT");
// 委托战斗事件
export const COMMISSION_FIGHT_EVENT = emitter.createEvent<(param: string) => void>("COMMISSION_FIGHT_EVENT");
}