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

22 lines
574 B
TypeScript

import { RObjectId } from "../../common/RObject";
import { VigilanceAction } from "../actions/VigilanceAction";
import { Ship } from "../Ship";
import { BaseBattleShipDiff } from "./BaseBattleDiff";
/**
* A vigilance reaction has been triggered
*
* This does not do anything, and is just there for animations
*/
export class VigilanceAppliedDiff extends BaseBattleShipDiff {
action: RObjectId
target: RObjectId
constructor(source: Ship, action: VigilanceAction, target: Ship) {
super(source);
this.action = action.id;
this.target = target.id;
}
}