mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 10:31:50 +00:00
add setting 'content.autoreload-scripts'
This commit is contained in:
parent
eefaafd1e7
commit
1412f28a72
2 changed files with 8 additions and 0 deletions
|
|
@ -70,6 +70,9 @@ SettingsHandler::SettingsHandler(EngineSettings& settings) {
|
|||
builder.add("frustum-culling", &settings.graphics.frustumCulling);
|
||||
builder.add("skybox-resolution", &settings.graphics.skyboxResolution);
|
||||
|
||||
builder.section("content");
|
||||
builder.add("autoreload-scripts", &settings.content.autoreloadScripts);
|
||||
|
||||
builder.section("ui");
|
||||
builder.add("language", &settings.ui.language);
|
||||
builder.add("world-preview-size", &settings.ui.worldPreviewSize);
|
||||
|
|
|
|||
|
|
@ -67,6 +67,10 @@ struct GraphicsSettings {
|
|||
IntegerSetting skyboxResolution {64 + 32, 64, 128};
|
||||
};
|
||||
|
||||
struct ContentSettings {
|
||||
FlagSetting autoreloadScripts {true};
|
||||
};
|
||||
|
||||
struct DebugSettings {
|
||||
/// @brief Turns off chunks saving/loading
|
||||
FlagSetting generatorTestMode {false};
|
||||
|
|
@ -84,6 +88,7 @@ struct EngineSettings {
|
|||
ChunksSettings chunks;
|
||||
CameraSettings camera;
|
||||
GraphicsSettings graphics;
|
||||
ContentSettings content;
|
||||
DebugSettings debug;
|
||||
UiSettings ui;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue