2023-10-27 02:38:08 +08:00

16 lines
432 B
TypeScript

import { TableGRoleAttack } from "../../../../resources/config/ts/TableGRoleAttack";
import { app } from "../../../App";
import GRoleBase from "../role/GRoleBase";
import { GAttackBase } from "./GAttack";
export default class GAttackRemote implements GAttackBase{
attack(role: GRoleBase<{}>, info: TableGRoleAttack): void {
console.log(app.role.bullets[info.attackArgs[0]]);
role.fsm.enemy.onHit();
}
}