mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-10-13 02:26:07 +00:00
update 添加松鼠角色
This commit is contained in:
34
JisolGameCocos/assets/script/battle/skill/GSkill.ts
Normal file
34
JisolGameCocos/assets/script/battle/skill/GSkill.ts
Normal 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,
|
||||
}
|
||||
|
Reference in New Issue
Block a user