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); }
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); }
public AllocateSceneResp(ushort retCode, SceneTokenInfoArray tokens) { this.retCode = retCode; this.tokens = tokens; }
public SceneTokenInfoArray tokens; //匹配列表中的玩家 public AllocateSceneResp() { retCode = 0; tokens = new SceneTokenInfoArray(); }