| 12 | GameSingleton* GameSingleton::singleton = nullptr; |
| 13 | |
| 14 | void GameSingleton::_bind_methods() { |
| 15 | ClassDB::bind_static_method("GameSingleton", D_METHOD("setup_logger"), &GameSingleton::setup_logger); |
| 16 | ClassDB::bind_method(D_METHOD("load_defines", "file_dict"), &GameSingleton::load_defines); |
| 17 | ClassDB::bind_method(D_METHOD("load_defines_compatibility_mode", "file_path"), &GameSingleton::load_defines_compatibility_mode); |
| 18 | ClassDB::bind_method(D_METHOD("setup_game"), &GameSingleton::setup_game); |
| 19 | |
| 20 | ClassDB::bind_method(D_METHOD("get_province_index_from_uv_coords", "coords"), &GameSingleton::get_province_index_from_uv_coords); |
| 21 | ClassDB::bind_method(D_METHOD("get_province_info_from_index", "index"), &GameSingleton::get_province_info_from_index); |
| 22 | ClassDB::bind_method(D_METHOD("get_width"), &GameSingleton::get_width); |
| 23 | ClassDB::bind_method(D_METHOD("get_height"), &GameSingleton::get_height); |
| 24 | ClassDB::bind_method(D_METHOD("get_aspect_ratio"), &GameSingleton::get_aspect_ratio); |
| 25 | ClassDB::bind_method(D_METHOD("get_terrain_texture"), &GameSingleton::get_terrain_texture); |
| 26 | ClassDB::bind_method(D_METHOD("get_province_shape_image_subdivisions"), &GameSingleton::get_province_shape_image_subdivisions); |
| 27 | ClassDB::bind_method(D_METHOD("get_province_shape_texture"), &GameSingleton::get_province_shape_texture); |
| 28 | ClassDB::bind_method(D_METHOD("get_province_colour_texture"), &GameSingleton::get_province_colour_texture); |
| 29 | |
| 30 | ClassDB::bind_method(D_METHOD("get_mapmode_count"), &GameSingleton::get_mapmode_count); |
| 31 | ClassDB::bind_method(D_METHOD("get_mapmode_identifier", "index"), &GameSingleton::get_mapmode_identifier); |
| 32 | ClassDB::bind_method(D_METHOD("set_mapmode", "identifier"), &GameSingleton::set_mapmode); |
| 33 | ClassDB::bind_method(D_METHOD("get_selected_province_index"), &GameSingleton::get_selected_province_index); |
| 34 | ClassDB::bind_method(D_METHOD("set_selected_province", "index"), &GameSingleton::set_selected_province); |
| 35 | |
| 36 | ClassDB::bind_method(D_METHOD("expand_building", "province_index", "building_type_identifier"), &GameSingleton::expand_building); |
| 37 | ClassDB::bind_method(D_METHOD("get_good_icon_texture", "identifier"), &GameSingleton::get_good_icon_texture); |
| 38 | |
| 39 | ClassDB::bind_method(D_METHOD("set_paused", "paused"), &GameSingleton::set_paused); |
| 40 | ClassDB::bind_method(D_METHOD("toggle_paused"), &GameSingleton::toggle_paused); |
| 41 | ClassDB::bind_method(D_METHOD("is_paused"), &GameSingleton::is_paused); |
| 42 | ClassDB::bind_method(D_METHOD("increase_speed"), &GameSingleton::increase_speed); |
| 43 | ClassDB::bind_method(D_METHOD("decrease_speed"), &GameSingleton::decrease_speed); |
| 44 | ClassDB::bind_method(D_METHOD("can_increase_speed"), &GameSingleton::can_increase_speed); |
| 45 | ClassDB::bind_method(D_METHOD("can_decrease_speed"), &GameSingleton::can_decrease_speed); |
| 46 | ClassDB::bind_method(D_METHOD("get_longform_date"), &GameSingleton::get_longform_date); |
| 47 | ClassDB::bind_method(D_METHOD("try_tick"), &GameSingleton::try_tick); |
| 48 | |
| 49 | ADD_SIGNAL(MethodInfo("state_updated")); |
| 50 | ADD_SIGNAL(MethodInfo("province_selected", PropertyInfo(Variant::INT, "index"))); |
| 51 | |
| 52 | ClassDB::bind_static_method("GameSingleton", D_METHOD("get_province_identifier_file_key"), &GameSingleton::get_province_identifier_file_key); |
| 53 | ClassDB::bind_static_method("GameSingleton", D_METHOD("get_water_province_file_key"), &GameSingleton::get_water_province_file_key); |
| 54 | ClassDB::bind_static_method("GameSingleton", D_METHOD("get_region_file_key"), &GameSingleton::get_region_file_key); |
| 55 | ClassDB::bind_static_method("GameSingleton", D_METHOD("get_terrain_variant_file_key"), &GameSingleton::get_terrain_variant_file_key); |
| 56 | ClassDB::bind_static_method("GameSingleton", D_METHOD("get_terrain_texture_dir_key"), &GameSingleton::get_terrain_texture_dir_key); |
| 57 | ClassDB::bind_static_method("GameSingleton", D_METHOD("get_province_image_file_key"), &GameSingleton::get_province_image_file_key); |
| 58 | ClassDB::bind_static_method("GameSingleton", D_METHOD("get_terrain_image_file_key"), &GameSingleton::get_terrain_image_file_key); |
| 59 | ClassDB::bind_static_method("GameSingleton", D_METHOD("get_goods_file_key"), &GameSingleton::get_goods_file_key); |
| 60 | ClassDB::bind_static_method("GameSingleton", D_METHOD("get_good_icons_dir_key"), &GameSingleton::get_good_icons_dir_key); |
| 61 | |
| 62 | ClassDB::bind_static_method("GameSingleton", D_METHOD("get_province_info_province_key"), &GameSingleton::get_province_info_province_key); |
| 63 | ClassDB::bind_static_method("GameSingleton", D_METHOD("get_province_info_region_key"), &GameSingleton::get_province_info_region_key); |
| 64 | ClassDB::bind_static_method("GameSingleton", D_METHOD("get_province_info_life_rating_key"), &GameSingleton::get_province_info_life_rating_key); |
| 65 | ClassDB::bind_static_method("GameSingleton", D_METHOD("get_province_info_rgo_key"), &GameSingleton::get_province_info_rgo_key); |
| 66 | ClassDB::bind_static_method("GameSingleton", D_METHOD("get_province_info_buildings_key"), &GameSingleton::get_province_info_buildings_key); |
| 67 | |
| 68 | ClassDB::bind_static_method("GameSingleton", D_METHOD("get_building_info_building_key"), &GameSingleton::get_building_info_building_key); |
| 69 | ClassDB::bind_static_method("GameSingleton", D_METHOD("get_building_info_level_key"), &GameSingleton::get_building_info_level_key); |
| 70 | ClassDB::bind_static_method("GameSingleton", D_METHOD("get_building_info_expansion_state_key"), &GameSingleton::get_building_info_expansion_state_key); |
| 71 | ClassDB::bind_static_method("GameSingleton", D_METHOD("get_building_info_start_date_key"), &GameSingleton::get_building_info_start_date_key); |
nothing calls this directly
no outgoing calls
no test coverage detected