mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 20:49:56 +00:00
34 lines
No EOL
505 B
C++
34 lines
No EOL
505 B
C++
//
|
|
// Created by koncord on 12.08.17.
|
|
//
|
|
|
|
#pragma once
|
|
|
|
class LuaState;
|
|
class Player;
|
|
|
|
|
|
class GameSettings
|
|
{
|
|
public:
|
|
static void Init(LuaState &lua);
|
|
public:
|
|
|
|
explicit GameSettings(Player *player);
|
|
~GameSettings();
|
|
|
|
void setConsoleAllowed(bool state);
|
|
|
|
void setDifficulty(int difficulty);
|
|
|
|
void setBedRestAllowed(bool state);
|
|
|
|
void setWildernessRestAllowed(bool state);
|
|
|
|
void setWaitAllowed(bool state);
|
|
|
|
void update();
|
|
private:
|
|
Player *player;
|
|
bool changed;
|
|
}; |