Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/source/network/scripting/JSInterface_Network.h
Show All 19 Lines | |||||
#include "lib/types.h" | #include "lib/types.h" | ||||
#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::CmptPrivate* pCmptPrivate); | u16 GetDefaultPort(ScriptInterface::CmptPrivate* pCmptPrivate); | ||||
bool IsNetController(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, const CStr& hostLobbyName, 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. | ||||
Show All 19 Lines |
Wildfire Games · Phabricator