mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-05-09 03:58:19 +03:00
Move GameScriptSettings over to Scripting.
This commit is contained in:
parent
2889a62704
commit
fe978daa9d
6 changed files with 24 additions and 16 deletions
31
Scripting/include/GameScriptSettings.h
Normal file
31
Scripting/include/GameScriptSettings.h
Normal file
|
@ -0,0 +1,31 @@
|
|||
#pragma once
|
||||
|
||||
#include "ScriptAssert.h"
|
||||
#include <string>
|
||||
|
||||
static const std::unordered_map<std::string, ERROR_MODE> kErrorModes {
|
||||
{"SILENT", ERROR_MODE::SILENT},
|
||||
{"WARN", ERROR_MODE::WARN},
|
||||
{"TERMINATE", ERROR_MODE::TERMINATE}
|
||||
};
|
||||
|
||||
namespace sol {
|
||||
class state;
|
||||
}
|
||||
|
||||
struct GameScriptSettings
|
||||
{
|
||||
int ScreenWidth;
|
||||
int ScreenHeight;
|
||||
bool EnableLoadSave;
|
||||
bool EnableDynamicShadows;
|
||||
bool EnableWaterCaustics;
|
||||
bool Windowed;
|
||||
int DrawingDistance;
|
||||
bool ShowRendererSteps;
|
||||
bool ShowDebugInfo;
|
||||
ERROR_MODE ErrorMode;
|
||||
|
||||
static void Register(sol::state* lua);
|
||||
};
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue