1 #ifndef __LOBBY_2_RESULT_CODE_H 2 #define __LOBBY_2_RESULT_CODE_H 3 4 namespace RakNet 5 { 6 7 enum Lobby2ResultCode 8 { 9 L2RC_SUCCESS, 10 L2RC_PROCESSING, 11 L2RC_BUSY_EXCEEDED_PROCESSING_LIMIT, 12 L2RC_GENERAL_ERROR, 13 L2RC_OUT_OF_MEMORY, 14 L2RC_NOT_IMPLEMENTED, 15 L2RC_NOT_LOGGED_IN, 16 L2RC_DATABASE_CONSTRAINT_FAILURE, 17 L2RC_PROFANITY_FILTER_CHECK_FAILED, 18 L2RC_REQUIRES_ADMIN, 19 L2RC_REQUIRES_RANKING_PERMISSION, 20 L2RC_UNKNOWN_USER, 21 L2RC_HANDLE_IS_EMPTY, 22 L2RC_HANDLE_CONTAINS_NON_PRINTABLE, 23 L2RC_HANDLE_STARTS_WITH_SPACES, 24 L2RC_HANDLE_ENDS_WITH_SPACES, 25 L2RC_HANDLE_HAS_CONSECUTIVE_SPACES, 26 L2RC_HANDLE_IS_TOO_SHORT, 27 L2RC_HANDLE_IS_TOO_LONG, 28 L2RC_BINARY_DATA_LENGTH_EXCEEDED, 29 L2RC_BINARY_DATA_NULL_POINTER, 30 L2RC_REQUIRED_TEXT_IS_EMPTY, 31 L2RC_PASSWORD_IS_WRONG, 32 L2RC_PASSWORD_IS_EMPTY, 33 L2RC_PASSWORD_IS_TOO_SHORT, 34 L2RC_PASSWORD_IS_TOO_LONG, 35 L2RC_EMAIL_ADDRESS_IS_EMPTY, 36 L2RC_EMAIL_ADDRESS_IS_INVALID, 37 L2RC_System_CreateTitle_TITLE_ALREADY_IN_USE, 38 L2RC_System_DestroyTitle_TITLE_NOT_IN_USE, 39 L2RC_System_GetTitleBinaryData_TITLE_NOT_IN_USE, 40 L2RC_System_GetTitleRequiredAge_TITLE_NOT_IN_USE, 41 L2RC_System_RegisterProfanity_CANNOT_REGISTER_EMPTY_STRINGS, 42 L2RC_System_BanUser_INVALID_DURATION, 43 L2RC_System_BanUser_ALREADY_BANNED, 44 L2RC_System_UnbanUser_NOT_BANNED, 45 L2RC_System_DeleteAccount_INVALID_PASSWORD, 46 L2RC_CDKey_Add_TITLE_NOT_IN_USE, 47 L2RC_CDKey_GetStatus_TITLE_NOT_IN_USE, 48 L2RC_CDKey_GetStatus_UNKNOWN_CD_KEY, 49 L2RC_CDKey_Use_TITLE_NOT_IN_USE, 50 L2RC_CDKey_Use_UNKNOWN_CD_KEY, 51 L2RC_CDKey_Use_NOT_USABLE, 52 L2RC_CDKey_Use_CD_KEY_ALREADY_USED, 53 L2RC_CDKey_Use_CD_KEY_STOLEN, 54 L2RC_CDKey_FlagStolen_TITLE_NOT_IN_USE, 55 L2RC_CDKey_FlagStolen_UNKNOWN_CD_KEY, 56 L2RC_Client_Login_HANDLE_NOT_IN_USE_OR_BAD_SECRET_KEY, 57 L2RC_Client_Login_CANCELLED, 58 L2RC_Client_Login_CABLE_NOT_CONNECTED, 59 L2RC_Client_Login_NET_NOT_CONNECTED, 60 L2RC_Client_Login_BANNED, 61 L2RC_Client_Login_CDKEY_STOLEN, 62 L2RC_Client_Login_EMAIL_ADDRESS_NOT_VALIDATED, 63 L2RC_Client_Login_BAD_TITLE_OR_TITLE_SECRET_KEY, 64 L2RC_Client_Login_CONTEXT_CREATION_FAILURE, // PS3 65 L2RC_Client_RegisterAccount_HANDLE_ALREADY_IN_USE, 66 L2RC_Client_RegisterAccount_REQUIRED_AGE_NOT_MET, 67 L2RC_Client_RegisterAccount_INVALID_STATE, 68 L2RC_Client_RegisterAccount_INVALID_COUNTRY, 69 L2RC_Client_RegisterAccount_INVALID_RACE, 70 L2RC_Client_RegisterAccount_REQUIRES_CD_KEY, 71 L2RC_Client_RegisterAccount_REQUIRES_TITLE, 72 L2RC_Client_RegisterAccount_CD_KEY_ALREADY_USED, 73 L2RC_Client_RegisterAccount_CD_KEY_STOLEN, 74 L2RC_Client_RegisterAccount_CD_KEY_NOT_USABLE, 75 L2RC_Client_ValidateHandle_HANDLE_ALREADY_IN_USE, 76 L2RC_Client_GetPasswordByPasswordRecoveryAnswer_BAD_ANSWER, 77 L2RC_Client_ChangeHandle_NEW_HANDLE_ALREADY_IN_USE, 78 L2RC_Client_ChangeHandle_HANDLE_NOT_CHANGED, 79 L2RC_Client_ChangeHandle_INVALID_PASSWORD, 80 L2RC_Client_UpdateAccount_REQUIRED_AGE_NOT_MET, 81 L2RC_Client_StartIgnore_UNKNOWN_TARGET_HANDLE, 82 L2RC_Client_StartIgnore_CANNOT_PERFORM_ON_SELF, 83 L2RC_Client_StartIgnore_ALREADY_IGNORED, 84 L2RC_Client_StopIgnore_UNKNOWN_TARGET_HANDLE, 85 L2RC_Client_StopIgnore_CANNOT_PERFORM_ON_SELF, 86 L2RC_Client_PerTitleIntegerStorage_TITLE_NOT_IN_USE, 87 L2RC_Client_PerTitleIntegerStorage_ROW_EMPTY, 88 L2RC_Client_PerTitleBinaryStorage_TITLE_NOT_IN_USE, 89 L2RC_Client_PerTitleBinaryStorage_ROW_EMPTY, 90 L2RC_Friends_SendInvite_UNKNOWN_TARGET_HANDLE, 91 L2RC_Friends_SendInvite_CANNOT_PERFORM_ON_SELF, 92 L2RC_Friends_SendInvite_ALREADY_SENT_INVITE, 93 L2RC_Friends_SendInvite_ALREADY_FRIENDS, 94 L2RC_Friends_AcceptInvite_UNKNOWN_TARGET_HANDLE, 95 L2RC_Friends_AcceptInvite_CANNOT_PERFORM_ON_SELF, 96 L2RC_Friends_AcceptInvite_NO_INVITE, 97 L2RC_Friends_RejectInvite_UNKNOWN_TARGET_HANDLE, 98 L2RC_Friends_RejectInvite_CANNOT_PERFORM_ON_SELF, 99 L2RC_Friends_RejectInvite_NO_INVITE, 100 L2RC_Friends_GetFriends_UNKNOWN_TARGET_HANDLE, 101 L2RC_Friends_Remove_UNKNOWN_TARGET_HANDLE, 102 L2RC_Friends_Remove_CANNOT_PERFORM_ON_SELF, 103 L2RC_Friends_Remove_NOT_FRIENDS, 104 L2RC_BookmarkedUsers_Add_UNKNOWN_TARGET_HANDLE, 105 L2RC_BookmarkedUsers_Add_CANNOT_PERFORM_ON_SELF, 106 L2RC_BookmarkedUsers_Add_ALREADY_BOOKMARKED, 107 L2RC_BookmarkedUsers_Remove_UNKNOWN_TARGET_HANDLE, 108 L2RC_BookmarkedUsers_Remove_CANNOT_PERFORM_ON_SELF, 109 L2RC_Emails_Send_NO_RECIPIENTS, 110 L2RC_Emails_Send_CANNOT_PERFORM_ON_SELF, 111 L2RC_Emails_Delete_UNKNOWN_EMAIL_ID, 112 L2RC_Emails_Delete_ALREADY_DELETED, 113 L2RC_Emails_SetStatus_NOTHING_TO_DO, 114 L2RC_Emails_SetStatus_UNKNOWN_EMAIL_ID, 115 L2RC_Emails_SetStatus_WAS_DELETED, 116 L2RC_Ranking_SubmitMatch_TITLE_NOT_IN_USE, 117 L2RC_Ranking_SubmitMatch_NO_PARTICIPANTS, 118 L2RC_Ranking_GetMatches_TITLE_NOT_IN_USE, 119 L2RC_Ranking_GetMatchBinaryData_INVALID_MATCH_ID, 120 L2RC_Ranking_GetTotalScore_TITLE_NOT_IN_USE, 121 L2RC_Ranking_WipeScoresForPlayer_TITLE_NOT_IN_USE, 122 L2RC_Ranking_WipeMatches_TITLE_NOT_IN_USE, 123 L2RC_Ranking_UpdateRating_TITLE_NOT_IN_USE, 124 L2RC_Ranking_UpdateRating_UNKNOWN_TARGET_HANDLE, 125 L2RC_Ranking_WipeRatings_TITLE_NOT_IN_USE, 126 L2RC_Ranking_GetRating_TITLE_NOT_IN_USE, 127 L2RC_Ranking_GetRating_UNKNOWN_TARGET_HANDLE, 128 L2RC_Ranking_GetRating_NO_RATING, 129 L2RC_Clans_Create_CLAN_HANDLE_IN_USE, 130 L2RC_Clans_Create_ALREADY_IN_A_CLAN, 131 L2RC_Clans_SetProperties_UNKNOWN_CLAN, 132 L2RC_Clans_SetProperties_MUST_BE_LEADER, 133 L2RC_Clans_GetProperties_UNKNOWN_CLAN, 134 L2RC_Clans_SetMyMemberProperties_UNKNOWN_CLAN, 135 L2RC_Clans_SetMyMemberProperties_NOT_IN_CLAN, 136 L2RC_Clans_GrantLeader_UNKNOWN_CLAN, 137 L2RC_Clans_GrantLeader_NOT_IN_CLAN, 138 L2RC_Clans_GrantLeader_UNKNOWN_TARGET_HANDLE, 139 L2RC_Clans_GrantLeader_MUST_BE_LEADER, 140 L2RC_Clans_GrantLeader_CANNOT_PERFORM_ON_SELF, 141 L2RC_Clans_GrantLeader_TARGET_NOT_IN_CLAN, 142 L2RC_Clans_SetSubleaderStatus_UNKNOWN_CLAN, 143 L2RC_Clans_SetSubleaderStatus_NOT_IN_CLAN, 144 L2RC_Clans_SetSubleaderStatus_UNKNOWN_TARGET_HANDLE, 145 L2RC_Clans_SetSubleaderStatus_MUST_BE_LEADER, 146 L2RC_Clans_SetSubleaderStatus_TARGET_NOT_IN_CLAN, 147 L2RC_Clans_SetSubleaderStatus_CANNOT_PERFORM_ON_SELF, 148 L2RC_Clans_SetMemberRank_UNKNOWN_CLAN, 149 L2RC_Clans_SetMemberRank_NOT_IN_CLAN, 150 L2RC_Clans_SetMemberRank_UNKNOWN_TARGET_HANDLE, 151 L2RC_Clans_SetMemberRank_MUST_BE_LEADER, 152 L2RC_Clans_SetMemberRank_CANNOT_PERFORM_ON_SELF, 153 L2RC_Clans_SetMemberRank_TARGET_NOT_IN_CLAN, 154 L2RC_Clans_GetMemberProperties_UNKNOWN_CLAN, 155 L2RC_Clans_GetMemberProperties_UNKNOWN_TARGET_HANDLE, 156 L2RC_Clans_GetMemberProperties_TARGET_NOT_IN_CLAN, 157 L2RC_Clans_ChangeHandle_UNKNOWN_CLAN, 158 L2RC_Clans_ChangeHandle_NOT_IN_CLAN, 159 L2RC_Clans_ChangeHandle_NEW_HANDLE_IN_USE, 160 L2RC_Clans_ChangeHandle_MUST_BE_LEADER, 161 L2RC_Clans_ChangeHandle_HANDLE_NOT_CHANGED, 162 L2RC_Clans_Leave_UNKNOWN_CLAN, 163 L2RC_Clans_Leave_NOT_IN_CLAN, 164 L2RC_Clans_SendJoinInvitation_UNKNOWN_CLAN, 165 L2RC_Clans_SendJoinInvitation_NOT_IN_CLAN, 166 L2RC_Clans_SendJoinInvitation_UNKNOWN_TARGET_HANDLE, 167 L2RC_Clans_SendJoinInvitation_MUST_BE_LEADER_OR_SUBLEADER, 168 L2RC_Clans_SendJoinInvitation_REQUEST_ALREADY_PENDING, 169 L2RC_Clans_SendJoinInvitation_CANNOT_PERFORM_ON_SELF, 170 L2RC_Clans_SendJoinInvitation_TARGET_ALREADY_REQUESTED, 171 L2RC_Clans_SendJoinInvitation_TARGET_IS_BANNED, 172 L2RC_Clans_SendJoinInvitation_TARGET_ALREADY_IN_CLAN, 173 L2RC_Clans_WithdrawJoinInvitation_UNKNOWN_CLAN, 174 L2RC_Clans_WithdrawJoinInvitation_NO_SUCH_INVITATION_EXISTS, 175 L2RC_Clans_WithdrawJoinInvitation_MUST_BE_LEADER_OR_SUBLEADER, 176 L2RC_Clans_WithdrawJoinInvitation_UNKNOWN_TARGET_HANDLE, 177 L2RC_Clans_WithdrawJoinInvitation_CANNOT_PERFORM_ON_SELF, 178 L2RC_Clans_AcceptJoinInvitation_ALREADY_IN_CLAN, 179 L2RC_Clans_AcceptJoinInvitation_ALREADY_IN_DIFFERENT_CLAN, 180 L2RC_Clans_AcceptJoinInvitation_UNKNOWN_CLAN, 181 L2RC_Clans_AcceptJoinInvitation_NOT_IN_CLAN, 182 L2RC_Clans_AcceptJoinInvitation_NO_SUCH_INVITATION_EXISTS, 183 L2RC_Clans_RejectJoinInvitation_UNKNOWN_CLAN, 184 L2RC_Clans_RejectJoinInvitation_NO_SUCH_INVITATION_EXISTS, 185 L2RC_Clans_DownloadInvitationList_UNKNOWN_CLAN, 186 L2RC_Clans_SendJoinRequest_UNKNOWN_CLAN, 187 L2RC_Clans_SendJoinRequest_REQUEST_ALREADY_PENDING, 188 L2RC_Clans_SendJoinRequest_ALREADY_IN_CLAN, 189 L2RC_Clans_SendJoinRequest_BANNED, 190 L2RC_Clans_SendJoinRequest_ALREADY_INVITED, 191 L2RC_Clans_WithdrawJoinRequest_UNKNOWN_CLAN, 192 L2RC_Clans_WithdrawJoinRequest_ALREADY_IN_CLAN, 193 L2RC_Clans_WithdrawJoinRequest_NO_SUCH_INVITATION_EXISTS, 194 L2RC_Clans_AcceptJoinRequest_UNKNOWN_CLAN, 195 L2RC_Clans_AcceptJoinRequest_NOT_IN_CLAN, 196 L2RC_Clans_AcceptJoinRequest_MUST_BE_LEADER_OR_SUBLEADER, 197 L2RC_Clans_AcceptJoinRequest_UNKNOWN_TARGET_HANDLE, 198 L2RC_Clans_AcceptJoinRequest_CANNOT_PERFORM_ON_SELF, 199 L2RC_Clans_AcceptJoinRequest_TARGET_ALREADY_IN_CLAN, 200 L2RC_Clans_AcceptJoinRequest_TARGET_ALREADY_IN_DIFFERENT_CLAN, 201 L2RC_Clans_AcceptJoinRequest_TARGET_IS_BANNED, 202 L2RC_Clans_AcceptJoinRequest_REQUEST_NOT_PENDING, 203 L2RC_Clans_RejectJoinRequest_UNKNOWN_CLAN, 204 L2RC_Clans_RejectJoinRequest_NOT_IN_CLAN, 205 L2RC_Clans_RejectJoinRequest_MUST_BE_LEADER_OR_SUBLEADER, 206 L2RC_Clans_RejectJoinRequest_REQUESTING_USER_HANDLE_UNKNOWN, 207 L2RC_Clans_RejectJoinRequest_NO_SUCH_INVITATION_EXISTS, 208 L2RC_Clans_KickAndBlacklistUser_UNKNOWN_CLAN, 209 L2RC_Clans_KickAndBlacklistUser_NOT_IN_CLAN, 210 L2RC_Clans_KickAndBlacklistUser_UNKNOWN_TARGET_HANDLE, 211 L2RC_Clans_KickAndBlacklistUser_MUST_BE_LEADER_OR_SUBLEADER, 212 L2RC_Clans_KickAndBlacklistUser_ALREADY_BLACKLISTED, 213 L2RC_Clans_KickAndBlacklistUser_CANNOT_PERFORM_ON_SELF, 214 L2RC_Clans_KickAndBlacklistUser_CANNOT_PERFORM_ON_LEADER, 215 L2RC_Clans_UnblacklistUser_UNKNOWN_CLAN, 216 L2RC_Clans_UnblacklistUser_NOT_IN_CLAN, 217 L2RC_Clans_UnblacklistUser_UNKNOWN_TARGET_HANDLE, 218 L2RC_Clans_UnblacklistUser_MUST_BE_LEADER_OR_SUBLEADER, 219 L2RC_Clans_UnblacklistUser_NOT_BLACKLISTED, 220 L2RC_Clans_GetBlacklist_UNKNOWN_CLAN, 221 L2RC_Clans_GetMembers_UNKNOWN_CLAN, 222 L2RC_Clans_CreateBoard_UNKNOWN_CLAN, 223 L2RC_Clans_CreateBoard_NOT_IN_CLAN, 224 L2RC_Clans_CreateBoard_MUST_BE_LEADER_OR_SUBLEADER, 225 L2RC_Clans_CreateBoard_BOARD_ALREADY_EXISTS, 226 L2RC_Clans_DestroyBoard_UNKNOWN_CLAN, 227 L2RC_Clans_DestroyBoard_NOT_IN_CLAN, 228 L2RC_Clans_DestroyBoard_MUST_BE_LEADER_OR_SUBLEADER, 229 L2RC_Clans_DestroyBoard_BOARD_DOES_NOT_EXIST, 230 L2RC_Clans_CreateNewTopic_UNKNOWN_CLAN, 231 L2RC_Clans_CreateNewTopic_BOARD_DOES_NOT_EXIST, 232 L2RC_Clans_CreateNewTopic_PERMISSION_DENIED, 233 L2RC_Clans_ReplyToTopic_UNKNOWN_POST_ID, 234 L2RC_Clans_ReplyToTopic_PERMISSION_DENIED, 235 L2RC_Clans_RemovePost_UNKNOWN_POST_ID, 236 L2RC_Clans_RemovePost_NOT_IN_CLAN, 237 L2RC_Clans_RemovePost_MUST_BE_LEADER_OR_SUBLEADER, 238 L2RC_Clans_GetBoards_UNKNOWN_CLAN, 239 L2RC_Clans_GetTopics_UNKNOWN_CLAN, 240 L2RC_Clans_GetTopics_BOARD_DOES_NOT_EXIST, 241 L2RC_Clans_GetPosts_UNKNOWN_POST_ID, 242 L2RC_Console_JoinLobby_LOBBY_FULL, 243 L2RC_Console_JoinLobby_NO_SUCH_LOBBY, 244 L2RC_Console_GetRoomDetails_NO_ROOMS_FOUND, 245 L2RC_Console_JoinRoom_ROOM_FULL, 246 L2RC_Console_JoinRoom_WRONG_PASSWORD, 247 L2RC_Console_JoinRoom_NO_SUCH_ROOM, 248 L2RC_Console_JoinRoom_SERVER_ERROR_BLOCKED, 249 L2RC_Notification_Console_CableDisconnected, 250 L2RC_Notification_ContextError_SignedOut, 251 L2RC_Notification_ContextError_SystemError, 252 253 L2RC_COUNT, 254 }; 255 256 struct Lobby2ResultCodeDescription 257 { 258 Lobby2ResultCode resultCode; 259 const char *enumDesc; 260 const char *englishDesc; 261 262 static const char *ToEnglish(Lobby2ResultCode result); 263 static const char *ToEnum(Lobby2ResultCode result); 264 static void Validate(void); 265 }; 266 267 } // namespace RakNet 268 269 #endif 270