29 template <stl::nttp::z
string S>
30 inline auto operator""_ini()
35 setting = collection->GetSetting(S.data());
39 if constexpr (S.front() ==
'b') {
40 return setting ? std::optional(setting->
data.
b) : std::nullopt;
41 }
else if constexpr (S.front() ==
'f') {
42 return setting ? std::optional(setting->
data.
f) : std::nullopt;
43 }
else if constexpr (S.front() ==
'i') {
44 return setting ? std::optional(setting->
data.
i) : std::nullopt;
45 }
else if constexpr (S.front() ==
'r') {
46 return setting ? std::optional(setting->
data.
r) : std::nullopt;
47 }
else if constexpr (S.front() ==
's') {
48 return setting ? std::optional(setting->
data.
s) : std::nullopt;
49 }
else if constexpr (S.front() ==
'u') {
50 return setting ? std::optional(setting->
data.
u) : std::nullopt;
Definition: INISettingCollection.h:9
~INISettingCollection() override
static INISettingCollection * GetSingleton()
bool ReadSetting(Setting *a_setting) override
bool WriteSetting(Setting *a_setting) override
bool OpenHandle(bool a_create) override
Setting * GetSetting(const char *a_name)
bool CloseHandle() override
static constexpr auto RTTI
Definition: INISettingCollection.h:11
Definition: SettingCollectionList.h:10
Data data
Definition: Setting.h:51
Definition: AbsorbEffect.h:6
constexpr REL::ID RTTI_INISettingCollection
Definition: Offsets_RTTI.h:5003
std::uint32_t u
Definition: Setting.h:30
float f
Definition: Setting.h:26
std::int32_t i
Definition: Setting.h:27
char * s
Definition: Setting.h:29
Color r
Definition: Setting.h:28
bool b
Definition: Setting.h:25