EditorEvents.ts
1.09 KB
import { Emitter } from "simba-eventkit";
export namespace EditorEvents {
export const emitter = new Emitter;
// 第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");
}