1
0
Fork 0
spacetac/src/game/events/AttributeChangeEvent.ts

16 lines
405 B
TypeScript

/// <reference path="BaseLogEvent.ts"/>
module TS.SpaceTac.Game {
// Event logged when a ship moves
export class AttributeChangeEvent extends BaseLogEvent {
// Saved version of the attribute
attribute: Attribute;
constructor(ship: Ship, attribute: Attribute) {
super("attr", ship);
this.attribute = Tools.copyObject(attribute);
}
}
}