Changeset View
Changeset View
Standalone View
Standalone View
source/network/scripting/JSInterface_Network.h
Show All 23 Lines | |||||
namespace JSI_Network | namespace JSI_Network | ||||
{ | { | ||||
u16 GetDefaultPort(ScriptInterface::CmptPrivate* pCmptPrivate); | u16 GetDefaultPort(ScriptInterface::CmptPrivate* pCmptPrivate); | ||||
bool HasNetServer(ScriptInterface::CmptPrivate* pCmptPrivate); | bool HasNetServer(ScriptInterface::CmptPrivate* pCmptPrivate); | ||||
bool HasNetClient(ScriptInterface::CmptPrivate* pCmptPrivate); | bool HasNetClient(ScriptInterface::CmptPrivate* pCmptPrivate); | ||||
void StartNetworkGame(ScriptInterface::CmptPrivate* pCmptPrivate); | void StartNetworkGame(ScriptInterface::CmptPrivate* pCmptPrivate); | ||||
void SetNetworkGameAttributes(ScriptInterface::CmptPrivate* pCmptPrivate, JS::HandleValue attribs1); | void SetNetworkGameAttributes(ScriptInterface::CmptPrivate* pCmptPrivate, JS::HandleValue attribs1); | ||||
void StartNetworkHost(ScriptInterface::CmptPrivate* pCmptPrivate, const CStrW& playerName, const u16 serverPort, const CStr& hostLobbyName, bool useSTUN, const CStr& password); | void StartNetworkHost(ScriptInterface::CmptPrivate* pCmptPrivate, const CStrW& playerName, const u16 serverPort, bool useSTUN, const CStr& password); | ||||
void StartNetworkJoin(ScriptInterface::CmptPrivate* pCmptPrivate, const CStrW& playerName, const CStr& serverAddress, u16 serverPort, bool useSTUN, const CStr& hostJID); | void StartNetworkJoin(ScriptInterface::CmptPrivate* pCmptPrivate, const CStrW& playerName, const CStr& serverAddress, u16 serverPort, bool useSTUN, const CStr& hostJID); | ||||
/** | /** | ||||
* Requires XmppClient to send iq request to the server to get server's ip and port based on passed password. | * Requires XmppClient to send iq request to the server to get server's ip and port based on passed password. | ||||
* This is needed to not force server to share it's public ip with all potential clients in the lobby. | * This is needed to not force server to share it's public ip with all potential clients in the lobby. | ||||
* XmppClient will also handle logic after receiving the answer. | * XmppClient will also handle logic after receiving the answer. | ||||
*/ | */ | ||||
void StartNetworkJoinLobby(ScriptInterface::CmptPrivate* pCmptPrivate, const CStrW& playerName, const CStr& hostJID, const CStr& password); | void StartNetworkJoinLobby(ScriptInterface::CmptPrivate* pCmptPrivate, const CStrW& playerName, const CStr& hostJID, const CStr& password); | ||||
void DisconnectNetworkGame(ScriptInterface::CmptPrivate* pCmptPrivate); | void DisconnectNetworkGame(ScriptInterface::CmptPrivate* pCmptPrivate); | ||||
Show All 14 Lines |
Wildfire Games · Phabricator