factorio-types 1.2.0 → 1.2.1
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/README.md +6 -0
- package/dist/classes.d.ts +2348 -3649
- package/dist/concepts.d.ts +2776 -3283
- package/dist/defines.d.ts +285 -285
- package/dist/events.d.ts +233 -253
- package/dist/global.d.ts +8 -8
- package/dist/prototypes.d.ts +866 -850
- package/dist/types.d.ts +1073 -991
- package/package.json +2 -2
- package/src/core.d.ts +40 -1
package/dist/defines.d.ts
CHANGED
|
@@ -2,20 +2,20 @@
|
|
|
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 1.1.
|
|
6
|
-
// API version
|
|
5
|
+
// Factorio version 1.1.108
|
|
6
|
+
// API version 5
|
|
7
7
|
|
|
8
8
|
declare namespace defines {
|
|
9
9
|
enum alert_type {
|
|
10
|
-
custom =
|
|
11
|
-
entity_destroyed =
|
|
12
|
-
entity_under_attack =
|
|
10
|
+
custom = 0,
|
|
11
|
+
entity_destroyed = 1,
|
|
12
|
+
entity_under_attack = 2,
|
|
13
13
|
no_material_for_construction = 3,
|
|
14
|
-
no_storage =
|
|
15
|
-
not_enough_construction_robots =
|
|
16
|
-
not_enough_repair_packs =
|
|
17
|
-
train_out_of_fuel =
|
|
18
|
-
turret_fire =
|
|
14
|
+
no_storage = 4,
|
|
15
|
+
not_enough_construction_robots = 5,
|
|
16
|
+
not_enough_repair_packs = 6,
|
|
17
|
+
train_out_of_fuel = 7,
|
|
18
|
+
turret_fire = 8,
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
21
|
* AI command exit status. See {@link LuaEntity::set_command | runtime:LuaEntity::set_command}
|
|
@@ -175,80 +175,6 @@ declare namespace defines {
|
|
|
175
175
|
pulse = 0,
|
|
176
176
|
}
|
|
177
177
|
}
|
|
178
|
-
enum type {
|
|
179
|
-
/**
|
|
180
|
-
* {@link LuaAccumulatorControlBehavior | runtime:LuaAccumulatorControlBehavior}
|
|
181
|
-
*/
|
|
182
|
-
accumulator = 12,
|
|
183
|
-
/**
|
|
184
|
-
* {@link LuaArithmeticCombinatorControlBehavior | runtime:LuaArithmeticCombinatorControlBehavior}
|
|
185
|
-
*/
|
|
186
|
-
arithmetic_combinator = 9,
|
|
187
|
-
/**
|
|
188
|
-
* {@link LuaConstantCombinatorControlBehavior | runtime:LuaConstantCombinatorControlBehavior}
|
|
189
|
-
*/
|
|
190
|
-
constant_combinator = 10,
|
|
191
|
-
/**
|
|
192
|
-
* {@link LuaContainerControlBehavior | runtime:LuaContainerControlBehavior}
|
|
193
|
-
*/
|
|
194
|
-
container = 0,
|
|
195
|
-
/**
|
|
196
|
-
* {@link LuaDeciderCombinatorControlBehavior | runtime:LuaDeciderCombinatorControlBehavior}
|
|
197
|
-
*/
|
|
198
|
-
decider_combinator = 8,
|
|
199
|
-
/**
|
|
200
|
-
* {@link LuaGenericOnOffControlBehavior | runtime:LuaGenericOnOffControlBehavior}
|
|
201
|
-
*/
|
|
202
|
-
generic_on_off = 1,
|
|
203
|
-
/**
|
|
204
|
-
* {@link LuaInserterControlBehavior | runtime:LuaInserterControlBehavior}
|
|
205
|
-
*/
|
|
206
|
-
inserter = 2,
|
|
207
|
-
/**
|
|
208
|
-
* {@link LuaLampControlBehavior | runtime:LuaLampControlBehavior}
|
|
209
|
-
*/
|
|
210
|
-
lamp = 3,
|
|
211
|
-
/**
|
|
212
|
-
* {@link LuaLogisticContainerControlBehavior | runtime:LuaLogisticContainerControlBehavior}
|
|
213
|
-
*/
|
|
214
|
-
logistic_container = 4,
|
|
215
|
-
/**
|
|
216
|
-
* {@link LuaMiningDrillControlBehavior | runtime:LuaMiningDrillControlBehavior}
|
|
217
|
-
*/
|
|
218
|
-
mining_drill = 16,
|
|
219
|
-
/**
|
|
220
|
-
* {@link LuaProgrammableSpeakerControlBehavior | runtime:LuaProgrammableSpeakerControlBehavior}
|
|
221
|
-
*/
|
|
222
|
-
programmable_speaker = 17,
|
|
223
|
-
/**
|
|
224
|
-
* {@link LuaRailChainSignalControlBehavior | runtime:LuaRailChainSignalControlBehavior}
|
|
225
|
-
*/
|
|
226
|
-
rail_chain_signal = 14,
|
|
227
|
-
/**
|
|
228
|
-
* {@link LuaRailSignalControlBehavior | runtime:LuaRailSignalControlBehavior}
|
|
229
|
-
*/
|
|
230
|
-
rail_signal = 13,
|
|
231
|
-
/**
|
|
232
|
-
* {@link LuaRoboportControlBehavior | runtime:LuaRoboportControlBehavior}
|
|
233
|
-
*/
|
|
234
|
-
roboport = 5,
|
|
235
|
-
/**
|
|
236
|
-
* {@link LuaStorageTankControlBehavior | runtime:LuaStorageTankControlBehavior}
|
|
237
|
-
*/
|
|
238
|
-
storage_tank = 6,
|
|
239
|
-
/**
|
|
240
|
-
* {@link LuaTrainStopControlBehavior | runtime:LuaTrainStopControlBehavior}
|
|
241
|
-
*/
|
|
242
|
-
train_stop = 7,
|
|
243
|
-
/**
|
|
244
|
-
* {@link LuaTransportBeltControlBehavior | runtime:LuaTransportBeltControlBehavior}
|
|
245
|
-
*/
|
|
246
|
-
transport_belt = 11,
|
|
247
|
-
/**
|
|
248
|
-
* {@link LuaWallControlBehavior | runtime:LuaWallControlBehavior}
|
|
249
|
-
*/
|
|
250
|
-
wall = 15,
|
|
251
|
-
}
|
|
252
178
|
}
|
|
253
179
|
enum controllers {
|
|
254
180
|
/**
|
|
@@ -500,190 +426,190 @@ declare namespace defines {
|
|
|
500
426
|
* See the {@link events page | runtime:events} for more info on what events contain and when they get raised.
|
|
501
427
|
*/
|
|
502
428
|
enum events {
|
|
503
|
-
on_ai_command_completed =
|
|
504
|
-
on_area_cloned =
|
|
505
|
-
on_biter_base_built =
|
|
506
|
-
on_brush_cloned =
|
|
507
|
-
on_build_base_arrived =
|
|
508
|
-
on_built_entity =
|
|
509
|
-
on_cancelled_deconstruction =
|
|
510
|
-
on_cancelled_upgrade =
|
|
511
|
-
on_character_corpse_expired =
|
|
512
|
-
on_chart_tag_added =
|
|
513
|
-
on_chart_tag_modified =
|
|
514
|
-
on_chart_tag_removed =
|
|
515
|
-
on_chunk_charted =
|
|
516
|
-
on_chunk_deleted =
|
|
517
|
-
on_chunk_generated =
|
|
518
|
-
on_combat_robot_expired =
|
|
519
|
-
on_console_chat =
|
|
520
|
-
on_console_command =
|
|
521
|
-
on_cutscene_cancelled =
|
|
522
|
-
on_cutscene_finished =
|
|
523
|
-
on_cutscene_started =
|
|
524
|
-
on_cutscene_waypoint_reached =
|
|
525
|
-
on_difficulty_settings_changed =
|
|
526
|
-
on_entity_cloned =
|
|
527
|
-
on_entity_color_changed =
|
|
528
|
-
on_entity_damaged =
|
|
529
|
-
on_entity_destroyed =
|
|
530
|
-
on_entity_died =
|
|
531
|
-
on_entity_logistic_slot_changed =
|
|
532
|
-
on_entity_renamed =
|
|
533
|
-
on_entity_settings_pasted =
|
|
534
|
-
on_entity_spawned =
|
|
535
|
-
on_equipment_inserted =
|
|
536
|
-
on_equipment_removed =
|
|
537
|
-
on_force_cease_fire_changed =
|
|
538
|
-
on_force_created =
|
|
539
|
-
on_force_friends_changed =
|
|
540
|
-
on_force_reset =
|
|
541
|
-
on_forces_merged =
|
|
542
|
-
on_forces_merging =
|
|
543
|
-
on_game_created_from_scenario =
|
|
544
|
-
on_gui_checked_state_changed =
|
|
545
|
-
on_gui_click =
|
|
546
|
-
on_gui_closed =
|
|
547
|
-
on_gui_confirmed =
|
|
548
|
-
on_gui_elem_changed =
|
|
549
|
-
on_gui_hover =
|
|
550
|
-
on_gui_leave =
|
|
551
|
-
on_gui_location_changed =
|
|
552
|
-
on_gui_opened =
|
|
553
|
-
on_gui_selected_tab_changed =
|
|
554
|
-
on_gui_selection_state_changed =
|
|
555
|
-
on_gui_switch_state_changed =
|
|
556
|
-
on_gui_text_changed =
|
|
557
|
-
on_gui_value_changed =
|
|
558
|
-
on_land_mine_armed =
|
|
559
|
-
on_lua_shortcut =
|
|
560
|
-
on_marked_for_deconstruction =
|
|
561
|
-
on_marked_for_upgrade =
|
|
562
|
-
on_market_item_purchased =
|
|
563
|
-
on_mod_item_opened =
|
|
564
|
-
on_permission_group_added =
|
|
565
|
-
on_permission_group_deleted =
|
|
566
|
-
on_permission_group_edited =
|
|
567
|
-
on_permission_string_imported =
|
|
568
|
-
on_picked_up_item =
|
|
569
|
-
on_player_alt_reverse_selected_area =
|
|
570
|
-
on_player_alt_selected_area =
|
|
571
|
-
on_player_ammo_inventory_changed =
|
|
572
|
-
on_player_armor_inventory_changed =
|
|
573
|
-
on_player_banned =
|
|
574
|
-
on_player_built_tile =
|
|
575
|
-
on_player_cancelled_crafting =
|
|
576
|
-
on_player_changed_force =
|
|
577
|
-
on_player_changed_position =
|
|
578
|
-
on_player_changed_surface =
|
|
579
|
-
on_player_cheat_mode_disabled =
|
|
580
|
-
on_player_cheat_mode_enabled =
|
|
581
|
-
on_player_clicked_gps_tag =
|
|
582
|
-
on_player_configured_blueprint =
|
|
583
|
-
on_player_configured_spider_remote =
|
|
584
|
-
on_player_crafted_item =
|
|
585
|
-
on_player_created =
|
|
586
|
-
on_player_cursor_stack_changed =
|
|
587
|
-
on_player_deconstructed_area =
|
|
588
|
-
on_player_demoted =
|
|
589
|
-
on_player_died =
|
|
590
|
-
on_player_display_resolution_changed =
|
|
591
|
-
on_player_display_scale_changed =
|
|
592
|
-
on_player_driving_changed_state =
|
|
593
|
-
on_player_dropped_item =
|
|
594
|
-
on_player_fast_transferred =
|
|
595
|
-
on_player_flushed_fluid =
|
|
596
|
-
on_player_gun_inventory_changed =
|
|
597
|
-
on_player_input_method_changed =
|
|
598
|
-
on_player_joined_game =
|
|
599
|
-
on_player_kicked =
|
|
600
|
-
on_player_left_game =
|
|
601
|
-
on_player_main_inventory_changed =
|
|
602
|
-
on_player_mined_entity =
|
|
603
|
-
on_player_mined_item =
|
|
604
|
-
on_player_mined_tile =
|
|
605
|
-
on_player_muted =
|
|
606
|
-
on_player_pipette =
|
|
607
|
-
on_player_placed_equipment =
|
|
608
|
-
on_player_promoted =
|
|
609
|
-
on_player_removed =
|
|
610
|
-
on_player_removed_equipment =
|
|
611
|
-
on_player_repaired_entity =
|
|
612
|
-
on_player_respawned =
|
|
613
|
-
on_player_reverse_selected_area =
|
|
614
|
-
on_player_rotated_entity =
|
|
615
|
-
on_player_selected_area =
|
|
616
|
-
on_player_set_quick_bar_slot =
|
|
617
|
-
on_player_setup_blueprint =
|
|
618
|
-
on_player_toggled_alt_mode =
|
|
619
|
-
on_player_toggled_map_editor =
|
|
620
|
-
on_player_trash_inventory_changed =
|
|
621
|
-
on_player_unbanned =
|
|
622
|
-
on_player_unmuted =
|
|
623
|
-
on_player_used_capsule =
|
|
624
|
-
on_player_used_spider_remote =
|
|
625
|
-
on_post_entity_died =
|
|
626
|
-
on_pre_build =
|
|
627
|
-
on_pre_chunk_deleted =
|
|
628
|
-
on_pre_entity_settings_pasted =
|
|
629
|
-
on_pre_ghost_deconstructed =
|
|
630
|
-
on_pre_ghost_upgraded =
|
|
631
|
-
on_pre_permission_group_deleted =
|
|
632
|
-
on_pre_permission_string_imported =
|
|
633
|
-
on_pre_player_crafted_item =
|
|
634
|
-
on_pre_player_died =
|
|
635
|
-
on_pre_player_left_game =
|
|
636
|
-
on_pre_player_mined_item =
|
|
637
|
-
on_pre_player_removed =
|
|
638
|
-
on_pre_player_toggled_map_editor =
|
|
429
|
+
on_ai_command_completed = 0,
|
|
430
|
+
on_area_cloned = 1,
|
|
431
|
+
on_biter_base_built = 2,
|
|
432
|
+
on_brush_cloned = 3,
|
|
433
|
+
on_build_base_arrived = 4,
|
|
434
|
+
on_built_entity = 5,
|
|
435
|
+
on_cancelled_deconstruction = 6,
|
|
436
|
+
on_cancelled_upgrade = 7,
|
|
437
|
+
on_character_corpse_expired = 8,
|
|
438
|
+
on_chart_tag_added = 9,
|
|
439
|
+
on_chart_tag_modified = 10,
|
|
440
|
+
on_chart_tag_removed = 11,
|
|
441
|
+
on_chunk_charted = 12,
|
|
442
|
+
on_chunk_deleted = 13,
|
|
443
|
+
on_chunk_generated = 14,
|
|
444
|
+
on_combat_robot_expired = 15,
|
|
445
|
+
on_console_chat = 16,
|
|
446
|
+
on_console_command = 17,
|
|
447
|
+
on_cutscene_cancelled = 18,
|
|
448
|
+
on_cutscene_finished = 19,
|
|
449
|
+
on_cutscene_started = 20,
|
|
450
|
+
on_cutscene_waypoint_reached = 21,
|
|
451
|
+
on_difficulty_settings_changed = 22,
|
|
452
|
+
on_entity_cloned = 23,
|
|
453
|
+
on_entity_color_changed = 24,
|
|
454
|
+
on_entity_damaged = 25,
|
|
455
|
+
on_entity_destroyed = 26,
|
|
456
|
+
on_entity_died = 27,
|
|
457
|
+
on_entity_logistic_slot_changed = 28,
|
|
458
|
+
on_entity_renamed = 29,
|
|
459
|
+
on_entity_settings_pasted = 30,
|
|
460
|
+
on_entity_spawned = 31,
|
|
461
|
+
on_equipment_inserted = 32,
|
|
462
|
+
on_equipment_removed = 33,
|
|
463
|
+
on_force_cease_fire_changed = 34,
|
|
464
|
+
on_force_created = 35,
|
|
465
|
+
on_force_friends_changed = 36,
|
|
466
|
+
on_force_reset = 37,
|
|
467
|
+
on_forces_merged = 38,
|
|
468
|
+
on_forces_merging = 39,
|
|
469
|
+
on_game_created_from_scenario = 40,
|
|
470
|
+
on_gui_checked_state_changed = 41,
|
|
471
|
+
on_gui_click = 42,
|
|
472
|
+
on_gui_closed = 43,
|
|
473
|
+
on_gui_confirmed = 44,
|
|
474
|
+
on_gui_elem_changed = 45,
|
|
475
|
+
on_gui_hover = 46,
|
|
476
|
+
on_gui_leave = 47,
|
|
477
|
+
on_gui_location_changed = 48,
|
|
478
|
+
on_gui_opened = 49,
|
|
479
|
+
on_gui_selected_tab_changed = 50,
|
|
480
|
+
on_gui_selection_state_changed = 51,
|
|
481
|
+
on_gui_switch_state_changed = 52,
|
|
482
|
+
on_gui_text_changed = 53,
|
|
483
|
+
on_gui_value_changed = 54,
|
|
484
|
+
on_land_mine_armed = 55,
|
|
485
|
+
on_lua_shortcut = 56,
|
|
486
|
+
on_marked_for_deconstruction = 57,
|
|
487
|
+
on_marked_for_upgrade = 58,
|
|
488
|
+
on_market_item_purchased = 59,
|
|
489
|
+
on_mod_item_opened = 60,
|
|
490
|
+
on_permission_group_added = 61,
|
|
491
|
+
on_permission_group_deleted = 62,
|
|
492
|
+
on_permission_group_edited = 63,
|
|
493
|
+
on_permission_string_imported = 64,
|
|
494
|
+
on_picked_up_item = 65,
|
|
495
|
+
on_player_alt_reverse_selected_area = 66,
|
|
496
|
+
on_player_alt_selected_area = 67,
|
|
497
|
+
on_player_ammo_inventory_changed = 68,
|
|
498
|
+
on_player_armor_inventory_changed = 69,
|
|
499
|
+
on_player_banned = 70,
|
|
500
|
+
on_player_built_tile = 71,
|
|
501
|
+
on_player_cancelled_crafting = 72,
|
|
502
|
+
on_player_changed_force = 73,
|
|
503
|
+
on_player_changed_position = 74,
|
|
504
|
+
on_player_changed_surface = 75,
|
|
505
|
+
on_player_cheat_mode_disabled = 76,
|
|
506
|
+
on_player_cheat_mode_enabled = 77,
|
|
507
|
+
on_player_clicked_gps_tag = 78,
|
|
508
|
+
on_player_configured_blueprint = 79,
|
|
509
|
+
on_player_configured_spider_remote = 80,
|
|
510
|
+
on_player_crafted_item = 81,
|
|
511
|
+
on_player_created = 82,
|
|
512
|
+
on_player_cursor_stack_changed = 83,
|
|
513
|
+
on_player_deconstructed_area = 84,
|
|
514
|
+
on_player_demoted = 85,
|
|
515
|
+
on_player_died = 86,
|
|
516
|
+
on_player_display_resolution_changed = 87,
|
|
517
|
+
on_player_display_scale_changed = 88,
|
|
518
|
+
on_player_driving_changed_state = 89,
|
|
519
|
+
on_player_dropped_item = 90,
|
|
520
|
+
on_player_fast_transferred = 91,
|
|
521
|
+
on_player_flushed_fluid = 92,
|
|
522
|
+
on_player_gun_inventory_changed = 93,
|
|
523
|
+
on_player_input_method_changed = 94,
|
|
524
|
+
on_player_joined_game = 95,
|
|
525
|
+
on_player_kicked = 96,
|
|
526
|
+
on_player_left_game = 97,
|
|
527
|
+
on_player_main_inventory_changed = 98,
|
|
528
|
+
on_player_mined_entity = 99,
|
|
529
|
+
on_player_mined_item = 100,
|
|
530
|
+
on_player_mined_tile = 101,
|
|
531
|
+
on_player_muted = 102,
|
|
532
|
+
on_player_pipette = 103,
|
|
533
|
+
on_player_placed_equipment = 104,
|
|
534
|
+
on_player_promoted = 105,
|
|
535
|
+
on_player_removed = 106,
|
|
536
|
+
on_player_removed_equipment = 107,
|
|
537
|
+
on_player_repaired_entity = 108,
|
|
538
|
+
on_player_respawned = 109,
|
|
539
|
+
on_player_reverse_selected_area = 110,
|
|
540
|
+
on_player_rotated_entity = 111,
|
|
541
|
+
on_player_selected_area = 112,
|
|
542
|
+
on_player_set_quick_bar_slot = 113,
|
|
543
|
+
on_player_setup_blueprint = 114,
|
|
544
|
+
on_player_toggled_alt_mode = 115,
|
|
545
|
+
on_player_toggled_map_editor = 116,
|
|
546
|
+
on_player_trash_inventory_changed = 117,
|
|
547
|
+
on_player_unbanned = 118,
|
|
548
|
+
on_player_unmuted = 119,
|
|
549
|
+
on_player_used_capsule = 120,
|
|
550
|
+
on_player_used_spider_remote = 121,
|
|
551
|
+
on_post_entity_died = 122,
|
|
552
|
+
on_pre_build = 123,
|
|
553
|
+
on_pre_chunk_deleted = 124,
|
|
554
|
+
on_pre_entity_settings_pasted = 125,
|
|
555
|
+
on_pre_ghost_deconstructed = 126,
|
|
556
|
+
on_pre_ghost_upgraded = 127,
|
|
557
|
+
on_pre_permission_group_deleted = 128,
|
|
558
|
+
on_pre_permission_string_imported = 129,
|
|
559
|
+
on_pre_player_crafted_item = 130,
|
|
560
|
+
on_pre_player_died = 131,
|
|
561
|
+
on_pre_player_left_game = 132,
|
|
562
|
+
on_pre_player_mined_item = 133,
|
|
563
|
+
on_pre_player_removed = 134,
|
|
564
|
+
on_pre_player_toggled_map_editor = 135,
|
|
639
565
|
on_pre_robot_exploded_cliff = 136,
|
|
640
|
-
on_pre_script_inventory_resized =
|
|
641
|
-
on_pre_surface_cleared =
|
|
642
|
-
on_pre_surface_deleted =
|
|
643
|
-
on_research_cancelled =
|
|
644
|
-
on_research_finished =
|
|
645
|
-
on_research_reversed =
|
|
646
|
-
on_research_started =
|
|
647
|
-
on_resource_depleted =
|
|
648
|
-
on_robot_built_entity =
|
|
649
|
-
on_robot_built_tile =
|
|
650
|
-
on_robot_exploded_cliff =
|
|
651
|
-
on_robot_mined =
|
|
652
|
-
on_robot_mined_entity =
|
|
653
|
-
on_robot_mined_tile =
|
|
654
|
-
on_robot_pre_mined =
|
|
655
|
-
on_rocket_launch_ordered =
|
|
656
|
-
on_rocket_launched =
|
|
657
|
-
on_runtime_mod_setting_changed =
|
|
658
|
-
on_script_inventory_resized =
|
|
659
|
-
on_script_path_request_finished =
|
|
660
|
-
on_script_trigger_effect =
|
|
661
|
-
on_sector_scanned =
|
|
662
|
-
on_selected_entity_changed =
|
|
663
|
-
on_spider_command_completed =
|
|
664
|
-
on_string_translated =
|
|
665
|
-
on_surface_cleared =
|
|
666
|
-
on_surface_created =
|
|
667
|
-
on_surface_deleted =
|
|
668
|
-
on_surface_imported =
|
|
669
|
-
on_surface_renamed =
|
|
670
|
-
on_technology_effects_reset =
|
|
671
|
-
on_tick =
|
|
672
|
-
on_train_changed_state =
|
|
673
|
-
on_train_created =
|
|
674
|
-
on_train_schedule_changed =
|
|
675
|
-
on_trigger_created_entity =
|
|
676
|
-
on_trigger_fired_artillery =
|
|
677
|
-
on_unit_added_to_group =
|
|
678
|
-
on_unit_group_created =
|
|
679
|
-
on_unit_group_finished_gathering =
|
|
680
|
-
on_unit_removed_from_group =
|
|
681
|
-
on_worker_robot_expired =
|
|
682
|
-
script_raised_built =
|
|
683
|
-
script_raised_destroy =
|
|
684
|
-
script_raised_revive =
|
|
685
|
-
script_raised_set_tiles =
|
|
686
|
-
script_raised_teleported =
|
|
566
|
+
on_pre_script_inventory_resized = 137,
|
|
567
|
+
on_pre_surface_cleared = 138,
|
|
568
|
+
on_pre_surface_deleted = 139,
|
|
569
|
+
on_research_cancelled = 140,
|
|
570
|
+
on_research_finished = 141,
|
|
571
|
+
on_research_reversed = 142,
|
|
572
|
+
on_research_started = 143,
|
|
573
|
+
on_resource_depleted = 144,
|
|
574
|
+
on_robot_built_entity = 145,
|
|
575
|
+
on_robot_built_tile = 146,
|
|
576
|
+
on_robot_exploded_cliff = 147,
|
|
577
|
+
on_robot_mined = 148,
|
|
578
|
+
on_robot_mined_entity = 149,
|
|
579
|
+
on_robot_mined_tile = 150,
|
|
580
|
+
on_robot_pre_mined = 151,
|
|
581
|
+
on_rocket_launch_ordered = 152,
|
|
582
|
+
on_rocket_launched = 153,
|
|
583
|
+
on_runtime_mod_setting_changed = 154,
|
|
584
|
+
on_script_inventory_resized = 155,
|
|
585
|
+
on_script_path_request_finished = 156,
|
|
586
|
+
on_script_trigger_effect = 157,
|
|
587
|
+
on_sector_scanned = 158,
|
|
588
|
+
on_selected_entity_changed = 159,
|
|
589
|
+
on_spider_command_completed = 160,
|
|
590
|
+
on_string_translated = 161,
|
|
591
|
+
on_surface_cleared = 162,
|
|
592
|
+
on_surface_created = 163,
|
|
593
|
+
on_surface_deleted = 164,
|
|
594
|
+
on_surface_imported = 165,
|
|
595
|
+
on_surface_renamed = 166,
|
|
596
|
+
on_technology_effects_reset = 167,
|
|
597
|
+
on_tick = 168,
|
|
598
|
+
on_train_changed_state = 169,
|
|
599
|
+
on_train_created = 170,
|
|
600
|
+
on_train_schedule_changed = 171,
|
|
601
|
+
on_trigger_created_entity = 172,
|
|
602
|
+
on_trigger_fired_artillery = 173,
|
|
603
|
+
on_unit_added_to_group = 174,
|
|
604
|
+
on_unit_group_created = 175,
|
|
605
|
+
on_unit_group_finished_gathering = 176,
|
|
606
|
+
on_unit_removed_from_group = 177,
|
|
607
|
+
on_worker_robot_expired = 178,
|
|
608
|
+
script_raised_built = 179,
|
|
609
|
+
script_raised_destroy = 180,
|
|
610
|
+
script_raised_revive = 181,
|
|
611
|
+
script_raised_set_tiles = 182,
|
|
612
|
+
script_raised_teleported = 183,
|
|
687
613
|
}
|
|
688
614
|
enum flow_precision_index {
|
|
689
615
|
fifty_hours = 5,
|
|
@@ -719,26 +645,26 @@ declare namespace defines {
|
|
|
719
645
|
wander_in_group = 6,
|
|
720
646
|
}
|
|
721
647
|
enum gui_type {
|
|
722
|
-
achievement =
|
|
723
|
-
blueprint_library =
|
|
724
|
-
bonus =
|
|
648
|
+
achievement = 0,
|
|
649
|
+
blueprint_library = 1,
|
|
650
|
+
bonus = 2,
|
|
725
651
|
controller = 3,
|
|
726
|
-
custom =
|
|
727
|
-
entity =
|
|
728
|
-
equipment =
|
|
729
|
-
item =
|
|
730
|
-
logistic =
|
|
731
|
-
none =
|
|
732
|
-
other_player =
|
|
733
|
-
permissions =
|
|
734
|
-
player_management =
|
|
735
|
-
production =
|
|
736
|
-
research =
|
|
737
|
-
script_inventory =
|
|
652
|
+
custom = 4,
|
|
653
|
+
entity = 5,
|
|
654
|
+
equipment = 6,
|
|
655
|
+
item = 7,
|
|
656
|
+
logistic = 8,
|
|
657
|
+
none = 9,
|
|
658
|
+
other_player = 10,
|
|
659
|
+
permissions = 11,
|
|
660
|
+
player_management = 12,
|
|
661
|
+
production = 13,
|
|
662
|
+
research = 14,
|
|
663
|
+
script_inventory = 15,
|
|
738
664
|
server_management = 16,
|
|
739
|
-
tile =
|
|
740
|
-
trains =
|
|
741
|
-
tutorials =
|
|
665
|
+
tile = 17,
|
|
666
|
+
trains = 18,
|
|
667
|
+
tutorials = 19,
|
|
742
668
|
}
|
|
743
669
|
enum input_action {
|
|
744
670
|
activate_copy = 0,
|
|
@@ -1296,6 +1222,80 @@ declare namespace defines {
|
|
|
1296
1222
|
secondary_right_line = 5,
|
|
1297
1223
|
secondary_right_split_line = 9,
|
|
1298
1224
|
}
|
|
1225
|
+
enum type {
|
|
1226
|
+
/**
|
|
1227
|
+
* {@link LuaAccumulatorControlBehavior | runtime:LuaAccumulatorControlBehavior}
|
|
1228
|
+
*/
|
|
1229
|
+
accumulator = 12,
|
|
1230
|
+
/**
|
|
1231
|
+
* {@link LuaArithmeticCombinatorControlBehavior | runtime:LuaArithmeticCombinatorControlBehavior}
|
|
1232
|
+
*/
|
|
1233
|
+
arithmetic_combinator = 9,
|
|
1234
|
+
/**
|
|
1235
|
+
* {@link LuaConstantCombinatorControlBehavior | runtime:LuaConstantCombinatorControlBehavior}
|
|
1236
|
+
*/
|
|
1237
|
+
constant_combinator = 10,
|
|
1238
|
+
/**
|
|
1239
|
+
* {@link LuaContainerControlBehavior | runtime:LuaContainerControlBehavior}
|
|
1240
|
+
*/
|
|
1241
|
+
container = 0,
|
|
1242
|
+
/**
|
|
1243
|
+
* {@link LuaDeciderCombinatorControlBehavior | runtime:LuaDeciderCombinatorControlBehavior}
|
|
1244
|
+
*/
|
|
1245
|
+
decider_combinator = 8,
|
|
1246
|
+
/**
|
|
1247
|
+
* {@link LuaGenericOnOffControlBehavior | runtime:LuaGenericOnOffControlBehavior}
|
|
1248
|
+
*/
|
|
1249
|
+
generic_on_off = 1,
|
|
1250
|
+
/**
|
|
1251
|
+
* {@link LuaInserterControlBehavior | runtime:LuaInserterControlBehavior}
|
|
1252
|
+
*/
|
|
1253
|
+
inserter = 2,
|
|
1254
|
+
/**
|
|
1255
|
+
* {@link LuaLampControlBehavior | runtime:LuaLampControlBehavior}
|
|
1256
|
+
*/
|
|
1257
|
+
lamp = 3,
|
|
1258
|
+
/**
|
|
1259
|
+
* {@link LuaLogisticContainerControlBehavior | runtime:LuaLogisticContainerControlBehavior}
|
|
1260
|
+
*/
|
|
1261
|
+
logistic_container = 4,
|
|
1262
|
+
/**
|
|
1263
|
+
* {@link LuaMiningDrillControlBehavior | runtime:LuaMiningDrillControlBehavior}
|
|
1264
|
+
*/
|
|
1265
|
+
mining_drill = 16,
|
|
1266
|
+
/**
|
|
1267
|
+
* {@link LuaProgrammableSpeakerControlBehavior | runtime:LuaProgrammableSpeakerControlBehavior}
|
|
1268
|
+
*/
|
|
1269
|
+
programmable_speaker = 17,
|
|
1270
|
+
/**
|
|
1271
|
+
* {@link LuaRailChainSignalControlBehavior | runtime:LuaRailChainSignalControlBehavior}
|
|
1272
|
+
*/
|
|
1273
|
+
rail_chain_signal = 14,
|
|
1274
|
+
/**
|
|
1275
|
+
* {@link LuaRailSignalControlBehavior | runtime:LuaRailSignalControlBehavior}
|
|
1276
|
+
*/
|
|
1277
|
+
rail_signal = 13,
|
|
1278
|
+
/**
|
|
1279
|
+
* {@link LuaRoboportControlBehavior | runtime:LuaRoboportControlBehavior}
|
|
1280
|
+
*/
|
|
1281
|
+
roboport = 5,
|
|
1282
|
+
/**
|
|
1283
|
+
* {@link LuaStorageTankControlBehavior | runtime:LuaStorageTankControlBehavior}
|
|
1284
|
+
*/
|
|
1285
|
+
storage_tank = 6,
|
|
1286
|
+
/**
|
|
1287
|
+
* {@link LuaTrainStopControlBehavior | runtime:LuaTrainStopControlBehavior}
|
|
1288
|
+
*/
|
|
1289
|
+
train_stop = 7,
|
|
1290
|
+
/**
|
|
1291
|
+
* {@link LuaTransportBeltControlBehavior | runtime:LuaTransportBeltControlBehavior}
|
|
1292
|
+
*/
|
|
1293
|
+
transport_belt = 11,
|
|
1294
|
+
/**
|
|
1295
|
+
* {@link LuaWallControlBehavior | runtime:LuaWallControlBehavior}
|
|
1296
|
+
*/
|
|
1297
|
+
wall = 15,
|
|
1298
|
+
}
|
|
1299
1299
|
enum wire_connection_id {
|
|
1300
1300
|
electric_pole = 0,
|
|
1301
1301
|
power_switch_left = 1,
|