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

16 lines
405 B
TypeScript
Raw Normal View History

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