This commit is contained in:
pan@work
2024-11-29 16:52:57 +08:00
parent db59b7d58a
commit 8af6510302
6 changed files with 3 additions and 13 deletions

View File

@@ -19,7 +19,7 @@ import { RandomManager } from "../../../../extensions/oops-plugin-framework/asse
import { HeroInfo,MonSet } from "../common/config/heroSet";
import { MoveToComp } from "../common/ecs/position/MoveTo";
import { Talents } from "../common/config/TalentSet";
import { MonModelComp } from "../mon/MonModelComp";
import { MonModelComp } from "./MonModelComp";
/** 角色实体 */
@ecs.register(`Hero`)
export class Hero extends ecs.Entity {

View File

@@ -0,0 +1,29 @@
/*
* @Author: dgflash
* @Date: 2021-11-18 15:56:01
* @LastEditors: dgflash
* @LastEditTime: 2022-08-17 13:43:25
*/
import { ecs } from "../../../../extensions/oops-plugin-framework/assets/libs/ecs/ECS";
/**
* 角色属性数据
*/
@ecs.register('MonModel')
export class MonModelComp extends ecs.Comp {
/** 角色编号 */
id: number = -1;
/** 角色名 */
name: string = "mon";
/** speed */
// speed: number = 0;
/** 动画名资源 */
anim: string = "mon";
reset() {
this.id = -1;
// this.speed = 0;
this.name = "";
}
}