20 #ifndef ANTKEEPER_GAME_SETTINGS_HPP
21 #define ANTKEEPER_GAME_SETTINGS_HPP
45 value = std::any_cast<T>(i->second);
47 catch (
const std::bad_any_cast&)
std::shared_ptr< dict< hash::fnv1a32_t > > settings
log_message< log_message_severity::trace, Args... > log_trace
Formats and logs a trace message.
log_message< log_message_severity::error, Args... > log_error
Formats and logs an error message.
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...
32-bit FNV-1a hash value.