Beispiel #1
0
        public override OctetsStream unmarshal(OctetsStream _os_)
        {
            endtype  = _os_.unmarshal_int();
            smid     = _os_.unmarshal_int();
            time     = _os_.unmarshal_int();
            zhangjie = _os_.unmarshal_int();

            //魔盒
            for (int _size_ = _os_.uncompact_uint32(); _size_ > 0; --_size_)
            {
                int key;
                key = _os_.unmarshal_int();

                Mohe _v_ = new Mohe();
                _v_.unmarshal(_os_);
                moheshop.Add(key, _v_);
            }

            //神秘商店
            for (int _size_ = _os_.uncompact_uint32(); _size_ > 0; --_size_)
            {
                int key;
                key = _os_.unmarshal_int();
                Smshopdata _v_ = new Smshopdata();
                _v_.unmarshal(_os_);

                smshop.Add(key, _v_);
            }

            return(_os_);
        }
Beispiel #2
0
        public override OctetsStream unmarshal(OctetsStream _os_)
        {
            endtype  = _os_.unmarshal_int();
            smshopid = _os_.unmarshal_int();

            //ħºÐ
            for (int _size_ = _os_.uncompact_uint32(); _size_ > 0; --_size_)
            {
                int key;
                key = _os_.unmarshal_int();

                Smshopdata _v_ = new Smshopdata();
                _v_.unmarshal(_os_);
                smshop.Add(key, _v_);
            }

            return(_os_);
        }
Beispiel #3
0
        public override OctetsStream unmarshal(OctetsStream _os_)
        {
            roleid     = _os_.unmarshal_long();
            name       = _os_.unmarshal_String();
            isgm       = _os_.unmarshal_byte();
            level      = _os_.unmarshal_short();
            exp        = _os_.unmarshal_int();
            viplv      = _os_.unmarshal_byte();
            vipexp     = _os_.unmarshal_int();
            ti         = _os_.unmarshal_short();
            titime     = _os_.unmarshal_int();
            money      = _os_.unmarshal_long();
            yuanbao    = _os_.unmarshal_int();
            battlenum  = _os_.unmarshal_int();
            servertime = _os_.unmarshal_long();
            timezone   = _os_.unmarshal_byte();

            for (int _size_ = _os_.uncompact_uint32(); _size_ > 0; --_size_)
            {
                Hero _v_ = new Hero();
                _v_.unmarshal(_os_);
                heroes.AddFirst(_v_);
            }

            for (int _size_ = _os_.uncompact_uint32(); _size_ > 0; --_size_)
            {
                Troop _v_ = new Troop();
                _v_.unmarshal(_os_);
                troops.AddFirst(_v_);
            }

            for (int _size_ = _os_.uncompact_uint32(); _size_ > 0; --_size_)
            {
                int key;
                key = _os_.unmarshal_int();

                Bag _v_ = new Bag();
                _v_.unmarshal(_os_);
                baginfo.Add(key, _v_);
            }

            hammer        = _os_.unmarshal_int();
            freegoldtime  = _os_.unmarshal_int();
            freeybtime    = _os_.unmarshal_int();
            goldbuynum    = _os_.unmarshal_int();
            tibuynum      = _os_.unmarshal_int();
            signnum7      = _os_.unmarshal_int();
            signnum28     = _os_.unmarshal_int();
            mailsize      = _os_.unmarshal_byte();
            buybagnum     = _os_.unmarshal_short();
            buyherobagnum = _os_.unmarshal_short();
            smid          = _os_.unmarshal_int();
            smtime        = _os_.unmarshal_int();
            smzhangjie    = _os_.unmarshal_int();
            shenglingzq   = _os_.unmarshal_int();
            ronglian      = _os_.unmarshal_int();
            huangjinxz    = _os_.unmarshal_int();
            baijinxz      = _os_.unmarshal_int();
            qingtongxz    = _os_.unmarshal_int();
            chitiexz      = _os_.unmarshal_int();
            jyjiejing     = _os_.unmarshal_int();
            troopnum      = _os_.unmarshal_byte();

            for (int _size_ = _os_.uncompact_uint32(); _size_ > 0; --_size_)
            {
                int _v_ = _os_.unmarshal_int();
                heroskins.AddFirst(_v_);
            }

            //神器
            for (int _size_ = _os_.uncompact_uint32(); _size_ > 0; --_size_)
            {
                int key;
                key = _os_.unmarshal_int();

                Artifact _v_ = new Artifact();
                _v_.unmarshal(_os_);
                artifacts.Add(key, _v_);
            }
            //商城
            for (int _size_ = _os_.uncompact_uint32(); _size_ > 0; --_size_)
            {
                int key;
                key = _os_.unmarshal_int();

                Shopbuy _v_ = new Shopbuy();
                _v_.unmarshal(_os_);
                shopbuys.Add(key, _v_);
            }
            sweepnum      = _os_.unmarshal_int();
            sweepbuynum   = _os_.unmarshal_int();
            mszqgetnum    = _os_.unmarshal_int();
            qiyuannum     = _os_.unmarshal_int();
            qiyuanallnum  = _os_.unmarshal_int();
            isqiyuantoday = _os_.unmarshal_int();
            txti          = _os_.unmarshal_short();
            txtitime      = _os_.unmarshal_int();

            for (int _size_ = _os_.uncompact_uint32(); _size_ > 0; --_size_)
            {
                int _v_ = _os_.unmarshal_int();
                newyindao.AddLast(_v_);
            }

            //神秘商店
            for (int _size_ = _os_.uncompact_uint32(); _size_ > 0; --_size_)
            {
                int key;
                key = _os_.unmarshal_int();
                Smshopdata _v_ = new Smshopdata();
                _v_.unmarshal(_os_);

                smshop.Add(key, _v_);
            }

            return(_os_);
        }