26 lines
671 B
TypeScript
26 lines
671 B
TypeScript
import { _decorator, Component, Node } from 'cc';
|
|
import { GameEvent } from '../common/config/GameEvent';
|
|
import { oops } from 'db://oops-framework/core/Oops';
|
|
import { ecs } from 'db://oops-framework/libs/ecs/ECS';
|
|
const { ccclass, property } = _decorator;
|
|
|
|
@ecs.register('MasterModel')
|
|
export class MasterModelComp extends ecs.Comp {
|
|
|
|
onLoad(){
|
|
oops.message.on(GameEvent.ChangeATK_EQUIP_SPECIAL_ATTR,this.change_equip_special_attr,this)
|
|
}
|
|
|
|
change_equip_special_attr(e:GameEvent,data:any){
|
|
console.log("[MasterModel]:change_equip_special_attr",data)
|
|
}
|
|
update(deltaTime: number) {
|
|
|
|
}
|
|
reset(): void {
|
|
|
|
}
|
|
}
|
|
|
|
|