32 template <stl::nttp::z
string S>
33 inline auto operator""_gs()
38 setting = collection->GetSetting(S.data());
42 if constexpr (S.front() ==
'b') {
43 return setting ? std::optional(setting->
data.
b) : std::nullopt;
44 }
else if constexpr (S.front() ==
'f') {
45 return setting ? std::optional(setting->
data.
f) : std::nullopt;
46 }
else if constexpr (S.front() ==
'i') {
47 return setting ? std::optional(setting->
data.
i) : std::nullopt;
48 }
else if constexpr (S.front() ==
'r') {
49 return setting ? std::optional(setting->
data.
r) : std::nullopt;
50 }
else if constexpr (S.front() ==
's') {
51 return setting ? std::optional(setting->
data.
s) : std::nullopt;
52 }
else if constexpr (S.front() ==
'u') {
53 return setting ? std::optional(setting->
data.
u) : std::nullopt;
Definition: GameSettingCollection.h:9
bool WriteSetting(Setting *a_setting) override
~GameSettingCollection() override
static GameSettingCollection * GetSingleton()
bool CloseHandle() override
Setting * GetSetting(const char *a_name)
bool ReadSetting(Setting *a_setting) override
static constexpr auto RTTI
Definition: GameSettingCollection.h:11
virtual void Unk_0A(void)
bool OpenHandle(bool a_create) override
Definition: SettingCollectionMap.h:11
Data data
Definition: Setting.h:51
Definition: AbsorbEffect.h:6
constexpr REL::ID RTTI_GameSettingCollection
Definition: Offsets_RTTI.h:4861
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