Beispiel #1
0
        public void Deserialize(GenericReader reader)
        {
            var version = reader.ReadInt();

            Deleted = reader.ReadBool();
            Owner   = reader.ReadMobile <PlayerMobile>();

            switch (version)
            {
            case 0:
            {
                _Points = reader.ReadLong();

                History = reader.ReadBlock(r => r.ReadTypeCreate <PvPProfileHistory>(this, r)) ?? new PvPProfileHistory(this);

                Subscriptions = reader.ReadBlockList(
                    r =>
                    {
                        var serial = r.ReadTypeCreate <PvPSerial>(r) ?? new PvPSerial(r);

                        return(AutoPvP.FindBattleByID(serial));
                    },
                    Subscriptions);
            }
            break;
            }
        }