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, }