Beispiel #1
0
        public DonationEntry(string character, int amount, int coins, DateTime date)
        {
            UID = new DonationEntrySerial();

            Character     = character;
            AmountDonated = amount;
            CoinsGiven    = coins;
            Date          = date;
        }
        public DonationEntry(string character, int amount, int coins, DateTime date)
        {
            UID = new DonationEntrySerial();

            Character = character;
            AmountDonated = amount;
            CoinsGiven = coins;
            Date = date;
        }
Beispiel #3
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);

            int version = reader.ReadInt();

            UID = new DonationEntrySerial(reader);

            switch (version)
            {
            case 0:
            {
                Character     = reader.ReadString();
                AmountDonated = reader.ReadInt();
                CoinsGiven    = reader.ReadInt();
                Date          = reader.ReadDateTime();
            }
            break;
            }
        }
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);

            int version = reader.ReadInt();

            UID = new DonationEntrySerial(reader);

            switch (version)
            {
                case 0:
                {
                    Character = reader.ReadString();
                    AmountDonated = reader.ReadInt();
                    CoinsGiven = reader.ReadInt();
                    Date = reader.ReadDateTime();
                }
                    break;
            }
        }