public void addToStreamEx(Bundle stream, ROOM_INFO v) { stream.writeUint64(v.room_key); stream.writeUint8(v.player_count); stream.writeInt8(v.room_state); stream.writeInt32(v.room_creater); }
public ROOM_INFO createFromStreamEx(MemoryStream stream) { ROOM_INFO datas = new ROOM_INFO(); datas.room_key = stream.readUint64(); datas.player_count = stream.readUint8(); datas.room_state = stream.readInt8(); datas.room_creater = stream.readInt32(); return(datas); }
public override void onRemoteMethodCall(UInt16 methodUtype, MemoryStream stream) { ScriptModule sm = EntityDef.moduledefs["Operation"]; Method method = sm.idmethods[methodUtype]; switch (method.methodUtype) { case 14: Byte onCreateRoomResult_arg1 = stream.readUint8(); ROOM_INFO onCreateRoomResult_arg2 = ((DATATYPE_ROOM_INFO)method.args[1]).createFromStreamEx(stream); onCreateRoomResult(onCreateRoomResult_arg1, onCreateRoomResult_arg2); break; case 11: Byte onEnterRoomResult_arg1 = stream.readUint8(); ROOM_INFO onEnterRoomResult_arg2 = ((DATATYPE_ROOM_INFO)method.args[1]).createFromStreamEx(stream); onEnterRoomResult(onEnterRoomResult_arg1, onEnterRoomResult_arg2); break; case 13: Byte onGameBeginResult_arg1 = stream.readUint8(); onGameBeginResult(onGameBeginResult_arg1); break; case 12: Byte onLeaveRoomResult_arg1 = stream.readUint8(); onLeaveRoomResult(onLeaveRoomResult_arg1); break; case 10: ROOM_LIST onReqRoomList_arg1 = ((DATATYPE_ROOM_LIST)method.args[0]).createFromStreamEx(stream); onReqRoomList(onReqRoomList_arg1); break; case 15: Byte onTrueSyncData_arg1 = stream.readUint8(); byte[] onTrueSyncData_arg2 = stream.readBlob(); onTrueSyncData(onTrueSyncData_arg1, onTrueSyncData_arg2); break; default: break; } ; }
public override void onCreateRoomResult(byte result, ROOM_INFO roomInfo) { KBEngine.Event.fireOut("onCreateRoomResult", new object[] { result, roomInfo }); Debug.Log("Operation::onCreateRoomResult: " + "result:" + result); }
public override void onEnterRoomResult(byte result, ROOM_INFO roomInfo) { KBEngine.Event.fireOut("onEnterRoomResult", new object[] { result, roomInfo }); Debug.Log("Operation::onEnterRoomResult: " + "result:" + result + ",roomInfo:" + roomInfo.ToString()); }
public abstract void onEnterRoomResult(Byte arg1, ROOM_INFO arg2);
public abstract void onCreateRoomResult(Byte arg1, ROOM_INFO arg2);