mirror of
https://gitee.com/dgflash/oops-framework.git
synced 2026-05-11 10:40:30 +08:00
23 lines
631 B
TypeScript
23 lines
631 B
TypeScript
/*
|
|
* @Author: dgflash
|
|
* @Date: 2021-11-18 14:20:46
|
|
* @LastEditors: dgflash
|
|
* @LastEditTime: 2022-03-15 10:36:13
|
|
*/
|
|
|
|
import { ecs } from "../../../core/libs/ecs/ECS";
|
|
import { Account } from "../../account/Account";
|
|
import { Initialize } from "../../initialize/Initialize";
|
|
|
|
/** 游戏模块 */
|
|
@ecs.register('SingletonModule')
|
|
export class SingletonModuleComp extends ecs.Comp {
|
|
/** 游戏初始化模块 */
|
|
initialize: Initialize = null!;
|
|
/** 游戏账号模块 */
|
|
account: Account = null!;
|
|
|
|
reset() { }
|
|
}
|
|
|
|
export var smc: SingletonModuleComp = ecs.getSingleton(SingletonModuleComp); |