コード例 #1
0
        public BaseCollectionMobile(string name, string title)
            : base(title)
        {
            this.Name     = name;
            this.Frozen   = true;
            this.CantWalk = true;

            this.Init();

            CollectionsSystem.RegisterMobile(this);
        }
コード例 #2
0
        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;
            }
        }
コード例 #3
0
        public override void OnDelete()
        {
            base.OnDelete();

            CollectionsSystem.UnregisterMobile(this);
        }