mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
41 lines
1.2 KiB
C++
41 lines
1.2 KiB
C++
#ifndef VSCRIPT_CLIENT_H
|
|
#define VSCRIPT_CLIENT_H
|
|
|
|
namespace VScriptCode
|
|
{
|
|
namespace Client
|
|
{
|
|
SQRESULT RefreshServerList(HSQUIRRELVM v);
|
|
SQRESULT GetServerCount(HSQUIRRELVM v);
|
|
|
|
SQRESULT GetHiddenServerName(HSQUIRRELVM v);
|
|
SQRESULT GetServerName(HSQUIRRELVM v);
|
|
SQRESULT GetServerDescription(HSQUIRRELVM v);
|
|
|
|
SQRESULT GetServerMap(HSQUIRRELVM v);
|
|
SQRESULT GetServerPlaylist(HSQUIRRELVM v);
|
|
|
|
SQRESULT GetServerCurrentPlayers(HSQUIRRELVM v);
|
|
SQRESULT GetServerMaxPlayers(HSQUIRRELVM v);
|
|
|
|
SQRESULT GetPromoData(HSQUIRRELVM v);
|
|
|
|
SQRESULT ConnectToListedServer(HSQUIRRELVM v);
|
|
SQRESULT ConnectToHiddenServer(HSQUIRRELVM v);
|
|
SQRESULT ConnectToServer(HSQUIRRELVM v);
|
|
|
|
SQRESULT IsClientDLL(HSQUIRRELVM v);
|
|
}
|
|
}
|
|
|
|
void Script_RegisterClientFunctions(CSquirrelVM* s);
|
|
void Script_RegisterUIFunctions(CSquirrelVM* s);
|
|
void Script_RegisterCoreClientFunctions(CSquirrelVM* s);
|
|
|
|
#define DEFINE_CLIENT_SCRIPTFUNC_NAMED(s, functionName, helpString, \
|
|
returnType, parameters) \
|
|
s->RegisterFunction(#functionName, MKSTRING(Script_##functionName), \
|
|
helpString, returnType, parameters, VScriptCode::Client::##functionName); \
|
|
|
|
#endif // VSCRIPT_CLIENT_H
|