mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Nicely decouple them. Everything server and client are now grouped as they should. The Ui namespace has been merged with Client.
30 lines
762 B
C++
30 lines
762 B
C++
#ifndef VSCRIPT_SERVER_H
|
|
#define VSCRIPT_SERVER_H
|
|
|
|
namespace VScriptCode
|
|
{
|
|
namespace Server
|
|
{
|
|
SQRESULT CreateServer(HSQUIRRELVM v);
|
|
SQRESULT DestroyServer(HSQUIRRELVM v);
|
|
|
|
SQRESULT KickPlayerByName(HSQUIRRELVM v);
|
|
SQRESULT KickPlayerById(HSQUIRRELVM v);
|
|
SQRESULT BanPlayerByName(HSQUIRRELVM v);
|
|
SQRESULT BanPlayerById(HSQUIRRELVM v);
|
|
SQRESULT UnbanPlayer(HSQUIRRELVM v);
|
|
|
|
SQRESULT GetNumHumanPlayers(HSQUIRRELVM v);
|
|
SQRESULT GetNumFakeClients(HSQUIRRELVM v);
|
|
|
|
SQRESULT IsServerActive(HSQUIRRELVM v);
|
|
SQRESULT IsDedicated(HSQUIRRELVM v);
|
|
}
|
|
}
|
|
|
|
void Script_RegisterServerFunctions(CSquirrelVM* s);
|
|
void Script_RegisterCoreServerFunctions(CSquirrelVM* s);
|
|
void Script_RegisterAdminPanelFunctions(CSquirrelVM* s);
|
|
|
|
#endif // VSCRIPT_SERVER_H
|