public EventObject(EventType type, string name, DateTime time, int points) { UID = new EventSerial(); EventType = type; EventName = name; TimeAwarded = time; PointsGained = points; }
public override void Deserialize(GenericReader reader) { base.Deserialize(reader); int version = reader.ReadInt(); UID = new EventSerial(reader); switch (version) { case 0: { EventType = (EventType)reader.ReadInt(); EventName = reader.ReadString(); TimeAwarded = reader.ReadDateTime(); PointsGained = reader.ReadInt(); } break; } }