mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-10-09 00:26:11 +00:00
添加角色 远程攻击逻辑
This commit is contained in:
19
JisolGameCocos/assets/script/battle/base/attack/GAttack.ts
Normal file
19
JisolGameCocos/assets/script/battle/base/attack/GAttack.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
import { TableGRoleAttack } from "../../../../resources/config/ts/TableGRoleAttack";
|
||||
import GRoleBase from "../role/GRoleBase";
|
||||
import GAttackNormal from "./GAttackNormal";
|
||||
import GAttackRemote from "./GAttackRemote";
|
||||
|
||||
|
||||
|
||||
|
||||
//攻击方式基类
|
||||
export class GAttackBase{
|
||||
attack(role:GRoleBase<{}>,info:TableGRoleAttack){};
|
||||
}
|
||||
|
||||
//攻击方式
|
||||
export const GAttack:{[key:string]:new () => GAttackBase} = {
|
||||
["Normal"]:GAttackNormal,
|
||||
["Remote"]:GAttackRemote,
|
||||
}
|
||||
|
Reference in New Issue
Block a user