mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-06-26 11:24:46 +00:00
35 lines
715 B
TypeScript
35 lines
715 B
TypeScript
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,
|
|
}
|
|
|