openmw-tes3coop/apps/openmw-mp/Script/Functions/Settings.hpp

22 lines
557 B
C++
Raw Normal View History

#ifndef OPENMW_SETTINGSAPI_HPP
#define OPENMW_SETTINGSAPI_HPP
#include "../Types.hpp"
#define SETTINGSAPI \
{"SetConsoleAllow", SettingFunctions::SetConsoleAllow},\
{"SetDifficulty", SettingFunctions::SetDifficulty},\
\
{"SendSettings", SettingFunctions::SendSettings}
class SettingFunctions
{
public:
static void SetConsoleAllow(unsigned short pid, bool state);
static void SetDifficulty(unsigned short pid, int difficulty);
static void SendSettings(unsigned short pid) noexcept;
};
#endif //OPENMW_SETTINGSAPI_HPP