Luanti 5.11.0-dev
 
Loading...
Searching...
No Matches
settings.h File Reference
#include "irrlichttypes_bloated.h"
#include "util/string.h"
#include "util/basic_macros.h"
#include <string>
#include <set>
#include <map>
#include <mutex>
+ Include dependency graph for settings.h:

Go to the source code of this file.

Classes

class  SettingsHierarchy
 
struct  ValueSpec
 
struct  SettingsEntry
 
class  Settings
 

Typedefs

typedef void(* SettingsChangedCallback) (const std::string &name, void *data)
 
typedef std::vector< std::pair< SettingsChangedCallback, void * > > SettingsCallbackList
 
typedef std::unordered_map< std::string, SettingsCallbackListSettingsCallbackMap
 
typedef std::unordered_map< std::string, SettingsEntrySettingEntries
 

Enumerations

enum  ValueType { VALUETYPE_STRING , VALUETYPE_FLAG }
 
enum  SettingsParseEvent {
  SPE_NONE , SPE_INVALID , SPE_COMMENT , SPE_KVPAIR ,
  SPE_END , SPE_GROUP , SPE_MULTILINE
}
 
enum  SettingsLayer { SL_DEFAULTS , SL_GAME , SL_GLOBAL , SL_TOTAL_COUNT }
 

Variables

Settingsg_settings
 
std::string g_settings_path
 

Typedef Documentation

◆ SettingEntries

typedef std::unordered_map<std::string, SettingsEntry> SettingEntries

◆ SettingsCallbackList

typedef std::vector< std::pair< SettingsChangedCallback, void * >> SettingsCallbackList

◆ SettingsCallbackMap

typedef std::unordered_map<std::string, SettingsCallbackList> SettingsCallbackMap

◆ SettingsChangedCallback

typedef void(* SettingsChangedCallback) (const std::string &name, void *data)

Enumeration Type Documentation

◆ SettingsLayer

Enumerator
SL_DEFAULTS 
SL_GAME 
SL_GLOBAL 
SL_TOTAL_COUNT 

◆ SettingsParseEvent

Enumerator
SPE_NONE 
SPE_INVALID 
SPE_COMMENT 
SPE_KVPAIR 
SPE_END 
SPE_GROUP 
SPE_MULTILINE 

◆ ValueType

enum ValueType
Enumerator
VALUETYPE_STRING 
VALUETYPE_FLAG 

Variable Documentation

◆ g_settings

Settings* g_settings
extern

Referenced by sound::ALExtensions::ALExtensions(), AsyncWorkerThread::AsyncWorkerThread(), Camera::Camera(), ChatBuffer::ChatBuffer(), Client::Client(), ClientMap::ClientMap(), Clouds::Clouds(), EmergeManager::EmergeManager(), EmergeScripting::EmergeScripting(), Environment::Environment(), FontEngine::FontEngine(), Game::Game(), GameGlobalShaderConstantSetter::GameGlobalShaderConstantSetter(), GUIChatConsole::GUIChatConsole(), GUIEngine::GUIEngine(), GUIFormSpecMenu::GUIFormSpecMenu(), GUIModalMenu::GUIModalMenu(), HTTPFetchOngoing::HTTPFetchOngoing(), Hud::Hud(), JoystickController::JoystickController(), MapBlockMesh::MapBlockMesh(), MeshUpdateManager::MeshUpdateManager(), MeshUpdateQueue::MeshUpdateQueue(), MeshUpdateWorkerThread::MeshUpdateWorkerThread(), Minimap::Minimap(), OffsetCameraStep::OffsetCameraStep(), PlayerSAO::PlayerSAO(), RemotePlayer::RemotePlayer(), RenderingEngine::RenderingEngine(), Server::Server(), ServerMap::ServerMap(), ServerScripting::ServerScripting(), ShadowRenderer::ShadowRenderer(), Sky::Sky(), TextureSource::TextureSource(), TouchControls::TouchControls(), WieldMeshSceneNode::WieldMeshSceneNode(), ClientLauncher::~ClientLauncher(), ClientMap::~ClientMap(), Clouds::~Clouds(), FontEngine::~FontEngine(), Game::~Game(), GameGlobalShaderConstantSetter::~GameGlobalShaderConstantSetter(), GUIEngine::~GUIEngine(), Hud::~Hud(), RenderingEngine::~RenderingEngine(), Server::~Server(), Server::acceptAuth(), GUIKeyChangeMenu::acceptInput(), addPostProcessing(), ClientMediaDownloader::addRemoteServer(), SingleMediaDownloader::addRemoteServer(), addUpscaling(), ChatBackend::applySettings(), Server::AsyncRunStep(), RenderingEngine::autosaveScreensizeAndCo(), GUIFormSpecMenu::calculateImgsize(), checkModNameWhitelisted(), PlayerSAO::checkMovementCheat(), chooseVideoDriver(), ServerEnvironment::clearObjects(), ClientLauncher::config_guienv(), Game::connectToServer(), create3DStage(), create_default_layout(), createShadowRenderer(), Game::createSingleplayerServer(), Game::decreaseViewRange(), dedicated_server_loop(), PlayerSettings::deregisterSettingsCallback(), determine_subgame(), GUIEngine::downloadFile(), RenderingEngine::draw_load_screen(), Hud::drawBlockBounds(), Hud::drawHotbar(), drawItemStack(), Server::findSpawnPos(), game_configure_port(), ImageSource::generateImagePart(), ShaderSource::generateShader(), get_deprecated_handling_mode(), get_world_from_config(), ButtonLayout::getButtonSize(), RenderingEngine::getDisplayDensity(), getDownscaleFactor(), getKeySetting(), TouchInteraction::getMode(), RemoteClient::GetNextBlocks(), Server::getProtocolVersionMin(), Game::getServerContent(), getShaderPath(), getSmoothLightCombined(), Server::getStatusString(), getTextureDirs(), guiScalingCache(), guiScalingResizeCached(), Server::handleChat(), Game::handleClientEvent_SetSky(), Server::handleCommand_FirstSrp(), Server::handleCommand_Init(), Server::handleCommand_Init2(), Server::handleCommand_Interact(), Server::handleCommand_ModChannelJoin(), Server::handleCommand_ModChannelLeave(), Server::handleCommand_ModChannelMsg(), Game::handleDigging(), id_to_keycode(), Game::increaseViewRange(), GameUI::init(), Server::init(), ClientLauncher::init_args(), init_common(), ClientLauncher::init_input(), init_log_streams(), GameUI::initFlags(), FontEngine::initFont(), ModApiUtil::Initialize(), RenderingEngine::initialize(), ModApiUtil::InitializeAsync(), ModApiUtil::InitializeClient(), ClientMediaDownloader::initialStep(), Client::initLocalMapSaving(), Game::initSound(), ClientInterface::isUserLimitReached(), Java_net_minetest_minetest_GameActivity_saveSettings(), ModApiMainMenu::l_create_world(), ModApiMapgen::l_get_noiseparams(), ObjectRef::l_set_armor_groups(), LuaMinimap::l_show(), ClientLauncher::launch_game(), FpsControl::limit(), ServerMap::loadBlock(), ButtonLayout::loadFromSettings(), loadGameConfAndInitWorld(), GUIEngine::loadMainMenuScript(), Client::loadMods(), main(), ClientLauncher::main_menu(), Client::makeScreenshot(), migrate_settings(), Game::nodePlacement(), GUITouchscreenLayout::OnEvent(), GUIVolumeChange::OnEvent(), MyEventReceiver::OnEvent(), JoystickController::onJoystickConnect(), SettingsHierarchy::onLayerCreated(), SettingsHierarchy::onLayerRemoved(), MapBlock::onObjectsActivation(), ClientMap::onSettingChanged(), GameGlobalShaderConstantSetter::onSettingsChange(), Database_SQLite3::openDatabase(), GUIFormSpecMenu::parseSize(), ShadowRenderer::preInit(), Game::processKeyInput(), Game::processPlayerInteraction(), PlayerSAO::punch(), read_config_file(), PlayerSettings::readGlobalSettings(), MapgenParams::readParams(), Hud::readScalingSetting(), Clouds::readSettings(), FontEngine::readSettings(), Game::readSettings(), TextureSettings::readSettings(), GUIFormSpecMenu::regenerateGui(), GUIKeyChangeMenu::regenerateGui(), GUIVolumeChange::regenerateGui(), PlayerSettings::registerSettingsCallback(), ClientMap::renderMapShadows(), Address::Resolve(), ModConfiguration::resolveDependencies(), ClientLauncher::run(), Game::run(), GUIEngine::run(), run_dedicated_server(), TestSAO::runTests(), TestSocket::runTests(), MapBlock::saveStaticObject(), Server::SendActiveObjectRemoveAdd(), Server::SendAddParticleSpawner(), ServerList::sendAnnounce(), Server::SendBlockNoLock(), Server::SendBlocks(), Client::sendChatMessage(), Server::sendMediaAnnouncement(), Server::SendMovement(), Server::SendSpawnParticle(), Minimap::setMinimapShape(), GUIScrollBar::setPosInterpolated(), RenderingEngine::settingChangedCallback(), Game::shouldShowTouchControls(), Game::showPauseMenu(), sound_volume_control(), SingleMediaDownloader::startRemoteMediaTransfer(), ClientMediaDownloader::startRemoteMediaTransfers(), Game::startup(), Client::step(), ClientEnvironment::step(), Game::step(), GenericCAO::step(), ParticleSpawner::step(), Server::step(), ServerEnvironment::step(), TestConnection::testConnectSendReceive(), TestSocket::testIPv4Socket(), TestAddress::testResolve(), Game::toggleAutoforward(), Game::toggleCinematic(), Game::toggleFast(), Game::toggleFog(), Game::toggleFreeMove(), Game::toggleMinimap(), Minimap::toggleMinimapShape(), Game::toggleNoClip(), Game::togglePitchMove(), ServerMap::transformLiquids(), TouchControls::translateEvent(), Camera::update(), MeshUpdateManager::updateBlock(), Clouds::updateMesh(), Game::updatePointedThing(), Game::updateProfilers(), GenericCAO::updateTextures(), and Camera::updateViewingRange().

◆ g_settings_path