]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/settings.h
upright_sprite: Fix walk animation in first person (#12194)
[dragonfireclient.git] / src / settings.h
index 7791413b9859207e4a5c4f0a213706e271a18cc3..767d057f9c1b77eb4b11e7fe4095121a32eb0aa3 100644 (file)
@@ -172,9 +172,12 @@ class Settings {
        bool getNoiseParamsFromValue(const std::string &name, NoiseParams &np) const;
        bool getNoiseParamsFromGroup(const std::string &name, NoiseParams &np) const;
 
-       // return all keys used
+       // return all keys used in this object
        std::vector<std::string> getNames() const;
+       // check if setting exists anywhere in the hierarchy
        bool exists(const std::string &name) const;
+       // check if setting exists in this object ("locally")
+       bool existsLocal(const std::string &name) const;
 
 
        /***************************************
@@ -186,6 +189,7 @@ class Settings {
        bool getFlag(const std::string &name) const;
        bool getU16NoEx(const std::string &name, u16 &val) const;
        bool getS16NoEx(const std::string &name, s16 &val) const;
+       bool getU32NoEx(const std::string &name, u32 &val) const;
        bool getS32NoEx(const std::string &name, s32 &val) const;
        bool getU64NoEx(const std::string &name, u64 &val) const;
        bool getFloatNoEx(const std::string &name, float &val) const;