|
|
@ -26,13 +26,13 @@
|
|
|
|
{"GetMaxPlayers", ServerFunctions::GetMaxPlayers},\
|
|
|
|
{"GetMaxPlayers", ServerFunctions::GetMaxPlayers},\
|
|
|
|
{"GetPort", ServerFunctions::GetPort},\
|
|
|
|
{"GetPort", ServerFunctions::GetPort},\
|
|
|
|
{"HasPassword", ServerFunctions::HasPassword},\
|
|
|
|
{"HasPassword", ServerFunctions::HasPassword},\
|
|
|
|
{"GetPluginEnforcementState", ServerFunctions::GetPluginEnforcementState},\
|
|
|
|
{"GetDataFileEnforcementState", ServerFunctions::GetDataFileEnforcementState},\
|
|
|
|
{"GetScriptErrorIgnoringState", ServerFunctions::GetScriptErrorIgnoringState},\
|
|
|
|
{"GetScriptErrorIgnoringState", ServerFunctions::GetScriptErrorIgnoringState},\
|
|
|
|
\
|
|
|
|
\
|
|
|
|
{"SetGameMode", ServerFunctions::SetGameMode},\
|
|
|
|
{"SetGameMode", ServerFunctions::SetGameMode},\
|
|
|
|
{"SetHostname", ServerFunctions::SetHostname},\
|
|
|
|
{"SetHostname", ServerFunctions::SetHostname},\
|
|
|
|
{"SetServerPassword", ServerFunctions::SetServerPassword},\
|
|
|
|
{"SetServerPassword", ServerFunctions::SetServerPassword},\
|
|
|
|
{"SetPluginEnforcementState", ServerFunctions::SetPluginEnforcementState},\
|
|
|
|
{"SetDataFileEnforcementState", ServerFunctions::SetDataFileEnforcementState},\
|
|
|
|
{"SetScriptErrorIgnoringState", ServerFunctions::SetScriptErrorIgnoringState},\
|
|
|
|
{"SetScriptErrorIgnoringState", ServerFunctions::SetScriptErrorIgnoringState},\
|
|
|
|
{"SetRuleString", ServerFunctions::SetRuleString},\
|
|
|
|
{"SetRuleString", ServerFunctions::SetRuleString},\
|
|
|
|
{"SetRuleValue", ServerFunctions::SetRuleValue},\
|
|
|
|
{"SetRuleValue", ServerFunctions::SetRuleValue},\
|
|
|
@ -41,6 +41,8 @@
|
|
|
|
\
|
|
|
|
\
|
|
|
|
{"DoesFileExist", ServerFunctions::DoesFileExist},\
|
|
|
|
{"DoesFileExist", ServerFunctions::DoesFileExist},\
|
|
|
|
{"GetModDir", ServerFunctions::GetModDir},\
|
|
|
|
{"GetModDir", ServerFunctions::GetModDir},\
|
|
|
|
|
|
|
|
{"GetPluginEnforcementState", ServerFunctions::GetPluginEnforcementState},\
|
|
|
|
|
|
|
|
{"SetPluginEnforcementState", ServerFunctions::SetPluginEnforcementState},\
|
|
|
|
{"AddPluginHash", ServerFunctions::AddPluginHash}
|
|
|
|
{"AddPluginHash", ServerFunctions::AddPluginHash}
|
|
|
|
|
|
|
|
|
|
|
|
class ServerFunctions
|
|
|
|
class ServerFunctions
|
|
|
@ -208,13 +210,13 @@ public:
|
|
|
|
static bool HasPassword() noexcept;
|
|
|
|
static bool HasPassword() noexcept;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* \brief Get the plugin enforcement state of the server.
|
|
|
|
* \brief Get the data file enforcement state of the server.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* If true, clients are required to use the same plugins as set for the server.
|
|
|
|
* If true, clients are required to use the same data files as set for the server.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* \return The enforcement state.
|
|
|
|
* \return The enforcement state.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
static bool GetPluginEnforcementState() noexcept;
|
|
|
|
static bool GetDataFileEnforcementState() noexcept;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* \brief Get the script error ignoring state of the server.
|
|
|
|
* \brief Get the script error ignoring state of the server.
|
|
|
@ -250,14 +252,14 @@ public:
|
|
|
|
static void SetServerPassword(const char *password) noexcept;
|
|
|
|
static void SetServerPassword(const char *password) noexcept;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* \brief Set the plugin enforcement state of the server.
|
|
|
|
* \brief Set the data file enforcement state of the server.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* If true, clients are required to use the same plugins as set for the server.
|
|
|
|
* If true, clients are required to use the same data files as set for the server.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* \param state The new enforcement state.
|
|
|
|
* \param state The new enforcement state.
|
|
|
|
* \return void
|
|
|
|
* \return void
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
static void SetPluginEnforcementState(bool state) noexcept;
|
|
|
|
static void SetDataFileEnforcementState(bool state) noexcept;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* \brief Set whether script errors should be ignored or not.
|
|
|
|
* \brief Set whether script errors should be ignored or not.
|
|
|
@ -307,6 +309,8 @@ public:
|
|
|
|
|
|
|
|
|
|
|
|
static bool DoesFileExist(const char *filePath) noexcept;
|
|
|
|
static bool DoesFileExist(const char *filePath) noexcept;
|
|
|
|
static const char *GetModDir() noexcept;
|
|
|
|
static const char *GetModDir() noexcept;
|
|
|
|
|
|
|
|
static bool GetPluginEnforcementState() noexcept;
|
|
|
|
|
|
|
|
static void SetPluginEnforcementState(bool state) noexcept;
|
|
|
|
static void AddPluginHash(const char *pluginName, const char *checksumString) noexcept;
|
|
|
|
static void AddPluginHash(const char *pluginName, const char *checksumString) noexcept;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|