This commit is contained in:
DESKTOP-5RP3AKU\Jisol
2023-10-24 02:32:06 +08:00
parent 77d44ee300
commit 72f3d7e880
26 changed files with 545 additions and 285 deletions

View File

@@ -0,0 +1,33 @@
import { _decorator } from "cc";
import GRoleBase from "../GRoleBase";
import GFSMBase from "../../fsm/GFSMBase";
import GFSMPVP from "../../fsm/PVP/GFSMPVP";
import GPVPMode, { GPVPModePlayerEnum } from "../../../PVP/GPVPMode";
import { GTactical } from "../../../entity/GTactical";
const { ccclass, property } = _decorator;
//PVP 角色
@ccclass('GRolePVPEntity')
export default class GRolePVPEntity extends GRoleBase<{}>{
//所属阵容
ones:GPVPModePlayerEnum;
//在阵容中的下标
tacticalIndex:number;
tactical:GTactical;
get mode():GPVPMode{
return super.mode as GPVPMode;
}
set mode(value:GPVPMode){
this._mode = value;
}
protected fsmCreate(): GFSMBase {
return new GFSMPVP(this);
}
}

View File

@@ -0,0 +1,9 @@
{
"ver": "4.0.23",
"importer": "typescript",
"imported": true,
"uuid": "9fc034a7-5c68-4f22-9065-447435329c8a",
"files": [],
"subMetas": {},
"userData": {}
}