Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
JSInterface_Lobby.cpp File Reference
#include "precompiled.h"
#include "JSInterface_Lobby.h"
#include "gui/GUIManager.h"
#include "lib/utf8.h"
#include "lobby/IXmppClient.h"
#include "network/NetServer.h"
#include "ps/CLogger.h"
#include "ps/CStr.h"
#include "ps/Util.h"
#include "scriptinterface/FunctionWrapper.h"
#include "third_party/encryption/pkcs5_pbkdf2.h"
#include <string>
Include dependency graph for JSInterface_Lobby.cpp:

Namespaces

namespace  JSI_Lobby
 

Macros

#define REGISTER_XMPP(func, name)    ScriptFunction::Register<&IXmppClient::func, &XmppGetter>(rq, name)
 

Functions

bool JSI_Lobby::HasXmppClient ()
 
void JSI_Lobby::SetRankedGame (bool isRanked)
 
void JSI_Lobby::StartXmppClient (const ScriptRequest &rq, const std::wstring &username, const std::wstring &password, const std::wstring &room, const std::wstring &nick, int historyRequestSize)
 
void JSI_Lobby::StartRegisterXmppClient (const ScriptRequest &rq, const std::wstring &username, const std::wstring &password)
 
void JSI_Lobby::StopXmppClient (const ScriptRequest &rq)
 
IXmppClientJSI_Lobby::XmppGetter (const ScriptRequest &, JS::CallArgs &)
 
void JSI_Lobby::SendRegisterGame (const ScriptInterface &scriptInterface, JS::HandleValue data)
 
JS::Value JSI_Lobby::GuiPollNewMessages (const ScriptInterface &scriptInterface)
 
std::string JSI_Lobby::EncryptPassword (const std::string &password, const std::string &username)
 
void JSI_Lobby::RegisterScriptFunctions (const ScriptRequest &rq)
 

Macro Definition Documentation

◆ REGISTER_XMPP

#define REGISTER_XMPP (   func,
  name 
)     ScriptFunction::Register<&IXmppClient::func, &XmppGetter>(rq, name)