forked from teamnwah/openmw-tes3coop
3d5860d6f4
Conflicts: apps/openmw-mp/Player.cpp apps/openmw-mp/Script/Functions/Settings.cpp apps/openmw-mp/Script/Functions/Settings.hpp apps/openmw-mp/Script/Functions/World.cpp apps/openmw-mp/Script/Functions/World.hpp apps/openmw/mwgui/container.cpp apps/openmw/mwmp/LocalActor.cpp apps/openmw/mwmp/LocalPlayer.cpp apps/openmw/mwmp/WorldEvent.cpp apps/openmw/mwmp/processors/world/ProcessorContainer.hpp components/openmw-mp/Base/BaseEvent.hpp components/openmw-mp/Log.cpp components/openmw-mp/Log.hpp
38 lines
608 B
C++
38 lines
608 B
C++
//
|
|
// Created by koncord on 12.08.17.
|
|
//
|
|
|
|
#pragma once
|
|
|
|
#include "BaseMgr.hpp"
|
|
|
|
class LuaState;
|
|
class Player;
|
|
|
|
|
|
class GameSettings final: public BaseMgr
|
|
{
|
|
public:
|
|
static void Init(LuaState &lua);
|
|
public:
|
|
|
|
explicit GameSettings(Player *player);
|
|
|
|
void setConsoleAllowed(bool state);
|
|
|
|
void setDifficulty(int difficulty);
|
|
|
|
void setEnforcedLogLevel(int logLevel);
|
|
|
|
void setPhysicsFramerate(double physicsFramerate);
|
|
|
|
void setBedRestAllowed(bool state);
|
|
|
|
void setWildernessRestAllowed(bool state);
|
|
|
|
void setWaitAllowed(bool state);
|
|
|
|
|
|
private:
|
|
void processUpdate() final;
|
|
};
|