Move GameScriptSettings over to Scripting.

This commit is contained in:
hispidence 2022-01-23 17:47:55 +00:00
parent 2889a62704
commit fe978daa9d
6 changed files with 24 additions and 16 deletions

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