dd
This commit is contained in:
@@ -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 {
|
||||
|
||||
29
assets/script/game/hero/MonModelComp.ts
Normal file
29
assets/script/game/hero/MonModelComp.ts
Normal 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 = "";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user