public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);

            int version = reader.ReadInt();

            this.m_Points     = reader.ReadLong();
            this.m_StartTier  = reader.ReadLong();
            this.m_NextTier   = reader.ReadLong();
            this.m_DailyDecay = reader.ReadLong();
            this.m_Tier       = reader.ReadInt();

            this.Init();

            for (int i = reader.ReadInt(); i > 0; i--)
            {
                List <object> list = new List <object>();

                for (int j = reader.ReadInt(); j > 0; j--)
                {
                    list.Add(QuestReader.Object(reader));
                }

                this.m_Tiers.Add(list);
            }
        }
Beispiel #2
0
        public void Read(GenericReader reader)
        {
            int version = reader.ReadInt();

            Collection = (Collection)reader.ReadInt();
            Points     = reader.ReadLong();
            StartTier  = reader.ReadLong();
            NextTier   = reader.ReadLong();
            DailyDecay = reader.ReadLong();
            Tier       = reader.ReadInt();

            DonationTitle = QuestReader.Object(reader);

            for (int i = reader.ReadInt(); i > 0; i--)
            {
                List <object> list = new List <object>();

                for (int j = reader.ReadInt(); j > 0; j--)
                {
                    list.Add(QuestReader.Object(reader));
                }

                Tiers.Add(list);
            }
        }
Beispiel #3
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);

            int version = reader.ReadInt();

            m_Points     = reader.ReadLong();
            m_StartTier  = reader.ReadLong();
            m_NextTier   = reader.ReadLong();
            m_DailyDecay = reader.ReadLong();
            m_Tier       = reader.ReadInt();

            m_DonationTitle = QuestReader.Object(reader);

            Init();

            for (int i = reader.ReadInt(); i > 0; i--)
            {
                List <object> list = new List <object>();

                for (int j = reader.ReadInt(); j > 0; j--)
                {
                    list.Add(QuestReader.Object(reader));
                }

                m_Tiers.Add(list);
            }

            if (CantWalk)
            {
                Frozen = true;
            }
        }
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);

            int version = reader.ReadInt();

            this.Init();

            if (version == 0)
            {
                this.m_Points     = reader.ReadLong();
                this.m_StartTier  = reader.ReadLong();
                this.m_NextTier   = reader.ReadLong();
                this.m_DailyDecay = reader.ReadLong();
                this.m_Tier       = reader.ReadInt();

                this.m_DonationTitle = QuestReader.Object(reader);

                for (int i = reader.ReadInt(); i > 0; i--)
                {
                    List <object> list = new List <object>();

                    for (int j = reader.ReadInt(); j > 0; j--)
                    {
                        list.Add(QuestReader.Object(reader));
                    }

                    this.m_Tiers.Add(list);
                }
                CollectionsSystem.RegisterMobile(this);
            }

            if (this.CantWalk)
            {
                this.Frozen = true;
            }
        }