| 237 | } |
| 238 | |
| 239 | void DynamicDataLoader::initialize() |
| 240 | { |
| 241 | // Initialize loading data that must be in place before any loading functions are called |
| 242 | init_mapdata(); |
| 243 | |
| 244 | // all of the applicable types that can be loaded, along with their loading functions |
| 245 | // Add to this as needed with new StaticFunctionAccessors or new ClassFunctionAccessors for new applicable types |
| 246 | // Static Function Access |
| 247 | add( "WORLD_OPTION", &load_world_option ); |
| 248 | add( "EXTERNAL_OPTION", &load_external_option ); |
| 249 | add( "json_flag", &json_flag::load_all ); |
| 250 | add( "fault", &fault::load_fault ); |
| 251 | add( "relic_procgen_data", &relic_procgen_data::load_relic_procgen_data ); |
| 252 | add( "effect_on_condition", &effect_on_conditions::load ); |
| 253 | add( "field_type", &field_types::load ); |
| 254 | add( "weather_type", &weather_types::load ); |
| 255 | add( "ammo_effect", &ammo_effects::load ); |
| 256 | add( "emit", &emit::load_emit ); |
| 257 | add( "activity_type", &activity_type::load ); |
| 258 | add( "movement_mode", &move_mode::load_move_mode ); |
| 259 | add( "vitamin", &vitamin::load_vitamin ); |
| 260 | add( "material", &materials::load ); |
| 261 | add( "bionic", &bionic_data::load_bionic ); |
| 262 | add( "profession", &profession::load_profession ); |
| 263 | add( "profession_item_substitutions", &profession::load_item_substitutions ); |
| 264 | add( "proficiency", &proficiency::load_proficiencies ); |
| 265 | add( "speed_description", &speed_description::load_speed_descriptions ); |
| 266 | add( "mood_face", &mood_face::load_mood_faces ); |
| 267 | add( "skill", &Skill::load_skill ); |
| 268 | add( "skill_display_type", &SkillDisplayType::load ); |
| 269 | add( "dream", &dream::load ); |
| 270 | add( "mutation_category", &mutation_category_trait::load ); |
| 271 | add( "mutation_type", &load_mutation_type ); |
| 272 | add( "mutation", &mutation_branch::load_trait ); |
| 273 | add( "furniture", &load_furniture ); |
| 274 | add( "terrain", &load_terrain ); |
| 275 | add( "monstergroup", &MonsterGroupManager::LoadMonsterGroup ); |
| 276 | add( "MONSTER_BLACKLIST", &MonsterGroupManager::LoadMonsterBlacklist ); |
| 277 | add( "MONSTER_WHITELIST", &MonsterGroupManager::LoadMonsterWhitelist ); |
| 278 | add( "speech", &load_speech ); |
| 279 | add( "ammunition_type", &ammunition_type::load_ammunition_type ); |
| 280 | add( "start_location", &start_locations::load ); |
| 281 | add( "scenario", &scenario::load_scenario ); |
| 282 | add( "SCENARIO_BLACKLIST", &scen_blacklist::load_scen_blacklist ); |
| 283 | add( "skill_boost", &skill_boost::load_boost ); |
| 284 | add( "enchantment", &enchantment::load_enchantment ); |
| 285 | add( "hit_range", &Creature::load_hit_range ); |
| 286 | add( "scent_type", &scent_type::load_scent_type ); |
| 287 | add( "disease_type", &disease_type::load_disease_type ); |
| 288 | add( "ascii_art", &ascii_art::load_ascii_art ); |
| 289 | |
| 290 | // json/colors.json would be listed here, but it's loaded before the others (see init_colors()) |
| 291 | // Non Static Function Access |
| 292 | add( "snippet", []( const JsonObject & jo ) { |
| 293 | SNIPPET.load_snippet( jo ); |
| 294 | } ); |
| 295 | add( "item_group", []( const JsonObject & jo ) { |
| 296 | item_controller->load_item_group( jo ); |
no test coverage detected