1 #ifndef CATA_SRC_CACHED_OPTIONS_H 2 #define CATA_SRC_CACHED_OPTIONS_H 3 4 // A collection of options which are accessed frequently enough that we don't 5 // want to pay the overhead of a string lookup each time one is tested. 6 // They should be updated when the corresponding option is changed (in 7 // options.cpp). 8 9 extern bool fov_3d; 10 extern int fov_3d_z_range; 11 extern bool keycode_mode; 12 extern bool log_from_top; 13 extern int message_ttl; 14 extern int message_cooldown; 15 extern bool tile_iso; 16 extern bool use_tiles; 17 extern bool pixel_minimap_option; 18 19 // test_mode is not a regular game option; it's true when we are running unit 20 // tests. 21 extern bool test_mode; 22 enum class test_mode_spilling_action_t { 23 spill_all, 24 cancel_spill, 25 }; 26 extern test_mode_spilling_action_t test_mode_spilling_action; 27 28 extern bool direct3d_mode; 29 30 enum class error_log_format_t { 31 human_readable, 32 // Output error messages in github action command format (currently json only) 33 // See https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-commands-for-github-actions#setting-an-error-message 34 github_action, 35 }; 36 #ifndef CATA_IN_TOOL 37 extern error_log_format_t error_log_format; 38 #else 39 constexpr error_log_format_t error_log_format = error_log_format_t::human_readable; 40 #endif 41 42 #endif // CATA_SRC_CACHED_OPTIONS_H 43