Beispiel #1
0
 public int __decode(byte[] binData, ref int pos)
 {
     this.retCode = Proto4z.BaseProtoObject.decodeUI16(binData, ref pos);
     this.tokens  = new SceneTokenInfoArray();
     this.tokens.__decode(binData, ref pos);
     return(pos);
 }
Beispiel #2
0
        public System.Collections.Generic.List <byte> __encode()
        {
            var data = new System.Collections.Generic.List <byte>();

            data.AddRange(Proto4z.BaseProtoObject.encodeUI16(this.retCode));
            if (this.tokens == null)
            {
                this.tokens = new SceneTokenInfoArray();
            }
            data.AddRange(this.tokens.__encode());
            return(data);
        }
Beispiel #3
0
 public AllocateSceneResp(ushort retCode, SceneTokenInfoArray tokens)
 {
     this.retCode = retCode;
     this.tokens  = tokens;
 }
Beispiel #4
0
 public SceneTokenInfoArray tokens; //匹配列表中的玩家
 public AllocateSceneResp()
 {
     retCode = 0;
     tokens  = new SceneTokenInfoArray();
 }