openmw-tes3coop/apps/openmw-mp/Settings.hpp
David Cernat 3d5860d6f4 Merge pull request #396 from TES3MP/0.6.3 while resolving conflicts
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
2018-03-30 09:32:43 +03:00

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;
};