// This file must only be included from SettingsList.hpp

#ifndef SETTINGS_SECTION
#   define SETTINGS_SECTION(...)
#endif

SETTINGS_SECTION
(
    Material::audioSettings, "Audio",

    DECL_CLIENT_ONLY_SETTING
    (
        int, masterVolume, 100,
        "Master volume",

        nullptr,

        {ofs << masterVolume;},

        PARSE_INTEGER,

        new Slider(settings.masterVolume, 0, 100, "$+%", []()
        {
            settings.save();
        })
    )
)