Changeset View
Changeset View
Standalone View
Standalone View
source/lobby/scripting/JSInterface_Lobby.h
Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | #if CONFIG2_LOBBY | ||||
void SendGameReport(ScriptInterface::CxPrivate* pCxPrivate, JS::HandleValue data); | void SendGameReport(ScriptInterface::CxPrivate* pCxPrivate, JS::HandleValue data); | ||||
void SendRegisterGame(ScriptInterface::CxPrivate* pCxPrivate, JS::HandleValue data); | void SendRegisterGame(ScriptInterface::CxPrivate* pCxPrivate, JS::HandleValue data); | ||||
void SendUnregisterGame(ScriptInterface::CxPrivate* pCxPrivate); | void SendUnregisterGame(ScriptInterface::CxPrivate* pCxPrivate); | ||||
void SendChangeStateGame(ScriptInterface::CxPrivate* pCxPrivate, const std::wstring& nbp, const std::wstring& players); | void SendChangeStateGame(ScriptInterface::CxPrivate* pCxPrivate, const std::wstring& nbp, const std::wstring& players); | ||||
JS::Value GetPlayerList(ScriptInterface::CxPrivate* pCxPrivate); | JS::Value GetPlayerList(ScriptInterface::CxPrivate* pCxPrivate); | ||||
JS::Value GetGameList(ScriptInterface::CxPrivate* pCxPrivate); | JS::Value GetGameList(ScriptInterface::CxPrivate* pCxPrivate); | ||||
JS::Value GetBoardList(ScriptInterface::CxPrivate* pCxPrivate); | JS::Value GetBoardList(ScriptInterface::CxPrivate* pCxPrivate); | ||||
JS::Value GetProfile(ScriptInterface::CxPrivate* pCxPrivate); | JS::Value GetProfile(ScriptInterface::CxPrivate* pCxPrivate); | ||||
JS::Value LobbyGuiPollNewMessage(ScriptInterface::CxPrivate* pCxPrivate); | JS::Value LobbyGuiPollNewMessages(ScriptInterface::CxPrivate* pCxPrivate); | ||||
JS::Value LobbyGuiPollHistoricMessages(ScriptInterface::CxPrivate* pCxPrivate); | JS::Value LobbyGuiPollHistoricMessages(ScriptInterface::CxPrivate* pCxPrivate); | ||||
bool LobbyGuiPollHasPlayerListUpdate(ScriptInterface::CxPrivate* pCxPrivate); | bool LobbyGuiPollHasPlayerListUpdate(ScriptInterface::CxPrivate* pCxPrivate); | ||||
void LobbySendMessage(ScriptInterface::CxPrivate* pCxPrivate, const std::wstring& message); | void LobbySendMessage(ScriptInterface::CxPrivate* pCxPrivate, const std::wstring& message); | ||||
void LobbySetPlayerPresence(ScriptInterface::CxPrivate* pCxPrivate, const std::wstring& presence); | void LobbySetPlayerPresence(ScriptInterface::CxPrivate* pCxPrivate, const std::wstring& presence); | ||||
void LobbySetNick(ScriptInterface::CxPrivate* pCxPrivate, const std::wstring& nick); | void LobbySetNick(ScriptInterface::CxPrivate* pCxPrivate, const std::wstring& nick); | ||||
std::wstring LobbyGetNick(ScriptInterface::CxPrivate* pCxPrivate); | std::wstring LobbyGetNick(ScriptInterface::CxPrivate* pCxPrivate); | ||||
void LobbyKick(ScriptInterface::CxPrivate* pCxPrivate, const std::wstring& nick, const std::wstring& reason); | void LobbyKick(ScriptInterface::CxPrivate* pCxPrivate, const std::wstring& nick, const std::wstring& reason); | ||||
void LobbyBan(ScriptInterface::CxPrivate* pCxPrivate, const std::wstring& nick, const std::wstring& reason); | void LobbyBan(ScriptInterface::CxPrivate* pCxPrivate, const std::wstring& nick, const std::wstring& reason); | ||||
const char* LobbyGetPlayerPresence(ScriptInterface::CxPrivate* pCxPrivate, const std::wstring& nickname); | const char* LobbyGetPlayerPresence(ScriptInterface::CxPrivate* pCxPrivate, const std::wstring& nickname); | ||||
const char* LobbyGetPlayerRole(ScriptInterface::CxPrivate* pCxPrivate, const std::wstring& nickname); | const char* LobbyGetPlayerRole(ScriptInterface::CxPrivate* pCxPrivate, const std::wstring& nickname); | ||||
std::wstring LobbyGetPlayerRating(ScriptInterface::CxPrivate* pCxPrivate, const std::wstring& nickname); | |||||
std::wstring LobbyGetRoomSubject(ScriptInterface::CxPrivate* pCxPrivate); | std::wstring LobbyGetRoomSubject(ScriptInterface::CxPrivate* pCxPrivate); | ||||
// Non-public secure PBKDF2 hash function with salting and 1,337 iterations | // Non-public secure PBKDF2 hash function with salting and 1,337 iterations | ||||
std::string EncryptPassword(const std::string& password, const std::string& username); | std::string EncryptPassword(const std::string& password, const std::string& username); | ||||
// Public hash interface. | // Public hash interface. | ||||
std::wstring EncryptPassword(ScriptInterface::CxPrivate* pCxPrivate, const std::wstring& pass, const std::wstring& user); | std::wstring EncryptPassword(ScriptInterface::CxPrivate* pCxPrivate, const std::wstring& pass, const std::wstring& user); | ||||
#endif // CONFIG2_LOBBY | #endif // CONFIG2_LOBBY | ||||
} | } | ||||
#endif // INCLUDED_JSI_LOBBY | #endif // INCLUDED_JSI_LOBBY |
Wildfire Games · Phabricator