2017-08-27 16:15:56 +00:00
|
|
|
//
|
|
|
|
// Created by koncord on 12.08.17.
|
|
|
|
//
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2018-01-02 03:57:32 +00:00
|
|
|
#include "BaseMgr.hpp"
|
|
|
|
|
2017-08-27 16:15:56 +00:00
|
|
|
class LuaState;
|
|
|
|
class Player;
|
|
|
|
|
|
|
|
|
2018-01-02 03:57:32 +00:00
|
|
|
class GameSettings final: public BaseMgr
|
2017-08-27 16:15:56 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
static void Init(LuaState &lua);
|
|
|
|
public:
|
|
|
|
|
|
|
|
explicit GameSettings(Player *player);
|
2018-01-01 10:04:25 +00:00
|
|
|
|
|
|
|
void setConsoleAllowed(bool state);
|
|
|
|
|
|
|
|
void setDifficulty(int difficulty);
|
|
|
|
|
2018-03-30 06:32:43 +00:00
|
|
|
void setEnforcedLogLevel(int logLevel);
|
|
|
|
|
2018-03-10 18:03:03 +00:00
|
|
|
void setPhysicsFramerate(double physicsFramerate);
|
|
|
|
|
2018-01-01 10:04:25 +00:00
|
|
|
void setBedRestAllowed(bool state);
|
|
|
|
|
|
|
|
void setWildernessRestAllowed(bool state);
|
|
|
|
|
|
|
|
void setWaitAllowed(bool state);
|
2017-08-27 16:15:56 +00:00
|
|
|
|
2018-01-02 03:57:32 +00:00
|
|
|
|
2017-08-27 16:15:56 +00:00
|
|
|
private:
|
2018-01-02 03:57:32 +00:00
|
|
|
void processUpdate() final;
|
2018-03-30 06:32:43 +00:00
|
|
|
};
|