Exemple #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_);
            }
            for (int _size_ = _os_.uncompact_uint32(); _size_ > 0; --_size_)
            {
                BattelInfo _v_ = new BattelInfo();
                _v_.unmarshal(_os_);
                battleinfolist.AddFirst(_v_);
            }

            return(_os_);
        }
Exemple #2
0
 public SBeginBattle()
     : base(PROTOCOL_TYPE)
 {
     battleinfo = new BattelInfo();
 }