Пример #1
0
        /////////////-----------dont modify follow code your modifications will be loss
        /////////////-----------dont modify follow code your modifications will be loss
        /////////////-----------dont modify follow code your modifications will be loss
        /////////////-----------dont modify follow code your modifications will be loss
        /////////////-----------dont modify follow code your modifications will be loss
        /////////////-----------dont modify follow code your modifications will be loss



        //---Auto Generate Code Start---
        //把该类的field 写入到stream中
        public void Encode(MsgStream ms)
        {
            ms.stream.WriteByte((byte)this.type);
            ms.mType = ((MsgType)this.type);
            ms.Write(this.xxx);
            ms.Write((short)this.list.Count);
            int ____COUNT___list = list.Count;

            for (int i = 0; i < ____COUNT___list; i++)
            {
                ms.Write(this.list[i]);
            }
            ;
            ms.Write((short)this.lis1111t.Count);
            int ____COUNT___lis1111t = lis1111t.Count;

            for (int i = 0; i < ____COUNT___lis1111t; i++)
            {
                ms.Write(this.lis1111t[i]);
            }
            ;
            ms.Write((short)this.lis2312323t.Count);
            int ____COUNT___lis2312323t = lis2312323t.Count;

            for (int i = 0; i < ____COUNT___lis2312323t; i++)
            {
                ms.Write(this.lis2312323t[i]);
            }
            ;
            ms.Write(this.xxxxxx);
            ms.Write(this.plsqsfq);
            ms.Write(this.my_name);
            //field name=  type    type=  MsgType     has not auto-gen
            //field name=  _name    type=  Single     has not auto-gen
            //field name=  kv    type=  Dictionary`2     has not auto-gen
        }
Пример #2
0
        /////////////-----------dont modify follow code your modifications will be loss
        /////////////-----------dont modify follow code your modifications will be loss
        /////////////-----------dont modify follow code your modifications will be loss
        /////////////-----------dont modify follow code your modifications will be loss
        /////////////-----------dont modify follow code your modifications will be loss
        /////////////-----------dont modify follow code your modifications will be loss



        //---Auto Generate Code Start---
        //把该类的field 写入到stream中
        public void Encode(MsgStream ms)
        {
            ms.stream.WriteByte((byte)this.type);
            ms.mType = ((MsgType)this.type);
            ms.Write(this.id);
            ms.Write(this.position);
            ms.Write(this.yValue);
            ms.Write(this.move);
            ms.Write(this.rotationAim);
            ms.Write(this.fightstate);
            //field name=  type    type=  MsgType     has not auto-gen
        }