Пример #1
0
        public EventObject(EventType type, string name, DateTime time, int points)
        {
            UID = new EventSerial();

            EventType    = type;
            EventName    = name;
            TimeAwarded  = time;
            PointsGained = points;
        }
Пример #2
0
        public EventObject(EventType type, string name, DateTime time, int points)
        {
            UID = new EventSerial();

            EventType = type;
            EventName = name;
            TimeAwarded = time;
            PointsGained = points;
        }
Пример #3
0
        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;
            }
        }
Пример #4
0
        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;
            }
        }