Antkeeper
0.0.1
|
Go to the source code of this file.
Functions | |
template<class T > | |
bool | read_or_write_setting (::game &ctx, hash::fnv1a32_t key, T &value) |
Reads a setting if found, inserts a setting if not found, and overwrites a setting if a type mismatch occurs. More... | |
bool read_or_write_setting | ( | ::game & | ctx, |
hash::fnv1a32_t | key, | ||
T & | value | ||
) |
Reads a setting if found, inserts a setting if not found, and overwrites a setting if a type mismatch occurs.
T | Setting value type. |
[in] | ctx | Game context. |
[in] | key | Setting key. |
[in,out] | Setting | value. |
true
if the setting was read, false
if the setting was written. Definition at line 39 of file settings.hpp.