public SceneGroupInfo(ulong groupID, ushort sceneType, ushort sceneState, ulong mapID, ulong lineID, ulong sceneID, string host, ushort port, SceneGroupAvatarInfoMap members, ServiceIDMap invitees) { this.groupID = groupID; this.sceneType = sceneType; this.sceneState = sceneState; this.mapID = mapID; this.lineID = lineID; this.sceneID = sceneID; this.host = host; this.port = port; this.members = members; this.invitees = invitees; }
public ServiceIDMap invitees; //邀请列表, 如果需要丰富该功能可扩展类型信息 public SceneGroupInfo() { groupID = 0; sceneType = 0; sceneState = 0; mapID = 0; lineID = 0; sceneID = 0; host = ""; port = 0; members = new SceneGroupAvatarInfoMap(); invitees = new ServiceIDMap(); }
public int __decode(byte[] binData, ref int pos) { this.groupID = Proto4z.BaseProtoObject.decodeUI64(binData, ref pos); this.sceneType = Proto4z.BaseProtoObject.decodeUI16(binData, ref pos); this.sceneState = Proto4z.BaseProtoObject.decodeUI16(binData, ref pos); this.mapID = Proto4z.BaseProtoObject.decodeUI64(binData, ref pos); this.lineID = Proto4z.BaseProtoObject.decodeUI64(binData, ref pos); this.sceneID = Proto4z.BaseProtoObject.decodeUI64(binData, ref pos); this.host = Proto4z.BaseProtoObject.decodeString(binData, ref pos); this.port = Proto4z.BaseProtoObject.decodeUI16(binData, ref pos); this.members = new SceneGroupAvatarInfoMap(); this.members.__decode(binData, ref pos); this.invitees = new ServiceIDMap(); this.invitees.__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.encodeUI64(this.groupID)); data.AddRange(Proto4z.BaseProtoObject.encodeUI16(this.sceneType)); data.AddRange(Proto4z.BaseProtoObject.encodeUI16(this.sceneState)); data.AddRange(Proto4z.BaseProtoObject.encodeUI64(this.mapID)); data.AddRange(Proto4z.BaseProtoObject.encodeUI64(this.lineID)); data.AddRange(Proto4z.BaseProtoObject.encodeUI64(this.sceneID)); data.AddRange(Proto4z.BaseProtoObject.encodeString(this.host)); data.AddRange(Proto4z.BaseProtoObject.encodeUI16(this.port)); if (this.members == null) { this.members = new SceneGroupAvatarInfoMap(); } data.AddRange(this.members.__encode()); if (this.invitees == null) { this.invitees = new ServiceIDMap(); } data.AddRange(this.invitees.__encode()); return(data); }