public static UInt32 length(BattleRoomInfo _rChk) { UInt32 totalSize = 0; // STRUCT TYPE totalSize += BattlePuInfo.length(_rChk.pu_info); // STRUCT TYPE totalSize += BattleStatusInfo.length(_rChk.status_info); return(totalSize); }
public static UInt32 set(mln.EndianStream rEs, BattleRoomInfo _rIn) { UInt32 ofs = 0; // STRUCT TYPE ofs += BattlePuInfo.set(rEs, _rIn.pu_info); // STRUCT TYPE ofs += BattleStatusInfo.set(rEs, _rIn.status_info); return(ofs); }
public static UInt32 length(BattleStatusInfo _rChk) { UInt32 totalSize = 0; // BASIC TYPE totalSize += (1); // BASIC TYPE totalSize += (1); // BASIC TYPE totalSize += (1); return(totalSize); }
public static UInt32 set(mln.EndianStream rEs, BattleStatusInfo _rIn) { UInt32 ofs = 0; // BASIC TYPE rEs.put(_rIn.entered_num); ofs += 1; // BASIC TYPE rEs.put(_rIn.max_enter_num); ofs += 1; // BASIC TYPE rEs.put(_rIn.status); ofs += 1; return(ofs); }
public static UInt32 get(mln.EndianStream rEs, BattleStatusInfo _rOut) { UInt32 ofs = 0; // BASIC TYPE rEs.get(out _rOut.entered_num); ofs += 1; // BASIC TYPE rEs.get(out _rOut.max_enter_num); ofs += 1; // BASIC TYPE rEs.get(out _rOut.status); ofs += 1; return(ofs); }
public BattleStatusInfo(BattleStatusInfo rRef) { // copy constructor this.entered_num = rRef.entered_num; this.max_enter_num = rRef.max_enter_num; this.status = rRef.status; }
public BattleRoomInfo(BattleRoomInfo rRef) { // copy constructor this.pu_info = new BattlePuInfo(rRef.pu_info); this.status_info = new BattleStatusInfo(rRef.status_info); }
public BattleRoomInfo( BattlePuInfo _pu_info, BattleStatusInfo _status_info ) { // argument constructor this.pu_info = _pu_info; this.status_info = _status_info; }
public BattleRoomInfo() { // default constructor pu_info = new BattlePuInfo(); status_info = new BattleStatusInfo(); }
// return 0 if error or next public UInt32 Receive_Battle( UInt64 conid, UInt32 type, UInt16 totalSize, mln.EndianStream rStream ) { UInt32 ofs = 0; switch (type) { case (Int32)Battle_FuncID.ID_QUERYCONNECTBATTLE: // 0 { // ARGUMENTS // ARG 0 : UInt64 any_key UInt64 any_key; // BASIC TYPE rStream.get(out any_key); ofs += (8); // RECEIVE CALL Recv_QueryConnectBattle( conid, any_key ); break; } case (Int32)Battle_FuncID.ID_QUERYCONNECTBATTLERESULT: // 1 { // ARGUMENTS // ARG 0 : Byte num Byte num; // BASIC TYPE rStream.get(out num); ofs += (1); // RECEIVE CALL Recv_QueryConnectBattleResult( conid, num ); break; } case (Int32)Battle_FuncID.ID_QUERYHEALTHCHECKBATTLE: // 2 { // ARGUMENTS // RECEIVE CALL Recv_QueryHealthCheckBattle( conid ); break; } case (Int32)Battle_FuncID.ID_QUERYHEALTHCHECKBATTLERESULT: // 3 { // ARGUMENTS // RECEIVE CALL Recv_QueryHealthCheckBattleResult( conid ); break; } case (Int32)Battle_FuncID.ID_ENTERROOMRESULT: // 5 { // ARGUMENTS // ARG 0 : Int32 result Int32 result; // BASIC TYPE rStream.get(out result); ofs += (4); // RECEIVE CALL Recv_EnterRoomResult( conid, result ); break; } case (Int32)Battle_FuncID.ID_EXITROOMRESULT: // 7 { // ARGUMENTS // ARG 0 : Int32 result Int32 result; // BASIC TYPE rStream.get(out result); ofs += (4); // RECEIVE CALL Recv_ExitRoomResult( conid, result ); break; } case (Int32)Battle_FuncID.ID_STARTBATTLE: // 9 { // ARGUMENTS // RECEIVE CALL Recv_StartBattle( conid ); break; } case (Int32)Battle_FuncID.ID_ENDBATTLE: // 10 { // ARGUMENTS // RECEIVE CALL Recv_EndBattle( conid ); break; } case (Int32)Battle_FuncID.ID_GETSTATUSRESULT: // 12 { // ARGUMENTS // ARG 0 : BattleStatusInfo status_info BattleStatusInfo status_info = new BattleStatusInfo(); // STRUCT TYPE ofs += BattleStatusInfo.get( rStream, status_info ); // RECEIVE CALL Recv_GetStatusResult( conid, status_info ); break; } case (Int32)Battle_FuncID.ID_CHATRESULT: // 14 { // ARGUMENTS // ARG 0 : const char* str // string buffer //char str[RPC_STRLEN_SIZE+8]; string str; // STRING TYPE UInt32 str_length = 0U; UInt32 str_str_ofs = mln.cRPC_ID.GetStringFromStream(out str, rStream, out str_length); ofs += str_str_ofs; // RECEIVE CALL Recv_ChatResult( conid, str ); break; } case (Int32)Battle_FuncID.ID_UPDATESTATUSAPPOINTMENTRESULT: // 16 { // ARGUMENTS // ARG 0 : Int32 result Int32 result; // BASIC TYPE rStream.get(out result); ofs += (4); // ARG 1 : UInt64 battle_pu_list_pu_uid UInt64 battle_pu_list_pu_uid; // BASIC TYPE rStream.get(out battle_pu_list_pu_uid); ofs += (8); // ARG 2 : Int32 pid Int32 pid; // BASIC TYPE rStream.get(out pid); ofs += (4); // ARG 3 : BattleStatusInfo status_info BattleStatusInfo status_info = new BattleStatusInfo(); // STRUCT TYPE ofs += BattleStatusInfo.get( rStream, status_info ); // ARG 4 : UInt64 matching_room_id UInt64 matching_room_id; // BASIC TYPE rStream.get(out matching_room_id); ofs += (8); // RECEIVE CALL Recv_UpdateStatusAppointmentResult( conid, result , battle_pu_list_pu_uid , pid , status_info , matching_room_id ); break; } case (Int32)Battle_FuncID.ID_QUERYDISCONNECTBATTLE: // 17 { // ARGUMENTS // RECEIVE CALL Recv_QueryDisconnectBattle( conid ); break; } } return ofs; }
public static UInt32 set( mln.EndianStream rEs, BattleStatusInfo _rIn ) { UInt32 ofs = 0; // BASIC TYPE rEs.put(_rIn.entered_num); ofs += 1; // BASIC TYPE rEs.put(_rIn.max_enter_num); ofs += 1; // BASIC TYPE rEs.put(_rIn.status); ofs += 1; return ofs; }
public BattleRoomInfo(BattleRoomInfo rRef) // copy constructor { this.pu_info = new BattlePuInfo(rRef.pu_info); this.status_info = new BattleStatusInfo(rRef.status_info); }
public BattleRoomInfo(BattlePuInfo _pu_info, BattleStatusInfo _status_info) // argument constructor { this.pu_info = _pu_info; this.status_info = _status_info; }
public BattleRoomInfo() // default constructor { pu_info = new BattlePuInfo(); status_info = new BattleStatusInfo(); }
public static UInt32 get( mln.EndianStream rEs, BattleStatusInfo _rOut ) { UInt32 ofs = 0; // BASIC TYPE rEs.get( out _rOut.entered_num ); ofs += 1; // BASIC TYPE rEs.get( out _rOut.max_enter_num ); ofs += 1; // BASIC TYPE rEs.get( out _rOut.status ); ofs += 1; return ofs; }
// return 0 if error or next public UInt32 Receive_Battle(UInt64 conid, UInt32 type, UInt16 totalSize, mln.EndianStream rStream) { UInt32 ofs = 0; switch (type) { case (Int32)Battle_FuncID.ID_QUERYCONNECTBATTLE: // 0 { // ARGUMENTS // ARG 0 : UInt64 any_key UInt64 any_key; // BASIC TYPE rStream.get(out any_key); ofs += (8); // RECEIVE CALL Recv_QueryConnectBattle(conid, any_key ); break; } case (Int32)Battle_FuncID.ID_QUERYCONNECTBATTLERESULT: // 1 { // ARGUMENTS // ARG 0 : Byte num Byte num; // BASIC TYPE rStream.get(out num); ofs += (1); // RECEIVE CALL Recv_QueryConnectBattleResult(conid, num ); break; } case (Int32)Battle_FuncID.ID_QUERYHEALTHCHECKBATTLE: // 2 { // ARGUMENTS // RECEIVE CALL Recv_QueryHealthCheckBattle(conid ); break; } case (Int32)Battle_FuncID.ID_QUERYHEALTHCHECKBATTLERESULT: // 3 { // ARGUMENTS // RECEIVE CALL Recv_QueryHealthCheckBattleResult(conid ); break; } case (Int32)Battle_FuncID.ID_ENTERROOMRESULT: // 5 { // ARGUMENTS // ARG 0 : Int32 result Int32 result; // BASIC TYPE rStream.get(out result); ofs += (4); // RECEIVE CALL Recv_EnterRoomResult(conid, result ); break; } case (Int32)Battle_FuncID.ID_EXITROOMRESULT: // 7 { // ARGUMENTS // ARG 0 : Int32 result Int32 result; // BASIC TYPE rStream.get(out result); ofs += (4); // RECEIVE CALL Recv_ExitRoomResult(conid, result ); break; } case (Int32)Battle_FuncID.ID_STARTBATTLE: // 9 { // ARGUMENTS // RECEIVE CALL Recv_StartBattle(conid ); break; } case (Int32)Battle_FuncID.ID_ENDBATTLE: // 10 { // ARGUMENTS // RECEIVE CALL Recv_EndBattle(conid ); break; } case (Int32)Battle_FuncID.ID_GETSTATUSRESULT: // 12 { // ARGUMENTS // ARG 0 : BattleStatusInfo status_info BattleStatusInfo status_info = new BattleStatusInfo(); // STRUCT TYPE ofs += BattleStatusInfo.get(rStream, status_info); // RECEIVE CALL Recv_GetStatusResult(conid, status_info ); break; } case (Int32)Battle_FuncID.ID_CHATRESULT: // 14 { // ARGUMENTS // ARG 0 : const char* str // string buffer //char str[RPC_STRLEN_SIZE+8]; string str; // STRING TYPE UInt32 str_length = 0U; UInt32 str_str_ofs = mln.cRPC_ID.GetStringFromStream(out str, rStream, out str_length); ofs += str_str_ofs; // RECEIVE CALL Recv_ChatResult(conid, str ); break; } case (Int32)Battle_FuncID.ID_UPDATESTATUSAPPOINTMENTRESULT: // 16 { // ARGUMENTS // ARG 0 : Int32 result Int32 result; // BASIC TYPE rStream.get(out result); ofs += (4); // ARG 1 : UInt64 battle_pu_list_pu_uid UInt64 battle_pu_list_pu_uid; // BASIC TYPE rStream.get(out battle_pu_list_pu_uid); ofs += (8); // ARG 2 : Int32 pid Int32 pid; // BASIC TYPE rStream.get(out pid); ofs += (4); // ARG 3 : BattleStatusInfo status_info BattleStatusInfo status_info = new BattleStatusInfo(); // STRUCT TYPE ofs += BattleStatusInfo.get(rStream, status_info); // ARG 4 : UInt64 matching_room_id UInt64 matching_room_id; // BASIC TYPE rStream.get(out matching_room_id); ofs += (8); // RECEIVE CALL Recv_UpdateStatusAppointmentResult(conid, result, battle_pu_list_pu_uid, pid, status_info, matching_room_id ); break; } case (Int32)Battle_FuncID.ID_QUERYDISCONNECTBATTLE: // 17 { // ARGUMENTS // RECEIVE CALL Recv_QueryDisconnectBattle(conid ); break; } } return(ofs); }
public static UInt32 length( BattleStatusInfo _rChk ) { UInt32 totalSize = 0; // BASIC TYPE totalSize += (1); // BASIC TYPE totalSize += (1); // BASIC TYPE totalSize += (1); return totalSize; }
public void Recv_UpdateStatusAppointmentResult(UInt64 addr, Int32 result, UInt64 battle_pu_list_pu_uid, Int32 pid, BattleStatusInfo status_info, UInt64 matching_room_id) { }
public BattleStatusInfo(BattleStatusInfo rRef) // copy constructor { this.entered_num = rRef.entered_num; this.max_enter_num = rRef.max_enter_num; this.status = rRef.status; }