update 添加松鼠角色

This commit is contained in:
DESKTOP-5RP3AKU\Jisol
2023-10-30 02:34:11 +08:00
parent ca84f38096
commit bb4334c0ff
178 changed files with 6352 additions and 195 deletions

View File

@@ -0,0 +1,34 @@
import { TableGRoleSkill } from "../../../resources/config/ts/TableGRoleSkill";
import GRoleBase from "../base/role/GRoleBase";
import GSkillCrazySquirrel from "./RoleSkill/GSkillCrazySquirrel";
//技能状态
export enum GSkillState{
NoRelease,//不可释放
Releasable,//可释放
Releasing,//释放中
}
//技能基类
export interface GSkillBase {
//设置
bind(role:GRoleBase<{}>,info:TableGRoleSkill):GSkillBase;
//是否允许释放
isRelease():boolean;
//释放技能
release():boolean;
//技能状态
state():GSkillState;
}
//技能方式
export const GSkill:{[key:string]:(new () => GSkillBase)} = {
["GSkillCrazySquirrel"]:GSkillCrazySquirrel,
}