factorio-types 1.2.49 → 1.2.51

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/events.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.66
5
+ // Factorio version 2.0.69
6
6
  // API version 6
7
7
 
8
8
  declare namespace runtime {
@@ -32,6 +32,10 @@ interface CustomInputEvent {
32
32
  * The GUI element under the cursor when the custom input was activated.
33
33
  */
34
34
  element?: LuaGuiElement;
35
+ /**
36
+ * If the cursor was over any GUI when the custom input was activated.
37
+ */
38
+ in_gui: boolean;
35
39
  /**
36
40
  * The prototype name of the custom input that was activated.
37
41
  */
@@ -43,7 +47,7 @@ interface CustomInputEvent {
43
47
  /**
44
48
  * The player that activated the custom input.
45
49
  */
46
- player_index: uint;
50
+ player_index: uint32;
47
51
  /**
48
52
  * Information about the prototype that is selected when the custom input is used. Needs to be enabled on the custom input's prototype. `nil` if none is selected.
49
53
  */
@@ -51,7 +55,7 @@ interface CustomInputEvent {
51
55
  /**
52
56
  * Tick the event was generated.
53
57
  */
54
- tick: uint;
58
+ tick: uint32;
55
59
  }
56
60
  /**
57
61
  * Called when an achievement is gained.
@@ -65,11 +69,11 @@ interface on_achievement_gained {
65
69
  /**
66
70
  * The player who gained the achievement.
67
71
  */
68
- player_index: uint;
72
+ player_index: uint32;
69
73
  /**
70
74
  * Tick the event was generated.
71
75
  */
72
- tick: uint;
76
+ tick: uint32;
73
77
  }
74
78
  /**
75
79
  * Called when a unit/group completes a command.
@@ -83,11 +87,11 @@ interface on_ai_command_completed {
83
87
  /**
84
88
  * Tick the event was generated.
85
89
  */
86
- tick: uint;
90
+ tick: uint32;
87
91
  /**
88
92
  * unit_number/group_number of the unit/group which just completed a command.
89
93
  */
90
- unit_number: uint;
94
+ unit_number: uint32;
91
95
  /**
92
96
  * Was this command generated by a distraction.
93
97
  */
@@ -114,7 +118,7 @@ interface on_area_cloned {
114
118
  /**
115
119
  * Tick the event was generated.
116
120
  */
117
- tick: uint;
121
+ tick: uint32;
118
122
  }
119
123
  /**
120
124
  * Called when a biter migration builds a base.
@@ -133,7 +137,7 @@ interface on_biter_base_built {
133
137
  /**
134
138
  * Tick the event was generated.
135
139
  */
136
- tick: uint;
140
+ tick: uint32;
137
141
  }
138
142
  /**
139
143
  * Called when a set of positions on the map is cloned.
@@ -157,7 +161,7 @@ interface on_brush_cloned {
157
161
  /**
158
162
  * Tick the event was generated.
159
163
  */
160
- tick: uint;
164
+ tick: uint32;
161
165
  }
162
166
  /**
163
167
  * Called when a {@link defines.command.build_base | runtime:defines.command.build_base} command reaches its destination, and before building starts.
@@ -174,7 +178,7 @@ interface on_build_base_arrived {
174
178
  /**
175
179
  * Tick the event was generated.
176
180
  */
177
- tick: uint;
181
+ tick: uint32;
178
182
  /**
179
183
  * The unit the command was assigned to.
180
184
  */
@@ -199,7 +203,7 @@ interface on_built_entity {
199
203
  /**
200
204
  * The player who did the building.
201
205
  */
202
- player_index: uint;
206
+ player_index: uint32;
203
207
  /**
204
208
  * The tags associated with this entity if any.
205
209
  */
@@ -207,7 +211,7 @@ interface on_built_entity {
207
211
  /**
208
212
  * Tick the event was generated.
209
213
  */
210
- tick: uint;
214
+ tick: uint32;
211
215
  }
212
216
  /**
213
217
  * Called when the deconstruction of an entity is canceled.
@@ -218,11 +222,11 @@ interface on_cancelled_deconstruction {
218
222
  * Identifier of the event
219
223
  */
220
224
  name: defines.events;
221
- player_index?: uint;
225
+ player_index?: uint32;
222
226
  /**
223
227
  * Tick the event was generated.
224
228
  */
225
- tick: uint;
229
+ tick: uint32;
226
230
  }
227
231
  /**
228
232
  * Called when the upgrade of an entity is canceled.
@@ -233,13 +237,13 @@ interface on_cancelled_upgrade {
233
237
  * Identifier of the event
234
238
  */
235
239
  name: defines.events;
236
- player_index?: uint;
240
+ player_index?: uint32;
237
241
  quality: LuaQualityPrototype;
238
242
  target: LuaEntityPrototype;
239
243
  /**
240
244
  * Tick the event was generated.
241
245
  */
242
- tick: uint;
246
+ tick: uint32;
243
247
  }
244
248
  /**
245
249
  * Called after a cargo pod has delivered its cargo.
@@ -257,7 +261,7 @@ interface on_cargo_pod_delivered_cargo {
257
261
  /**
258
262
  * Tick the event was generated.
259
263
  */
260
- tick: uint;
264
+ tick: uint32;
261
265
  }
262
266
  /**
263
267
  * Called when a cargo pod departs a surface.
@@ -275,11 +279,11 @@ interface on_cargo_pod_finished_ascending {
275
279
  /**
276
280
  * The player that is riding the cargo pod, if any.
277
281
  */
278
- player_index?: uint;
282
+ player_index?: uint32;
279
283
  /**
280
284
  * Tick the event was generated.
281
285
  */
282
- tick: uint;
286
+ tick: uint32;
283
287
  }
284
288
  /**
285
289
  * Called when a cargo pods lands on a surface, either at a station or on the ground.
@@ -297,11 +301,29 @@ interface on_cargo_pod_finished_descending {
297
301
  /**
298
302
  * The player that is riding the cargo pod, if any.
299
303
  */
300
- player_index?: uint;
304
+ player_index?: uint32;
305
+ /**
306
+ * Tick the event was generated.
307
+ */
308
+ tick: uint32;
309
+ }
310
+ /**
311
+ * Called when a cargo pod departs from a space platform hub or by another method not attached to a rocket.
312
+ */
313
+ interface on_cargo_pod_started_ascending {
314
+ cargo_pod: LuaEntity;
315
+ /**
316
+ * Identifier of the event
317
+ */
318
+ name: defines.events;
319
+ /**
320
+ * The player that is riding the cargo pod, if any.
321
+ */
322
+ player_index?: uint32;
301
323
  /**
302
324
  * Tick the event was generated.
303
325
  */
304
- tick: uint;
326
+ tick: uint32;
305
327
  }
306
328
  /**
307
329
  * Called when a character corpse expires due to timeout or all of the items being removed from it.
@@ -320,7 +342,7 @@ interface on_character_corpse_expired {
320
342
  /**
321
343
  * Tick the event was generated.
322
344
  */
323
- tick: uint;
345
+ tick: uint32;
324
346
  }
325
347
  /**
326
348
  * Called when a chart tag is created.
@@ -331,15 +353,15 @@ interface on_chart_tag_added {
331
353
  * Identifier of the event
332
354
  */
333
355
  name: defines.events;
334
- player_index?: uint;
356
+ player_index?: uint32;
335
357
  tag: LuaCustomChartTag;
336
358
  /**
337
359
  * Tick the event was generated.
338
360
  */
339
- tick: uint;
361
+ tick: uint32;
340
362
  }
341
363
  /**
342
- * Called when a chart tag is modified by a player.
364
+ * Called when a chart tag is modified by a player or by script.
343
365
  */
344
366
  interface on_chart_tag_modified {
345
367
  force: LuaForce;
@@ -348,16 +370,16 @@ interface on_chart_tag_modified {
348
370
  */
349
371
  name: defines.events;
350
372
  old_icon: SignalID;
351
- old_player_index?: uint;
373
+ old_player_index?: uint32;
352
374
  old_position: MapPosition;
353
375
  old_surface: LuaSurface;
354
376
  old_text: string;
355
- player_index?: uint;
377
+ player_index?: uint32;
356
378
  tag: LuaCustomChartTag;
357
379
  /**
358
380
  * Tick the event was generated.
359
381
  */
360
- tick: uint;
382
+ tick: uint32;
361
383
  }
362
384
  /**
363
385
  * Called just before a chart tag is deleted.
@@ -368,12 +390,12 @@ interface on_chart_tag_removed {
368
390
  * Identifier of the event
369
391
  */
370
392
  name: defines.events;
371
- player_index?: uint;
393
+ player_index?: uint32;
372
394
  tag: LuaCustomChartTag;
373
395
  /**
374
396
  * Tick the event was generated.
375
397
  */
376
- tick: uint;
398
+ tick: uint32;
377
399
  }
378
400
  /**
379
401
  * Called when a chunk is charted or re-charted.
@@ -389,11 +411,11 @@ interface on_chunk_charted {
389
411
  */
390
412
  name: defines.events;
391
413
  position: ChunkPosition;
392
- surface_index: uint;
414
+ surface_index: uint32;
393
415
  /**
394
416
  * Tick the event was generated.
395
417
  */
396
- tick: uint;
418
+ tick: uint32;
397
419
  }
398
420
  /**
399
421
  * Called when one or more chunks are deleted using {@link LuaSurface::delete_chunk | runtime:LuaSurface::delete_chunk}.
@@ -407,11 +429,11 @@ interface on_chunk_deleted {
407
429
  * The chunks deleted.
408
430
  */
409
431
  positions: ChunkPosition[];
410
- surface_index: uint;
432
+ surface_index: uint32;
411
433
  /**
412
434
  * Tick the event was generated.
413
435
  */
414
- tick: uint;
436
+ tick: uint32;
415
437
  }
416
438
  /**
417
439
  * Called when a chunk is generated.
@@ -436,7 +458,7 @@ interface on_chunk_generated {
436
458
  /**
437
459
  * Tick the event was generated.
438
460
  */
439
- tick: uint;
461
+ tick: uint32;
440
462
  }
441
463
  /**
442
464
  * Called when a combat robot expires through a lack of energy, or timeout.
@@ -454,7 +476,7 @@ interface on_combat_robot_expired {
454
476
  /**
455
477
  * Tick the event was generated.
456
478
  */
457
- tick: uint;
479
+ tick: uint32;
458
480
  }
459
481
  /**
460
482
  * Called when a message is sent to the in-game console, either by a player or through the server interface.
@@ -473,11 +495,11 @@ interface on_console_chat {
473
495
  /**
474
496
  * The player doing the chatting, if any.
475
497
  */
476
- player_index?: uint;
498
+ player_index?: uint32;
477
499
  /**
478
500
  * Tick the event was generated.
479
501
  */
480
- tick: uint;
502
+ tick: uint32;
481
503
  }
482
504
  /**
483
505
  * Called when someone enters a command-like message regardless of it being a valid command.
@@ -498,11 +520,11 @@ interface on_console_command {
498
520
  /**
499
521
  * The player if any.
500
522
  */
501
- player_index?: uint;
523
+ player_index?: uint32;
502
524
  /**
503
525
  * Tick the event was generated.
504
526
  */
505
- tick: uint;
527
+ tick: uint32;
506
528
  }
507
529
  /**
508
530
  * Called when a cutscene is cancelled by the player or by script.
@@ -515,11 +537,11 @@ interface on_cutscene_cancelled {
515
537
  /**
516
538
  * The player the cutscene was shown to.
517
539
  */
518
- player_index: uint;
540
+ player_index: uint32;
519
541
  /**
520
542
  * Tick the event was generated.
521
543
  */
522
- tick: uint;
544
+ tick: uint32;
523
545
  }
524
546
  /**
525
547
  * Called when a cutscene finishes naturally (was not cancelled).
@@ -532,11 +554,11 @@ interface on_cutscene_finished {
532
554
  /**
533
555
  * The player the cutscene was shown to.
534
556
  */
535
- player_index: uint;
557
+ player_index: uint32;
536
558
  /**
537
559
  * Tick the event was generated.
538
560
  */
539
- tick: uint;
561
+ tick: uint32;
540
562
  }
541
563
  /**
542
564
  * Called when a cutscene starts.
@@ -549,11 +571,11 @@ interface on_cutscene_started {
549
571
  /**
550
572
  * The player the cutscene is being shown to.
551
573
  */
552
- player_index: uint;
574
+ player_index: uint32;
553
575
  /**
554
576
  * Tick the event was generated.
555
577
  */
556
- tick: uint;
578
+ tick: uint32;
557
579
  }
558
580
  /**
559
581
  * Called when a cutscene is playing, each time it reaches a waypoint in that cutscene.
@@ -568,15 +590,15 @@ interface on_cutscene_waypoint_reached {
568
590
  /**
569
591
  * The player index of the player viewing the cutscene.
570
592
  */
571
- player_index: uint;
593
+ player_index: uint32;
572
594
  /**
573
595
  * Tick the event was generated.
574
596
  */
575
- tick: uint;
597
+ tick: uint32;
576
598
  /**
577
599
  * The index of the waypoint we just completed.
578
600
  */
579
- waypoint_index: uint;
601
+ waypoint_index: uint32;
580
602
  }
581
603
  /**
582
604
  * Called when an entity is cloned. The filter applies to the source entity.
@@ -591,7 +613,7 @@ interface on_entity_cloned {
591
613
  /**
592
614
  * Tick the event was generated.
593
615
  */
594
- tick: uint;
616
+ tick: uint32;
595
617
  }
596
618
  /**
597
619
  * Called after an entity has been recolored either by the player or through script.
@@ -610,7 +632,7 @@ interface on_entity_color_changed {
610
632
  /**
611
633
  * Tick the event was generated.
612
634
  */
613
- tick: uint;
635
+ tick: uint32;
614
636
  }
615
637
  /**
616
638
  * Called when an entity is damaged. This is not called when an entities health is set directly by another mod.
@@ -649,7 +671,7 @@ interface on_entity_damaged {
649
671
  /**
650
672
  * Tick the event was generated.
651
673
  */
652
- tick: uint;
674
+ tick: uint32;
653
675
  }
654
676
  /**
655
677
  * Called when an entity dies.
@@ -682,7 +704,7 @@ interface on_entity_died {
682
704
  /**
683
705
  * Tick the event was generated.
684
706
  */
685
- tick: uint;
707
+ tick: uint32;
686
708
  }
687
709
  /**
688
710
  * Called when one of an entity's logistic slots changes.
@@ -699,7 +721,7 @@ interface on_entity_logistic_slot_changed {
699
721
  /**
700
722
  * The player who changed the slot, or `nil` if changed by script.
701
723
  */
702
- player_index?: uint;
724
+ player_index?: uint32;
703
725
  /**
704
726
  * The section changed.
705
727
  */
@@ -707,11 +729,11 @@ interface on_entity_logistic_slot_changed {
707
729
  /**
708
730
  * The slot index that was changed.
709
731
  */
710
- slot_index: uint;
732
+ slot_index: uint32;
711
733
  /**
712
734
  * Tick the event was generated.
713
735
  */
714
- tick: uint;
736
+ tick: uint32;
715
737
  }
716
738
  /**
717
739
  * Called after an entity has been renamed either by the player or through script.
@@ -727,11 +749,11 @@ interface on_entity_renamed {
727
749
  /**
728
750
  * If by_script is true this will not be included.
729
751
  */
730
- player_index?: uint;
752
+ player_index?: uint32;
731
753
  /**
732
754
  * Tick the event was generated.
733
755
  */
734
- tick: uint;
756
+ tick: uint32;
735
757
  }
736
758
  /**
737
759
  * Called after entity copy-paste is done.
@@ -745,7 +767,7 @@ interface on_entity_settings_pasted {
745
767
  * Identifier of the event
746
768
  */
747
769
  name: defines.events;
748
- player_index: uint;
770
+ player_index: uint32;
749
771
  /**
750
772
  * The source entity settings were copied from.
751
773
  */
@@ -753,7 +775,7 @@ interface on_entity_settings_pasted {
753
775
  /**
754
776
  * Tick the event was generated.
755
777
  */
756
- tick: uint;
778
+ tick: uint32;
757
779
  }
758
780
  /**
759
781
  * Called when an entity is spawned by a EnemySpawner
@@ -768,7 +790,7 @@ interface on_entity_spawned {
768
790
  /**
769
791
  * Tick the event was generated.
770
792
  */
771
- tick: uint;
793
+ tick: uint32;
772
794
  }
773
795
  /**
774
796
  * Called after equipment is inserted into an equipment grid.
@@ -789,7 +811,7 @@ interface on_equipment_inserted {
789
811
  /**
790
812
  * Tick the event was generated.
791
813
  */
792
- tick: uint;
814
+ tick: uint32;
793
815
  }
794
816
  /**
795
817
  * Called after equipment is removed from an equipment grid.
@@ -798,7 +820,7 @@ interface on_equipment_removed {
798
820
  /**
799
821
  * The count of equipment removed.
800
822
  */
801
- count: uint;
823
+ count: uint32;
802
824
  /**
803
825
  * The equipment removed.
804
826
  */
@@ -818,7 +840,7 @@ interface on_equipment_removed {
818
840
  /**
819
841
  * Tick the event was generated.
820
842
  */
821
- tick: uint;
843
+ tick: uint32;
822
844
  }
823
845
  /**
824
846
  * Called when the a forces cease fire values change.
@@ -843,7 +865,7 @@ interface on_force_cease_fire_changed {
843
865
  /**
844
866
  * Tick the event was generated.
845
867
  */
846
- tick: uint;
868
+ tick: uint32;
847
869
  }
848
870
  /**
849
871
  * Called when a new force is created using `game.create_force()`
@@ -862,7 +884,7 @@ interface on_force_created {
862
884
  /**
863
885
  * Tick the event was generated.
864
886
  */
865
- tick: uint;
887
+ tick: uint32;
866
888
  }
867
889
  /**
868
890
  * Called when the a forces friends change.
@@ -887,7 +909,7 @@ interface on_force_friends_changed {
887
909
  /**
888
910
  * Tick the event was generated.
889
911
  */
890
- tick: uint;
912
+ tick: uint32;
891
913
  }
892
914
  /**
893
915
  * Called when {@link LuaForce::reset | runtime:LuaForce::reset} is finished.
@@ -901,7 +923,7 @@ interface on_force_reset {
901
923
  /**
902
924
  * Tick the event was generated.
903
925
  */
904
- tick: uint;
926
+ tick: uint32;
905
927
  }
906
928
  /**
907
929
  * Called after two forces have been merged using `game.merge_forces()`.
@@ -920,7 +942,7 @@ interface on_forces_merged {
920
942
  /**
921
943
  * The index of the destroyed force.
922
944
  */
923
- source_index: uint;
945
+ source_index: uint32;
924
946
  /**
925
947
  * The force destroyed.
926
948
  */
@@ -928,7 +950,7 @@ interface on_forces_merged {
928
950
  /**
929
951
  * Tick the event was generated.
930
952
  */
931
- tick: uint;
953
+ tick: uint32;
932
954
  }
933
955
  /**
934
956
  * Called when two forces are about to be merged using `game.merge_forces()`.
@@ -949,7 +971,7 @@ interface on_forces_merging {
949
971
  /**
950
972
  * Tick the event was generated.
951
973
  */
952
- tick: uint;
974
+ tick: uint32;
953
975
  }
954
976
  /**
955
977
  * Called when a game is created from a scenario. This is fired for every mod, even when the scenario's save data already includes it. In those cases however, {@link LuaBootstrap::on_init | runtime:LuaBootstrap::on_init} is not fired.
@@ -964,7 +986,7 @@ interface on_game_created_from_scenario {
964
986
  /**
965
987
  * Tick the event was generated.
966
988
  */
967
- tick: uint;
989
+ tick: uint32;
968
990
  }
969
991
  /**
970
992
  * Called when {@link LuaGuiElement | runtime:LuaGuiElement} checked state is changed (related to checkboxes and radio buttons).
@@ -981,11 +1003,11 @@ interface on_gui_checked_state_changed {
981
1003
  /**
982
1004
  * The player who did the change.
983
1005
  */
984
- player_index: uint;
1006
+ player_index: uint32;
985
1007
  /**
986
1008
  * Tick the event was generated.
987
1009
  */
988
- tick: uint;
1010
+ tick: uint32;
989
1011
  }
990
1012
  /**
991
1013
  * Called when {@link LuaGuiElement | runtime:LuaGuiElement} is clicked.
@@ -1018,7 +1040,7 @@ interface on_gui_click {
1018
1040
  /**
1019
1041
  * The player who did the clicking.
1020
1042
  */
1021
- player_index: uint;
1043
+ player_index: uint32;
1022
1044
  /**
1023
1045
  * If shift was pressed.
1024
1046
  */
@@ -1026,7 +1048,7 @@ interface on_gui_click {
1026
1048
  /**
1027
1049
  * Tick the event was generated.
1028
1050
  */
1029
- tick: uint;
1051
+ tick: uint32;
1030
1052
  }
1031
1053
  /**
1032
1054
  * Called when the player closes the GUI they have open.
@@ -1071,15 +1093,15 @@ interface on_gui_closed {
1071
1093
  /**
1072
1094
  * The player closing the GUI.
1073
1095
  */
1074
- player_index: uint;
1096
+ player_index: uint32;
1075
1097
  /**
1076
1098
  * The surface index of the global electric network whose GUI was closed.
1077
1099
  */
1078
- surface_index?: uint;
1100
+ surface_index?: uint32;
1079
1101
  /**
1080
1102
  * Tick the event was generated.
1081
1103
  */
1082
- tick: uint;
1104
+ tick: uint32;
1083
1105
  /**
1084
1106
  * The position of the tile whose GUI was closed.
1085
1107
  */
@@ -1108,7 +1130,7 @@ interface on_gui_confirmed {
1108
1130
  /**
1109
1131
  * The player who did the confirming.
1110
1132
  */
1111
- player_index: uint;
1133
+ player_index: uint32;
1112
1134
  /**
1113
1135
  * If shift was pressed.
1114
1136
  */
@@ -1116,7 +1138,7 @@ interface on_gui_confirmed {
1116
1138
  /**
1117
1139
  * Tick the event was generated.
1118
1140
  */
1119
- tick: uint;
1141
+ tick: uint32;
1120
1142
  }
1121
1143
  /**
1122
1144
  * Called when {@link LuaGuiElement | runtime:LuaGuiElement} element value is changed (related to choose element buttons).
@@ -1133,11 +1155,11 @@ interface on_gui_elem_changed {
1133
1155
  /**
1134
1156
  * The player who did the change.
1135
1157
  */
1136
- player_index: uint;
1158
+ player_index: uint32;
1137
1159
  /**
1138
1160
  * Tick the event was generated.
1139
1161
  */
1140
- tick: uint;
1162
+ tick: uint32;
1141
1163
  }
1142
1164
  /**
1143
1165
  * Called when {@link LuaGuiElement | runtime:LuaGuiElement} is hovered by the mouse.
@@ -1156,11 +1178,11 @@ interface on_gui_hover {
1156
1178
  /**
1157
1179
  * The player whose cursor is hovering.
1158
1180
  */
1159
- player_index: uint;
1181
+ player_index: uint32;
1160
1182
  /**
1161
1183
  * Tick the event was generated.
1162
1184
  */
1163
- tick: uint;
1185
+ tick: uint32;
1164
1186
  }
1165
1187
  /**
1166
1188
  * Called when the player's cursor leaves a {@link LuaGuiElement | runtime:LuaGuiElement} that was previously hovered.
@@ -1179,11 +1201,11 @@ interface on_gui_leave {
1179
1201
  /**
1180
1202
  * The player whose cursor was hovering.
1181
1203
  */
1182
- player_index: uint;
1204
+ player_index: uint32;
1183
1205
  /**
1184
1206
  * Tick the event was generated.
1185
1207
  */
1186
- tick: uint;
1208
+ tick: uint32;
1187
1209
  }
1188
1210
  /**
1189
1211
  * Called when {@link LuaGuiElement | runtime:LuaGuiElement} element location is changed (related to frames in `player.gui.screen`).
@@ -1200,11 +1222,11 @@ interface on_gui_location_changed {
1200
1222
  /**
1201
1223
  * The player who did the change.
1202
1224
  */
1203
- player_index: uint;
1225
+ player_index: uint32;
1204
1226
  /**
1205
1227
  * Tick the event was generated.
1206
1228
  */
1207
- tick: uint;
1229
+ tick: uint32;
1208
1230
  }
1209
1231
  /**
1210
1232
  * Called when the player opens a GUI.
@@ -1245,15 +1267,15 @@ interface on_gui_opened {
1245
1267
  /**
1246
1268
  * The player closing the GUI.
1247
1269
  */
1248
- player_index: uint;
1270
+ player_index: uint32;
1249
1271
  /**
1250
1272
  * The surface index of the global electric network whose GUI was opened.
1251
1273
  */
1252
- surface_index?: uint;
1274
+ surface_index?: uint32;
1253
1275
  /**
1254
1276
  * Tick the event was generated.
1255
1277
  */
1256
- tick: uint;
1278
+ tick: uint32;
1257
1279
  /**
1258
1280
  * The position of the tile whose GUI was opened.
1259
1281
  */
@@ -1274,11 +1296,11 @@ interface on_gui_selected_tab_changed {
1274
1296
  /**
1275
1297
  * The player who did the change.
1276
1298
  */
1277
- player_index: uint;
1299
+ player_index: uint32;
1278
1300
  /**
1279
1301
  * Tick the event was generated.
1280
1302
  */
1281
- tick: uint;
1303
+ tick: uint32;
1282
1304
  }
1283
1305
  /**
1284
1306
  * Called when {@link LuaGuiElement | runtime:LuaGuiElement} selection state is changed (related to drop-downs and listboxes).
@@ -1295,11 +1317,11 @@ interface on_gui_selection_state_changed {
1295
1317
  /**
1296
1318
  * The player who did the change.
1297
1319
  */
1298
- player_index: uint;
1320
+ player_index: uint32;
1299
1321
  /**
1300
1322
  * Tick the event was generated.
1301
1323
  */
1302
- tick: uint;
1324
+ tick: uint32;
1303
1325
  }
1304
1326
  /**
1305
1327
  * Called when {@link LuaGuiElement | runtime:LuaGuiElement} switch state is changed (related to switches).
@@ -1316,11 +1338,11 @@ interface on_gui_switch_state_changed {
1316
1338
  /**
1317
1339
  * The player who did the change.
1318
1340
  */
1319
- player_index: uint;
1341
+ player_index: uint32;
1320
1342
  /**
1321
1343
  * Tick the event was generated.
1322
1344
  */
1323
- tick: uint;
1345
+ tick: uint32;
1324
1346
  }
1325
1347
  /**
1326
1348
  * Called when {@link LuaGuiElement | runtime:LuaGuiElement} text is changed by the player.
@@ -1337,7 +1359,7 @@ interface on_gui_text_changed {
1337
1359
  /**
1338
1360
  * The player who did the edit.
1339
1361
  */
1340
- player_index: uint;
1362
+ player_index: uint32;
1341
1363
  /**
1342
1364
  * The new text in the element.
1343
1365
  */
@@ -1345,7 +1367,7 @@ interface on_gui_text_changed {
1345
1367
  /**
1346
1368
  * Tick the event was generated.
1347
1369
  */
1348
- tick: uint;
1370
+ tick: uint32;
1349
1371
  }
1350
1372
  /**
1351
1373
  * Called when {@link LuaGuiElement | runtime:LuaGuiElement} slider value is changed (related to the slider element).
@@ -1362,11 +1384,11 @@ interface on_gui_value_changed {
1362
1384
  /**
1363
1385
  * The player who did the change.
1364
1386
  */
1365
- player_index: uint;
1387
+ player_index: uint32;
1366
1388
  /**
1367
1389
  * Tick the event was generated.
1368
1390
  */
1369
- tick: uint;
1391
+ tick: uint32;
1370
1392
  }
1371
1393
  /**
1372
1394
  * Called when a land mine is armed.
@@ -1380,7 +1402,7 @@ interface on_land_mine_armed {
1380
1402
  /**
1381
1403
  * Tick the event was generated.
1382
1404
  */
1383
- tick: uint;
1405
+ tick: uint32;
1384
1406
  }
1385
1407
  /**
1386
1408
  * Called when a custom {@link Lua shortcut | prototype:ShortcutPrototype} is pressed.
@@ -1390,7 +1412,7 @@ interface on_lua_shortcut {
1390
1412
  * Identifier of the event
1391
1413
  */
1392
1414
  name: defines.events;
1393
- player_index: uint;
1415
+ player_index: uint32;
1394
1416
  /**
1395
1417
  * Shortcut prototype name of the shortcut that was clicked.
1396
1418
  */
@@ -1398,7 +1420,7 @@ interface on_lua_shortcut {
1398
1420
  /**
1399
1421
  * Tick the event was generated.
1400
1422
  */
1401
- tick: uint;
1423
+ tick: uint32;
1402
1424
  }
1403
1425
  /**
1404
1426
  * Called when an entity is marked for deconstruction with the Deconstruction planner or via script.
@@ -1409,14 +1431,14 @@ interface on_marked_for_deconstruction {
1409
1431
  * Identifier of the event
1410
1432
  */
1411
1433
  name: defines.events;
1412
- player_index?: uint;
1434
+ player_index?: uint32;
1413
1435
  /**
1414
1436
  * Tick the event was generated.
1415
1437
  */
1416
- tick: uint;
1438
+ tick: uint32;
1417
1439
  }
1418
1440
  /**
1419
- * Called when an entity is marked for upgrade with the Upgrade planner or via script.
1441
+ * Called when an entity is marked for upgrade with the upgrade planner or via script.
1420
1442
  */
1421
1443
  interface on_marked_for_upgrade {
1422
1444
  entity: LuaEntity;
@@ -1424,13 +1446,24 @@ interface on_marked_for_upgrade {
1424
1446
  * Identifier of the event
1425
1447
  */
1426
1448
  name: defines.events;
1427
- player_index?: uint;
1449
+ player_index?: uint32;
1450
+ /**
1451
+ * Previous upgrade target quality, if entity was already marked for upgrade.
1452
+ */
1453
+ previous_quality?: LuaQualityPrototype;
1454
+ /**
1455
+ * Previous upgrade target of the entity, if entity was already marked for upgrade.
1456
+ */
1457
+ previous_target?: LuaEntityPrototype;
1458
+ /**
1459
+ * The target quality.
1460
+ */
1428
1461
  quality: LuaQualityPrototype;
1429
1462
  target: LuaEntityPrototype;
1430
1463
  /**
1431
1464
  * Tick the event was generated.
1432
1465
  */
1433
- tick: uint;
1466
+ tick: uint32;
1434
1467
  }
1435
1468
  /**
1436
1469
  * Called after a player purchases some offer from a `market` entity.
@@ -1439,7 +1472,7 @@ interface on_market_item_purchased {
1439
1472
  /**
1440
1473
  * The amount of offers purchased.
1441
1474
  */
1442
- count: uint;
1475
+ count: uint32;
1443
1476
  /**
1444
1477
  * The market entity.
1445
1478
  */
@@ -1451,15 +1484,15 @@ interface on_market_item_purchased {
1451
1484
  /**
1452
1485
  * The index of the offer purchased.
1453
1486
  */
1454
- offer_index: uint;
1487
+ offer_index: uint32;
1455
1488
  /**
1456
1489
  * The player who did the purchasing.
1457
1490
  */
1458
- player_index: uint;
1491
+ player_index: uint32;
1459
1492
  /**
1460
1493
  * Tick the event was generated.
1461
1494
  */
1462
- tick: uint;
1495
+ tick: uint32;
1463
1496
  }
1464
1497
  /**
1465
1498
  * Called when the player uses the 'Open item GUI' control on an item defined with the 'mod-openable' flag
@@ -1476,7 +1509,7 @@ interface on_mod_item_opened {
1476
1509
  /**
1477
1510
  * The player.
1478
1511
  */
1479
- player_index: uint;
1512
+ player_index: uint32;
1480
1513
  /**
1481
1514
  * The item quality clicked on.
1482
1515
  */
@@ -1484,7 +1517,7 @@ interface on_mod_item_opened {
1484
1517
  /**
1485
1518
  * Tick the event was generated.
1486
1519
  */
1487
- tick: uint;
1520
+ tick: uint32;
1488
1521
  }
1489
1522
  /**
1490
1523
  * Called when {@link LuaGameScript::is_multiplayer | runtime:LuaGameScript::is_multiplayer} changes to true. May also be raised when it was already true but a game was loaded from a save file and with hosting.
@@ -1497,7 +1530,7 @@ interface on_multiplayer_init {
1497
1530
  /**
1498
1531
  * Tick the event was generated.
1499
1532
  */
1500
- tick: uint;
1533
+ tick: uint32;
1501
1534
  }
1502
1535
  /**
1503
1536
  * Called after an object is destroyed which was registered with {@link LuaBootstrap::register_on_object_destroyed | runtime:LuaBootstrap::register_on_object_destroyed} previously.
@@ -1516,7 +1549,7 @@ interface on_object_destroyed {
1516
1549
  /**
1517
1550
  * Tick the event was generated.
1518
1551
  */
1519
- tick: uint;
1552
+ tick: uint32;
1520
1553
  /**
1521
1554
  * Type of the object that was destroyed. Same as third value returned by {@link LuaBootstrap::register_on_object_destroyed | runtime:LuaBootstrap::register_on_object_destroyed}
1522
1555
  */
@@ -1541,11 +1574,11 @@ interface on_permission_group_added {
1541
1574
  /**
1542
1575
  * The player that added the group or `nil` if by a mod.
1543
1576
  */
1544
- player_index?: uint;
1577
+ player_index?: uint32;
1545
1578
  /**
1546
1579
  * Tick the event was generated.
1547
1580
  */
1548
- tick: uint;
1581
+ tick: uint32;
1549
1582
  }
1550
1583
  /**
1551
1584
  * Called directly after a permission group is deleted.
@@ -1558,7 +1591,7 @@ interface on_permission_group_deleted {
1558
1591
  /**
1559
1592
  * The group id that was deleted.
1560
1593
  */
1561
- id: uint;
1594
+ id: uint32;
1562
1595
  /**
1563
1596
  * Identifier of the event
1564
1597
  */
@@ -1566,11 +1599,11 @@ interface on_permission_group_deleted {
1566
1599
  /**
1567
1600
  * The player doing the deletion or `nil` if by a mod.
1568
1601
  */
1569
- player_index?: uint;
1602
+ player_index?: uint32;
1570
1603
  /**
1571
1604
  * Tick the event was generated.
1572
1605
  */
1573
- tick: uint;
1606
+ tick: uint32;
1574
1607
  }
1575
1608
  /**
1576
1609
  * Called directly after a permission group is edited in some way.
@@ -1599,15 +1632,15 @@ interface on_permission_group_edited {
1599
1632
  /**
1600
1633
  * The other player when the `type` is `"add-player"` or `"remove-player"`.
1601
1634
  */
1602
- other_player_index: uint;
1635
+ other_player_index: uint32;
1603
1636
  /**
1604
1637
  * The player that did the editing or `nil` if by a mod.
1605
1638
  */
1606
- player_index?: uint;
1639
+ player_index?: uint32;
1607
1640
  /**
1608
1641
  * Tick the event was generated.
1609
1642
  */
1610
- tick: uint;
1643
+ tick: uint32;
1611
1644
  /**
1612
1645
  * The edit type.
1613
1646
  */
@@ -1624,11 +1657,11 @@ interface on_permission_string_imported {
1624
1657
  /**
1625
1658
  * The player that imported the string.
1626
1659
  */
1627
- player_index: uint;
1660
+ player_index: uint32;
1628
1661
  /**
1629
1662
  * Tick the event was generated.
1630
1663
  */
1631
- tick: uint;
1664
+ tick: uint32;
1632
1665
  }
1633
1666
  /**
1634
1667
  * Called when a player picks up an item.
@@ -1639,11 +1672,11 @@ interface on_picked_up_item {
1639
1672
  * Identifier of the event
1640
1673
  */
1641
1674
  name: defines.events;
1642
- player_index: uint;
1675
+ player_index: uint32;
1643
1676
  /**
1644
1677
  * Tick the event was generated.
1645
1678
  */
1646
- tick: uint;
1679
+ tick: uint32;
1647
1680
  }
1648
1681
  /**
1649
1682
  * Called after a player alt-reverse-selects an area with a selection-tool item.
@@ -1668,7 +1701,7 @@ interface on_player_alt_reverse_selected_area {
1668
1701
  /**
1669
1702
  * The player doing the selection.
1670
1703
  */
1671
- player_index: uint;
1704
+ player_index: uint32;
1672
1705
  /**
1673
1706
  * The surface selected.
1674
1707
  */
@@ -1676,7 +1709,7 @@ interface on_player_alt_reverse_selected_area {
1676
1709
  /**
1677
1710
  * Tick the event was generated.
1678
1711
  */
1679
- tick: uint;
1712
+ tick: uint32;
1680
1713
  /**
1681
1714
  * The tiles selected.
1682
1715
  */
@@ -1705,7 +1738,7 @@ interface on_player_alt_selected_area {
1705
1738
  /**
1706
1739
  * The player doing the selection.
1707
1740
  */
1708
- player_index: uint;
1741
+ player_index: uint32;
1709
1742
  /**
1710
1743
  * The item quality used to select the area.
1711
1744
  */
@@ -1717,7 +1750,7 @@ interface on_player_alt_selected_area {
1717
1750
  /**
1718
1751
  * Tick the event was generated.
1719
1752
  */
1720
- tick: uint;
1753
+ tick: uint32;
1721
1754
  /**
1722
1755
  * The tiles selected.
1723
1756
  */
@@ -1731,11 +1764,11 @@ interface on_player_ammo_inventory_changed {
1731
1764
  * Identifier of the event
1732
1765
  */
1733
1766
  name: defines.events;
1734
- player_index: uint;
1767
+ player_index: uint32;
1735
1768
  /**
1736
1769
  * Tick the event was generated.
1737
1770
  */
1738
- tick: uint;
1771
+ tick: uint32;
1739
1772
  }
1740
1773
  /**
1741
1774
  * Called after a players armor inventory changed in some way.
@@ -1745,11 +1778,11 @@ interface on_player_armor_inventory_changed {
1745
1778
  * Identifier of the event
1746
1779
  */
1747
1780
  name: defines.events;
1748
- player_index: uint;
1781
+ player_index: uint32;
1749
1782
  /**
1750
1783
  * Tick the event was generated.
1751
1784
  */
1752
- tick: uint;
1785
+ tick: uint32;
1753
1786
  }
1754
1787
  /**
1755
1788
  * Called when a player is banned.
@@ -1758,7 +1791,7 @@ interface on_player_banned {
1758
1791
  /**
1759
1792
  * The player that did the banning if any.
1760
1793
  */
1761
- by_player?: uint;
1794
+ by_player?: uint32;
1762
1795
  /**
1763
1796
  * Identifier of the event
1764
1797
  */
@@ -1766,7 +1799,7 @@ interface on_player_banned {
1766
1799
  /**
1767
1800
  * The player banned.
1768
1801
  */
1769
- player_index?: uint;
1802
+ player_index?: uint32;
1770
1803
  /**
1771
1804
  * The banned player name.
1772
1805
  */
@@ -1778,7 +1811,7 @@ interface on_player_banned {
1778
1811
  /**
1779
1812
  * Tick the event was generated.
1780
1813
  */
1781
- tick: uint;
1814
+ tick: uint32;
1782
1815
  }
1783
1816
  /**
1784
1817
  * Called after a player builds tiles.
@@ -1796,7 +1829,7 @@ interface on_player_built_tile {
1796
1829
  * Identifier of the event
1797
1830
  */
1798
1831
  name: defines.events;
1799
- player_index: uint;
1832
+ player_index: uint32;
1800
1833
  /**
1801
1834
  * The quality of the item used to build the tiles
1802
1835
  */
@@ -1804,11 +1837,11 @@ interface on_player_built_tile {
1804
1837
  /**
1805
1838
  * The surface the tile(s) were built on.
1806
1839
  */
1807
- surface_index: uint;
1840
+ surface_index: uint32;
1808
1841
  /**
1809
1842
  * Tick the event was generated.
1810
1843
  */
1811
- tick: uint;
1844
+ tick: uint32;
1812
1845
  /**
1813
1846
  * The tile prototype that was placed.
1814
1847
  */
@@ -1825,7 +1858,7 @@ interface on_player_cancelled_crafting {
1825
1858
  /**
1826
1859
  * The number of crafts that have been cancelled.
1827
1860
  */
1828
- cancel_count: uint;
1861
+ cancel_count: uint32;
1829
1862
  /**
1830
1863
  * The crafting items returned to the player's inventory.
1831
1864
  */
@@ -1837,7 +1870,7 @@ interface on_player_cancelled_crafting {
1837
1870
  /**
1838
1871
  * The player that did the crafting.
1839
1872
  */
1840
- player_index: uint;
1873
+ player_index: uint32;
1841
1874
  /**
1842
1875
  * The recipe that has been cancelled.
1843
1876
  */
@@ -1845,7 +1878,7 @@ interface on_player_cancelled_crafting {
1845
1878
  /**
1846
1879
  * Tick the event was generated.
1847
1880
  */
1848
- tick: uint;
1881
+ tick: uint32;
1849
1882
  }
1850
1883
  /**
1851
1884
  * Called after a player changes forces.
@@ -1862,11 +1895,11 @@ interface on_player_changed_force {
1862
1895
  /**
1863
1896
  * The player who changed forces.
1864
1897
  */
1865
- player_index: uint;
1898
+ player_index: uint32;
1866
1899
  /**
1867
1900
  * Tick the event was generated.
1868
1901
  */
1869
- tick: uint;
1902
+ tick: uint32;
1870
1903
  }
1871
1904
  /**
1872
1905
  * Called when the tile position a player is located at changes.
@@ -1879,11 +1912,11 @@ interface on_player_changed_position {
1879
1912
  /**
1880
1913
  * The player.
1881
1914
  */
1882
- player_index: uint;
1915
+ player_index: uint32;
1883
1916
  /**
1884
1917
  * Tick the event was generated.
1885
1918
  */
1886
- tick: uint;
1919
+ tick: uint32;
1887
1920
  }
1888
1921
  /**
1889
1922
  * Called after a player changes surfaces.
@@ -1896,15 +1929,15 @@ interface on_player_changed_surface {
1896
1929
  /**
1897
1930
  * The player who changed surfaces.
1898
1931
  */
1899
- player_index: uint;
1932
+ player_index: uint32;
1900
1933
  /**
1901
1934
  * The surface index the player was on - may be `nil` if the surface no longer exists.
1902
1935
  */
1903
- surface_index?: uint;
1936
+ surface_index?: uint32;
1904
1937
  /**
1905
1938
  * Tick the event was generated.
1906
1939
  */
1907
- tick: uint;
1940
+ tick: uint32;
1908
1941
  }
1909
1942
  /**
1910
1943
  * Called when cheat mode is disabled on a player.
@@ -1917,11 +1950,11 @@ interface on_player_cheat_mode_disabled {
1917
1950
  /**
1918
1951
  * The player.
1919
1952
  */
1920
- player_index: uint;
1953
+ player_index: uint32;
1921
1954
  /**
1922
1955
  * Tick the event was generated.
1923
1956
  */
1924
- tick: uint;
1957
+ tick: uint32;
1925
1958
  }
1926
1959
  /**
1927
1960
  * Called when cheat mode is enabled on a player.
@@ -1934,11 +1967,11 @@ interface on_player_cheat_mode_enabled {
1934
1967
  /**
1935
1968
  * The player.
1936
1969
  */
1937
- player_index: uint;
1970
+ player_index: uint32;
1938
1971
  /**
1939
1972
  * Tick the event was generated.
1940
1973
  */
1941
- tick: uint;
1974
+ tick: uint32;
1942
1975
  }
1943
1976
  /**
1944
1977
  * Called when a player clicks a gps tag
@@ -1951,7 +1984,7 @@ interface on_player_clicked_gps_tag {
1951
1984
  /**
1952
1985
  * Index of the player
1953
1986
  */
1954
- player_index: uint;
1987
+ player_index: uint32;
1955
1988
  /**
1956
1989
  * Map position contained in gps tag
1957
1990
  */
@@ -1963,7 +1996,7 @@ interface on_player_clicked_gps_tag {
1963
1996
  /**
1964
1997
  * Tick the event was generated.
1965
1998
  */
1966
- tick: uint;
1999
+ tick: uint32;
1967
2000
  }
1968
2001
  /**
1969
2002
  * Called when a player clicks the "confirm" button in the configure Blueprint GUI.
@@ -1976,11 +2009,11 @@ interface on_player_configured_blueprint {
1976
2009
  /**
1977
2010
  * The player.
1978
2011
  */
1979
- player_index: uint;
2012
+ player_index: uint32;
1980
2013
  /**
1981
2014
  * Tick the event was generated.
1982
2015
  */
1983
- tick: uint;
2016
+ tick: uint32;
1984
2017
  }
1985
2018
  /**
1986
2019
  * Called after a player changes controller types.
@@ -1997,11 +2030,11 @@ interface on_player_controller_changed {
1997
2030
  /**
1998
2031
  * The player who changed controllers.
1999
2032
  */
2000
- player_index: uint;
2033
+ player_index: uint32;
2001
2034
  /**
2002
2035
  * Tick the event was generated.
2003
2036
  */
2004
- tick: uint;
2037
+ tick: uint32;
2005
2038
  }
2006
2039
  /**
2007
2040
  * Called when the player finishes crafting an item. This event fires just before the results are inserted into the player's inventory, not when the crafting is queued (see {@link on_pre_player_crafted_item | runtime:on_pre_player_crafted_item}).
@@ -2018,7 +2051,7 @@ interface on_player_crafted_item {
2018
2051
  /**
2019
2052
  * The player doing the crafting.
2020
2053
  */
2021
- player_index: uint;
2054
+ player_index: uint32;
2022
2055
  /**
2023
2056
  * The recipe used to craft this item.
2024
2057
  */
@@ -2026,7 +2059,7 @@ interface on_player_crafted_item {
2026
2059
  /**
2027
2060
  * Tick the event was generated.
2028
2061
  */
2029
- tick: uint;
2062
+ tick: uint32;
2030
2063
  }
2031
2064
  /**
2032
2065
  * Called after the player was created.
@@ -2036,11 +2069,11 @@ interface on_player_created {
2036
2069
  * Identifier of the event
2037
2070
  */
2038
2071
  name: defines.events;
2039
- player_index: uint;
2072
+ player_index: uint32;
2040
2073
  /**
2041
2074
  * Tick the event was generated.
2042
2075
  */
2043
- tick: uint;
2076
+ tick: uint32;
2044
2077
  }
2045
2078
  /**
2046
2079
  * Called after a player's {@link cursor stack | runtime:LuaControl::cursor_stack} changed in some way.
@@ -2052,11 +2085,11 @@ interface on_player_cursor_stack_changed {
2052
2085
  * Identifier of the event
2053
2086
  */
2054
2087
  name: defines.events;
2055
- player_index: uint;
2088
+ player_index: uint32;
2056
2089
  /**
2057
2090
  * Tick the event was generated.
2058
2091
  */
2059
- tick: uint;
2092
+ tick: uint32;
2060
2093
  }
2061
2094
  /**
2062
2095
  * Called when a player selects an area with a deconstruction planner.
@@ -2081,7 +2114,7 @@ interface on_player_deconstructed_area {
2081
2114
  /**
2082
2115
  * The player doing the selection.
2083
2116
  */
2084
- player_index: uint;
2117
+ player_index: uint32;
2085
2118
  /**
2086
2119
  * The item quality used to select the area.
2087
2120
  */
@@ -2101,7 +2134,7 @@ interface on_player_deconstructed_area {
2101
2134
  /**
2102
2135
  * Tick the event was generated.
2103
2136
  */
2104
- tick: uint;
2137
+ tick: uint32;
2105
2138
  }
2106
2139
  /**
2107
2140
  * Called when a player is demoted.
@@ -2114,11 +2147,11 @@ interface on_player_demoted {
2114
2147
  /**
2115
2148
  * The player.
2116
2149
  */
2117
- player_index: uint;
2150
+ player_index: uint32;
2118
2151
  /**
2119
2152
  * Tick the event was generated.
2120
2153
  */
2121
- tick: uint;
2154
+ tick: uint32;
2122
2155
  }
2123
2156
  /**
2124
2157
  * Called after a player dies.
@@ -2129,11 +2162,11 @@ interface on_player_died {
2129
2162
  * Identifier of the event
2130
2163
  */
2131
2164
  name: defines.events;
2132
- player_index: uint;
2165
+ player_index: uint32;
2133
2166
  /**
2134
2167
  * Tick the event was generated.
2135
2168
  */
2136
- tick: uint;
2169
+ tick: uint32;
2137
2170
  }
2138
2171
  /**
2139
2172
  * Called when the display density scale changes for a given player. The display density scale is the scale value automatically applied based on the player's display DPI. This is only relevant on platforms that support high-density displays.
@@ -2150,11 +2183,11 @@ interface on_player_display_density_scale_changed {
2150
2183
  /**
2151
2184
  * The player
2152
2185
  */
2153
- player_index: uint;
2186
+ player_index: uint32;
2154
2187
  /**
2155
2188
  * Tick the event was generated.
2156
2189
  */
2157
- tick: uint;
2190
+ tick: uint32;
2158
2191
  }
2159
2192
  /**
2160
2193
  * Called when the display resolution changes for a given player.
@@ -2171,11 +2204,11 @@ interface on_player_display_resolution_changed {
2171
2204
  /**
2172
2205
  * The player
2173
2206
  */
2174
- player_index: uint;
2207
+ player_index: uint32;
2175
2208
  /**
2176
2209
  * Tick the event was generated.
2177
2210
  */
2178
- tick: uint;
2211
+ tick: uint32;
2179
2212
  }
2180
2213
  /**
2181
2214
  * Called when the display scale changes for a given player.
@@ -2192,11 +2225,11 @@ interface on_player_display_scale_changed {
2192
2225
  /**
2193
2226
  * The player
2194
2227
  */
2195
- player_index: uint;
2228
+ player_index: uint32;
2196
2229
  /**
2197
2230
  * Tick the event was generated.
2198
2231
  */
2199
- tick: uint;
2232
+ tick: uint32;
2200
2233
  }
2201
2234
  /**
2202
2235
  * Called when the player's driving state has changed, meaning a player has either entered or left a vehicle.
@@ -2212,11 +2245,11 @@ interface on_player_driving_changed_state {
2212
2245
  * Identifier of the event
2213
2246
  */
2214
2247
  name: defines.events;
2215
- player_index: uint;
2248
+ player_index: uint32;
2216
2249
  /**
2217
2250
  * Tick the event was generated.
2218
2251
  */
2219
- tick: uint;
2252
+ tick: uint32;
2220
2253
  }
2221
2254
  /**
2222
2255
  * Called when a player drops an item on the ground.
@@ -2230,11 +2263,29 @@ interface on_player_dropped_item {
2230
2263
  * Identifier of the event
2231
2264
  */
2232
2265
  name: defines.events;
2233
- player_index: uint;
2266
+ player_index: uint32;
2267
+ /**
2268
+ * Tick the event was generated.
2269
+ */
2270
+ tick: uint32;
2271
+ }
2272
+ /**
2273
+ * Called when a player drops a single item into an entity.
2274
+ */
2275
+ interface on_player_dropped_item_into_entity {
2276
+ /**
2277
+ * The entity the item was dropped into.
2278
+ */
2279
+ entity: LuaEntity;
2280
+ /**
2281
+ * Identifier of the event
2282
+ */
2283
+ name: defines.events;
2284
+ player_index: uint32;
2234
2285
  /**
2235
2286
  * Tick the event was generated.
2236
2287
  */
2237
- tick: uint;
2288
+ tick: uint32;
2238
2289
  }
2239
2290
  /**
2240
2291
  * Called when a player fast-transfers something to or from an entity.
@@ -2259,11 +2310,11 @@ interface on_player_fast_transferred {
2259
2310
  /**
2260
2311
  * The player transferred from or to.
2261
2312
  */
2262
- player_index: uint;
2313
+ player_index: uint32;
2263
2314
  /**
2264
2315
  * Tick the event was generated.
2265
2316
  */
2266
- tick: uint;
2317
+ tick: uint32;
2267
2318
  }
2268
2319
  /**
2269
2320
  * Called when the player flips an entity. This event is only fired when the entity actually changes its orientation or mirroring, so it won't be triggered when pressing the flip keys on an entity that can't be flipped.
@@ -2283,11 +2334,11 @@ interface on_player_flipped_entity {
2283
2334
  * Identifier of the event
2284
2335
  */
2285
2336
  name: defines.events;
2286
- player_index: uint;
2337
+ player_index: uint32;
2287
2338
  /**
2288
2339
  * Tick the event was generated.
2289
2340
  */
2290
- tick: uint;
2341
+ tick: uint32;
2291
2342
  }
2292
2343
  /**
2293
2344
  * Called after player flushed fluid
@@ -2316,11 +2367,11 @@ interface on_player_flushed_fluid {
2316
2367
  /**
2317
2368
  * Index of the player
2318
2369
  */
2319
- player_index: uint;
2370
+ player_index: uint32;
2320
2371
  /**
2321
2372
  * Tick the event was generated.
2322
2373
  */
2323
- tick: uint;
2374
+ tick: uint32;
2324
2375
  }
2325
2376
  /**
2326
2377
  * Called after a players gun inventory changed in some way.
@@ -2330,11 +2381,11 @@ interface on_player_gun_inventory_changed {
2330
2381
  * Identifier of the event
2331
2382
  */
2332
2383
  name: defines.events;
2333
- player_index: uint;
2384
+ player_index: uint32;
2334
2385
  /**
2335
2386
  * Tick the event was generated.
2336
2387
  */
2337
- tick: uint;
2388
+ tick: uint32;
2338
2389
  }
2339
2390
  /**
2340
2391
  * Called when a player's input method changes. See {@link LuaPlayer::input_method | runtime:LuaPlayer::input_method}.
@@ -2347,11 +2398,11 @@ interface on_player_input_method_changed {
2347
2398
  /**
2348
2399
  * The player whose input method changed.
2349
2400
  */
2350
- player_index: uint;
2401
+ player_index: uint32;
2351
2402
  /**
2352
2403
  * Tick the event was generated.
2353
2404
  */
2354
- tick: uint;
2405
+ tick: uint32;
2355
2406
  }
2356
2407
  /**
2357
2408
  * Called after a player joins the game. This is not called when loading a save file in singleplayer, as the player doesn't actually leave the game, and the save is just on pause until they rejoin.
@@ -2361,11 +2412,11 @@ interface on_player_joined_game {
2361
2412
  * Identifier of the event
2362
2413
  */
2363
2414
  name: defines.events;
2364
- player_index: uint;
2415
+ player_index: uint32;
2365
2416
  /**
2366
2417
  * Tick the event was generated.
2367
2418
  */
2368
- tick: uint;
2419
+ tick: uint32;
2369
2420
  }
2370
2421
  /**
2371
2422
  * Called when a player is kicked.
@@ -2374,7 +2425,7 @@ interface on_player_kicked {
2374
2425
  /**
2375
2426
  * The player that did the kicking if any.
2376
2427
  */
2377
- by_player?: uint;
2428
+ by_player?: uint32;
2378
2429
  /**
2379
2430
  * Identifier of the event
2380
2431
  */
@@ -2382,7 +2433,7 @@ interface on_player_kicked {
2382
2433
  /**
2383
2434
  * The player kicked.
2384
2435
  */
2385
- player_index: uint;
2436
+ player_index: uint32;
2386
2437
  /**
2387
2438
  * The reason given if any.
2388
2439
  */
@@ -2390,7 +2441,7 @@ interface on_player_kicked {
2390
2441
  /**
2391
2442
  * Tick the event was generated.
2392
2443
  */
2393
- tick: uint;
2444
+ tick: uint32;
2394
2445
  }
2395
2446
  /**
2396
2447
  * Called after a player leaves the game. This is not called when closing a save file in singleplayer, as the player doesn't actually leave the game, and the save is just on pause until they rejoin.
@@ -2400,12 +2451,12 @@ interface on_player_left_game {
2400
2451
  * Identifier of the event
2401
2452
  */
2402
2453
  name: defines.events;
2403
- player_index: uint;
2454
+ player_index: uint32;
2404
2455
  reason: defines.disconnect_reason;
2405
2456
  /**
2406
2457
  * Tick the event was generated.
2407
2458
  */
2408
- tick: uint;
2459
+ tick: uint32;
2409
2460
  }
2410
2461
  /**
2411
2462
  * Called when a player's active locale changes. See {@link LuaPlayer::locale | runtime:LuaPlayer::locale}.
@@ -2422,11 +2473,11 @@ interface on_player_locale_changed {
2422
2473
  /**
2423
2474
  * The player whose locale was changed.
2424
2475
  */
2425
- player_index: uint;
2476
+ player_index: uint32;
2426
2477
  /**
2427
2478
  * Tick the event was generated.
2428
2479
  */
2429
- tick: uint;
2480
+ tick: uint32;
2430
2481
  }
2431
2482
  /**
2432
2483
  * Called after a players main inventory changed in some way.
@@ -2436,11 +2487,11 @@ interface on_player_main_inventory_changed {
2436
2487
  * Identifier of the event
2437
2488
  */
2438
2489
  name: defines.events;
2439
- player_index: uint;
2490
+ player_index: uint32;
2440
2491
  /**
2441
2492
  * Tick the event was generated.
2442
2493
  */
2443
- tick: uint;
2494
+ tick: uint32;
2444
2495
  }
2445
2496
  /**
2446
2497
  * Called after the results of an entity being mined are collected just before the entity is destroyed.
@@ -2465,11 +2516,11 @@ interface on_player_mined_entity {
2465
2516
  /**
2466
2517
  * The index of the player doing the mining.
2467
2518
  */
2468
- player_index: uint;
2519
+ player_index: uint32;
2469
2520
  /**
2470
2521
  * Tick the event was generated.
2471
2522
  */
2472
- tick: uint;
2523
+ tick: uint32;
2473
2524
  }
2474
2525
  /**
2475
2526
  * Called when the player mines something.
@@ -2483,11 +2534,11 @@ interface on_player_mined_item {
2483
2534
  * Identifier of the event
2484
2535
  */
2485
2536
  name: defines.events;
2486
- player_index: uint;
2537
+ player_index: uint32;
2487
2538
  /**
2488
2539
  * Tick the event was generated.
2489
2540
  */
2490
- tick: uint;
2541
+ tick: uint32;
2491
2542
  }
2492
2543
  /**
2493
2544
  * Called after a player mines tiles.
@@ -2497,15 +2548,15 @@ interface on_player_mined_tile {
2497
2548
  * Identifier of the event
2498
2549
  */
2499
2550
  name: defines.events;
2500
- player_index: uint;
2551
+ player_index: uint32;
2501
2552
  /**
2502
2553
  * The surface the tile(s) were mined from.
2503
2554
  */
2504
- surface_index: uint;
2555
+ surface_index: uint32;
2505
2556
  /**
2506
2557
  * Tick the event was generated.
2507
2558
  */
2508
- tick: uint;
2559
+ tick: uint32;
2509
2560
  /**
2510
2561
  * The position data.
2511
2562
  */
@@ -2522,11 +2573,11 @@ interface on_player_muted {
2522
2573
  /**
2523
2574
  * The player.
2524
2575
  */
2525
- player_index: uint;
2576
+ player_index: uint32;
2526
2577
  /**
2527
2578
  * Tick the event was generated.
2528
2579
  */
2529
- tick: uint;
2580
+ tick: uint32;
2530
2581
  }
2531
2582
  /**
2532
2583
  * Called when a player invokes the "smart pipette" over an entity.
@@ -2543,7 +2594,7 @@ interface on_player_pipette {
2543
2594
  /**
2544
2595
  * The player
2545
2596
  */
2546
- player_index: uint;
2597
+ player_index: uint32;
2547
2598
  /**
2548
2599
  * The item quality put in the cursor
2549
2600
  */
@@ -2551,7 +2602,7 @@ interface on_player_pipette {
2551
2602
  /**
2552
2603
  * Tick the event was generated.
2553
2604
  */
2554
- tick: uint;
2605
+ tick: uint32;
2555
2606
  /**
2556
2607
  * If cheat mode was used to give a free stack of the item.
2557
2608
  */
@@ -2573,11 +2624,11 @@ interface on_player_placed_equipment {
2573
2624
  * Identifier of the event
2574
2625
  */
2575
2626
  name: defines.events;
2576
- player_index: uint;
2627
+ player_index: uint32;
2577
2628
  /**
2578
2629
  * Tick the event was generated.
2579
2630
  */
2580
- tick: uint;
2631
+ tick: uint32;
2581
2632
  }
2582
2633
  /**
2583
2634
  * Called when a player is promoted.
@@ -2590,11 +2641,11 @@ interface on_player_promoted {
2590
2641
  /**
2591
2642
  * The player.
2592
2643
  */
2593
- player_index: uint;
2644
+ player_index: uint32;
2594
2645
  /**
2595
2646
  * Tick the event was generated.
2596
2647
  */
2597
- tick: uint;
2648
+ tick: uint32;
2598
2649
  }
2599
2650
  /**
2600
2651
  * Called when a player is removed (deleted) from the game. This is markedly different from a player temporarily {@link leaving | runtime:on_player_left_game} the game, and instead behaves like the player never existed in the save file.
@@ -2607,11 +2658,11 @@ interface on_player_removed {
2607
2658
  /**
2608
2659
  * The index of the removed player.
2609
2660
  */
2610
- player_index: uint;
2661
+ player_index: uint32;
2611
2662
  /**
2612
2663
  * Tick the event was generated.
2613
2664
  */
2614
- tick: uint;
2665
+ tick: uint32;
2615
2666
  }
2616
2667
  /**
2617
2668
  * Called after the player removes equipment from an equipment grid
@@ -2620,7 +2671,7 @@ interface on_player_removed_equipment {
2620
2671
  /**
2621
2672
  * The count of equipment removed.
2622
2673
  */
2623
- count: uint;
2674
+ count: uint32;
2624
2675
  /**
2625
2676
  * The equipment removed.
2626
2677
  */
@@ -2633,7 +2684,7 @@ interface on_player_removed_equipment {
2633
2684
  * Identifier of the event
2634
2685
  */
2635
2686
  name: defines.events;
2636
- player_index: uint;
2687
+ player_index: uint32;
2637
2688
  /**
2638
2689
  * The equipment quality.
2639
2690
  */
@@ -2641,7 +2692,7 @@ interface on_player_removed_equipment {
2641
2692
  /**
2642
2693
  * Tick the event was generated.
2643
2694
  */
2644
- tick: uint;
2695
+ tick: uint32;
2645
2696
  }
2646
2697
  /**
2647
2698
  * Called when a player repairs an entity.
@@ -2652,11 +2703,11 @@ interface on_player_repaired_entity {
2652
2703
  * Identifier of the event
2653
2704
  */
2654
2705
  name: defines.events;
2655
- player_index: uint;
2706
+ player_index: uint32;
2656
2707
  /**
2657
2708
  * Tick the event was generated.
2658
2709
  */
2659
- tick: uint;
2710
+ tick: uint32;
2660
2711
  }
2661
2712
  /**
2662
2713
  * Called after a player respawns.
@@ -2666,7 +2717,7 @@ interface on_player_respawned {
2666
2717
  * Identifier of the event
2667
2718
  */
2668
2719
  name: defines.events;
2669
- player_index: uint;
2720
+ player_index: uint32;
2670
2721
  /**
2671
2722
  * The player port used to respawn if one was used.
2672
2723
  */
@@ -2674,7 +2725,7 @@ interface on_player_respawned {
2674
2725
  /**
2675
2726
  * Tick the event was generated.
2676
2727
  */
2677
- tick: uint;
2728
+ tick: uint32;
2678
2729
  }
2679
2730
  /**
2680
2731
  * Called after a player reverse-selects an area with a selection-tool item.
@@ -2699,7 +2750,7 @@ interface on_player_reverse_selected_area {
2699
2750
  /**
2700
2751
  * The player doing the selection.
2701
2752
  */
2702
- player_index: uint;
2753
+ player_index: uint32;
2703
2754
  /**
2704
2755
  * The surface selected.
2705
2756
  */
@@ -2707,7 +2758,7 @@ interface on_player_reverse_selected_area {
2707
2758
  /**
2708
2759
  * Tick the event was generated.
2709
2760
  */
2710
- tick: uint;
2761
+ tick: uint32;
2711
2762
  /**
2712
2763
  * The tiles selected.
2713
2764
  */
@@ -2727,7 +2778,7 @@ interface on_player_rotated_entity {
2727
2778
  * Identifier of the event
2728
2779
  */
2729
2780
  name: defines.events;
2730
- player_index: uint;
2781
+ player_index: uint32;
2731
2782
  /**
2732
2783
  * The previous direction
2733
2784
  */
@@ -2735,7 +2786,7 @@ interface on_player_rotated_entity {
2735
2786
  /**
2736
2787
  * Tick the event was generated.
2737
2788
  */
2738
- tick: uint;
2789
+ tick: uint32;
2739
2790
  }
2740
2791
  /**
2741
2792
  * Called after a player selects an area with a selection-tool item.
@@ -2760,7 +2811,7 @@ interface on_player_selected_area {
2760
2811
  /**
2761
2812
  * The player doing the selection.
2762
2813
  */
2763
- player_index: uint;
2814
+ player_index: uint32;
2764
2815
  /**
2765
2816
  * The item quality used to select the area.
2766
2817
  */
@@ -2772,7 +2823,7 @@ interface on_player_selected_area {
2772
2823
  /**
2773
2824
  * Tick the event was generated.
2774
2825
  */
2775
- tick: uint;
2826
+ tick: uint32;
2776
2827
  /**
2777
2828
  * The tiles selected.
2778
2829
  */
@@ -2786,11 +2837,11 @@ interface on_player_set_quick_bar_slot {
2786
2837
  * Identifier of the event
2787
2838
  */
2788
2839
  name: defines.events;
2789
- player_index: uint;
2840
+ player_index: uint32;
2790
2841
  /**
2791
2842
  * Tick the event was generated.
2792
2843
  */
2793
- tick: uint;
2844
+ tick: uint32;
2794
2845
  }
2795
2846
  /**
2796
2847
  * Called when a player selects an area with a blueprint.
@@ -2811,7 +2862,7 @@ interface on_player_setup_blueprint {
2811
2862
  /**
2812
2863
  * The blueprint entity index to source entity mapping. Note: if any mod changes the blueprint this will be incorrect.
2813
2864
  */
2814
- mapping: LuaLazyLoadedValue<Record<uint, LuaEntity>>;
2865
+ mapping: LuaLazyLoadedValue<LuaTable<uint32, LuaEntity>>;
2815
2866
  /**
2816
2867
  * Identifier of the event
2817
2868
  */
@@ -2819,7 +2870,7 @@ interface on_player_setup_blueprint {
2819
2870
  /**
2820
2871
  * The player doing the selection.
2821
2872
  */
2822
- player_index: uint;
2873
+ player_index: uint32;
2823
2874
  /**
2824
2875
  * The item quality used to select the area.
2825
2876
  */
@@ -2839,7 +2890,7 @@ interface on_player_setup_blueprint {
2839
2890
  /**
2840
2891
  * Tick the event was generated.
2841
2892
  */
2842
- tick: uint;
2893
+ tick: uint32;
2843
2894
  }
2844
2895
  /**
2845
2896
  * Called when a player toggles alt mode, also known as "show entity info".
@@ -2853,11 +2904,11 @@ interface on_player_toggled_alt_mode {
2853
2904
  * Identifier of the event
2854
2905
  */
2855
2906
  name: defines.events;
2856
- player_index: uint;
2907
+ player_index: uint32;
2857
2908
  /**
2858
2909
  * Tick the event was generated.
2859
2910
  */
2860
- tick: uint;
2911
+ tick: uint32;
2861
2912
  }
2862
2913
  /**
2863
2914
  * Called when a player toggles the map editor on or off.
@@ -2867,11 +2918,11 @@ interface on_player_toggled_map_editor {
2867
2918
  * Identifier of the event
2868
2919
  */
2869
2920
  name: defines.events;
2870
- player_index: uint;
2921
+ player_index: uint32;
2871
2922
  /**
2872
2923
  * Tick the event was generated.
2873
2924
  */
2874
- tick: uint;
2925
+ tick: uint32;
2875
2926
  }
2876
2927
  /**
2877
2928
  * Called after a players trash inventory changed in some way.
@@ -2881,11 +2932,11 @@ interface on_player_trash_inventory_changed {
2881
2932
  * Identifier of the event
2882
2933
  */
2883
2934
  name: defines.events;
2884
- player_index: uint;
2935
+ player_index: uint32;
2885
2936
  /**
2886
2937
  * Tick the event was generated.
2887
2938
  */
2888
- tick: uint;
2939
+ tick: uint32;
2889
2940
  }
2890
2941
  /**
2891
2942
  * Called when a player is un-banned.
@@ -2894,7 +2945,7 @@ interface on_player_unbanned {
2894
2945
  /**
2895
2946
  * The player that did the un-banning if any.
2896
2947
  */
2897
- by_player?: uint;
2948
+ by_player?: uint32;
2898
2949
  /**
2899
2950
  * Identifier of the event
2900
2951
  */
@@ -2902,7 +2953,7 @@ interface on_player_unbanned {
2902
2953
  /**
2903
2954
  * The player un-banned.
2904
2955
  */
2905
- player_index?: uint;
2956
+ player_index?: uint32;
2906
2957
  /**
2907
2958
  * The player name un-banned.
2908
2959
  */
@@ -2914,7 +2965,7 @@ interface on_player_unbanned {
2914
2965
  /**
2915
2966
  * Tick the event was generated.
2916
2967
  */
2917
- tick: uint;
2968
+ tick: uint32;
2918
2969
  }
2919
2970
  /**
2920
2971
  * Called when a player is unmuted.
@@ -2927,11 +2978,11 @@ interface on_player_unmuted {
2927
2978
  /**
2928
2979
  * The player.
2929
2980
  */
2930
- player_index: uint;
2981
+ player_index: uint32;
2931
2982
  /**
2932
2983
  * Tick the event was generated.
2933
2984
  */
2934
- tick: uint;
2985
+ tick: uint32;
2935
2986
  }
2936
2987
  /**
2937
2988
  * Called when a player uses a capsule that results in some game action.
@@ -2948,7 +2999,7 @@ interface on_player_used_capsule {
2948
2999
  /**
2949
3000
  * The player.
2950
3001
  */
2951
- player_index: uint;
3002
+ player_index: uint32;
2952
3003
  /**
2953
3004
  * The position the capsule was used.
2954
3005
  */
@@ -2960,7 +3011,7 @@ interface on_player_used_capsule {
2960
3011
  /**
2961
3012
  * Tick the event was generated.
2962
3013
  */
2963
- tick: uint;
3014
+ tick: uint32;
2964
3015
  }
2965
3016
  /**
2966
3017
  * Called when a player uses spidertron remote to send all selected units to a given position
@@ -2973,7 +3024,7 @@ interface on_player_used_spidertron_remote {
2973
3024
  /**
2974
3025
  * The player that used the remote.
2975
3026
  */
2976
- player_index: uint;
3027
+ player_index: uint32;
2977
3028
  /**
2978
3029
  * Goal position to which spidertron was sent to.
2979
3030
  */
@@ -2981,7 +3032,7 @@ interface on_player_used_spidertron_remote {
2981
3032
  /**
2982
3033
  * Tick the event was generated.
2983
3034
  */
2984
- tick: uint;
3035
+ tick: uint32;
2985
3036
  }
2986
3037
  /**
2987
3038
  * Called after an entity dies.
@@ -3022,15 +3073,15 @@ interface on_post_entity_died {
3022
3073
  /**
3023
3074
  * The surface the entity was on.
3024
3075
  */
3025
- surface_index: uint;
3076
+ surface_index: uint32;
3026
3077
  /**
3027
3078
  * Tick the event was generated.
3028
3079
  */
3029
- tick: uint;
3080
+ tick: uint32;
3030
3081
  /**
3031
3082
  * The unit number the entity had if any.
3032
3083
  */
3033
- unit_number?: uint;
3084
+ unit_number?: uint32;
3034
3085
  }
3035
3086
  /**
3036
3087
  * Called after a segmented unit dies.
@@ -3063,15 +3114,15 @@ interface on_post_segmented_unit_died {
3063
3114
  /**
3064
3115
  * The surface the entity was on.
3065
3116
  */
3066
- surface_index: uint;
3117
+ surface_index: uint32;
3067
3118
  /**
3068
3119
  * Tick the event was generated.
3069
3120
  */
3070
- tick: uint;
3121
+ tick: uint32;
3071
3122
  /**
3072
3123
  * The unit number of the unit that died.
3073
3124
  */
3074
- unit_number: uint;
3125
+ unit_number: uint32;
3075
3126
  }
3076
3127
  /**
3077
3128
  * Called when players uses an item to build something. Called before {@link on_built_entity | runtime:on_built_entity}.
@@ -3108,7 +3159,7 @@ interface on_pre_build {
3108
3159
  /**
3109
3160
  * The player who did the placing.
3110
3161
  */
3111
- player_index: uint;
3162
+ player_index: uint32;
3112
3163
  /**
3113
3164
  * Where the item was placed.
3114
3165
  */
@@ -3116,7 +3167,7 @@ interface on_pre_build {
3116
3167
  /**
3117
3168
  * Tick the event was generated.
3118
3169
  */
3119
- tick: uint;
3170
+ tick: uint32;
3120
3171
  }
3121
3172
  /**
3122
3173
  * Called before one or more chunks are deleted using {@link LuaSurface::delete_chunk | runtime:LuaSurface::delete_chunk}.
@@ -3130,11 +3181,11 @@ interface on_pre_chunk_deleted {
3130
3181
  * The chunks to be deleted.
3131
3182
  */
3132
3183
  positions: ChunkPosition[];
3133
- surface_index: uint;
3184
+ surface_index: uint32;
3134
3185
  /**
3135
3186
  * Tick the event was generated.
3136
3187
  */
3137
- tick: uint;
3188
+ tick: uint32;
3138
3189
  }
3139
3190
  /**
3140
3191
  * Called before entity copy-paste is done.
@@ -3148,7 +3199,7 @@ interface on_pre_entity_settings_pasted {
3148
3199
  * Identifier of the event
3149
3200
  */
3150
3201
  name: defines.events;
3151
- player_index: uint;
3202
+ player_index: uint32;
3152
3203
  /**
3153
3204
  * The source entity settings will be copied from.
3154
3205
  */
@@ -3156,7 +3207,7 @@ interface on_pre_entity_settings_pasted {
3156
3207
  /**
3157
3208
  * Tick the event was generated.
3158
3209
  */
3159
- tick: uint;
3210
+ tick: uint32;
3160
3211
  }
3161
3212
  /**
3162
3213
  * Called before a ghost entity is destroyed as a result of being marked for deconstruction.
@@ -3172,11 +3223,11 @@ interface on_pre_ghost_deconstructed {
3172
3223
  /**
3173
3224
  * The player that did the deconstruction if any.
3174
3225
  */
3175
- player_index?: uint;
3226
+ player_index?: uint32;
3176
3227
  /**
3177
3228
  * Tick the event was generated.
3178
3229
  */
3179
- tick: uint;
3230
+ tick: uint32;
3180
3231
  }
3181
3232
  /**
3182
3233
  * Called before a ghost entity is upgraded.
@@ -3190,13 +3241,13 @@ interface on_pre_ghost_upgraded {
3190
3241
  /**
3191
3242
  * The player that did the upgrade if any.
3192
3243
  */
3193
- player_index?: uint;
3244
+ player_index?: uint32;
3194
3245
  quality: LuaQualityPrototype;
3195
3246
  target: LuaEntityPrototype;
3196
3247
  /**
3197
3248
  * Tick the event was generated.
3198
3249
  */
3199
- tick: uint;
3250
+ tick: uint32;
3200
3251
  }
3201
3252
  /**
3202
3253
  * Called directly before a permission group is deleted.
@@ -3213,11 +3264,11 @@ interface on_pre_permission_group_deleted {
3213
3264
  /**
3214
3265
  * The player doing the deletion or `nil` if by a mod.
3215
3266
  */
3216
- player_index?: uint;
3267
+ player_index?: uint32;
3217
3268
  /**
3218
3269
  * Tick the event was generated.
3219
3270
  */
3220
- tick: uint;
3271
+ tick: uint32;
3221
3272
  }
3222
3273
  /**
3223
3274
  * Called directly before a permission string is imported.
@@ -3230,11 +3281,11 @@ interface on_pre_permission_string_imported {
3230
3281
  /**
3231
3282
  * The player importing the string.
3232
3283
  */
3233
- player_index: uint;
3284
+ player_index: uint32;
3234
3285
  /**
3235
3286
  * Tick the event was generated.
3236
3287
  */
3237
- tick: uint;
3288
+ tick: uint32;
3238
3289
  }
3239
3290
  /**
3240
3291
  * Called when a player queues something to be crafted.
@@ -3251,11 +3302,11 @@ interface on_pre_player_crafted_item {
3251
3302
  /**
3252
3303
  * The player doing the crafting.
3253
3304
  */
3254
- player_index: uint;
3305
+ player_index: uint32;
3255
3306
  /**
3256
3307
  * The number of times the recipe is being queued.
3257
3308
  */
3258
- queued_count: uint;
3309
+ queued_count: uint32;
3259
3310
  /**
3260
3311
  * The recipe being queued.
3261
3312
  */
@@ -3263,7 +3314,7 @@ interface on_pre_player_crafted_item {
3263
3314
  /**
3264
3315
  * Tick the event was generated.
3265
3316
  */
3266
- tick: uint;
3317
+ tick: uint32;
3267
3318
  }
3268
3319
  /**
3269
3320
  * Called before a players dies.
@@ -3274,11 +3325,11 @@ interface on_pre_player_died {
3274
3325
  * Identifier of the event
3275
3326
  */
3276
3327
  name: defines.events;
3277
- player_index: uint;
3328
+ player_index: uint32;
3278
3329
  /**
3279
3330
  * Tick the event was generated.
3280
3331
  */
3281
- tick: uint;
3332
+ tick: uint32;
3282
3333
  }
3283
3334
  /**
3284
3335
  * Called before a player leaves the game.
@@ -3288,12 +3339,12 @@ interface on_pre_player_left_game {
3288
3339
  * Identifier of the event
3289
3340
  */
3290
3341
  name: defines.events;
3291
- player_index: uint;
3342
+ player_index: uint32;
3292
3343
  reason: defines.disconnect_reason;
3293
3344
  /**
3294
3345
  * Tick the event was generated.
3295
3346
  */
3296
- tick: uint;
3347
+ tick: uint32;
3297
3348
  }
3298
3349
  /**
3299
3350
  * Called when the player completes a mining action, but before the entity is potentially removed from the map. This is called even if the entity does not end up being removed.
@@ -3307,11 +3358,11 @@ interface on_pre_player_mined_item {
3307
3358
  * Identifier of the event
3308
3359
  */
3309
3360
  name: defines.events;
3310
- player_index: uint;
3361
+ player_index: uint32;
3311
3362
  /**
3312
3363
  * Tick the event was generated.
3313
3364
  */
3314
- tick: uint;
3365
+ tick: uint32;
3315
3366
  }
3316
3367
  /**
3317
3368
  * Called before a player is removed (deleted) from the game. This is markedly different from a player temporarily {@link leaving | runtime:on_player_left_game} the game, and instead behaves like the player never existed in the save file.
@@ -3324,11 +3375,11 @@ interface on_pre_player_removed {
3324
3375
  /**
3325
3376
  * The index of the removed player.
3326
3377
  */
3327
- player_index: uint;
3378
+ player_index: uint32;
3328
3379
  /**
3329
3380
  * Tick the event was generated.
3330
3381
  */
3331
- tick: uint;
3382
+ tick: uint32;
3332
3383
  }
3333
3384
  /**
3334
3385
  * Called before a player toggles the map editor on or off.
@@ -3338,11 +3389,11 @@ interface on_pre_player_toggled_map_editor {
3338
3389
  * Identifier of the event
3339
3390
  */
3340
3391
  name: defines.events;
3341
- player_index: uint;
3392
+ player_index: uint32;
3342
3393
  /**
3343
3394
  * Tick the event was generated.
3344
3395
  */
3345
- tick: uint;
3396
+ tick: uint32;
3346
3397
  }
3347
3398
  /**
3348
3399
  * Called directly before a robot explodes cliffs.
@@ -3365,7 +3416,7 @@ interface on_pre_robot_exploded_cliff {
3365
3416
  /**
3366
3417
  * Tick the event was generated.
3367
3418
  */
3368
- tick: uint;
3419
+ tick: uint32;
3369
3420
  }
3370
3421
  /**
3371
3422
  * Called just before the scenario finishes.
@@ -3382,7 +3433,7 @@ interface on_pre_scenario_finished {
3382
3433
  /**
3383
3434
  * Tick the event was generated.
3384
3435
  */
3385
- tick: uint;
3436
+ tick: uint32;
3386
3437
  }
3387
3438
  /**
3388
3439
  * Called just before a script inventory is resized.
@@ -3400,19 +3451,19 @@ interface on_pre_script_inventory_resized {
3400
3451
  /**
3401
3452
  * The new inventory size.
3402
3453
  */
3403
- new_size: uint;
3454
+ new_size: uint32;
3404
3455
  /**
3405
3456
  * The old inventory size.
3406
3457
  */
3407
- old_size: uint;
3458
+ old_size: uint32;
3408
3459
  /**
3409
3460
  * If done by console command; the player who ran the command.
3410
3461
  */
3411
- player_index?: uint;
3462
+ player_index?: uint32;
3412
3463
  /**
3413
3464
  * Tick the event was generated.
3414
3465
  */
3415
- tick: uint;
3466
+ tick: uint32;
3416
3467
  }
3417
3468
  /**
3418
3469
  * Called just before a surface is cleared (all entities removed and all chunks deleted).
@@ -3422,11 +3473,11 @@ interface on_pre_surface_cleared {
3422
3473
  * Identifier of the event
3423
3474
  */
3424
3475
  name: defines.events;
3425
- surface_index: uint;
3476
+ surface_index: uint32;
3426
3477
  /**
3427
3478
  * Tick the event was generated.
3428
3479
  */
3429
- tick: uint;
3480
+ tick: uint32;
3430
3481
  }
3431
3482
  /**
3432
3483
  * Called just before a surface is deleted.
@@ -3436,11 +3487,11 @@ interface on_pre_surface_deleted {
3436
3487
  * Identifier of the event
3437
3488
  */
3438
3489
  name: defines.events;
3439
- surface_index: uint;
3490
+ surface_index: uint32;
3440
3491
  /**
3441
3492
  * Tick the event was generated.
3442
3493
  */
3443
- tick: uint;
3494
+ tick: uint32;
3444
3495
  }
3445
3496
  /**
3446
3497
  * Called when the player triggers "redo".
@@ -3457,11 +3508,11 @@ interface on_redo_applied {
3457
3508
  /**
3458
3509
  * The player who triggered the redo action.
3459
3510
  */
3460
- player_index: uint;
3511
+ player_index: uint32;
3461
3512
  /**
3462
3513
  * Tick the event was generated.
3463
3514
  */
3464
- tick: uint;
3515
+ tick: uint32;
3465
3516
  }
3466
3517
  /**
3467
3518
  * Called when research is cancelled.
@@ -3478,15 +3529,15 @@ interface on_research_cancelled {
3478
3529
  /**
3479
3530
  * The player who cancelled the research if any.
3480
3531
  */
3481
- player_index?: uint;
3532
+ player_index?: uint32;
3482
3533
  /**
3483
3534
  * A mapping of technology name to how many times it was cancelled.
3484
3535
  */
3485
- research: Record<string, uint>;
3536
+ research: Record<string, uint32>;
3486
3537
  /**
3487
3538
  * Tick the event was generated.
3488
3539
  */
3489
- tick: uint;
3540
+ tick: uint32;
3490
3541
  }
3491
3542
  /**
3492
3543
  * Called when a research finishes.
@@ -3507,7 +3558,7 @@ interface on_research_finished {
3507
3558
  /**
3508
3559
  * Tick the event was generated.
3509
3560
  */
3510
- tick: uint;
3561
+ tick: uint32;
3511
3562
  }
3512
3563
  /**
3513
3564
  * Called when research is moved forwards or backwards in the research queue.
@@ -3524,11 +3575,11 @@ interface on_research_moved {
3524
3575
  /**
3525
3576
  * The player who did the re-arranging if any.
3526
3577
  */
3527
- player_index?: uint;
3578
+ player_index?: uint32;
3528
3579
  /**
3529
3580
  * Tick the event was generated.
3530
3581
  */
3531
- tick: uint;
3582
+ tick: uint32;
3532
3583
  }
3533
3584
  /**
3534
3585
  * Called when research is queued.
@@ -3545,7 +3596,7 @@ interface on_research_queued {
3545
3596
  /**
3546
3597
  * The player who queued the research if any.
3547
3598
  */
3548
- player_index?: uint;
3599
+ player_index?: uint32;
3549
3600
  /**
3550
3601
  * The technology queued
3551
3602
  */
@@ -3553,7 +3604,7 @@ interface on_research_queued {
3553
3604
  /**
3554
3605
  * Tick the event was generated.
3555
3606
  */
3556
- tick: uint;
3607
+ tick: uint32;
3557
3608
  }
3558
3609
  /**
3559
3610
  * Called when a research is reversed (unresearched).
@@ -3574,7 +3625,7 @@ interface on_research_reversed {
3574
3625
  /**
3575
3626
  * Tick the event was generated.
3576
3627
  */
3577
- tick: uint;
3628
+ tick: uint32;
3578
3629
  }
3579
3630
  /**
3580
3631
  * Called when a technology research starts.
@@ -3592,7 +3643,7 @@ interface on_research_started {
3592
3643
  /**
3593
3644
  * Tick the event was generated.
3594
3645
  */
3595
- tick: uint;
3646
+ tick: uint32;
3596
3647
  }
3597
3648
  /**
3598
3649
  * Called when a resource entity reaches 0 or its minimum yield for infinite resources.
@@ -3606,7 +3657,7 @@ interface on_resource_depleted {
3606
3657
  /**
3607
3658
  * Tick the event was generated.
3608
3659
  */
3609
- tick: uint;
3660
+ tick: uint32;
3610
3661
  }
3611
3662
  /**
3612
3663
  * Called when a construction robot builds an entity.
@@ -3635,7 +3686,7 @@ interface on_robot_built_entity {
3635
3686
  /**
3636
3687
  * Tick the event was generated.
3637
3688
  */
3638
- tick: uint;
3689
+ tick: uint32;
3639
3690
  }
3640
3691
  /**
3641
3692
  * Called after a robot builds tiles.
@@ -3664,11 +3715,11 @@ interface on_robot_built_tile {
3664
3715
  /**
3665
3716
  * The surface the tile(s) are build on.
3666
3717
  */
3667
- surface_index: uint;
3718
+ surface_index: uint32;
3668
3719
  /**
3669
3720
  * Tick the event was generated.
3670
3721
  */
3671
- tick: uint;
3722
+ tick: uint32;
3672
3723
  /**
3673
3724
  * The tile prototype that was placed.
3674
3725
  */
@@ -3698,7 +3749,7 @@ interface on_robot_exploded_cliff {
3698
3749
  /**
3699
3750
  * Tick the event was generated.
3700
3751
  */
3701
- tick: uint;
3752
+ tick: uint32;
3702
3753
  }
3703
3754
  /**
3704
3755
  * Called when a robot mines an entity.
@@ -3719,7 +3770,7 @@ interface on_robot_mined {
3719
3770
  /**
3720
3771
  * Tick the event was generated.
3721
3772
  */
3722
- tick: uint;
3773
+ tick: uint32;
3723
3774
  }
3724
3775
  /**
3725
3776
  * Called after the results of an entity being mined are collected just before the entity is destroyed.
@@ -3748,7 +3799,7 @@ interface on_robot_mined_entity {
3748
3799
  /**
3749
3800
  * Tick the event was generated.
3750
3801
  */
3751
- tick: uint;
3802
+ tick: uint32;
3752
3803
  }
3753
3804
  /**
3754
3805
  * Called after a robot mines tiles.
@@ -3765,11 +3816,11 @@ interface on_robot_mined_tile {
3765
3816
  /**
3766
3817
  * The surface the tile(s) were mined on.
3767
3818
  */
3768
- surface_index: uint;
3819
+ surface_index: uint32;
3769
3820
  /**
3770
3821
  * Tick the event was generated.
3771
3822
  */
3772
- tick: uint;
3823
+ tick: uint32;
3773
3824
  /**
3774
3825
  * The position data.
3775
3826
  */
@@ -3794,7 +3845,7 @@ interface on_robot_pre_mined {
3794
3845
  /**
3795
3846
  * Tick the event was generated.
3796
3847
  */
3797
- tick: uint;
3848
+ tick: uint32;
3798
3849
  }
3799
3850
  /**
3800
3851
  * Called when a rocket silo is ordered to be launched.
@@ -3807,13 +3858,13 @@ interface on_rocket_launch_ordered {
3807
3858
  /**
3808
3859
  * The player that is riding the rocket, if any.
3809
3860
  */
3810
- player_index?: uint;
3861
+ player_index?: uint32;
3811
3862
  rocket: LuaEntity;
3812
3863
  rocket_silo: LuaEntity;
3813
3864
  /**
3814
3865
  * Tick the event was generated.
3815
3866
  */
3816
- tick: uint;
3867
+ tick: uint32;
3817
3868
  }
3818
3869
  /**
3819
3870
  * Called when a rocket finishes ascending. (Triggers listening for finished rocket launch past 2.0 have been moved to 'on_cargo_pod_finished_ascending' as rocket and cargo pod are two separate entities)
@@ -3828,7 +3879,7 @@ interface on_rocket_launched {
3828
3879
  /**
3829
3880
  * Tick the event was generated.
3830
3881
  */
3831
- tick: uint;
3882
+ tick: uint32;
3832
3883
  }
3833
3884
  /**
3834
3885
  * Called when a runtime mod setting is changed by a player.
@@ -3841,7 +3892,7 @@ interface on_runtime_mod_setting_changed {
3841
3892
  /**
3842
3893
  * If the `setting_type` is `"global"` and it was changed through the mod settings GUI, this is the index of the player that changed the global setting. If the `setting_type` is `"runtime-per-user"` and it changed a current setting of the player, this is the index of the player whose setting was changed. In all other cases, this is `nil`.
3843
3894
  */
3844
- player_index?: uint;
3895
+ player_index?: uint32;
3845
3896
  /**
3846
3897
  * The prototype name of the setting that was changed.
3847
3898
  */
@@ -3850,7 +3901,7 @@ interface on_runtime_mod_setting_changed {
3850
3901
  /**
3851
3902
  * Tick the event was generated.
3852
3903
  */
3853
- tick: uint;
3904
+ tick: uint32;
3854
3905
  }
3855
3906
  /**
3856
3907
  * Called just after a script inventory is resized.
@@ -3868,11 +3919,11 @@ interface on_script_inventory_resized {
3868
3919
  /**
3869
3920
  * The new inventory size.
3870
3921
  */
3871
- new_size: uint;
3922
+ new_size: uint32;
3872
3923
  /**
3873
3924
  * The old inventory size.
3874
3925
  */
3875
- old_size: uint;
3926
+ old_size: uint32;
3876
3927
  /**
3877
3928
  * Any items which didn't fit into the new inventory size.
3878
3929
  */
@@ -3880,11 +3931,11 @@ interface on_script_inventory_resized {
3880
3931
  /**
3881
3932
  * If done by console command; the player who ran the command.
3882
3933
  */
3883
- player_index?: uint;
3934
+ player_index?: uint32;
3884
3935
  /**
3885
3936
  * Tick the event was generated.
3886
3937
  */
3887
- tick: uint;
3938
+ tick: uint32;
3888
3939
  }
3889
3940
  /**
3890
3941
  * Called when a {@link LuaSurface::request_path | runtime:LuaSurface::request_path} call completes.
@@ -3893,7 +3944,7 @@ interface on_script_path_request_finished {
3893
3944
  /**
3894
3945
  * Handle to associate the callback with a particular call to {@link LuaSurface::request_path | runtime:LuaSurface::request_path}.
3895
3946
  */
3896
- id: uint;
3947
+ id: uint32;
3897
3948
  /**
3898
3949
  * Identifier of the event
3899
3950
  */
@@ -3905,7 +3956,7 @@ interface on_script_path_request_finished {
3905
3956
  /**
3906
3957
  * Tick the event was generated.
3907
3958
  */
3908
- tick: uint;
3959
+ tick: uint32;
3909
3960
  /**
3910
3961
  * Indicates that the pathfinder failed because it is too busy, and that you can retry later.
3911
3962
  */
@@ -3933,13 +3984,13 @@ interface on_script_trigger_effect {
3933
3984
  /**
3934
3985
  * The surface the effect happened on.
3935
3986
  */
3936
- surface_index: uint;
3987
+ surface_index: uint32;
3937
3988
  target_entity?: LuaEntity;
3938
3989
  target_position?: MapPosition;
3939
3990
  /**
3940
3991
  * Tick the event was generated.
3941
3992
  */
3942
- tick: uint;
3993
+ tick: uint32;
3943
3994
  }
3944
3995
  /**
3945
3996
  * Called when an entity of type `radar` finishes scanning a sector.
@@ -3964,7 +4015,7 @@ interface on_sector_scanned {
3964
4015
  /**
3965
4016
  * Tick the event was generated.
3966
4017
  */
3967
- tick: uint;
4018
+ tick: uint32;
3968
4019
  }
3969
4020
  /**
3970
4021
  * Called when an individual segment of a SegmentedUnit is created.
@@ -3978,7 +4029,7 @@ interface on_segment_entity_created {
3978
4029
  /**
3979
4030
  * Tick the event was generated.
3980
4031
  */
3981
- tick: uint;
4032
+ tick: uint32;
3982
4033
  }
3983
4034
  /**
3984
4035
  * Called when a segmented unit is created for any reason.
@@ -4003,7 +4054,7 @@ interface on_segmented_unit_created {
4003
4054
  /**
4004
4055
  * Tick the event was generated.
4005
4056
  */
4006
- tick: uint;
4057
+ tick: uint32;
4007
4058
  }
4008
4059
  /**
4009
4060
  * Called when a segmented unit is damaged. This is not called when a segmented unit's health is set directly by another mod.
@@ -4042,7 +4093,7 @@ interface on_segmented_unit_damaged {
4042
4093
  /**
4043
4094
  * Tick the event was generated.
4044
4095
  */
4045
- tick: uint;
4096
+ tick: uint32;
4046
4097
  }
4047
4098
  /**
4048
4099
  * Called when a segmented unit dies.
@@ -4071,7 +4122,7 @@ interface on_segmented_unit_died {
4071
4122
  /**
4072
4123
  * Tick the event was generated.
4073
4124
  */
4074
- tick: uint;
4125
+ tick: uint32;
4075
4126
  }
4076
4127
  /**
4077
4128
  * Called after the selected entity changes for a given player.
@@ -4088,11 +4139,11 @@ interface on_selected_entity_changed {
4088
4139
  /**
4089
4140
  * The player whose selected entity changed.
4090
4141
  */
4091
- player_index: uint;
4142
+ player_index: uint32;
4092
4143
  /**
4093
4144
  * Tick the event was generated.
4094
4145
  */
4095
- tick: uint;
4146
+ tick: uint32;
4096
4147
  }
4097
4148
  /**
4098
4149
  * Called when {@link LuaGameScript::is_multiplayer | runtime:LuaGameScript::is_multiplayer} changes to false. May also be raised when it was already false but a game was loaded from a save file without hosting.
@@ -4105,7 +4156,7 @@ interface on_singleplayer_init {
4105
4156
  /**
4106
4157
  * Tick the event was generated.
4107
4158
  */
4108
- tick: uint;
4159
+ tick: uint32;
4109
4160
  }
4110
4161
  /**
4111
4162
  * Called when a space platform builds an entity.
@@ -4134,7 +4185,7 @@ interface on_space_platform_built_entity {
4134
4185
  /**
4135
4186
  * Tick the event was generated.
4136
4187
  */
4137
- tick: uint;
4188
+ tick: uint32;
4138
4189
  }
4139
4190
  /**
4140
4191
  * Called after a space platform builds tiles.
@@ -4163,11 +4214,11 @@ interface on_space_platform_built_tile {
4163
4214
  /**
4164
4215
  * The surface the tile(s) are build on.
4165
4216
  */
4166
- surface_index: uint;
4217
+ surface_index: uint32;
4167
4218
  /**
4168
4219
  * Tick the event was generated.
4169
4220
  */
4170
- tick: uint;
4221
+ tick: uint32;
4171
4222
  /**
4172
4223
  * The tile prototype that was placed.
4173
4224
  */
@@ -4190,7 +4241,7 @@ interface on_space_platform_changed_state {
4190
4241
  /**
4191
4242
  * Tick the event was generated.
4192
4243
  */
4193
- tick: uint;
4244
+ tick: uint32;
4194
4245
  }
4195
4246
  /**
4196
4247
  * Called after the results of an entity being mined are collected just before the entity is destroyed.
@@ -4219,7 +4270,7 @@ interface on_space_platform_mined_entity {
4219
4270
  /**
4220
4271
  * Tick the event was generated.
4221
4272
  */
4222
- tick: uint;
4273
+ tick: uint32;
4223
4274
  }
4224
4275
  /**
4225
4276
  * Called when a platform mines an entity.
@@ -4240,7 +4291,7 @@ interface on_space_platform_mined_item {
4240
4291
  /**
4241
4292
  * Tick the event was generated.
4242
4293
  */
4243
- tick: uint;
4294
+ tick: uint32;
4244
4295
  }
4245
4296
  /**
4246
4297
  * Called after a platform mines tiles.
@@ -4257,11 +4308,11 @@ interface on_space_platform_mined_tile {
4257
4308
  /**
4258
4309
  * The surface the tile(s) were mined on.
4259
4310
  */
4260
- surface_index: uint;
4311
+ surface_index: uint32;
4261
4312
  /**
4262
4313
  * Tick the event was generated.
4263
4314
  */
4264
- tick: uint;
4315
+ tick: uint32;
4265
4316
  /**
4266
4317
  * The position data.
4267
4318
  */
@@ -4286,7 +4337,7 @@ interface on_space_platform_pre_mined {
4286
4337
  /**
4287
4338
  * Tick the event was generated.
4288
4339
  */
4289
- tick: uint;
4340
+ tick: uint32;
4290
4341
  }
4291
4342
  /**
4292
4343
  * Called when a spider finishes moving to its autopilot position.
@@ -4299,7 +4350,7 @@ interface on_spider_command_completed {
4299
4350
  /**
4300
4351
  * Tick the event was generated.
4301
4352
  */
4302
- tick: uint;
4353
+ tick: uint32;
4303
4354
  /**
4304
4355
  * Spider vehicle which was requested to move.
4305
4356
  */
@@ -4312,7 +4363,7 @@ interface on_string_translated {
4312
4363
  /**
4313
4364
  * The unique id for this translation request.
4314
4365
  */
4315
- id: uint;
4366
+ id: uint32;
4316
4367
  /**
4317
4368
  * The localised string being translated.
4318
4369
  */
@@ -4324,7 +4375,7 @@ interface on_string_translated {
4324
4375
  /**
4325
4376
  * The player whose locale was used for the translation.
4326
4377
  */
4327
- player_index: uint;
4378
+ player_index: uint32;
4328
4379
  /**
4329
4380
  * The translated `localised_string`.
4330
4381
  */
@@ -4332,7 +4383,7 @@ interface on_string_translated {
4332
4383
  /**
4333
4384
  * Tick the event was generated.
4334
4385
  */
4335
- tick: uint;
4386
+ tick: uint32;
4336
4387
  /**
4337
4388
  * Whether the requested localised string was valid and could be translated.
4338
4389
  */
@@ -4346,11 +4397,11 @@ interface on_surface_cleared {
4346
4397
  * Identifier of the event
4347
4398
  */
4348
4399
  name: defines.events;
4349
- surface_index: uint;
4400
+ surface_index: uint32;
4350
4401
  /**
4351
4402
  * Tick the event was generated.
4352
4403
  */
4353
- tick: uint;
4404
+ tick: uint32;
4354
4405
  }
4355
4406
  /**
4356
4407
  * Called when a surface is created.
@@ -4362,11 +4413,11 @@ interface on_surface_created {
4362
4413
  * Identifier of the event
4363
4414
  */
4364
4415
  name: defines.events;
4365
- surface_index: uint;
4416
+ surface_index: uint32;
4366
4417
  /**
4367
4418
  * Tick the event was generated.
4368
4419
  */
4369
- tick: uint;
4420
+ tick: uint32;
4370
4421
  }
4371
4422
  /**
4372
4423
  * Called after a surface is deleted.
@@ -4376,11 +4427,11 @@ interface on_surface_deleted {
4376
4427
  * Identifier of the event
4377
4428
  */
4378
4429
  name: defines.events;
4379
- surface_index: uint;
4430
+ surface_index: uint32;
4380
4431
  /**
4381
4432
  * Tick the event was generated.
4382
4433
  */
4383
- tick: uint;
4434
+ tick: uint32;
4384
4435
  }
4385
4436
  /**
4386
4437
  * Called after a surface is imported via the map editor.
@@ -4394,11 +4445,11 @@ interface on_surface_imported {
4394
4445
  * The original surface name.
4395
4446
  */
4396
4447
  original_name: string;
4397
- surface_index: uint;
4448
+ surface_index: uint32;
4398
4449
  /**
4399
4450
  * Tick the event was generated.
4400
4451
  */
4401
- tick: uint;
4452
+ tick: uint32;
4402
4453
  }
4403
4454
  /**
4404
4455
  * Called when a surface is renamed.
@@ -4410,11 +4461,11 @@ interface on_surface_renamed {
4410
4461
  name: defines.events;
4411
4462
  new_name: string;
4412
4463
  old_name: string;
4413
- surface_index: uint;
4464
+ surface_index: uint32;
4414
4465
  /**
4415
4466
  * Tick the event was generated.
4416
4467
  */
4417
- tick: uint;
4468
+ tick: uint32;
4418
4469
  }
4419
4470
  /**
4420
4471
  * Called when {@link LuaForce::reset_technology_effects | runtime:LuaForce::reset_technology_effects} is finished.
@@ -4428,7 +4479,7 @@ interface on_technology_effects_reset {
4428
4479
  /**
4429
4480
  * Tick the event was generated.
4430
4481
  */
4431
- tick: uint;
4482
+ tick: uint32;
4432
4483
  }
4433
4484
  /**
4434
4485
  * Called when a territory is created for any reason.
@@ -4449,7 +4500,7 @@ interface on_territory_created {
4449
4500
  /**
4450
4501
  * Tick the event was generated.
4451
4502
  */
4452
- tick: uint;
4503
+ tick: uint32;
4453
4504
  }
4454
4505
  /**
4455
4506
  * Called when a territory is destroyed from a surface.
@@ -4466,7 +4517,7 @@ interface on_territory_destroyed {
4466
4517
  /**
4467
4518
  * Tick the event was generated.
4468
4519
  */
4469
- tick: uint;
4520
+ tick: uint32;
4470
4521
  }
4471
4522
  /**
4472
4523
  * It is fired once every tick. Since this event is fired every tick, its handler shouldn't include performance heavy code.
@@ -4479,7 +4530,7 @@ interface on_tick {
4479
4530
  /**
4480
4531
  * Tick the event was generated.
4481
4532
  */
4482
- tick: uint;
4533
+ tick: uint32;
4483
4534
  }
4484
4535
  /**
4485
4536
  * Called after the results of an entity being mined are collected just before the entity is destroyed.
@@ -4504,7 +4555,7 @@ interface on_tower_mined_plant {
4504
4555
  /**
4505
4556
  * Tick the event was generated.
4506
4557
  */
4507
- tick: uint;
4558
+ tick: uint32;
4508
4559
  /**
4509
4560
  * The tower doing the mining.
4510
4561
  */
@@ -4529,7 +4580,7 @@ interface on_tower_planted_seed {
4529
4580
  /**
4530
4581
  * Tick the event was generated.
4531
4582
  */
4532
- tick: uint;
4583
+ tick: uint32;
4533
4584
  /**
4534
4585
  * The tower that did the planting.
4535
4586
  */
@@ -4550,7 +4601,7 @@ interface on_tower_pre_mined_plant {
4550
4601
  /**
4551
4602
  * Tick the event was generated.
4552
4603
  */
4553
- tick: uint;
4604
+ tick: uint32;
4554
4605
  /**
4555
4606
  * The tower that is about to do the mining.
4556
4607
  */
@@ -4568,7 +4619,7 @@ interface on_train_changed_state {
4568
4619
  /**
4569
4620
  * Tick the event was generated.
4570
4621
  */
4571
- tick: uint;
4622
+ tick: uint32;
4572
4623
  train: LuaTrain;
4573
4624
  }
4574
4625
  /**
@@ -4582,15 +4633,15 @@ interface on_train_created {
4582
4633
  /**
4583
4634
  * The first old train id when splitting/merging trains.
4584
4635
  */
4585
- old_train_id_1?: uint;
4636
+ old_train_id_1?: uint32;
4586
4637
  /**
4587
4638
  * The second old train id when splitting/merging trains.
4588
4639
  */
4589
- old_train_id_2?: uint;
4640
+ old_train_id_2?: uint32;
4590
4641
  /**
4591
4642
  * Tick the event was generated.
4592
4643
  */
4593
- tick: uint;
4644
+ tick: uint32;
4594
4645
  train: LuaTrain;
4595
4646
  }
4596
4647
  /**
@@ -4604,11 +4655,11 @@ interface on_train_schedule_changed {
4604
4655
  /**
4605
4656
  * The player who made the change if any.
4606
4657
  */
4607
- player_index?: uint;
4658
+ player_index?: uint32;
4608
4659
  /**
4609
4660
  * Tick the event was generated.
4610
4661
  */
4611
- tick: uint;
4662
+ tick: uint32;
4612
4663
  train: LuaTrain;
4613
4664
  }
4614
4665
  /**
@@ -4624,7 +4675,7 @@ interface on_trigger_created_entity {
4624
4675
  /**
4625
4676
  * Tick the event was generated.
4626
4677
  */
4627
- tick: uint;
4678
+ tick: uint32;
4628
4679
  }
4629
4680
  /**
4630
4681
  * Called when an entity with a trigger prototype (such as capsules) fire an artillery projectile AND that trigger prototype defined `trigger_fired_artillery=true`.
@@ -4639,7 +4690,7 @@ interface on_trigger_fired_artillery {
4639
4690
  /**
4640
4691
  * Tick the event was generated.
4641
4692
  */
4642
- tick: uint;
4693
+ tick: uint32;
4643
4694
  }
4644
4695
  /**
4645
4696
  * Called when new packets are processed by {@link LuaHelpers::recv_udp | runtime:LuaHelpers::recv_udp}.
@@ -4656,7 +4707,7 @@ interface on_udp_packet_received {
4656
4707
  /**
4657
4708
  * The player index whose instance received this packet, or 0 if received on the server
4658
4709
  */
4659
- player_index: uint;
4710
+ player_index: uint32;
4660
4711
  /**
4661
4712
  * The source port the packet was received from
4662
4713
  */
@@ -4664,7 +4715,7 @@ interface on_udp_packet_received {
4664
4715
  /**
4665
4716
  * Tick the event was generated.
4666
4717
  */
4667
- tick: uint;
4718
+ tick: uint32;
4668
4719
  }
4669
4720
  /**
4670
4721
  * Called when the player triggers "undo".
@@ -4681,11 +4732,11 @@ interface on_undo_applied {
4681
4732
  /**
4682
4733
  * The player who triggered the undo action.
4683
4734
  */
4684
- player_index: uint;
4735
+ player_index: uint32;
4685
4736
  /**
4686
4737
  * Tick the event was generated.
4687
4738
  */
4688
- tick: uint;
4739
+ tick: uint32;
4689
4740
  }
4690
4741
  /**
4691
4742
  * Called when a unit is added to a unit group.
@@ -4699,7 +4750,7 @@ interface on_unit_added_to_group {
4699
4750
  /**
4700
4751
  * Tick the event was generated.
4701
4752
  */
4702
- tick: uint;
4753
+ tick: uint32;
4703
4754
  unit: LuaEntity;
4704
4755
  }
4705
4756
  /**
@@ -4714,7 +4765,7 @@ interface on_unit_group_created {
4714
4765
  /**
4715
4766
  * Tick the event was generated.
4716
4767
  */
4717
- tick: uint;
4768
+ tick: uint32;
4718
4769
  }
4719
4770
  /**
4720
4771
  * Called when a unit group finishes gathering and starts executing its command.
@@ -4728,7 +4779,7 @@ interface on_unit_group_finished_gathering {
4728
4779
  /**
4729
4780
  * Tick the event was generated.
4730
4781
  */
4731
- tick: uint;
4782
+ tick: uint32;
4732
4783
  }
4733
4784
  /**
4734
4785
  * Called when a unit is removed from a unit group.
@@ -4742,7 +4793,7 @@ interface on_unit_removed_from_group {
4742
4793
  /**
4743
4794
  * Tick the event was generated.
4744
4795
  */
4745
- tick: uint;
4796
+ tick: uint32;
4746
4797
  unit: LuaEntity;
4747
4798
  }
4748
4799
  /**
@@ -4757,7 +4808,7 @@ interface on_worker_robot_expired {
4757
4808
  /**
4758
4809
  * Tick the event was generated.
4759
4810
  */
4760
- tick: uint;
4811
+ tick: uint32;
4761
4812
  }
4762
4813
  /**
4763
4814
  * A static event mods can use to tell other mods they built something by script. This event is only raised if a mod does so with {@link LuaBootstrap::raise_event | runtime:LuaBootstrap::raise_event} or {@link LuaBootstrap::raise_script_built | runtime:LuaBootstrap::raise_script_built}, or when `raise_built` is passed to {@link LuaSurface::create_entity | runtime:LuaSurface::create_entity}.
@@ -4774,7 +4825,7 @@ interface script_raised_built {
4774
4825
  /**
4775
4826
  * Tick the event was generated.
4776
4827
  */
4777
- tick: uint;
4828
+ tick: uint32;
4778
4829
  }
4779
4830
  /**
4780
4831
  * A static event mods can use to tell other mods they destroyed something by script. This event is only raised if a mod does so with {@link LuaBootstrap::raise_event | runtime:LuaBootstrap::raise_event} or {@link LuaBootstrap::raise_script_destroy | runtime:LuaBootstrap::raise_script_destroy}, or when `raise_destroy` is passed to {@link LuaEntity::destroy | runtime:LuaEntity::destroy}.
@@ -4791,7 +4842,7 @@ interface script_raised_destroy {
4791
4842
  /**
4792
4843
  * Tick the event was generated.
4793
4844
  */
4794
- tick: uint;
4845
+ tick: uint32;
4795
4846
  }
4796
4847
  /**
4797
4848
  * A static event that mods can use to tell other mods they destroyed a segmented unit by script. This event is only raised if a mod does so with {@link LuaBootstrap::raise_event | runtime:LuaBootstrap::raise_event}, or {@link LuaBootstrap::raise_script_destroy_segmented_unit | runtime:LuaBootstrap::raise_script_destroy_segmented_unit}, or when `raise_destroy` is passed to {@link LuaSegmentedUnit::destroy | runtime:LuaSegmentedUnit::destroy}.
@@ -4808,7 +4859,7 @@ interface script_raised_destroy_segmented_unit {
4808
4859
  /**
4809
4860
  * Tick the event was generated.
4810
4861
  */
4811
- tick: uint;
4862
+ tick: uint32;
4812
4863
  }
4813
4864
  /**
4814
4865
  * A static event mods can use to tell other mods they revived something by script. This event is only raised if a mod does so with {@link LuaBootstrap::raise_event | runtime:LuaBootstrap::raise_event} or {@link LuaBootstrap::raise_script_revive | runtime:LuaBootstrap::raise_script_revive}, or when `raise_revive` is passed to {@link LuaEntity::revive | runtime:LuaEntity::revive}.
@@ -4829,7 +4880,7 @@ interface script_raised_revive {
4829
4880
  /**
4830
4881
  * Tick the event was generated.
4831
4882
  */
4832
- tick: uint;
4883
+ tick: uint32;
4833
4884
  }
4834
4885
  /**
4835
4886
  * A static event mods can use to tell other mods they changed tiles on a surface by script. This event is only raised if a mod does so with {@link LuaBootstrap::raise_event | runtime:LuaBootstrap::raise_event} or {@link LuaBootstrap::raise_script_set_tiles | runtime:LuaBootstrap::raise_script_set_tiles}, or when `raise_event` is passed to {@link LuaSurface::set_tiles | runtime:LuaSurface::set_tiles}.
@@ -4842,11 +4893,11 @@ interface script_raised_set_tiles {
4842
4893
  /**
4843
4894
  * The surface whose tiles were changed.
4844
4895
  */
4845
- surface_index: uint;
4896
+ surface_index: uint32;
4846
4897
  /**
4847
4898
  * Tick the event was generated.
4848
4899
  */
4849
- tick: uint;
4900
+ tick: uint32;
4850
4901
  /**
4851
4902
  * The tiles that were changed.
4852
4903
  */
@@ -4875,7 +4926,7 @@ interface script_raised_teleported {
4875
4926
  /**
4876
4927
  * Tick the event was generated.
4877
4928
  */
4878
- tick: uint;
4929
+ tick: uint32;
4879
4930
  }
4880
4931
 
4881
4932
  }