コード例 #1
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);

            int version = reader.ReadInt();

            switch (version)
            {
            case 1:
            case 0:
                m_MaxAuctionsParAccount = reader.ReadInt();
                m_MinAuctionDays        = reader.ReadInt();
                m_MaxAuctionDays        = reader.ReadInt();

                int count = reader.ReadInt();

                for (int i = 0; i < count; i++)
                {
                    m_Auctions.Add(AuctionItem.Deserialize(reader, version));
                }

                count = reader.ReadInt();

                for (int i = 0; i < count; i++)
                {
                    m_Pending.Add(AuctionItem.Deserialize(reader, version));
                }
                break;
            }

            AuctionSystem.ControlStone = this;
        }