Pyrogenesis  trunk
Functions
JSI_Lobby Namespace Reference

Functions

bool HasXmppClient ()
 
void SetRankedGame (bool isRanked)
 
void StartXmppClient (const ScriptRequest &rq, const std::wstring &username, const std::wstring &password, const std::wstring &room, const std::wstring &nick, int historyRequestSize)
 
void StartRegisterXmppClient (const ScriptRequest &rq, const std::wstring &username, const std::wstring &password)
 
void StopXmppClient (const ScriptRequest &rq)
 
IXmppClientXmppGetter (const ScriptRequest &, JS::CallArgs &)
 
void SendRegisterGame (const ScriptInterface &scriptInterface, JS::HandleValue data)
 
JS::Value GuiPollNewMessages (const ScriptInterface &scriptInterface)
 
std::string EncryptPassword (const std::string &password, const std::string &username)
 
void RegisterScriptFunctions (const ScriptRequest &rq)
 Registers the functions of the JavaScript interface for internationalization and localization into the specified JavaScript context. More...
 

Function Documentation

◆ EncryptPassword()

std::string JSI_Lobby::EncryptPassword ( const std::string &  password,
const std::string &  username 
)

◆ GuiPollNewMessages()

JS::Value JSI_Lobby::GuiPollNewMessages ( const ScriptInterface scriptInterface)

◆ HasXmppClient()

bool JSI_Lobby::HasXmppClient ( )

◆ RegisterScriptFunctions()

void JSI_Lobby::RegisterScriptFunctions ( const ScriptRequest rq)

Registers the functions of the JavaScript interface for internationalization and localization into the specified JavaScript context.

Parameters
ScriptRequestScript Request where RegisterScriptFunctions() registers the functions.
See also
GuiScriptingInit()

◆ SendRegisterGame()

void JSI_Lobby::SendRegisterGame ( const ScriptInterface scriptInterface,
JS::HandleValue  data 
)

◆ SetRankedGame()

void JSI_Lobby::SetRankedGame ( bool  isRanked)

◆ StartRegisterXmppClient()

void JSI_Lobby::StartRegisterXmppClient ( const ScriptRequest rq,
const std::wstring &  username,
const std::wstring &  password 
)

◆ StartXmppClient()

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 
)

◆ StopXmppClient()

void JSI_Lobby::StopXmppClient ( const ScriptRequest rq)

◆ XmppGetter()

IXmppClient* JSI_Lobby::XmppGetter ( const ScriptRequest ,
JS::CallArgs &   
)