2022-02-28 14:31:25 -05:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
namespace dvars
|
|
|
|
{
|
|
|
|
namespace disable
|
|
|
|
{
|
|
|
|
void set_bool(const std::string& name);
|
|
|
|
void set_float(const std::string& name);
|
|
|
|
void set_int(const std::string& name);
|
|
|
|
void set_string(const std::string& name);
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace override
|
|
|
|
{
|
|
|
|
void register_bool(const std::string& name, bool value, const unsigned int flags);
|
|
|
|
void register_float(const std::string& name, float value, float min, float max, const unsigned int flags);
|
|
|
|
void register_int(const std::string& name, int value, int min, int max, const unsigned int flags);
|
|
|
|
void register_string(const std::string& name, const std::string& value, const unsigned int flags);
|
|
|
|
void register_vec2(const std::string& name, float x, float y, float min, float max, const unsigned int flags);
|
|
|
|
void register_vec3(const std::string& name, float x, float y, float z, float min, float max, const unsigned int flags);
|
2022-05-28 15:08:12 -04:00
|
|
|
void register_enum(const std::string& name, /*const char* const* value_list, int default_index,*/ const unsigned int flags);
|
2022-02-28 14:31:25 -05:00
|
|
|
|
|
|
|
void set_bool(const std::string& name, bool boolean);
|
|
|
|
void set_float(const std::string& name, float fl);
|
|
|
|
void set_int(const std::string& name, int integer);
|
|
|
|
void set_string(const std::string& name, const std::string& string);
|
2022-02-28 15:18:27 -05:00
|
|
|
void set_from_string(const std::string& name, const std::string& value);
|
2022-02-28 14:31:25 -05:00
|
|
|
}
|
|
|
|
}
|