Rat49 / BootCamp

Project made by BootCampers power
4 stars 3 forks source link

Config Manager #17

Closed yuyoyuppe closed 6 years ago

yuyoyuppe commented 6 years ago

possible API:

 class SettingsCategory
    {
        // ...
    public:
        const char * get_value(const char * configValue);
    };
    class ConfigManager
    {
        // ...
    public:
        SettingsCategory& get_category(const char * categoryName)
    };

example:

config.ini

[Input]
SHOOT = 73

[Audio]
MasterVolume = 30

usage example:

configManager->GetCategory("Input")->get_value("SHOOT"); // "73"