Changeset View
Changeset View
Standalone View
Standalone View
source/network/scripting/JSInterface_Network.h
Show All 20 Lines | |||||
#include "ps/CStr.h" | #include "ps/CStr.h" | ||||
#include "scriptinterface/ScriptInterface.h" | #include "scriptinterface/ScriptInterface.h" | ||||
namespace JSI_Network | namespace JSI_Network | ||||
{ | { | ||||
u16 GetDefaultPort(ScriptInterface::CxPrivate* pCxPrivate); | u16 GetDefaultPort(ScriptInterface::CxPrivate* pCxPrivate); | ||||
void StartNetworkGame(ScriptInterface::CxPrivate* pCxPrivate); | void StartNetworkGame(ScriptInterface::CxPrivate* pCxPrivate); | ||||
void SetNetworkGameAttributes(ScriptInterface::CxPrivate* pCxPrivate, JS::HandleValue attribs1); | void SetNetworkGameAttributes(ScriptInterface::CxPrivate* pCxPrivate, JS::HandleValue attribs1); | ||||
void StartNetworkHost(ScriptInterface::CxPrivate* pCxPrivate, const CStrW& playerName, const u16 serverPort); | void StartNetworkHost(ScriptInterface::CxPrivate* pCxPrivate, const CStrW& playerName, const u16 serverPort, const CStr& hostName, bool useLobbyAuth); | ||||
void StartNetworkJoin(ScriptInterface::CxPrivate* pCxPrivate, const CStrW& playerName, const CStr& serverAddress, u16 serverPort, bool useSTUN, const CStr& hostJID); | void StartNetworkJoin(ScriptInterface::CxPrivate* pCxPrivate, const CStrW& playerName, const CStr& serverAddress, u16 serverPort, bool useSTUN, const CStr& hostJID); | ||||
JS::Value FindStunEndpoint(ScriptInterface::CxPrivate* pCxPrivate, int port); | JS::Value FindStunEndpoint(ScriptInterface::CxPrivate* pCxPrivate, int port); | ||||
void DisconnectNetworkGame(ScriptInterface::CxPrivate* pCxPrivate); | void DisconnectNetworkGame(ScriptInterface::CxPrivate* pCxPrivate); | ||||
JS::Value PollNetworkClient(ScriptInterface::CxPrivate* pCxPrivate); | JS::Value PollNetworkClient(ScriptInterface::CxPrivate* pCxPrivate); | ||||
CStr GetPlayerGUID(ScriptInterface::CxPrivate* pCxPrivate); | CStr GetPlayerGUID(ScriptInterface::CxPrivate* pCxPrivate); | ||||
void KickPlayer(ScriptInterface::CxPrivate* pCxPrivate, const CStrW& playerName, bool ban); | void KickPlayer(ScriptInterface::CxPrivate* pCxPrivate, const CStrW& playerName, bool ban); | ||||
void AssignNetworkPlayer(ScriptInterface::CxPrivate* pCxPrivate, int playerID, const CStr& guid); | void AssignNetworkPlayer(ScriptInterface::CxPrivate* pCxPrivate, int playerID, const CStr& guid); | ||||
void ClearAllPlayerReady (ScriptInterface::CxPrivate* pCxPrivate); | void ClearAllPlayerReady (ScriptInterface::CxPrivate* pCxPrivate); | ||||
void SendNetworkChat(ScriptInterface::CxPrivate* pCxPrivate, const CStrW& message); | void SendNetworkChat(ScriptInterface::CxPrivate* pCxPrivate, const CStrW& message); | ||||
void SendNetworkReady(ScriptInterface::CxPrivate* pCxPrivate, int message); | void SendNetworkReady(ScriptInterface::CxPrivate* pCxPrivate, int message); | ||||
void SetTurnLength(ScriptInterface::CxPrivate* pCxPrivate, int length); | void SetTurnLength(ScriptInterface::CxPrivate* pCxPrivate, int length); | ||||
void RegisterScriptFunctions(const ScriptInterface& scriptInterface); | void RegisterScriptFunctions(const ScriptInterface& scriptInterface); | ||||
} | } | ||||
#endif | #endif |
Wildfire Games · Phabricator