public BattlePuInfo(BattlePuInfo rRef) // copy constructor { this.ip_addr_strlen = rRef.ip_addr_strlen; this.ip_addr = rRef.ip_addr; this.port = rRef.port; this.room_hub_pu_uid = rRef.room_hub_pu_uid; this.battle_pu_uid = rRef.battle_pu_uid; }
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(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 length(BattlePuInfo _rChk) { UInt32 totalSize = 0; // STRING TYPE totalSize += _rChk.ip_addr_strlen + 4; // BASIC TYPE totalSize += (2); // BASIC TYPE totalSize += (8); // BASIC TYPE totalSize += (8); return(totalSize); }
public static UInt32 set(mln.EndianStream rEs, BattlePuInfo _rIn) { UInt32 ofs = 0; // STRING TYPE ofs += mln.cRPC_ID.SetStringToStream(_rIn.ip_addr, rEs, _rIn.ip_addr_strlen); // BASIC TYPE rEs.put(_rIn.port); ofs += 2; // BASIC TYPE rEs.put(_rIn.room_hub_pu_uid); ofs += 8; // BASIC TYPE rEs.put(_rIn.battle_pu_uid); ofs += 8; return(ofs); }
public static UInt32 get(mln.EndianStream rEs, BattlePuInfo _rOut) { UInt32 ofs = 0; // STRING TYPE ofs += mln.cRPC_ID.GetStringFromStream(out _rOut.ip_addr, rEs, out _rOut.ip_addr_strlen); // BASIC TYPE rEs.get(out _rOut.port); ofs += 2; // BASIC TYPE rEs.get(out _rOut.room_hub_pu_uid); ofs += 8; // BASIC TYPE rEs.get(out _rOut.battle_pu_uid); ofs += 8; return(ofs); }
public static UInt32 set( mln.EndianStream rEs, BattlePuInfo _rIn ) { UInt32 ofs = 0; // STRING TYPE ofs += mln.cRPC_ID.SetStringToStream( _rIn.ip_addr, rEs, _rIn.ip_addr_strlen ); // BASIC TYPE rEs.put(_rIn.port); ofs += 2; // BASIC TYPE rEs.put(_rIn.room_hub_pu_uid); ofs += 8; // BASIC TYPE rEs.put(_rIn.battle_pu_uid); ofs += 8; return ofs; }
public static UInt32 length( BattlePuInfo _rChk ) { UInt32 totalSize = 0; // STRING TYPE totalSize += _rChk.ip_addr_strlen+4; // BASIC TYPE totalSize += (2); // BASIC TYPE totalSize += (8); // BASIC TYPE totalSize += (8); return totalSize; }
public static UInt32 get( mln.EndianStream rEs, BattlePuInfo _rOut ) { UInt32 ofs = 0; // STRING TYPE ofs += mln.cRPC_ID.GetStringFromStream( out _rOut.ip_addr, rEs, out _rOut.ip_addr_strlen ); // BASIC TYPE rEs.get( out _rOut.port ); ofs += 2; // BASIC TYPE rEs.get( out _rOut.room_hub_pu_uid ); ofs += 8; // BASIC TYPE rEs.get( out _rOut.battle_pu_uid ); ofs += 8; return ofs; }
public BattlePuInfo(BattlePuInfo rRef) { // copy constructor this.ip_addr_strlen = rRef.ip_addr_strlen; this.ip_addr = rRef.ip_addr; this.port = rRef.port; this.room_hub_pu_uid = rRef.room_hub_pu_uid; this.battle_pu_uid = rRef.battle_pu_uid; }
// return 0 if error or next public UInt32 Receive_BattlePuList(UInt64 conid, UInt32 type, UInt16 totalSize, mln.EndianStream rStream) { UInt32 ofs = 0; switch (type) { case (Int32)BattlePuList_FuncID.ID_QUERYCONNECTBATTLEPULIST: // 0 { // ARGUMENTS // ARG 0 : UInt64 any_key UInt64 any_key; // BASIC TYPE rStream.get(out any_key); ofs += (8); // RECEIVE CALL Recv_QueryConnectBattlePuList(conid, any_key ); break; } case (Int32)BattlePuList_FuncID.ID_QUERYCONNECTBATTLEPULISTRESULT: // 1 { // ARGUMENTS // ARG 0 : Byte num Byte num; // BASIC TYPE rStream.get(out num); ofs += (1); // RECEIVE CALL Recv_QueryConnectBattlePuListResult(conid, num ); break; } case (Int32)BattlePuList_FuncID.ID_QUERYHEALTHCHECKBATTLEPULIST: // 2 { // ARGUMENTS // RECEIVE CALL Recv_QueryHealthCheckBattlePuList(conid ); break; } case (Int32)BattlePuList_FuncID.ID_QUERYHEALTHCHECKBATTLEPULISTRESULT: // 3 { // ARGUMENTS // RECEIVE CALL Recv_QueryHealthCheckBattlePuListResult(conid ); break; } case (Int32)BattlePuList_FuncID.ID_GETROOMLISTRESULT: // 5 { // ARGUMENTS // ARG 0 : BattleRoomInfo room_info UInt32 room_info_len; // bin32 len rStream.get(out room_info_len); ofs += 4; BattleRoomInfo[] room_info = new BattleRoomInfo[room_info_len]; for (UInt32 __ind = 0; __ind < room_info_len; __ind++) { room_info[__ind] = new BattleRoomInfo(); } // STRUCT TYPE for (UInt32 __ind = 0; __ind < room_info_len; __ind++) { ofs += BattleRoomInfo.get(rStream, room_info[__ind]); } // RECEIVE CALL Recv_GetRoomListResult(conid, room_info, room_info_len ); break; } case (Int32)BattlePuList_FuncID.ID_UPDATEROOMINFO: // 6 { // ARGUMENTS // RECEIVE CALL Recv_UpdateRoomInfo(conid ); break; } case (Int32)BattlePuList_FuncID.ID_DELETEROOMINFO: // 8 { // ARGUMENTS // RECEIVE CALL Recv_DeleteRoomInfo(conid ); break; } case (Int32)BattlePuList_FuncID.ID_APPOINTMENTBATTLERESULT: // 11 { // ARGUMENTS // ARG 0 : UInt64 matching_room_id UInt64 matching_room_id; // BASIC TYPE rStream.get(out matching_room_id); ofs += (8); // ARG 1 : BattlePuInfo battle_pu_info BattlePuInfo battle_pu_info = new BattlePuInfo(); // STRUCT TYPE ofs += BattlePuInfo.get(rStream, battle_pu_info); // ARG 2 : UInt64 appointment_battle_pu_time UInt64 appointment_battle_pu_time; // BASIC TYPE rStream.get(out appointment_battle_pu_time); ofs += (8); // ARG 3 : Int32 result Int32 result; // BASIC TYPE rStream.get(out result); ofs += (4); // RECEIVE CALL Recv_AppointmentBattleResult(conid, matching_room_id, battle_pu_info, appointment_battle_pu_time, result ); break; } case (Int32)BattlePuList_FuncID.ID_QUERYDISCONNECTBATTLEPULIST: // 12 { // ARGUMENTS // RECEIVE CALL Recv_QueryDisconnectBattlePuList(conid ); break; } } 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(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 BattleRoomInfo() { // default constructor pu_info = new BattlePuInfo(); status_info = new BattleStatusInfo(); }
public BattleRoomInfo( BattlePuInfo _pu_info, BattleStatusInfo _status_info ) { // argument constructor this.pu_info = _pu_info; this.status_info = _status_info; }
// return 0 if error or next public UInt32 Receive_Matching(UInt64 conid, UInt32 type, UInt16 totalSize, mln.EndianStream rStream) { UInt32 ofs = 0; switch (type) { case (Int32)Matching_FuncID.ID_QUERYCONNECTMATCHING: // 0 { // ARGUMENTS // ARG 0 : UInt64 any_key UInt64 any_key; // BASIC TYPE rStream.get(out any_key); ofs += (8); // RECEIVE CALL Recv_QueryConnectMatching(conid, any_key ); break; } case (Int32)Matching_FuncID.ID_QUERYCONNECTMATCHINGRESULT: // 1 { // ARGUMENTS // ARG 0 : Byte num Byte num; // BASIC TYPE rStream.get(out num); ofs += (1); // RECEIVE CALL Recv_QueryConnectMatchingResult(conid, num ); break; } case (Int32)Matching_FuncID.ID_QUERYHEALTHCHECKMATCHING: // 2 { // ARGUMENTS // RECEIVE CALL Recv_QueryHealthCheckMatching(conid ); break; } case (Int32)Matching_FuncID.ID_QUERYHEALTHCHECKMATCHINGRESULT: // 3 { // ARGUMENTS // RECEIVE CALL Recv_QueryHealthCheckMatchingResult(conid ); break; } case (Int32)Matching_FuncID.ID_ENTERMATCHINGROOMRESULT: // 5 { // ARGUMENTS // ARG 0 : UInt64 matching_room_id UInt64 matching_room_id; // BASIC TYPE rStream.get(out matching_room_id); ofs += (8); // ARG 1 : Int32 result Int32 result; // BASIC TYPE rStream.get(out result); ofs += (4); // RECEIVE CALL Recv_EnterMatchingRoomResult(conid, matching_room_id, result ); break; } case (Int32)Matching_FuncID.ID_GETMATCHINGSTATUSRESULT: // 7 { // ARGUMENTS // ARG 0 : UInt64 matching_room_id UInt64 matching_room_id; // BASIC TYPE rStream.get(out matching_room_id); ofs += (8); // ARG 1 : Byte status Byte status; // BASIC TYPE rStream.get(out status); ofs += (1); // ARG 2 : BattlePuInfo battle_pu_info BattlePuInfo battle_pu_info = new BattlePuInfo(); // STRUCT TYPE ofs += BattlePuInfo.get(rStream, battle_pu_info); // RECEIVE CALL Recv_GetMatchingStatusResult(conid, matching_room_id, status, battle_pu_info ); break; } case (Int32)Matching_FuncID.ID_EXITMATCHINGROOMRESULT: // 9 { // ARGUMENTS // ARG 0 : Int32 result Int32 result; // BASIC TYPE rStream.get(out result); ofs += (4); // RECEIVE CALL Recv_ExitMatchingRoomResult(conid, result ); break; } case (Int32)Matching_FuncID.ID_QUERYDISCONNECTMATCHING: // 10 { // ARGUMENTS // RECEIVE CALL Recv_QueryDisconnectMatching(conid ); break; } } return(ofs); }
// return 0 if error or next public UInt32 Receive_BattlePuList( UInt64 conid, UInt32 type, UInt16 totalSize, mln.EndianStream rStream ) { UInt32 ofs = 0; switch (type) { case (Int32)BattlePuList_FuncID.ID_QUERYCONNECTBATTLEPULIST: // 0 { // ARGUMENTS // ARG 0 : UInt64 any_key UInt64 any_key; // BASIC TYPE rStream.get(out any_key); ofs += (8); // RECEIVE CALL Recv_QueryConnectBattlePuList( conid, any_key ); break; } case (Int32)BattlePuList_FuncID.ID_QUERYCONNECTBATTLEPULISTRESULT: // 1 { // ARGUMENTS // ARG 0 : Byte num Byte num; // BASIC TYPE rStream.get(out num); ofs += (1); // RECEIVE CALL Recv_QueryConnectBattlePuListResult( conid, num ); break; } case (Int32)BattlePuList_FuncID.ID_QUERYHEALTHCHECKBATTLEPULIST: // 2 { // ARGUMENTS // RECEIVE CALL Recv_QueryHealthCheckBattlePuList( conid ); break; } case (Int32)BattlePuList_FuncID.ID_QUERYHEALTHCHECKBATTLEPULISTRESULT: // 3 { // ARGUMENTS // RECEIVE CALL Recv_QueryHealthCheckBattlePuListResult( conid ); break; } case (Int32)BattlePuList_FuncID.ID_GETROOMLISTRESULT: // 5 { // ARGUMENTS // ARG 0 : BattleRoomInfo room_info UInt32 room_info_len; // bin32 len rStream.get(out room_info_len); ofs += 4; BattleRoomInfo[] room_info = new BattleRoomInfo[room_info_len]; for( UInt32 __ind = 0; __ind < room_info_len ; __ind++ ){ room_info[__ind] = new BattleRoomInfo(); } // STRUCT TYPE for( UInt32 __ind = 0; __ind < room_info_len ; __ind++ ){ ofs += BattleRoomInfo.get( rStream, room_info[__ind] ); } // RECEIVE CALL Recv_GetRoomListResult( conid, room_info, room_info_len ); break; } case (Int32)BattlePuList_FuncID.ID_UPDATEROOMINFO: // 6 { // ARGUMENTS // RECEIVE CALL Recv_UpdateRoomInfo( conid ); break; } case (Int32)BattlePuList_FuncID.ID_DELETEROOMINFO: // 8 { // ARGUMENTS // RECEIVE CALL Recv_DeleteRoomInfo( conid ); break; } case (Int32)BattlePuList_FuncID.ID_APPOINTMENTBATTLERESULT: // 11 { // ARGUMENTS // ARG 0 : UInt64 matching_room_id UInt64 matching_room_id; // BASIC TYPE rStream.get(out matching_room_id); ofs += (8); // ARG 1 : BattlePuInfo battle_pu_info BattlePuInfo battle_pu_info = new BattlePuInfo(); // STRUCT TYPE ofs += BattlePuInfo.get( rStream, battle_pu_info ); // ARG 2 : UInt64 appointment_battle_pu_time UInt64 appointment_battle_pu_time; // BASIC TYPE rStream.get(out appointment_battle_pu_time); ofs += (8); // ARG 3 : Int32 result Int32 result; // BASIC TYPE rStream.get(out result); ofs += (4); // RECEIVE CALL Recv_AppointmentBattleResult( conid, matching_room_id , battle_pu_info , appointment_battle_pu_time , result ); break; } case (Int32)BattlePuList_FuncID.ID_QUERYDISCONNECTBATTLEPULIST: // 12 { // ARGUMENTS // RECEIVE CALL Recv_QueryDisconnectBattlePuList( conid ); break; } } return ofs; }
// return 0 if error or next public UInt32 Receive_Matching( UInt64 conid, UInt32 type, UInt16 totalSize, mln.EndianStream rStream ) { UInt32 ofs = 0; switch (type) { case (Int32)Matching_FuncID.ID_QUERYCONNECTMATCHING: // 0 { // ARGUMENTS // ARG 0 : UInt64 any_key UInt64 any_key; // BASIC TYPE rStream.get(out any_key); ofs += (8); // RECEIVE CALL Recv_QueryConnectMatching( conid, any_key ); break; } case (Int32)Matching_FuncID.ID_QUERYCONNECTMATCHINGRESULT: // 1 { // ARGUMENTS // ARG 0 : Byte num Byte num; // BASIC TYPE rStream.get(out num); ofs += (1); // RECEIVE CALL Recv_QueryConnectMatchingResult( conid, num ); break; } case (Int32)Matching_FuncID.ID_QUERYHEALTHCHECKMATCHING: // 2 { // ARGUMENTS // RECEIVE CALL Recv_QueryHealthCheckMatching( conid ); break; } case (Int32)Matching_FuncID.ID_QUERYHEALTHCHECKMATCHINGRESULT: // 3 { // ARGUMENTS // RECEIVE CALL Recv_QueryHealthCheckMatchingResult( conid ); break; } case (Int32)Matching_FuncID.ID_ENTERMATCHINGROOMRESULT: // 5 { // ARGUMENTS // ARG 0 : UInt64 matching_room_id UInt64 matching_room_id; // BASIC TYPE rStream.get(out matching_room_id); ofs += (8); // ARG 1 : Int32 result Int32 result; // BASIC TYPE rStream.get(out result); ofs += (4); // RECEIVE CALL Recv_EnterMatchingRoomResult( conid, matching_room_id , result ); break; } case (Int32)Matching_FuncID.ID_GETMATCHINGSTATUSRESULT: // 7 { // ARGUMENTS // ARG 0 : UInt64 matching_room_id UInt64 matching_room_id; // BASIC TYPE rStream.get(out matching_room_id); ofs += (8); // ARG 1 : Byte status Byte status; // BASIC TYPE rStream.get(out status); ofs += (1); // ARG 2 : BattlePuInfo battle_pu_info BattlePuInfo battle_pu_info = new BattlePuInfo(); // STRUCT TYPE ofs += BattlePuInfo.get( rStream, battle_pu_info ); // RECEIVE CALL Recv_GetMatchingStatusResult( conid, matching_room_id , status , battle_pu_info ); break; } case (Int32)Matching_FuncID.ID_EXITMATCHINGROOMRESULT: // 9 { // ARGUMENTS // ARG 0 : Int32 result Int32 result; // BASIC TYPE rStream.get(out result); ofs += (4); // RECEIVE CALL Recv_ExitMatchingRoomResult( conid, result ); break; } case (Int32)Matching_FuncID.ID_QUERYDISCONNECTMATCHING: // 10 { // ARGUMENTS // RECEIVE CALL Recv_QueryDisconnectMatching( conid ); break; } } return ofs; }