factorio-types 1.2.49 → 1.2.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/classes.d.ts +763 -588
- package/dist/concepts.d.ts +272 -197
- package/dist/datacollection.d.ts +1 -1
- package/dist/defines.d.ts +214 -206
- package/dist/events.d.ts +431 -398
- package/dist/global.d.ts +2 -2
- package/dist/prototypes.d.ts +111 -15
- package/dist/types.d.ts +89 -21
- package/package.json +2 -2
package/dist/datacollection.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Factorio API reference https://lua-api.factorio.com/latest/index.html
|
|
3
3
|
// Generated from JSON source https://lua-api.factorio.com/latest/prototype-api.json
|
|
4
4
|
// Definition source https://github.com/sguest/factorio-types
|
|
5
|
-
// Factorio version 2.0.
|
|
5
|
+
// Factorio version 2.0.67
|
|
6
6
|
// API version 6
|
|
7
7
|
|
|
8
8
|
declare namespace prototype {
|
package/dist/defines.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Factorio API reference https://lua-api.factorio.com/latest/index.html
|
|
3
3
|
// Generated from JSON source https://lua-api.factorio.com/latest/runtime-api.json
|
|
4
4
|
// Definition source https://github.com/sguest/factorio-types
|
|
5
|
-
// Factorio version 2.0.
|
|
5
|
+
// Factorio version 2.0.67
|
|
6
6
|
// API version 6
|
|
7
7
|
|
|
8
8
|
declare namespace defines {
|
|
@@ -26,7 +26,7 @@ enum alert_type {
|
|
|
26
26
|
unclaimed_cargo = 16
|
|
27
27
|
}
|
|
28
28
|
/**
|
|
29
|
-
* AI command exit status
|
|
29
|
+
* AI command exit status, see {@link LuaCommandable::set_command | runtime:LuaCommandable::set_command}
|
|
30
30
|
*/
|
|
31
31
|
enum behavior_result {
|
|
32
32
|
deleted = 3,
|
|
@@ -316,6 +316,10 @@ namespace control_behavior {
|
|
|
316
316
|
* {@link LuaSpacePlatformHubControlBehavior | runtime:LuaSpacePlatformHubControlBehavior}
|
|
317
317
|
*/
|
|
318
318
|
space_platform_hub = 24,
|
|
319
|
+
/**
|
|
320
|
+
* {@link LuaSplitterControlBehavior | runtime:LuaSplitterControlBehavior}
|
|
321
|
+
*/
|
|
322
|
+
splitter = 34,
|
|
319
323
|
/**
|
|
320
324
|
* {@link LuaStorageTankControlBehavior | runtime:LuaStorageTankControlBehavior}
|
|
321
325
|
*/
|
|
@@ -698,210 +702,211 @@ enum events {
|
|
|
698
702
|
on_cargo_pod_delivered_cargo = 9,
|
|
699
703
|
on_cargo_pod_finished_ascending = 10,
|
|
700
704
|
on_cargo_pod_finished_descending = 11,
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
705
|
+
on_cargo_pod_started_ascending = 12,
|
|
706
|
+
on_character_corpse_expired = 13,
|
|
707
|
+
on_chart_tag_added = 14,
|
|
708
|
+
on_chart_tag_modified = 15,
|
|
709
|
+
on_chart_tag_removed = 16,
|
|
710
|
+
on_chunk_charted = 17,
|
|
711
|
+
on_chunk_deleted = 18,
|
|
712
|
+
on_chunk_generated = 19,
|
|
713
|
+
on_combat_robot_expired = 20,
|
|
714
|
+
on_console_chat = 21,
|
|
715
|
+
on_console_command = 22,
|
|
716
|
+
on_cutscene_cancelled = 23,
|
|
717
|
+
on_cutscene_finished = 24,
|
|
718
|
+
on_cutscene_started = 25,
|
|
719
|
+
on_cutscene_waypoint_reached = 26,
|
|
720
|
+
on_entity_cloned = 27,
|
|
721
|
+
on_entity_color_changed = 28,
|
|
722
|
+
on_entity_damaged = 29,
|
|
723
|
+
on_entity_died = 30,
|
|
724
|
+
on_entity_logistic_slot_changed = 31,
|
|
725
|
+
on_entity_renamed = 32,
|
|
726
|
+
on_entity_settings_pasted = 33,
|
|
727
|
+
on_entity_spawned = 34,
|
|
728
|
+
on_equipment_inserted = 35,
|
|
729
|
+
on_equipment_removed = 36,
|
|
730
|
+
on_force_cease_fire_changed = 37,
|
|
731
|
+
on_force_created = 38,
|
|
732
|
+
on_force_friends_changed = 39,
|
|
733
|
+
on_force_reset = 40,
|
|
734
|
+
on_forces_merged = 41,
|
|
735
|
+
on_forces_merging = 42,
|
|
736
|
+
on_game_created_from_scenario = 43,
|
|
737
|
+
on_gui_checked_state_changed = 44,
|
|
738
|
+
on_gui_click = 45,
|
|
739
|
+
on_gui_closed = 46,
|
|
740
|
+
on_gui_confirmed = 47,
|
|
741
|
+
on_gui_elem_changed = 48,
|
|
742
|
+
on_gui_hover = 49,
|
|
743
|
+
on_gui_leave = 50,
|
|
744
|
+
on_gui_location_changed = 51,
|
|
745
|
+
on_gui_opened = 52,
|
|
746
|
+
on_gui_selected_tab_changed = 53,
|
|
747
|
+
on_gui_selection_state_changed = 54,
|
|
748
|
+
on_gui_switch_state_changed = 55,
|
|
749
|
+
on_gui_text_changed = 56,
|
|
750
|
+
on_gui_value_changed = 57,
|
|
751
|
+
on_land_mine_armed = 58,
|
|
752
|
+
on_lua_shortcut = 59,
|
|
753
|
+
on_marked_for_deconstruction = 60,
|
|
754
|
+
on_marked_for_upgrade = 61,
|
|
755
|
+
on_market_item_purchased = 62,
|
|
756
|
+
on_mod_item_opened = 63,
|
|
757
|
+
on_multiplayer_init = 64,
|
|
758
|
+
on_object_destroyed = 65,
|
|
759
|
+
on_permission_group_added = 66,
|
|
760
|
+
on_permission_group_deleted = 67,
|
|
761
|
+
on_permission_group_edited = 68,
|
|
762
|
+
on_permission_string_imported = 69,
|
|
763
|
+
on_picked_up_item = 70,
|
|
764
|
+
on_player_alt_reverse_selected_area = 71,
|
|
765
|
+
on_player_alt_selected_area = 72,
|
|
766
|
+
on_player_ammo_inventory_changed = 73,
|
|
767
|
+
on_player_armor_inventory_changed = 74,
|
|
768
|
+
on_player_banned = 75,
|
|
769
|
+
on_player_built_tile = 76,
|
|
770
|
+
on_player_cancelled_crafting = 77,
|
|
771
|
+
on_player_changed_force = 78,
|
|
772
|
+
on_player_changed_position = 79,
|
|
773
|
+
on_player_changed_surface = 80,
|
|
774
|
+
on_player_cheat_mode_disabled = 81,
|
|
775
|
+
on_player_cheat_mode_enabled = 82,
|
|
776
|
+
on_player_clicked_gps_tag = 83,
|
|
777
|
+
on_player_configured_blueprint = 84,
|
|
778
|
+
on_player_controller_changed = 85,
|
|
779
|
+
on_player_crafted_item = 86,
|
|
780
|
+
on_player_created = 87,
|
|
781
|
+
on_player_cursor_stack_changed = 88,
|
|
782
|
+
on_player_deconstructed_area = 89,
|
|
783
|
+
on_player_demoted = 90,
|
|
784
|
+
on_player_died = 91,
|
|
785
|
+
on_player_display_density_scale_changed = 92,
|
|
786
|
+
on_player_display_resolution_changed = 93,
|
|
787
|
+
on_player_display_scale_changed = 94,
|
|
788
|
+
on_player_driving_changed_state = 95,
|
|
789
|
+
on_player_dropped_item = 96,
|
|
790
|
+
on_player_fast_transferred = 97,
|
|
791
|
+
on_player_flipped_entity = 98,
|
|
792
|
+
on_player_flushed_fluid = 99,
|
|
793
|
+
on_player_gun_inventory_changed = 100,
|
|
794
|
+
on_player_input_method_changed = 101,
|
|
795
|
+
on_player_joined_game = 102,
|
|
796
|
+
on_player_kicked = 103,
|
|
797
|
+
on_player_left_game = 104,
|
|
798
|
+
on_player_locale_changed = 105,
|
|
799
|
+
on_player_main_inventory_changed = 106,
|
|
800
|
+
on_player_mined_entity = 107,
|
|
801
|
+
on_player_mined_item = 108,
|
|
802
|
+
on_player_mined_tile = 109,
|
|
803
|
+
on_player_muted = 110,
|
|
804
|
+
on_player_pipette = 111,
|
|
805
|
+
on_player_placed_equipment = 112,
|
|
806
|
+
on_player_promoted = 113,
|
|
807
|
+
on_player_removed = 114,
|
|
808
|
+
on_player_removed_equipment = 115,
|
|
809
|
+
on_player_repaired_entity = 116,
|
|
810
|
+
on_player_respawned = 117,
|
|
811
|
+
on_player_reverse_selected_area = 118,
|
|
812
|
+
on_player_rotated_entity = 119,
|
|
813
|
+
on_player_selected_area = 120,
|
|
814
|
+
on_player_set_quick_bar_slot = 121,
|
|
815
|
+
on_player_setup_blueprint = 122,
|
|
816
|
+
on_player_toggled_alt_mode = 123,
|
|
817
|
+
on_player_toggled_map_editor = 124,
|
|
818
|
+
on_player_trash_inventory_changed = 125,
|
|
819
|
+
on_player_unbanned = 126,
|
|
820
|
+
on_player_unmuted = 127,
|
|
821
|
+
on_player_used_capsule = 128,
|
|
822
|
+
on_player_used_spidertron_remote = 129,
|
|
823
|
+
on_post_entity_died = 130,
|
|
824
|
+
on_post_segmented_unit_died = 131,
|
|
825
|
+
on_pre_build = 132,
|
|
826
|
+
on_pre_chunk_deleted = 133,
|
|
827
|
+
on_pre_entity_settings_pasted = 134,
|
|
828
|
+
on_pre_ghost_deconstructed = 135,
|
|
829
|
+
on_pre_ghost_upgraded = 136,
|
|
830
|
+
on_pre_permission_group_deleted = 137,
|
|
831
|
+
on_pre_permission_string_imported = 138,
|
|
832
|
+
on_pre_player_crafted_item = 139,
|
|
833
|
+
on_pre_player_died = 140,
|
|
834
|
+
on_pre_player_left_game = 141,
|
|
835
|
+
on_pre_player_mined_item = 142,
|
|
836
|
+
on_pre_player_removed = 143,
|
|
837
|
+
on_pre_player_toggled_map_editor = 144,
|
|
838
|
+
on_pre_robot_exploded_cliff = 145,
|
|
839
|
+
on_pre_scenario_finished = 146,
|
|
840
|
+
on_pre_script_inventory_resized = 147,
|
|
841
|
+
on_pre_surface_cleared = 148,
|
|
842
|
+
on_pre_surface_deleted = 149,
|
|
843
|
+
on_redo_applied = 150,
|
|
844
|
+
on_research_cancelled = 151,
|
|
845
|
+
on_research_finished = 152,
|
|
846
|
+
on_research_moved = 153,
|
|
847
|
+
on_research_queued = 154,
|
|
848
|
+
on_research_reversed = 155,
|
|
849
|
+
on_research_started = 156,
|
|
850
|
+
on_resource_depleted = 157,
|
|
851
|
+
on_robot_built_entity = 158,
|
|
852
|
+
on_robot_built_tile = 159,
|
|
853
|
+
on_robot_exploded_cliff = 160,
|
|
854
|
+
on_robot_mined = 161,
|
|
855
|
+
on_robot_mined_entity = 162,
|
|
856
|
+
on_robot_mined_tile = 163,
|
|
857
|
+
on_robot_pre_mined = 164,
|
|
858
|
+
on_rocket_launch_ordered = 165,
|
|
859
|
+
on_rocket_launched = 166,
|
|
860
|
+
on_runtime_mod_setting_changed = 167,
|
|
861
|
+
on_script_inventory_resized = 168,
|
|
862
|
+
on_script_path_request_finished = 169,
|
|
863
|
+
on_script_trigger_effect = 170,
|
|
864
|
+
on_sector_scanned = 171,
|
|
865
|
+
on_segment_entity_created = 172,
|
|
866
|
+
on_segmented_unit_created = 173,
|
|
867
|
+
on_segmented_unit_damaged = 174,
|
|
868
|
+
on_segmented_unit_died = 175,
|
|
869
|
+
on_selected_entity_changed = 176,
|
|
870
|
+
on_singleplayer_init = 177,
|
|
871
|
+
on_space_platform_built_entity = 178,
|
|
872
|
+
on_space_platform_built_tile = 179,
|
|
873
|
+
on_space_platform_changed_state = 180,
|
|
874
|
+
on_space_platform_mined_entity = 181,
|
|
875
|
+
on_space_platform_mined_item = 182,
|
|
876
|
+
on_space_platform_mined_tile = 183,
|
|
877
|
+
on_space_platform_pre_mined = 184,
|
|
878
|
+
on_spider_command_completed = 185,
|
|
879
|
+
on_string_translated = 186,
|
|
880
|
+
on_surface_cleared = 187,
|
|
881
|
+
on_surface_created = 188,
|
|
882
|
+
on_surface_deleted = 189,
|
|
883
|
+
on_surface_imported = 190,
|
|
884
|
+
on_surface_renamed = 191,
|
|
885
|
+
on_technology_effects_reset = 192,
|
|
886
|
+
on_territory_created = 193,
|
|
887
|
+
on_territory_destroyed = 194,
|
|
888
|
+
on_tick = 195,
|
|
889
|
+
on_tower_mined_plant = 196,
|
|
890
|
+
on_tower_planted_seed = 197,
|
|
891
|
+
on_tower_pre_mined_plant = 198,
|
|
892
|
+
on_train_changed_state = 199,
|
|
893
|
+
on_train_created = 200,
|
|
894
|
+
on_train_schedule_changed = 201,
|
|
895
|
+
on_trigger_created_entity = 202,
|
|
896
|
+
on_trigger_fired_artillery = 203,
|
|
897
|
+
on_udp_packet_received = 204,
|
|
898
|
+
on_undo_applied = 205,
|
|
899
|
+
on_unit_added_to_group = 206,
|
|
900
|
+
on_unit_group_created = 207,
|
|
901
|
+
on_unit_group_finished_gathering = 208,
|
|
902
|
+
on_unit_removed_from_group = 209,
|
|
903
|
+
on_worker_robot_expired = 210,
|
|
904
|
+
script_raised_built = 211,
|
|
905
|
+
script_raised_destroy = 212,
|
|
906
|
+
script_raised_destroy_segmented_unit = 213,
|
|
907
|
+
script_raised_revive = 214,
|
|
908
|
+
script_raised_set_tiles = 215,
|
|
909
|
+
script_raised_teleported = 216
|
|
905
910
|
}
|
|
906
911
|
enum flow_precision_index {
|
|
907
912
|
fifty_hours = 5,
|
|
@@ -1277,6 +1282,9 @@ enum inventory {
|
|
|
1277
1282
|
car_trunk = 39,
|
|
1278
1283
|
cargo_landing_pad_main = 53,
|
|
1279
1284
|
cargo_landing_pad_trash = 54,
|
|
1285
|
+
/**
|
|
1286
|
+
* Inventory of cargo pod.
|
|
1287
|
+
*/
|
|
1280
1288
|
cargo_unit = 38,
|
|
1281
1289
|
cargo_wagon = 42,
|
|
1282
1290
|
character_ammo = 10,
|