![]() |
TrinityCore
|
#include <GameUtilitiesService.h>
Static Public Member Functions | |
| static std::string_view | ParseParamName (std::string_view command) |
| static Variant * | FindParamValue (std::vector< std::pair< std::string_view, Variant > > ¶ms, std::string_view paramName) |
| static std::vector< uint8 > | CompressJson (std::string const &json) |
| static uint32 | HandleClientRequest (Session *session, std::vector< std::pair< std::string_view, Variant > > ¶ms, std::vector< std::pair< std::string_view, Variant > > &responseValues) |
| static uint32 | HandleGetAllValuesForAttribute (Session const *session, std::string_view command, std::vector< Variant > &responseValues) |
| static std::string_view | ParseParamName (std::string_view command) |
| static Variant * | FindParamValue (std::vector< std::pair< std::string_view, Variant > > ¶ms, std::string_view paramName) |
| static uint32 | HandleClientRequest (WorldSession const *session, std::vector< std::pair< std::string_view, Variant > > ¶ms, std::vector< std::pair< std::string_view, Variant > > &responseValues) |
| static uint32 | HandleGetAllValuesForAttribute (WorldSession const *session, std::string_view command, std::vector< Variant > &responseValues) |
Static Private Member Functions | |
| static uint32 | GetLastCharPlayed (Session const *session, std::vector< std::pair< std::string_view, Variant > > ¶ms, std::vector< std::pair< std::string_view, Variant > > &responseValues) |
| static uint32 | GetRealmListTicket (Session *session, std::vector< std::pair< std::string_view, Variant > > ¶ms, std::vector< std::pair< std::string_view, Variant > > &responseValues) |
| static uint32 | GetRealmList (Session const *session, std::vector< std::pair< std::string_view, Variant > > ¶ms, std::vector< std::pair< std::string_view, Variant > > &responseValues) |
| static uint32 | JoinRealm (Session const *session, std::vector< std::pair< std::string_view, Variant > > ¶ms, std::vector< std::pair< std::string_view, Variant > > &responseValues) |
| static uint32 | GetBleepProxies (Session const *session, std::vector< std::pair< std::string_view, Variant > > ¶ms, std::vector< std::pair< std::string_view, Variant > > &responseValues) |
| static uint32 | GetRealmList (WorldSession const *session, std::vector< std::pair< std::string_view, Variant > > ¶ms, std::vector< std::pair< std::string_view, Variant > > &responseValues) |
| static uint32 | JoinRealm (WorldSession const *session, std::vector< std::pair< std::string_view, Variant > > ¶ms, std::vector< std::pair< std::string_view, Variant > > &responseValues) |
Definition at line 33 of file GameUtilitiesService.h.
|
static |
Definition at line 53 of file GameUtilitiesService.cpp.
Referenced by GetBleepProxies(), GetLastCharPlayed(), and GetRealmList().
|
static |
Definition at line 47 of file GameUtilitiesService.cpp.
References Trinity::Containers::MapKey, and params.
Referenced by GetLastCharPlayed(), GetRealmList(), GetRealmList(), GetRealmListTicket(), JoinRealm(), and JoinRealm().
|
static |
|
staticprivate |
Definition at line 273 of file GameUtilitiesService.cpp.
References CompressJson(), ERROR_OK, ERROR_UTIL_SERVER_FAILED_TO_SERIALIZE_RESPONSE, and JSON::Serialize().
Referenced by HandleClientRequest().
|
staticprivate |
Definition at line 123 of file GameUtilitiesService.cpp.
References CompressJson(), ERROR_OK, ERROR_UTIL_SERVER_FAILED_TO_SERIALIZE_RESPONSE, ERROR_UTIL_SERVER_UNKNOWN_REALM, FindParamValue(), Battlenet::Session::GetBuild(), Battlenet::Session::GetGameAccountInfo(), Battlenet::Session::GetLastPlayedCharacter(), params, Battlenet::GameAccountInfo::SecurityLevel, JSON::Serialize(), and sRealmList.
Referenced by HandleClientRequest().
|
staticprivate |
Definition at line 219 of file GameUtilitiesService.cpp.
References Battlenet::GameAccountInfo::CharacterCounts, CompressJson(), ERROR_OK, ERROR_UTIL_SERVER_FAILED_TO_SERIALIZE_RESPONSE, FindParamValue(), Battlenet::Session::GetBuild(), Battlenet::Session::GetGameAccountInfo(), params, Battlenet::GameAccountInfo::SecurityLevel, JSON::Serialize(), and sRealmList.
Referenced by HandleClientRequest(), and HandleClientRequest().
|
staticprivate |
Definition at line 95 of file WorldserverGameUtilitiesService.cpp.
References ERROR_OK, ERROR_UTIL_SERVER_FAILED_TO_SERIALIZE_RESPONSE, FindParamValue(), WorldSession::GetClientBuild(), WorldSession::GetRealmCharacterCounts(), WorldSession::GetSecurity(), params, JSON::Serialize(), and sRealmList.
|
staticprivate |
Definition at line 155 of file GameUtilitiesService.cpp.
References JSON::Deserialize(), ERROR_GAME_ACCOUNT_BANNED, ERROR_GAME_ACCOUNT_SUSPENDED, ERROR_OK, ERROR_UTIL_SERVER_INVALID_IDENTITY_ARGS, ERROR_WOW_SERVICES_DENIED_REALM_LIST_TICKET, FindParamValue(), Battlenet::Session::GetAccountId(), Battlenet::Session::GetGameAccountInfo(), Battlenet::Session::GetLocale(), GetLocaleByName(), Battlenet::Session::GetOS(), Battlenet::Session::GetRemoteIpAddress(), Battlenet::GameAccountInfo::Id, Battlenet::GameAccountInfo::IsBanned, Battlenet::GameAccountInfo::IsPermanenetlyBanned, LOGIN_UPD_BNET_LAST_LOGIN_INFO, LoginDatabase, params, ClientBuild::VariantId::Platform, Battlenet::Session::SetClientInfo(), PreparedStatementBase::setString(), PreparedStatementBase::setUInt32(), and PreparedStatementBase::setUInt8().
Referenced by HandleClientRequest().
|
static |
Definition at line 70 of file GameUtilitiesService.cpp.
References ERROR_RPC_MALFORMED_REQUEST, ERROR_RPC_NOT_IMPLEMENTED, GetBleepProxies(), Battlenet::Session::GetClientInfo(), Trinity::HashFnv1a< T >::GetHash(), GetLastCharPlayed(), GetRealmList(), GetRealmListTicket(), JoinRealm(), Trinity::Containers::MapKey, params, and TC_LOG_ERROR.
Referenced by Battlenet::Services::V1::GameUtilities::HandleProcessClientRequest(), Battlenet::Services::V2::GameUtilities::HandleProcessTask(), and Battlenet::Services::V2::GameUtilitiesService::HandleProcessTask().
|
static |
Definition at line 51 of file WorldserverGameUtilitiesService.cpp.
References ERROR_RPC_MALFORMED_REQUEST, ERROR_RPC_NOT_IMPLEMENTED, Trinity::HashFnv1a< T >::GetHash(), WorldSession::GetPlayerInfo(), GetRealmList(), JoinRealm(), Trinity::Containers::MapKey, params, and TC_LOG_ERROR.
|
static |
Definition at line 104 of file GameUtilitiesService.cpp.
References ERROR_DENIED, ERROR_OK, ERROR_RPC_NOT_IMPLEMENTED, Battlenet::Session::GetClientInfo(), Trinity::HashFnv1a< T >::GetHash(), Battlenet::Session::IsAuthed(), sRealmList, and TC_LOG_ERROR.
Referenced by Battlenet::Services::V1::GameUtilities::HandleGetAllValuesForAttribute(), and Battlenet::Services::V2::GameUtilitiesService::HandleGetAllValuesForAttribute().
|
static |
Definition at line 79 of file WorldserverGameUtilitiesService.cpp.
References ERROR_OK, ERROR_RPC_NOT_IMPLEMENTED, Trinity::HashFnv1a< T >::GetHash(), WorldSession::GetPlayerInfo(), sRealmList, and TC_LOG_ERROR.
|
staticprivate |
Definition at line 251 of file GameUtilitiesService.cpp.
References ERROR_OK, ERROR_UTIL_SERVER_UNKNOWN_REALM, FindParamValue(), Battlenet::Session::GetBuild(), Battlenet::Session::GetBuildVariant(), Battlenet::Session::GetClientSecret(), Battlenet::Session::GetGameAccountInfo(), Battlenet::Session::GetLocale(), GetLocaleByName(), Battlenet::Session::GetOS(), Battlenet::Session::GetRemoteIpAddress(), Battlenet::Session::GetTimezoneOffset(), RealmJoinResult::JoinSecret, RealmJoinResult::JoinTicket, Battlenet::GameAccountInfo::Name, params, RealmJoinResult::Result, Battlenet::GameAccountInfo::SecurityLevel, RealmJoinResult::ServerAddresses, and sRealmList.
Referenced by HandleClientRequest(), and HandleClientRequest().
|
staticprivate |
Definition at line 131 of file WorldserverGameUtilitiesService.cpp.
References ERROR_OK, ERROR_UTIL_SERVER_UNKNOWN_REALM, FindParamValue(), WorldSession::GetAccountName(), WorldSession::GetClientBuild(), WorldSession::GetClientBuildVariant(), WorldSession::GetOS(), WorldSession::GetRealmListSecret(), WorldSession::GetRemoteAddress(), WorldSession::GetSecurity(), WorldSession::GetSessionDbcLocale(), WorldSession::GetTimezoneOffset(), RealmJoinResult::JoinSecret, RealmJoinResult::JoinTicket, params, RealmJoinResult::Result, RealmJoinResult::ServerAddresses, and sRealmList.
|
static |
Definition at line 35 of file GameUtilitiesService.cpp.
Referenced by Battlenet::Services::V1::GameUtilities::HandleGetAllValuesForAttribute(), Battlenet::Services::V2::GameUtilitiesService::HandleGetAllValuesForAttribute(), Battlenet::Services::V1::GameUtilities::HandleProcessClientRequest(), Battlenet::Services::V2::GameUtilities::HandleProcessTask(), and Battlenet::Services::V2::GameUtilitiesService::HandleProcessTask().
|
static |