Ejemplo n.º 1
0
 public void Delete()
 {
     Remove();
     _History = null;
     Deleted  = true;
     OnDeleted();
 }
Ejemplo n.º 2
0
        public void Deserialize(GenericReader reader)
        {
            var version = reader.ReadInt();

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

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

                reader.ReadBlock(r => _History = 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;
            }
        }
Ejemplo n.º 3
0
        public PvPProfile(PlayerMobile owner)
        {
            Owner = owner;

            _History      = new PvPProfileHistory(this);
            Subscriptions = new List <PvPBattle>();

            SubscribeAllBattles();
        }