Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/source/lobby/scripting/JSInterface_Lobby.h
/* Copyright (C) 2017 Wildfire Games. | /* Copyright (C) 2018 Wildfire Games. | ||||
* This file is part of 0 A.D. | * This file is part of 0 A.D. | ||||
* | * | ||||
* 0 A.D. is free software: you can redistribute it and/or modify | * 0 A.D. is free software: you can redistribute it and/or modify | ||||
* it under the terms of the GNU General Public License as published by | * it under the terms of the GNU General Public License as published by | ||||
* the Free Software Foundation, either version 2 of the License, or | * the Free Software Foundation, either version 2 of the License, or | ||||
* (at your option) any later version. | * (at your option) any later version. | ||||
* | * | ||||
* 0 A.D. is distributed in the hope that it will be useful, | * 0 A.D. is distributed in the hope that it will be useful, | ||||
Show All 21 Lines | namespace JSI_Lobby | ||||
void SetRankedGame(ScriptInterface::CxPrivate* pCxPrivate, bool isRanked); | void SetRankedGame(ScriptInterface::CxPrivate* pCxPrivate, bool isRanked); | ||||
#if CONFIG2_LOBBY | #if CONFIG2_LOBBY | ||||
void StartXmppClient(ScriptInterface::CxPrivate* pCxPrivate, const std::wstring& username, const std::wstring& password, const std::wstring& room, const std::wstring& nick, int historyRequestSize); | void StartXmppClient(ScriptInterface::CxPrivate* pCxPrivate, const std::wstring& username, const std::wstring& password, const std::wstring& room, const std::wstring& nick, int historyRequestSize); | ||||
void StartRegisterXmppClient(ScriptInterface::CxPrivate* pCxPrivate, const std::wstring& username, const std::wstring& password); | void StartRegisterXmppClient(ScriptInterface::CxPrivate* pCxPrivate, const std::wstring& username, const std::wstring& password); | ||||
void StopXmppClient(ScriptInterface::CxPrivate* pCxPrivate); | void StopXmppClient(ScriptInterface::CxPrivate* pCxPrivate); | ||||
void ConnectXmppClient(ScriptInterface::CxPrivate* pCxPrivate); | void ConnectXmppClient(ScriptInterface::CxPrivate* pCxPrivate); | ||||
void DisconnectXmppClient(ScriptInterface::CxPrivate* pCxPrivate); | void DisconnectXmppClient(ScriptInterface::CxPrivate* pCxPrivate); | ||||
bool IsXmppClientConnected(ScriptInterface::CxPrivate* pCxPrivate); | |||||
void SendGetBoardList(ScriptInterface::CxPrivate* pCxPrivate); | void SendGetBoardList(ScriptInterface::CxPrivate* pCxPrivate); | ||||
void SendGetProfile(ScriptInterface::CxPrivate* pCxPrivate, const std::wstring& player); | void SendGetProfile(ScriptInterface::CxPrivate* pCxPrivate, const std::wstring& player); | ||||
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); | ||||
void LobbyClearPresenceUpdates(ScriptInterface::CxPrivate* pCxPrivate); | void LobbyClearPresenceUpdates(ScriptInterface::CxPrivate* pCxPrivate); | ||||
Show All 24 Lines |
Wildfire Games · Phabricator