21 lines
526 B
TypeScript
21 lines
526 B
TypeScript
import { ecs } from "../../../../extensions/oops-plugin-framework/assets/libs/ecs/ECS";
|
|
|
|
/** Reward 模块 */
|
|
@ecs.register(`Reward`)
|
|
export class Reward extends ecs.Entity {
|
|
|
|
/** 实始添加的数据层组件 */
|
|
protected init() {
|
|
// this.addComponents<ecs.Comp>();
|
|
}
|
|
|
|
load() {
|
|
// this.loadData(data);
|
|
}
|
|
/** 模块资源释放 */
|
|
destroy() {
|
|
// 注: 自定义释放逻辑,视图层实现 ecs.IComp 接口的 ecs 组件需要手动释放
|
|
super.destroy();
|
|
}
|
|
}
|