Exemplo n.º 1
0
        public override void Deserialize(GenericReader reader)
        {
            ObeliskUsers = new Dictionary <Account, DateTime>();
            base.Deserialize(reader);

            int version = reader.ReadInt();

            switch (version)
            {
            case 0:
            {
                MaxCharge = reader.ReadInt();

                CurrentCharge = reader.ReadInt();

                ObeliskType = (ObeliskType)reader.ReadInt();

                OwningFaction = reader.ReadString();

                _OwnedName = reader.ReadString();
            }
            break;
            }

            timer = new InternalTimer(this);
            timer.Start();

            FactionObelisks.Register(this);
        }
Exemplo n.º 2
0
        public FactionObelisk(int itemid)
            : base(itemid)
        {
            Movable = false;
            timer   = new InternalTimer(this);
            timer.Start();
            FactionObelisks.Register(this);

            ObeliskUsers = new Dictionary <Account, DateTime>();
        }