/*
 * index.ts
 * Created by 还有醋v on 2022/6/2.
 * Copyright © 2022 haiyoucuv. All rights reserved.
 */

import EventDispatcher = FYGE.EventDispatcher;

export * from "./Game";

/**
 * 从config导出setConfig方法
 */
export * from "./Config";

/**
 * 导出事件和事件收发器
 */
export enum GAME_EVENT {
	READY = "READY",    // 初始化完成
	START_GAME = "START_GAME",
	END_GAME = "END_GAME",
	ADD_SCORE = "ADD_SCORE",
	ON_SHOW = 'ON_SHOW', // 页面显示
	ON_HIDE = 'ON_HIDE', // 页面隐藏
}

export const GDispatcher = new EventDispatcher();

export {preloadRes} from './PreloadRes'
