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

18 lines
421 B
TypeScript
Raw Normal View History

2015-01-19 00:00:00 +00:00
/// <reference path="BaseLogEvent.ts"/>
module SpaceTac.Game {
"use strict";
// 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
}
}
}