![]() |
Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
|
#include "precompiled.h"#include "JSInterface_Lobby.h"#include "gui/GUIManager.h"#include "lib/code_annotation.h"#include "lib/code_generation.h"#include "lib/config2.h"#include "lib/debug.h"#include "lib/utf8.h"#include "lobby/XmppClient.h"#include "network/NetServer.h"#include "ps/CLogger.h"#include "ps/CStr.h"#include "ps/Util.h"#include "scriptinterface/FunctionWrapper.h"#include "scriptinterface/Exceptions.h"#include "third_party/encryption/pkcs5_pbkdf2.h"#include <js/RootingAPI.h>#include <js/TypeDecls.h>#include <js/Value.h>#include <sodium.h>#include <stdexcept>#include <string>
Namespaces | |
| namespace | JS |
| namespace | Script |
| Abstraction around a SpiderMonkey JSContext. | |
| namespace | JSI_Lobby |
Macros | |
| #define | REGISTER_XMPP(func, name) Script::Function::Register<&XmppClient::func, &XmppGetter>(rq, name) |
Functions | |
| bool | JSI_Lobby::HasXmppClient () |
| static bool | JSI_Lobby::IsLobbyBuddy (const std::string &nick) |
| Whether the given nickname is a buddy of the current user. More... | |
| void | JSI_Lobby::SetRankedGame (bool isRanked) |
| void | JSI_Lobby::StartXmppClient (const std::wstring &username, const std::wstring &password, const std::wstring &room, const std::wstring &nick, int historyRequestSize) |
| void | JSI_Lobby::StartRegisterXmppClient (const std::wstring &username, const std::wstring &password) |
| void | JSI_Lobby::StopXmppClient () |
| XmppClient * | JSI_Lobby::XmppGetter (const Script::Request &, JS::CallArgs &) |
| void | JSI_Lobby::SendRegisterGame (const Script::Interface &scriptInterface, JS::HandleValue data) |
| JS::Value | JSI_Lobby::GuiPollNewMessages (const Script::Interface &scriptInterface) |
| std::string | JSI_Lobby::EncryptPassword (const std::string &password, const std::string &username) |
| void | JSI_Lobby::RegisterScriptFunctions (const Script::Request &rq) |
| #define REGISTER_XMPP | ( | func, | |
| name | |||
| ) | Script::Function::Register<&XmppClient::func, &XmppGetter>(rq, name) |