Ejemplo n.º 1
0
        public override void Deserialize(System.IO.BinaryReader r)
        {
            base.Deserialize(r);
            byte[] buffSlot         = PETools.Serialize.ReadBytes(r);
            byte[] buffExchange     = PETools.Serialize.ReadBytes(r);
            byte[] buffAutoIncrease = PETools.Serialize.ReadBytes(r);
            byte[] buffHandin       = PETools.Serialize.ReadBytes(r);

            mSlotList.Import(buffSlot);
            mPrivateSlotList.Import(buffExchange);

            if (null != buffAutoIncrease && buffAutoIncrease.Length > 0)
            {
                mAutoIncreaseMoney = new AutoIncreaseMoney(money);
                mAutoIncreaseMoney.Import(buffAutoIncrease);
            }
            else
            {
                mAutoIncreaseMoney = null;
            }

            if (null != buffHandin && buffHandin.Length > 0)
            {
                mHandinList.Import(buffHandin);
            }
        }
Ejemplo n.º 2
0
        //List<ItemObject> _mEquipObjs = new List<ItemObject>();

        public void InitAutoIncreaseMoney(int max, int valuePerDay)
        {
            mAutoIncreaseMoney = new AutoIncreaseMoney(money, max, valuePerDay, true);
        }