1
0
Fork 0
spacetac/src/core/diffs/ProjectileFiredDiff.ts
2019-11-21 23:14:27 +01:00

23 lines
577 B
TypeScript

import { RObjectId } from "../../common/RObject";
import { TriggerAction } from "../actions/TriggerAction";
import { Ship } from "../Ship";
import { Target } from "../Target";
import { BaseBattleShipDiff } from "./BaseBattleDiff";
/**
* A projectile is fired
*
* This does not do anything, and is just there for animations
*/
export class ProjectileFiredDiff extends BaseBattleShipDiff {
action: RObjectId
target: Target
constructor(ship: Ship, action: TriggerAction, target: Target) {
super(ship);
this.action = action.id;
this.target = target;
}
}