Changeset View
Changeset View
Standalone View
Standalone View
source/network/scripting/JSInterface_Network.h
Show All 28 Lines | namespace JSI_Network | ||||
bool HasNetClient(ScriptInterface::CxPrivate* pCxPrivate); | bool HasNetClient(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, const CStr& hostLobbyName); | void StartNetworkHost(ScriptInterface::CxPrivate* pCxPrivate, const CStrW& playerName, const u16 serverPort, const CStr& hostLobbyName); | ||||
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); | ||||
JS::Value GetNetworkClientPerformance(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); | ||||
u32 GetTurnLength(ScriptInterface::CxPrivate* pCxPrivate); | |||||
void SetTurnLength(ScriptInterface::CxPrivate* pCxPrivate, int length); | void SetTurnLength(ScriptInterface::CxPrivate* pCxPrivate, int length); | ||||
std::string GetClientIPAddress(ScriptInterface::CxPrivate* pCxPrivate, const std::string& guid); | |||||
std::string LookupClientHostname(ScriptInterface::CxPrivate* pCxPrivate, const std::string& guid); | |||||
u32 IPv4ToNumber(ScriptInterface::CxPrivate* pCxPrivate, const std::string& ipAddress); | |||||
void RegisterScriptFunctions(const ScriptInterface& scriptInterface); | void RegisterScriptFunctions(const ScriptInterface& scriptInterface); | ||||
} | } | ||||
#endif // INCLUDED_JSI_NETWORK | #endif // INCLUDED_JSI_NETWORK |
Wildfire Games · Phabricator