1
0
Fork 0
spacetac/src/core/events/DroneDestroyedEvent.ts

20 lines
467 B
TypeScript
Raw Normal View History

/// <reference path="BaseBattleEvent.ts"/>
2017-02-06 21:46:55 +00:00
2017-02-09 00:00:35 +00:00
module TS.SpaceTac {
2017-02-06 21:46:55 +00:00
// Event logged when a drone is destroyed
2017-03-09 17:11:00 +00:00
export class DroneDestroyedEvent extends BaseLogShipEvent {
2017-02-06 21:46:55 +00:00
// Pointer to the drone
drone: Drone;
constructor(drone: Drone) {
super("dronedel", drone.owner);
this.drone = drone;
}
2017-05-30 18:23:35 +00:00
getReverse(): BaseBattleEvent {
return new DroneDeployedEvent(this.drone);
}
2017-02-06 21:46:55 +00:00
}
}