factorio-types 1.2.49 → 1.2.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/classes.d.ts +763 -588
- package/dist/concepts.d.ts +272 -197
- package/dist/datacollection.d.ts +1 -1
- package/dist/defines.d.ts +214 -206
- package/dist/events.d.ts +431 -398
- package/dist/global.d.ts +2 -2
- package/dist/prototypes.d.ts +111 -15
- package/dist/types.d.ts +89 -21
- package/package.json +2 -2
package/dist/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.
|
|
5
|
+
// Factorio version 2.0.67
|
|
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:
|
|
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:
|
|
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:
|
|
72
|
+
player_index: uint32;
|
|
69
73
|
/**
|
|
70
74
|
* Tick the event was generated.
|
|
71
75
|
*/
|
|
72
|
-
tick:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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?:
|
|
225
|
+
player_index?: uint32;
|
|
222
226
|
/**
|
|
223
227
|
* Tick the event was generated.
|
|
224
228
|
*/
|
|
225
|
-
tick:
|
|
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?:
|
|
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:
|
|
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:
|
|
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?:
|
|
282
|
+
player_index?: uint32;
|
|
279
283
|
/**
|
|
280
284
|
* Tick the event was generated.
|
|
281
285
|
*/
|
|
282
|
-
tick:
|
|
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?:
|
|
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:
|
|
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:
|
|
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?:
|
|
356
|
+
player_index?: uint32;
|
|
335
357
|
tag: LuaCustomChartTag;
|
|
336
358
|
/**
|
|
337
359
|
* Tick the event was generated.
|
|
338
360
|
*/
|
|
339
|
-
tick:
|
|
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?:
|
|
373
|
+
old_player_index?: uint32;
|
|
352
374
|
old_position: MapPosition;
|
|
353
375
|
old_surface: LuaSurface;
|
|
354
376
|
old_text: string;
|
|
355
|
-
player_index?:
|
|
377
|
+
player_index?: uint32;
|
|
356
378
|
tag: LuaCustomChartTag;
|
|
357
379
|
/**
|
|
358
380
|
* Tick the event was generated.
|
|
359
381
|
*/
|
|
360
|
-
tick:
|
|
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?:
|
|
393
|
+
player_index?: uint32;
|
|
372
394
|
tag: LuaCustomChartTag;
|
|
373
395
|
/**
|
|
374
396
|
* Tick the event was generated.
|
|
375
397
|
*/
|
|
376
|
-
tick:
|
|
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:
|
|
414
|
+
surface_index: uint32;
|
|
393
415
|
/**
|
|
394
416
|
* Tick the event was generated.
|
|
395
417
|
*/
|
|
396
|
-
tick:
|
|
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:
|
|
432
|
+
surface_index: uint32;
|
|
411
433
|
/**
|
|
412
434
|
* Tick the event was generated.
|
|
413
435
|
*/
|
|
414
|
-
tick:
|
|
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:
|
|
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:
|
|
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?:
|
|
498
|
+
player_index?: uint32;
|
|
477
499
|
/**
|
|
478
500
|
* Tick the event was generated.
|
|
479
501
|
*/
|
|
480
|
-
tick:
|
|
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?:
|
|
523
|
+
player_index?: uint32;
|
|
502
524
|
/**
|
|
503
525
|
* Tick the event was generated.
|
|
504
526
|
*/
|
|
505
|
-
tick:
|
|
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:
|
|
540
|
+
player_index: uint32;
|
|
519
541
|
/**
|
|
520
542
|
* Tick the event was generated.
|
|
521
543
|
*/
|
|
522
|
-
tick:
|
|
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:
|
|
557
|
+
player_index: uint32;
|
|
536
558
|
/**
|
|
537
559
|
* Tick the event was generated.
|
|
538
560
|
*/
|
|
539
|
-
tick:
|
|
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:
|
|
574
|
+
player_index: uint32;
|
|
553
575
|
/**
|
|
554
576
|
* Tick the event was generated.
|
|
555
577
|
*/
|
|
556
|
-
tick:
|
|
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:
|
|
593
|
+
player_index: uint32;
|
|
572
594
|
/**
|
|
573
595
|
* Tick the event was generated.
|
|
574
596
|
*/
|
|
575
|
-
tick:
|
|
597
|
+
tick: uint32;
|
|
576
598
|
/**
|
|
577
599
|
* The index of the waypoint we just completed.
|
|
578
600
|
*/
|
|
579
|
-
waypoint_index:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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?:
|
|
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:
|
|
732
|
+
slot_index: uint32;
|
|
711
733
|
/**
|
|
712
734
|
* Tick the event was generated.
|
|
713
735
|
*/
|
|
714
|
-
tick:
|
|
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?:
|
|
752
|
+
player_index?: uint32;
|
|
731
753
|
/**
|
|
732
754
|
* Tick the event was generated.
|
|
733
755
|
*/
|
|
734
|
-
tick:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
1006
|
+
player_index: uint32;
|
|
985
1007
|
/**
|
|
986
1008
|
* Tick the event was generated.
|
|
987
1009
|
*/
|
|
988
|
-
tick:
|
|
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:
|
|
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:
|
|
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:
|
|
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?:
|
|
1100
|
+
surface_index?: uint32;
|
|
1079
1101
|
/**
|
|
1080
1102
|
* Tick the event was generated.
|
|
1081
1103
|
*/
|
|
1082
|
-
tick:
|
|
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:
|
|
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:
|
|
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:
|
|
1158
|
+
player_index: uint32;
|
|
1137
1159
|
/**
|
|
1138
1160
|
* Tick the event was generated.
|
|
1139
1161
|
*/
|
|
1140
|
-
tick:
|
|
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:
|
|
1181
|
+
player_index: uint32;
|
|
1160
1182
|
/**
|
|
1161
1183
|
* Tick the event was generated.
|
|
1162
1184
|
*/
|
|
1163
|
-
tick:
|
|
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:
|
|
1204
|
+
player_index: uint32;
|
|
1183
1205
|
/**
|
|
1184
1206
|
* Tick the event was generated.
|
|
1185
1207
|
*/
|
|
1186
|
-
tick:
|
|
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:
|
|
1225
|
+
player_index: uint32;
|
|
1204
1226
|
/**
|
|
1205
1227
|
* Tick the event was generated.
|
|
1206
1228
|
*/
|
|
1207
|
-
tick:
|
|
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:
|
|
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?:
|
|
1274
|
+
surface_index?: uint32;
|
|
1253
1275
|
/**
|
|
1254
1276
|
* Tick the event was generated.
|
|
1255
1277
|
*/
|
|
1256
|
-
tick:
|
|
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:
|
|
1299
|
+
player_index: uint32;
|
|
1278
1300
|
/**
|
|
1279
1301
|
* Tick the event was generated.
|
|
1280
1302
|
*/
|
|
1281
|
-
tick:
|
|
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:
|
|
1320
|
+
player_index: uint32;
|
|
1299
1321
|
/**
|
|
1300
1322
|
* Tick the event was generated.
|
|
1301
1323
|
*/
|
|
1302
|
-
tick:
|
|
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:
|
|
1341
|
+
player_index: uint32;
|
|
1320
1342
|
/**
|
|
1321
1343
|
* Tick the event was generated.
|
|
1322
1344
|
*/
|
|
1323
|
-
tick:
|
|
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:
|
|
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:
|
|
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:
|
|
1387
|
+
player_index: uint32;
|
|
1366
1388
|
/**
|
|
1367
1389
|
* Tick the event was generated.
|
|
1368
1390
|
*/
|
|
1369
|
-
tick:
|
|
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:
|
|
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:
|
|
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:
|
|
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?:
|
|
1434
|
+
player_index?: uint32;
|
|
1413
1435
|
/**
|
|
1414
1436
|
* Tick the event was generated.
|
|
1415
1437
|
*/
|
|
1416
|
-
tick:
|
|
1438
|
+
tick: uint32;
|
|
1417
1439
|
}
|
|
1418
1440
|
/**
|
|
1419
|
-
* Called when an entity is marked for upgrade with the
|
|
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?:
|
|
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:
|
|
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:
|
|
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:
|
|
1487
|
+
offer_index: uint32;
|
|
1455
1488
|
/**
|
|
1456
1489
|
* The player who did the purchasing.
|
|
1457
1490
|
*/
|
|
1458
|
-
player_index:
|
|
1491
|
+
player_index: uint32;
|
|
1459
1492
|
/**
|
|
1460
1493
|
* Tick the event was generated.
|
|
1461
1494
|
*/
|
|
1462
|
-
tick:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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?:
|
|
1577
|
+
player_index?: uint32;
|
|
1545
1578
|
/**
|
|
1546
1579
|
* Tick the event was generated.
|
|
1547
1580
|
*/
|
|
1548
|
-
tick:
|
|
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:
|
|
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?:
|
|
1602
|
+
player_index?: uint32;
|
|
1570
1603
|
/**
|
|
1571
1604
|
* Tick the event was generated.
|
|
1572
1605
|
*/
|
|
1573
|
-
tick:
|
|
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:
|
|
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?:
|
|
1639
|
+
player_index?: uint32;
|
|
1607
1640
|
/**
|
|
1608
1641
|
* Tick the event was generated.
|
|
1609
1642
|
*/
|
|
1610
|
-
tick:
|
|
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:
|
|
1660
|
+
player_index: uint32;
|
|
1628
1661
|
/**
|
|
1629
1662
|
* Tick the event was generated.
|
|
1630
1663
|
*/
|
|
1631
|
-
tick:
|
|
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:
|
|
1675
|
+
player_index: uint32;
|
|
1643
1676
|
/**
|
|
1644
1677
|
* Tick the event was generated.
|
|
1645
1678
|
*/
|
|
1646
|
-
tick:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
1767
|
+
player_index: uint32;
|
|
1735
1768
|
/**
|
|
1736
1769
|
* Tick the event was generated.
|
|
1737
1770
|
*/
|
|
1738
|
-
tick:
|
|
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:
|
|
1781
|
+
player_index: uint32;
|
|
1749
1782
|
/**
|
|
1750
1783
|
* Tick the event was generated.
|
|
1751
1784
|
*/
|
|
1752
|
-
tick:
|
|
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?:
|
|
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?:
|
|
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:
|
|
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:
|
|
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:
|
|
1840
|
+
surface_index: uint32;
|
|
1808
1841
|
/**
|
|
1809
1842
|
* Tick the event was generated.
|
|
1810
1843
|
*/
|
|
1811
|
-
tick:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
1898
|
+
player_index: uint32;
|
|
1866
1899
|
/**
|
|
1867
1900
|
* Tick the event was generated.
|
|
1868
1901
|
*/
|
|
1869
|
-
tick:
|
|
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:
|
|
1915
|
+
player_index: uint32;
|
|
1883
1916
|
/**
|
|
1884
1917
|
* Tick the event was generated.
|
|
1885
1918
|
*/
|
|
1886
|
-
tick:
|
|
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:
|
|
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?:
|
|
1936
|
+
surface_index?: uint32;
|
|
1904
1937
|
/**
|
|
1905
1938
|
* Tick the event was generated.
|
|
1906
1939
|
*/
|
|
1907
|
-
tick:
|
|
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:
|
|
1953
|
+
player_index: uint32;
|
|
1921
1954
|
/**
|
|
1922
1955
|
* Tick the event was generated.
|
|
1923
1956
|
*/
|
|
1924
|
-
tick:
|
|
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:
|
|
1970
|
+
player_index: uint32;
|
|
1938
1971
|
/**
|
|
1939
1972
|
* Tick the event was generated.
|
|
1940
1973
|
*/
|
|
1941
|
-
tick:
|
|
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:
|
|
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:
|
|
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:
|
|
2012
|
+
player_index: uint32;
|
|
1980
2013
|
/**
|
|
1981
2014
|
* Tick the event was generated.
|
|
1982
2015
|
*/
|
|
1983
|
-
tick:
|
|
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:
|
|
2033
|
+
player_index: uint32;
|
|
2001
2034
|
/**
|
|
2002
2035
|
* Tick the event was generated.
|
|
2003
2036
|
*/
|
|
2004
|
-
tick:
|
|
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:
|
|
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:
|
|
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:
|
|
2072
|
+
player_index: uint32;
|
|
2040
2073
|
/**
|
|
2041
2074
|
* Tick the event was generated.
|
|
2042
2075
|
*/
|
|
2043
|
-
tick:
|
|
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:
|
|
2088
|
+
player_index: uint32;
|
|
2056
2089
|
/**
|
|
2057
2090
|
* Tick the event was generated.
|
|
2058
2091
|
*/
|
|
2059
|
-
tick:
|
|
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:
|
|
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:
|
|
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:
|
|
2150
|
+
player_index: uint32;
|
|
2118
2151
|
/**
|
|
2119
2152
|
* Tick the event was generated.
|
|
2120
2153
|
*/
|
|
2121
|
-
tick:
|
|
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:
|
|
2165
|
+
player_index: uint32;
|
|
2133
2166
|
/**
|
|
2134
2167
|
* Tick the event was generated.
|
|
2135
2168
|
*/
|
|
2136
|
-
tick:
|
|
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:
|
|
2186
|
+
player_index: uint32;
|
|
2154
2187
|
/**
|
|
2155
2188
|
* Tick the event was generated.
|
|
2156
2189
|
*/
|
|
2157
|
-
tick:
|
|
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:
|
|
2207
|
+
player_index: uint32;
|
|
2175
2208
|
/**
|
|
2176
2209
|
* Tick the event was generated.
|
|
2177
2210
|
*/
|
|
2178
|
-
tick:
|
|
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:
|
|
2228
|
+
player_index: uint32;
|
|
2196
2229
|
/**
|
|
2197
2230
|
* Tick the event was generated.
|
|
2198
2231
|
*/
|
|
2199
|
-
tick:
|
|
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:
|
|
2248
|
+
player_index: uint32;
|
|
2216
2249
|
/**
|
|
2217
2250
|
* Tick the event was generated.
|
|
2218
2251
|
*/
|
|
2219
|
-
tick:
|
|
2252
|
+
tick: uint32;
|
|
2220
2253
|
}
|
|
2221
2254
|
/**
|
|
2222
2255
|
* Called when a player drops an item on the ground.
|
|
@@ -2230,11 +2263,11 @@ interface on_player_dropped_item {
|
|
|
2230
2263
|
* Identifier of the event
|
|
2231
2264
|
*/
|
|
2232
2265
|
name: defines.events;
|
|
2233
|
-
player_index:
|
|
2266
|
+
player_index: uint32;
|
|
2234
2267
|
/**
|
|
2235
2268
|
* Tick the event was generated.
|
|
2236
2269
|
*/
|
|
2237
|
-
tick:
|
|
2270
|
+
tick: uint32;
|
|
2238
2271
|
}
|
|
2239
2272
|
/**
|
|
2240
2273
|
* Called when a player fast-transfers something to or from an entity.
|
|
@@ -2259,11 +2292,11 @@ interface on_player_fast_transferred {
|
|
|
2259
2292
|
/**
|
|
2260
2293
|
* The player transferred from or to.
|
|
2261
2294
|
*/
|
|
2262
|
-
player_index:
|
|
2295
|
+
player_index: uint32;
|
|
2263
2296
|
/**
|
|
2264
2297
|
* Tick the event was generated.
|
|
2265
2298
|
*/
|
|
2266
|
-
tick:
|
|
2299
|
+
tick: uint32;
|
|
2267
2300
|
}
|
|
2268
2301
|
/**
|
|
2269
2302
|
* 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 +2316,11 @@ interface on_player_flipped_entity {
|
|
|
2283
2316
|
* Identifier of the event
|
|
2284
2317
|
*/
|
|
2285
2318
|
name: defines.events;
|
|
2286
|
-
player_index:
|
|
2319
|
+
player_index: uint32;
|
|
2287
2320
|
/**
|
|
2288
2321
|
* Tick the event was generated.
|
|
2289
2322
|
*/
|
|
2290
|
-
tick:
|
|
2323
|
+
tick: uint32;
|
|
2291
2324
|
}
|
|
2292
2325
|
/**
|
|
2293
2326
|
* Called after player flushed fluid
|
|
@@ -2316,11 +2349,11 @@ interface on_player_flushed_fluid {
|
|
|
2316
2349
|
/**
|
|
2317
2350
|
* Index of the player
|
|
2318
2351
|
*/
|
|
2319
|
-
player_index:
|
|
2352
|
+
player_index: uint32;
|
|
2320
2353
|
/**
|
|
2321
2354
|
* Tick the event was generated.
|
|
2322
2355
|
*/
|
|
2323
|
-
tick:
|
|
2356
|
+
tick: uint32;
|
|
2324
2357
|
}
|
|
2325
2358
|
/**
|
|
2326
2359
|
* Called after a players gun inventory changed in some way.
|
|
@@ -2330,11 +2363,11 @@ interface on_player_gun_inventory_changed {
|
|
|
2330
2363
|
* Identifier of the event
|
|
2331
2364
|
*/
|
|
2332
2365
|
name: defines.events;
|
|
2333
|
-
player_index:
|
|
2366
|
+
player_index: uint32;
|
|
2334
2367
|
/**
|
|
2335
2368
|
* Tick the event was generated.
|
|
2336
2369
|
*/
|
|
2337
|
-
tick:
|
|
2370
|
+
tick: uint32;
|
|
2338
2371
|
}
|
|
2339
2372
|
/**
|
|
2340
2373
|
* Called when a player's input method changes. See {@link LuaPlayer::input_method | runtime:LuaPlayer::input_method}.
|
|
@@ -2347,11 +2380,11 @@ interface on_player_input_method_changed {
|
|
|
2347
2380
|
/**
|
|
2348
2381
|
* The player whose input method changed.
|
|
2349
2382
|
*/
|
|
2350
|
-
player_index:
|
|
2383
|
+
player_index: uint32;
|
|
2351
2384
|
/**
|
|
2352
2385
|
* Tick the event was generated.
|
|
2353
2386
|
*/
|
|
2354
|
-
tick:
|
|
2387
|
+
tick: uint32;
|
|
2355
2388
|
}
|
|
2356
2389
|
/**
|
|
2357
2390
|
* 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 +2394,11 @@ interface on_player_joined_game {
|
|
|
2361
2394
|
* Identifier of the event
|
|
2362
2395
|
*/
|
|
2363
2396
|
name: defines.events;
|
|
2364
|
-
player_index:
|
|
2397
|
+
player_index: uint32;
|
|
2365
2398
|
/**
|
|
2366
2399
|
* Tick the event was generated.
|
|
2367
2400
|
*/
|
|
2368
|
-
tick:
|
|
2401
|
+
tick: uint32;
|
|
2369
2402
|
}
|
|
2370
2403
|
/**
|
|
2371
2404
|
* Called when a player is kicked.
|
|
@@ -2374,7 +2407,7 @@ interface on_player_kicked {
|
|
|
2374
2407
|
/**
|
|
2375
2408
|
* The player that did the kicking if any.
|
|
2376
2409
|
*/
|
|
2377
|
-
by_player?:
|
|
2410
|
+
by_player?: uint32;
|
|
2378
2411
|
/**
|
|
2379
2412
|
* Identifier of the event
|
|
2380
2413
|
*/
|
|
@@ -2382,7 +2415,7 @@ interface on_player_kicked {
|
|
|
2382
2415
|
/**
|
|
2383
2416
|
* The player kicked.
|
|
2384
2417
|
*/
|
|
2385
|
-
player_index:
|
|
2418
|
+
player_index: uint32;
|
|
2386
2419
|
/**
|
|
2387
2420
|
* The reason given if any.
|
|
2388
2421
|
*/
|
|
@@ -2390,7 +2423,7 @@ interface on_player_kicked {
|
|
|
2390
2423
|
/**
|
|
2391
2424
|
* Tick the event was generated.
|
|
2392
2425
|
*/
|
|
2393
|
-
tick:
|
|
2426
|
+
tick: uint32;
|
|
2394
2427
|
}
|
|
2395
2428
|
/**
|
|
2396
2429
|
* 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 +2433,12 @@ interface on_player_left_game {
|
|
|
2400
2433
|
* Identifier of the event
|
|
2401
2434
|
*/
|
|
2402
2435
|
name: defines.events;
|
|
2403
|
-
player_index:
|
|
2436
|
+
player_index: uint32;
|
|
2404
2437
|
reason: defines.disconnect_reason;
|
|
2405
2438
|
/**
|
|
2406
2439
|
* Tick the event was generated.
|
|
2407
2440
|
*/
|
|
2408
|
-
tick:
|
|
2441
|
+
tick: uint32;
|
|
2409
2442
|
}
|
|
2410
2443
|
/**
|
|
2411
2444
|
* Called when a player's active locale changes. See {@link LuaPlayer::locale | runtime:LuaPlayer::locale}.
|
|
@@ -2422,11 +2455,11 @@ interface on_player_locale_changed {
|
|
|
2422
2455
|
/**
|
|
2423
2456
|
* The player whose locale was changed.
|
|
2424
2457
|
*/
|
|
2425
|
-
player_index:
|
|
2458
|
+
player_index: uint32;
|
|
2426
2459
|
/**
|
|
2427
2460
|
* Tick the event was generated.
|
|
2428
2461
|
*/
|
|
2429
|
-
tick:
|
|
2462
|
+
tick: uint32;
|
|
2430
2463
|
}
|
|
2431
2464
|
/**
|
|
2432
2465
|
* Called after a players main inventory changed in some way.
|
|
@@ -2436,11 +2469,11 @@ interface on_player_main_inventory_changed {
|
|
|
2436
2469
|
* Identifier of the event
|
|
2437
2470
|
*/
|
|
2438
2471
|
name: defines.events;
|
|
2439
|
-
player_index:
|
|
2472
|
+
player_index: uint32;
|
|
2440
2473
|
/**
|
|
2441
2474
|
* Tick the event was generated.
|
|
2442
2475
|
*/
|
|
2443
|
-
tick:
|
|
2476
|
+
tick: uint32;
|
|
2444
2477
|
}
|
|
2445
2478
|
/**
|
|
2446
2479
|
* Called after the results of an entity being mined are collected just before the entity is destroyed.
|
|
@@ -2465,11 +2498,11 @@ interface on_player_mined_entity {
|
|
|
2465
2498
|
/**
|
|
2466
2499
|
* The index of the player doing the mining.
|
|
2467
2500
|
*/
|
|
2468
|
-
player_index:
|
|
2501
|
+
player_index: uint32;
|
|
2469
2502
|
/**
|
|
2470
2503
|
* Tick the event was generated.
|
|
2471
2504
|
*/
|
|
2472
|
-
tick:
|
|
2505
|
+
tick: uint32;
|
|
2473
2506
|
}
|
|
2474
2507
|
/**
|
|
2475
2508
|
* Called when the player mines something.
|
|
@@ -2483,11 +2516,11 @@ interface on_player_mined_item {
|
|
|
2483
2516
|
* Identifier of the event
|
|
2484
2517
|
*/
|
|
2485
2518
|
name: defines.events;
|
|
2486
|
-
player_index:
|
|
2519
|
+
player_index: uint32;
|
|
2487
2520
|
/**
|
|
2488
2521
|
* Tick the event was generated.
|
|
2489
2522
|
*/
|
|
2490
|
-
tick:
|
|
2523
|
+
tick: uint32;
|
|
2491
2524
|
}
|
|
2492
2525
|
/**
|
|
2493
2526
|
* Called after a player mines tiles.
|
|
@@ -2497,15 +2530,15 @@ interface on_player_mined_tile {
|
|
|
2497
2530
|
* Identifier of the event
|
|
2498
2531
|
*/
|
|
2499
2532
|
name: defines.events;
|
|
2500
|
-
player_index:
|
|
2533
|
+
player_index: uint32;
|
|
2501
2534
|
/**
|
|
2502
2535
|
* The surface the tile(s) were mined from.
|
|
2503
2536
|
*/
|
|
2504
|
-
surface_index:
|
|
2537
|
+
surface_index: uint32;
|
|
2505
2538
|
/**
|
|
2506
2539
|
* Tick the event was generated.
|
|
2507
2540
|
*/
|
|
2508
|
-
tick:
|
|
2541
|
+
tick: uint32;
|
|
2509
2542
|
/**
|
|
2510
2543
|
* The position data.
|
|
2511
2544
|
*/
|
|
@@ -2522,11 +2555,11 @@ interface on_player_muted {
|
|
|
2522
2555
|
/**
|
|
2523
2556
|
* The player.
|
|
2524
2557
|
*/
|
|
2525
|
-
player_index:
|
|
2558
|
+
player_index: uint32;
|
|
2526
2559
|
/**
|
|
2527
2560
|
* Tick the event was generated.
|
|
2528
2561
|
*/
|
|
2529
|
-
tick:
|
|
2562
|
+
tick: uint32;
|
|
2530
2563
|
}
|
|
2531
2564
|
/**
|
|
2532
2565
|
* Called when a player invokes the "smart pipette" over an entity.
|
|
@@ -2543,7 +2576,7 @@ interface on_player_pipette {
|
|
|
2543
2576
|
/**
|
|
2544
2577
|
* The player
|
|
2545
2578
|
*/
|
|
2546
|
-
player_index:
|
|
2579
|
+
player_index: uint32;
|
|
2547
2580
|
/**
|
|
2548
2581
|
* The item quality put in the cursor
|
|
2549
2582
|
*/
|
|
@@ -2551,7 +2584,7 @@ interface on_player_pipette {
|
|
|
2551
2584
|
/**
|
|
2552
2585
|
* Tick the event was generated.
|
|
2553
2586
|
*/
|
|
2554
|
-
tick:
|
|
2587
|
+
tick: uint32;
|
|
2555
2588
|
/**
|
|
2556
2589
|
* If cheat mode was used to give a free stack of the item.
|
|
2557
2590
|
*/
|
|
@@ -2573,11 +2606,11 @@ interface on_player_placed_equipment {
|
|
|
2573
2606
|
* Identifier of the event
|
|
2574
2607
|
*/
|
|
2575
2608
|
name: defines.events;
|
|
2576
|
-
player_index:
|
|
2609
|
+
player_index: uint32;
|
|
2577
2610
|
/**
|
|
2578
2611
|
* Tick the event was generated.
|
|
2579
2612
|
*/
|
|
2580
|
-
tick:
|
|
2613
|
+
tick: uint32;
|
|
2581
2614
|
}
|
|
2582
2615
|
/**
|
|
2583
2616
|
* Called when a player is promoted.
|
|
@@ -2590,11 +2623,11 @@ interface on_player_promoted {
|
|
|
2590
2623
|
/**
|
|
2591
2624
|
* The player.
|
|
2592
2625
|
*/
|
|
2593
|
-
player_index:
|
|
2626
|
+
player_index: uint32;
|
|
2594
2627
|
/**
|
|
2595
2628
|
* Tick the event was generated.
|
|
2596
2629
|
*/
|
|
2597
|
-
tick:
|
|
2630
|
+
tick: uint32;
|
|
2598
2631
|
}
|
|
2599
2632
|
/**
|
|
2600
2633
|
* 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 +2640,11 @@ interface on_player_removed {
|
|
|
2607
2640
|
/**
|
|
2608
2641
|
* The index of the removed player.
|
|
2609
2642
|
*/
|
|
2610
|
-
player_index:
|
|
2643
|
+
player_index: uint32;
|
|
2611
2644
|
/**
|
|
2612
2645
|
* Tick the event was generated.
|
|
2613
2646
|
*/
|
|
2614
|
-
tick:
|
|
2647
|
+
tick: uint32;
|
|
2615
2648
|
}
|
|
2616
2649
|
/**
|
|
2617
2650
|
* Called after the player removes equipment from an equipment grid
|
|
@@ -2620,7 +2653,7 @@ interface on_player_removed_equipment {
|
|
|
2620
2653
|
/**
|
|
2621
2654
|
* The count of equipment removed.
|
|
2622
2655
|
*/
|
|
2623
|
-
count:
|
|
2656
|
+
count: uint32;
|
|
2624
2657
|
/**
|
|
2625
2658
|
* The equipment removed.
|
|
2626
2659
|
*/
|
|
@@ -2633,7 +2666,7 @@ interface on_player_removed_equipment {
|
|
|
2633
2666
|
* Identifier of the event
|
|
2634
2667
|
*/
|
|
2635
2668
|
name: defines.events;
|
|
2636
|
-
player_index:
|
|
2669
|
+
player_index: uint32;
|
|
2637
2670
|
/**
|
|
2638
2671
|
* The equipment quality.
|
|
2639
2672
|
*/
|
|
@@ -2641,7 +2674,7 @@ interface on_player_removed_equipment {
|
|
|
2641
2674
|
/**
|
|
2642
2675
|
* Tick the event was generated.
|
|
2643
2676
|
*/
|
|
2644
|
-
tick:
|
|
2677
|
+
tick: uint32;
|
|
2645
2678
|
}
|
|
2646
2679
|
/**
|
|
2647
2680
|
* Called when a player repairs an entity.
|
|
@@ -2652,11 +2685,11 @@ interface on_player_repaired_entity {
|
|
|
2652
2685
|
* Identifier of the event
|
|
2653
2686
|
*/
|
|
2654
2687
|
name: defines.events;
|
|
2655
|
-
player_index:
|
|
2688
|
+
player_index: uint32;
|
|
2656
2689
|
/**
|
|
2657
2690
|
* Tick the event was generated.
|
|
2658
2691
|
*/
|
|
2659
|
-
tick:
|
|
2692
|
+
tick: uint32;
|
|
2660
2693
|
}
|
|
2661
2694
|
/**
|
|
2662
2695
|
* Called after a player respawns.
|
|
@@ -2666,7 +2699,7 @@ interface on_player_respawned {
|
|
|
2666
2699
|
* Identifier of the event
|
|
2667
2700
|
*/
|
|
2668
2701
|
name: defines.events;
|
|
2669
|
-
player_index:
|
|
2702
|
+
player_index: uint32;
|
|
2670
2703
|
/**
|
|
2671
2704
|
* The player port used to respawn if one was used.
|
|
2672
2705
|
*/
|
|
@@ -2674,7 +2707,7 @@ interface on_player_respawned {
|
|
|
2674
2707
|
/**
|
|
2675
2708
|
* Tick the event was generated.
|
|
2676
2709
|
*/
|
|
2677
|
-
tick:
|
|
2710
|
+
tick: uint32;
|
|
2678
2711
|
}
|
|
2679
2712
|
/**
|
|
2680
2713
|
* Called after a player reverse-selects an area with a selection-tool item.
|
|
@@ -2699,7 +2732,7 @@ interface on_player_reverse_selected_area {
|
|
|
2699
2732
|
/**
|
|
2700
2733
|
* The player doing the selection.
|
|
2701
2734
|
*/
|
|
2702
|
-
player_index:
|
|
2735
|
+
player_index: uint32;
|
|
2703
2736
|
/**
|
|
2704
2737
|
* The surface selected.
|
|
2705
2738
|
*/
|
|
@@ -2707,7 +2740,7 @@ interface on_player_reverse_selected_area {
|
|
|
2707
2740
|
/**
|
|
2708
2741
|
* Tick the event was generated.
|
|
2709
2742
|
*/
|
|
2710
|
-
tick:
|
|
2743
|
+
tick: uint32;
|
|
2711
2744
|
/**
|
|
2712
2745
|
* The tiles selected.
|
|
2713
2746
|
*/
|
|
@@ -2727,7 +2760,7 @@ interface on_player_rotated_entity {
|
|
|
2727
2760
|
* Identifier of the event
|
|
2728
2761
|
*/
|
|
2729
2762
|
name: defines.events;
|
|
2730
|
-
player_index:
|
|
2763
|
+
player_index: uint32;
|
|
2731
2764
|
/**
|
|
2732
2765
|
* The previous direction
|
|
2733
2766
|
*/
|
|
@@ -2735,7 +2768,7 @@ interface on_player_rotated_entity {
|
|
|
2735
2768
|
/**
|
|
2736
2769
|
* Tick the event was generated.
|
|
2737
2770
|
*/
|
|
2738
|
-
tick:
|
|
2771
|
+
tick: uint32;
|
|
2739
2772
|
}
|
|
2740
2773
|
/**
|
|
2741
2774
|
* Called after a player selects an area with a selection-tool item.
|
|
@@ -2760,7 +2793,7 @@ interface on_player_selected_area {
|
|
|
2760
2793
|
/**
|
|
2761
2794
|
* The player doing the selection.
|
|
2762
2795
|
*/
|
|
2763
|
-
player_index:
|
|
2796
|
+
player_index: uint32;
|
|
2764
2797
|
/**
|
|
2765
2798
|
* The item quality used to select the area.
|
|
2766
2799
|
*/
|
|
@@ -2772,7 +2805,7 @@ interface on_player_selected_area {
|
|
|
2772
2805
|
/**
|
|
2773
2806
|
* Tick the event was generated.
|
|
2774
2807
|
*/
|
|
2775
|
-
tick:
|
|
2808
|
+
tick: uint32;
|
|
2776
2809
|
/**
|
|
2777
2810
|
* The tiles selected.
|
|
2778
2811
|
*/
|
|
@@ -2786,11 +2819,11 @@ interface on_player_set_quick_bar_slot {
|
|
|
2786
2819
|
* Identifier of the event
|
|
2787
2820
|
*/
|
|
2788
2821
|
name: defines.events;
|
|
2789
|
-
player_index:
|
|
2822
|
+
player_index: uint32;
|
|
2790
2823
|
/**
|
|
2791
2824
|
* Tick the event was generated.
|
|
2792
2825
|
*/
|
|
2793
|
-
tick:
|
|
2826
|
+
tick: uint32;
|
|
2794
2827
|
}
|
|
2795
2828
|
/**
|
|
2796
2829
|
* Called when a player selects an area with a blueprint.
|
|
@@ -2811,7 +2844,7 @@ interface on_player_setup_blueprint {
|
|
|
2811
2844
|
/**
|
|
2812
2845
|
* The blueprint entity index to source entity mapping. Note: if any mod changes the blueprint this will be incorrect.
|
|
2813
2846
|
*/
|
|
2814
|
-
mapping: LuaLazyLoadedValue<
|
|
2847
|
+
mapping: LuaLazyLoadedValue<LuaTable<uint32, LuaEntity>>;
|
|
2815
2848
|
/**
|
|
2816
2849
|
* Identifier of the event
|
|
2817
2850
|
*/
|
|
@@ -2819,7 +2852,7 @@ interface on_player_setup_blueprint {
|
|
|
2819
2852
|
/**
|
|
2820
2853
|
* The player doing the selection.
|
|
2821
2854
|
*/
|
|
2822
|
-
player_index:
|
|
2855
|
+
player_index: uint32;
|
|
2823
2856
|
/**
|
|
2824
2857
|
* The item quality used to select the area.
|
|
2825
2858
|
*/
|
|
@@ -2839,7 +2872,7 @@ interface on_player_setup_blueprint {
|
|
|
2839
2872
|
/**
|
|
2840
2873
|
* Tick the event was generated.
|
|
2841
2874
|
*/
|
|
2842
|
-
tick:
|
|
2875
|
+
tick: uint32;
|
|
2843
2876
|
}
|
|
2844
2877
|
/**
|
|
2845
2878
|
* Called when a player toggles alt mode, also known as "show entity info".
|
|
@@ -2853,11 +2886,11 @@ interface on_player_toggled_alt_mode {
|
|
|
2853
2886
|
* Identifier of the event
|
|
2854
2887
|
*/
|
|
2855
2888
|
name: defines.events;
|
|
2856
|
-
player_index:
|
|
2889
|
+
player_index: uint32;
|
|
2857
2890
|
/**
|
|
2858
2891
|
* Tick the event was generated.
|
|
2859
2892
|
*/
|
|
2860
|
-
tick:
|
|
2893
|
+
tick: uint32;
|
|
2861
2894
|
}
|
|
2862
2895
|
/**
|
|
2863
2896
|
* Called when a player toggles the map editor on or off.
|
|
@@ -2867,11 +2900,11 @@ interface on_player_toggled_map_editor {
|
|
|
2867
2900
|
* Identifier of the event
|
|
2868
2901
|
*/
|
|
2869
2902
|
name: defines.events;
|
|
2870
|
-
player_index:
|
|
2903
|
+
player_index: uint32;
|
|
2871
2904
|
/**
|
|
2872
2905
|
* Tick the event was generated.
|
|
2873
2906
|
*/
|
|
2874
|
-
tick:
|
|
2907
|
+
tick: uint32;
|
|
2875
2908
|
}
|
|
2876
2909
|
/**
|
|
2877
2910
|
* Called after a players trash inventory changed in some way.
|
|
@@ -2881,11 +2914,11 @@ interface on_player_trash_inventory_changed {
|
|
|
2881
2914
|
* Identifier of the event
|
|
2882
2915
|
*/
|
|
2883
2916
|
name: defines.events;
|
|
2884
|
-
player_index:
|
|
2917
|
+
player_index: uint32;
|
|
2885
2918
|
/**
|
|
2886
2919
|
* Tick the event was generated.
|
|
2887
2920
|
*/
|
|
2888
|
-
tick:
|
|
2921
|
+
tick: uint32;
|
|
2889
2922
|
}
|
|
2890
2923
|
/**
|
|
2891
2924
|
* Called when a player is un-banned.
|
|
@@ -2894,7 +2927,7 @@ interface on_player_unbanned {
|
|
|
2894
2927
|
/**
|
|
2895
2928
|
* The player that did the un-banning if any.
|
|
2896
2929
|
*/
|
|
2897
|
-
by_player?:
|
|
2930
|
+
by_player?: uint32;
|
|
2898
2931
|
/**
|
|
2899
2932
|
* Identifier of the event
|
|
2900
2933
|
*/
|
|
@@ -2902,7 +2935,7 @@ interface on_player_unbanned {
|
|
|
2902
2935
|
/**
|
|
2903
2936
|
* The player un-banned.
|
|
2904
2937
|
*/
|
|
2905
|
-
player_index?:
|
|
2938
|
+
player_index?: uint32;
|
|
2906
2939
|
/**
|
|
2907
2940
|
* The player name un-banned.
|
|
2908
2941
|
*/
|
|
@@ -2914,7 +2947,7 @@ interface on_player_unbanned {
|
|
|
2914
2947
|
/**
|
|
2915
2948
|
* Tick the event was generated.
|
|
2916
2949
|
*/
|
|
2917
|
-
tick:
|
|
2950
|
+
tick: uint32;
|
|
2918
2951
|
}
|
|
2919
2952
|
/**
|
|
2920
2953
|
* Called when a player is unmuted.
|
|
@@ -2927,11 +2960,11 @@ interface on_player_unmuted {
|
|
|
2927
2960
|
/**
|
|
2928
2961
|
* The player.
|
|
2929
2962
|
*/
|
|
2930
|
-
player_index:
|
|
2963
|
+
player_index: uint32;
|
|
2931
2964
|
/**
|
|
2932
2965
|
* Tick the event was generated.
|
|
2933
2966
|
*/
|
|
2934
|
-
tick:
|
|
2967
|
+
tick: uint32;
|
|
2935
2968
|
}
|
|
2936
2969
|
/**
|
|
2937
2970
|
* Called when a player uses a capsule that results in some game action.
|
|
@@ -2948,7 +2981,7 @@ interface on_player_used_capsule {
|
|
|
2948
2981
|
/**
|
|
2949
2982
|
* The player.
|
|
2950
2983
|
*/
|
|
2951
|
-
player_index:
|
|
2984
|
+
player_index: uint32;
|
|
2952
2985
|
/**
|
|
2953
2986
|
* The position the capsule was used.
|
|
2954
2987
|
*/
|
|
@@ -2960,7 +2993,7 @@ interface on_player_used_capsule {
|
|
|
2960
2993
|
/**
|
|
2961
2994
|
* Tick the event was generated.
|
|
2962
2995
|
*/
|
|
2963
|
-
tick:
|
|
2996
|
+
tick: uint32;
|
|
2964
2997
|
}
|
|
2965
2998
|
/**
|
|
2966
2999
|
* Called when a player uses spidertron remote to send all selected units to a given position
|
|
@@ -2973,7 +3006,7 @@ interface on_player_used_spidertron_remote {
|
|
|
2973
3006
|
/**
|
|
2974
3007
|
* The player that used the remote.
|
|
2975
3008
|
*/
|
|
2976
|
-
player_index:
|
|
3009
|
+
player_index: uint32;
|
|
2977
3010
|
/**
|
|
2978
3011
|
* Goal position to which spidertron was sent to.
|
|
2979
3012
|
*/
|
|
@@ -2981,7 +3014,7 @@ interface on_player_used_spidertron_remote {
|
|
|
2981
3014
|
/**
|
|
2982
3015
|
* Tick the event was generated.
|
|
2983
3016
|
*/
|
|
2984
|
-
tick:
|
|
3017
|
+
tick: uint32;
|
|
2985
3018
|
}
|
|
2986
3019
|
/**
|
|
2987
3020
|
* Called after an entity dies.
|
|
@@ -3022,15 +3055,15 @@ interface on_post_entity_died {
|
|
|
3022
3055
|
/**
|
|
3023
3056
|
* The surface the entity was on.
|
|
3024
3057
|
*/
|
|
3025
|
-
surface_index:
|
|
3058
|
+
surface_index: uint32;
|
|
3026
3059
|
/**
|
|
3027
3060
|
* Tick the event was generated.
|
|
3028
3061
|
*/
|
|
3029
|
-
tick:
|
|
3062
|
+
tick: uint32;
|
|
3030
3063
|
/**
|
|
3031
3064
|
* The unit number the entity had if any.
|
|
3032
3065
|
*/
|
|
3033
|
-
unit_number?:
|
|
3066
|
+
unit_number?: uint32;
|
|
3034
3067
|
}
|
|
3035
3068
|
/**
|
|
3036
3069
|
* Called after a segmented unit dies.
|
|
@@ -3063,15 +3096,15 @@ interface on_post_segmented_unit_died {
|
|
|
3063
3096
|
/**
|
|
3064
3097
|
* The surface the entity was on.
|
|
3065
3098
|
*/
|
|
3066
|
-
surface_index:
|
|
3099
|
+
surface_index: uint32;
|
|
3067
3100
|
/**
|
|
3068
3101
|
* Tick the event was generated.
|
|
3069
3102
|
*/
|
|
3070
|
-
tick:
|
|
3103
|
+
tick: uint32;
|
|
3071
3104
|
/**
|
|
3072
3105
|
* The unit number of the unit that died.
|
|
3073
3106
|
*/
|
|
3074
|
-
unit_number:
|
|
3107
|
+
unit_number: uint32;
|
|
3075
3108
|
}
|
|
3076
3109
|
/**
|
|
3077
3110
|
* Called when players uses an item to build something. Called before {@link on_built_entity | runtime:on_built_entity}.
|
|
@@ -3108,7 +3141,7 @@ interface on_pre_build {
|
|
|
3108
3141
|
/**
|
|
3109
3142
|
* The player who did the placing.
|
|
3110
3143
|
*/
|
|
3111
|
-
player_index:
|
|
3144
|
+
player_index: uint32;
|
|
3112
3145
|
/**
|
|
3113
3146
|
* Where the item was placed.
|
|
3114
3147
|
*/
|
|
@@ -3116,7 +3149,7 @@ interface on_pre_build {
|
|
|
3116
3149
|
/**
|
|
3117
3150
|
* Tick the event was generated.
|
|
3118
3151
|
*/
|
|
3119
|
-
tick:
|
|
3152
|
+
tick: uint32;
|
|
3120
3153
|
}
|
|
3121
3154
|
/**
|
|
3122
3155
|
* Called before one or more chunks are deleted using {@link LuaSurface::delete_chunk | runtime:LuaSurface::delete_chunk}.
|
|
@@ -3130,11 +3163,11 @@ interface on_pre_chunk_deleted {
|
|
|
3130
3163
|
* The chunks to be deleted.
|
|
3131
3164
|
*/
|
|
3132
3165
|
positions: ChunkPosition[];
|
|
3133
|
-
surface_index:
|
|
3166
|
+
surface_index: uint32;
|
|
3134
3167
|
/**
|
|
3135
3168
|
* Tick the event was generated.
|
|
3136
3169
|
*/
|
|
3137
|
-
tick:
|
|
3170
|
+
tick: uint32;
|
|
3138
3171
|
}
|
|
3139
3172
|
/**
|
|
3140
3173
|
* Called before entity copy-paste is done.
|
|
@@ -3148,7 +3181,7 @@ interface on_pre_entity_settings_pasted {
|
|
|
3148
3181
|
* Identifier of the event
|
|
3149
3182
|
*/
|
|
3150
3183
|
name: defines.events;
|
|
3151
|
-
player_index:
|
|
3184
|
+
player_index: uint32;
|
|
3152
3185
|
/**
|
|
3153
3186
|
* The source entity settings will be copied from.
|
|
3154
3187
|
*/
|
|
@@ -3156,7 +3189,7 @@ interface on_pre_entity_settings_pasted {
|
|
|
3156
3189
|
/**
|
|
3157
3190
|
* Tick the event was generated.
|
|
3158
3191
|
*/
|
|
3159
|
-
tick:
|
|
3192
|
+
tick: uint32;
|
|
3160
3193
|
}
|
|
3161
3194
|
/**
|
|
3162
3195
|
* Called before a ghost entity is destroyed as a result of being marked for deconstruction.
|
|
@@ -3172,11 +3205,11 @@ interface on_pre_ghost_deconstructed {
|
|
|
3172
3205
|
/**
|
|
3173
3206
|
* The player that did the deconstruction if any.
|
|
3174
3207
|
*/
|
|
3175
|
-
player_index?:
|
|
3208
|
+
player_index?: uint32;
|
|
3176
3209
|
/**
|
|
3177
3210
|
* Tick the event was generated.
|
|
3178
3211
|
*/
|
|
3179
|
-
tick:
|
|
3212
|
+
tick: uint32;
|
|
3180
3213
|
}
|
|
3181
3214
|
/**
|
|
3182
3215
|
* Called before a ghost entity is upgraded.
|
|
@@ -3190,13 +3223,13 @@ interface on_pre_ghost_upgraded {
|
|
|
3190
3223
|
/**
|
|
3191
3224
|
* The player that did the upgrade if any.
|
|
3192
3225
|
*/
|
|
3193
|
-
player_index?:
|
|
3226
|
+
player_index?: uint32;
|
|
3194
3227
|
quality: LuaQualityPrototype;
|
|
3195
3228
|
target: LuaEntityPrototype;
|
|
3196
3229
|
/**
|
|
3197
3230
|
* Tick the event was generated.
|
|
3198
3231
|
*/
|
|
3199
|
-
tick:
|
|
3232
|
+
tick: uint32;
|
|
3200
3233
|
}
|
|
3201
3234
|
/**
|
|
3202
3235
|
* Called directly before a permission group is deleted.
|
|
@@ -3213,11 +3246,11 @@ interface on_pre_permission_group_deleted {
|
|
|
3213
3246
|
/**
|
|
3214
3247
|
* The player doing the deletion or `nil` if by a mod.
|
|
3215
3248
|
*/
|
|
3216
|
-
player_index?:
|
|
3249
|
+
player_index?: uint32;
|
|
3217
3250
|
/**
|
|
3218
3251
|
* Tick the event was generated.
|
|
3219
3252
|
*/
|
|
3220
|
-
tick:
|
|
3253
|
+
tick: uint32;
|
|
3221
3254
|
}
|
|
3222
3255
|
/**
|
|
3223
3256
|
* Called directly before a permission string is imported.
|
|
@@ -3230,11 +3263,11 @@ interface on_pre_permission_string_imported {
|
|
|
3230
3263
|
/**
|
|
3231
3264
|
* The player importing the string.
|
|
3232
3265
|
*/
|
|
3233
|
-
player_index:
|
|
3266
|
+
player_index: uint32;
|
|
3234
3267
|
/**
|
|
3235
3268
|
* Tick the event was generated.
|
|
3236
3269
|
*/
|
|
3237
|
-
tick:
|
|
3270
|
+
tick: uint32;
|
|
3238
3271
|
}
|
|
3239
3272
|
/**
|
|
3240
3273
|
* Called when a player queues something to be crafted.
|
|
@@ -3251,11 +3284,11 @@ interface on_pre_player_crafted_item {
|
|
|
3251
3284
|
/**
|
|
3252
3285
|
* The player doing the crafting.
|
|
3253
3286
|
*/
|
|
3254
|
-
player_index:
|
|
3287
|
+
player_index: uint32;
|
|
3255
3288
|
/**
|
|
3256
3289
|
* The number of times the recipe is being queued.
|
|
3257
3290
|
*/
|
|
3258
|
-
queued_count:
|
|
3291
|
+
queued_count: uint32;
|
|
3259
3292
|
/**
|
|
3260
3293
|
* The recipe being queued.
|
|
3261
3294
|
*/
|
|
@@ -3263,7 +3296,7 @@ interface on_pre_player_crafted_item {
|
|
|
3263
3296
|
/**
|
|
3264
3297
|
* Tick the event was generated.
|
|
3265
3298
|
*/
|
|
3266
|
-
tick:
|
|
3299
|
+
tick: uint32;
|
|
3267
3300
|
}
|
|
3268
3301
|
/**
|
|
3269
3302
|
* Called before a players dies.
|
|
@@ -3274,11 +3307,11 @@ interface on_pre_player_died {
|
|
|
3274
3307
|
* Identifier of the event
|
|
3275
3308
|
*/
|
|
3276
3309
|
name: defines.events;
|
|
3277
|
-
player_index:
|
|
3310
|
+
player_index: uint32;
|
|
3278
3311
|
/**
|
|
3279
3312
|
* Tick the event was generated.
|
|
3280
3313
|
*/
|
|
3281
|
-
tick:
|
|
3314
|
+
tick: uint32;
|
|
3282
3315
|
}
|
|
3283
3316
|
/**
|
|
3284
3317
|
* Called before a player leaves the game.
|
|
@@ -3288,12 +3321,12 @@ interface on_pre_player_left_game {
|
|
|
3288
3321
|
* Identifier of the event
|
|
3289
3322
|
*/
|
|
3290
3323
|
name: defines.events;
|
|
3291
|
-
player_index:
|
|
3324
|
+
player_index: uint32;
|
|
3292
3325
|
reason: defines.disconnect_reason;
|
|
3293
3326
|
/**
|
|
3294
3327
|
* Tick the event was generated.
|
|
3295
3328
|
*/
|
|
3296
|
-
tick:
|
|
3329
|
+
tick: uint32;
|
|
3297
3330
|
}
|
|
3298
3331
|
/**
|
|
3299
3332
|
* 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 +3340,11 @@ interface on_pre_player_mined_item {
|
|
|
3307
3340
|
* Identifier of the event
|
|
3308
3341
|
*/
|
|
3309
3342
|
name: defines.events;
|
|
3310
|
-
player_index:
|
|
3343
|
+
player_index: uint32;
|
|
3311
3344
|
/**
|
|
3312
3345
|
* Tick the event was generated.
|
|
3313
3346
|
*/
|
|
3314
|
-
tick:
|
|
3347
|
+
tick: uint32;
|
|
3315
3348
|
}
|
|
3316
3349
|
/**
|
|
3317
3350
|
* 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 +3357,11 @@ interface on_pre_player_removed {
|
|
|
3324
3357
|
/**
|
|
3325
3358
|
* The index of the removed player.
|
|
3326
3359
|
*/
|
|
3327
|
-
player_index:
|
|
3360
|
+
player_index: uint32;
|
|
3328
3361
|
/**
|
|
3329
3362
|
* Tick the event was generated.
|
|
3330
3363
|
*/
|
|
3331
|
-
tick:
|
|
3364
|
+
tick: uint32;
|
|
3332
3365
|
}
|
|
3333
3366
|
/**
|
|
3334
3367
|
* Called before a player toggles the map editor on or off.
|
|
@@ -3338,11 +3371,11 @@ interface on_pre_player_toggled_map_editor {
|
|
|
3338
3371
|
* Identifier of the event
|
|
3339
3372
|
*/
|
|
3340
3373
|
name: defines.events;
|
|
3341
|
-
player_index:
|
|
3374
|
+
player_index: uint32;
|
|
3342
3375
|
/**
|
|
3343
3376
|
* Tick the event was generated.
|
|
3344
3377
|
*/
|
|
3345
|
-
tick:
|
|
3378
|
+
tick: uint32;
|
|
3346
3379
|
}
|
|
3347
3380
|
/**
|
|
3348
3381
|
* Called directly before a robot explodes cliffs.
|
|
@@ -3365,7 +3398,7 @@ interface on_pre_robot_exploded_cliff {
|
|
|
3365
3398
|
/**
|
|
3366
3399
|
* Tick the event was generated.
|
|
3367
3400
|
*/
|
|
3368
|
-
tick:
|
|
3401
|
+
tick: uint32;
|
|
3369
3402
|
}
|
|
3370
3403
|
/**
|
|
3371
3404
|
* Called just before the scenario finishes.
|
|
@@ -3382,7 +3415,7 @@ interface on_pre_scenario_finished {
|
|
|
3382
3415
|
/**
|
|
3383
3416
|
* Tick the event was generated.
|
|
3384
3417
|
*/
|
|
3385
|
-
tick:
|
|
3418
|
+
tick: uint32;
|
|
3386
3419
|
}
|
|
3387
3420
|
/**
|
|
3388
3421
|
* Called just before a script inventory is resized.
|
|
@@ -3400,19 +3433,19 @@ interface on_pre_script_inventory_resized {
|
|
|
3400
3433
|
/**
|
|
3401
3434
|
* The new inventory size.
|
|
3402
3435
|
*/
|
|
3403
|
-
new_size:
|
|
3436
|
+
new_size: uint32;
|
|
3404
3437
|
/**
|
|
3405
3438
|
* The old inventory size.
|
|
3406
3439
|
*/
|
|
3407
|
-
old_size:
|
|
3440
|
+
old_size: uint32;
|
|
3408
3441
|
/**
|
|
3409
3442
|
* If done by console command; the player who ran the command.
|
|
3410
3443
|
*/
|
|
3411
|
-
player_index?:
|
|
3444
|
+
player_index?: uint32;
|
|
3412
3445
|
/**
|
|
3413
3446
|
* Tick the event was generated.
|
|
3414
3447
|
*/
|
|
3415
|
-
tick:
|
|
3448
|
+
tick: uint32;
|
|
3416
3449
|
}
|
|
3417
3450
|
/**
|
|
3418
3451
|
* Called just before a surface is cleared (all entities removed and all chunks deleted).
|
|
@@ -3422,11 +3455,11 @@ interface on_pre_surface_cleared {
|
|
|
3422
3455
|
* Identifier of the event
|
|
3423
3456
|
*/
|
|
3424
3457
|
name: defines.events;
|
|
3425
|
-
surface_index:
|
|
3458
|
+
surface_index: uint32;
|
|
3426
3459
|
/**
|
|
3427
3460
|
* Tick the event was generated.
|
|
3428
3461
|
*/
|
|
3429
|
-
tick:
|
|
3462
|
+
tick: uint32;
|
|
3430
3463
|
}
|
|
3431
3464
|
/**
|
|
3432
3465
|
* Called just before a surface is deleted.
|
|
@@ -3436,11 +3469,11 @@ interface on_pre_surface_deleted {
|
|
|
3436
3469
|
* Identifier of the event
|
|
3437
3470
|
*/
|
|
3438
3471
|
name: defines.events;
|
|
3439
|
-
surface_index:
|
|
3472
|
+
surface_index: uint32;
|
|
3440
3473
|
/**
|
|
3441
3474
|
* Tick the event was generated.
|
|
3442
3475
|
*/
|
|
3443
|
-
tick:
|
|
3476
|
+
tick: uint32;
|
|
3444
3477
|
}
|
|
3445
3478
|
/**
|
|
3446
3479
|
* Called when the player triggers "redo".
|
|
@@ -3457,11 +3490,11 @@ interface on_redo_applied {
|
|
|
3457
3490
|
/**
|
|
3458
3491
|
* The player who triggered the redo action.
|
|
3459
3492
|
*/
|
|
3460
|
-
player_index:
|
|
3493
|
+
player_index: uint32;
|
|
3461
3494
|
/**
|
|
3462
3495
|
* Tick the event was generated.
|
|
3463
3496
|
*/
|
|
3464
|
-
tick:
|
|
3497
|
+
tick: uint32;
|
|
3465
3498
|
}
|
|
3466
3499
|
/**
|
|
3467
3500
|
* Called when research is cancelled.
|
|
@@ -3478,15 +3511,15 @@ interface on_research_cancelled {
|
|
|
3478
3511
|
/**
|
|
3479
3512
|
* The player who cancelled the research if any.
|
|
3480
3513
|
*/
|
|
3481
|
-
player_index?:
|
|
3514
|
+
player_index?: uint32;
|
|
3482
3515
|
/**
|
|
3483
3516
|
* A mapping of technology name to how many times it was cancelled.
|
|
3484
3517
|
*/
|
|
3485
|
-
research: Record<string,
|
|
3518
|
+
research: Record<string, uint32>;
|
|
3486
3519
|
/**
|
|
3487
3520
|
* Tick the event was generated.
|
|
3488
3521
|
*/
|
|
3489
|
-
tick:
|
|
3522
|
+
tick: uint32;
|
|
3490
3523
|
}
|
|
3491
3524
|
/**
|
|
3492
3525
|
* Called when a research finishes.
|
|
@@ -3507,7 +3540,7 @@ interface on_research_finished {
|
|
|
3507
3540
|
/**
|
|
3508
3541
|
* Tick the event was generated.
|
|
3509
3542
|
*/
|
|
3510
|
-
tick:
|
|
3543
|
+
tick: uint32;
|
|
3511
3544
|
}
|
|
3512
3545
|
/**
|
|
3513
3546
|
* Called when research is moved forwards or backwards in the research queue.
|
|
@@ -3524,11 +3557,11 @@ interface on_research_moved {
|
|
|
3524
3557
|
/**
|
|
3525
3558
|
* The player who did the re-arranging if any.
|
|
3526
3559
|
*/
|
|
3527
|
-
player_index?:
|
|
3560
|
+
player_index?: uint32;
|
|
3528
3561
|
/**
|
|
3529
3562
|
* Tick the event was generated.
|
|
3530
3563
|
*/
|
|
3531
|
-
tick:
|
|
3564
|
+
tick: uint32;
|
|
3532
3565
|
}
|
|
3533
3566
|
/**
|
|
3534
3567
|
* Called when research is queued.
|
|
@@ -3545,7 +3578,7 @@ interface on_research_queued {
|
|
|
3545
3578
|
/**
|
|
3546
3579
|
* The player who queued the research if any.
|
|
3547
3580
|
*/
|
|
3548
|
-
player_index?:
|
|
3581
|
+
player_index?: uint32;
|
|
3549
3582
|
/**
|
|
3550
3583
|
* The technology queued
|
|
3551
3584
|
*/
|
|
@@ -3553,7 +3586,7 @@ interface on_research_queued {
|
|
|
3553
3586
|
/**
|
|
3554
3587
|
* Tick the event was generated.
|
|
3555
3588
|
*/
|
|
3556
|
-
tick:
|
|
3589
|
+
tick: uint32;
|
|
3557
3590
|
}
|
|
3558
3591
|
/**
|
|
3559
3592
|
* Called when a research is reversed (unresearched).
|
|
@@ -3574,7 +3607,7 @@ interface on_research_reversed {
|
|
|
3574
3607
|
/**
|
|
3575
3608
|
* Tick the event was generated.
|
|
3576
3609
|
*/
|
|
3577
|
-
tick:
|
|
3610
|
+
tick: uint32;
|
|
3578
3611
|
}
|
|
3579
3612
|
/**
|
|
3580
3613
|
* Called when a technology research starts.
|
|
@@ -3592,7 +3625,7 @@ interface on_research_started {
|
|
|
3592
3625
|
/**
|
|
3593
3626
|
* Tick the event was generated.
|
|
3594
3627
|
*/
|
|
3595
|
-
tick:
|
|
3628
|
+
tick: uint32;
|
|
3596
3629
|
}
|
|
3597
3630
|
/**
|
|
3598
3631
|
* Called when a resource entity reaches 0 or its minimum yield for infinite resources.
|
|
@@ -3606,7 +3639,7 @@ interface on_resource_depleted {
|
|
|
3606
3639
|
/**
|
|
3607
3640
|
* Tick the event was generated.
|
|
3608
3641
|
*/
|
|
3609
|
-
tick:
|
|
3642
|
+
tick: uint32;
|
|
3610
3643
|
}
|
|
3611
3644
|
/**
|
|
3612
3645
|
* Called when a construction robot builds an entity.
|
|
@@ -3635,7 +3668,7 @@ interface on_robot_built_entity {
|
|
|
3635
3668
|
/**
|
|
3636
3669
|
* Tick the event was generated.
|
|
3637
3670
|
*/
|
|
3638
|
-
tick:
|
|
3671
|
+
tick: uint32;
|
|
3639
3672
|
}
|
|
3640
3673
|
/**
|
|
3641
3674
|
* Called after a robot builds tiles.
|
|
@@ -3664,11 +3697,11 @@ interface on_robot_built_tile {
|
|
|
3664
3697
|
/**
|
|
3665
3698
|
* The surface the tile(s) are build on.
|
|
3666
3699
|
*/
|
|
3667
|
-
surface_index:
|
|
3700
|
+
surface_index: uint32;
|
|
3668
3701
|
/**
|
|
3669
3702
|
* Tick the event was generated.
|
|
3670
3703
|
*/
|
|
3671
|
-
tick:
|
|
3704
|
+
tick: uint32;
|
|
3672
3705
|
/**
|
|
3673
3706
|
* The tile prototype that was placed.
|
|
3674
3707
|
*/
|
|
@@ -3698,7 +3731,7 @@ interface on_robot_exploded_cliff {
|
|
|
3698
3731
|
/**
|
|
3699
3732
|
* Tick the event was generated.
|
|
3700
3733
|
*/
|
|
3701
|
-
tick:
|
|
3734
|
+
tick: uint32;
|
|
3702
3735
|
}
|
|
3703
3736
|
/**
|
|
3704
3737
|
* Called when a robot mines an entity.
|
|
@@ -3719,7 +3752,7 @@ interface on_robot_mined {
|
|
|
3719
3752
|
/**
|
|
3720
3753
|
* Tick the event was generated.
|
|
3721
3754
|
*/
|
|
3722
|
-
tick:
|
|
3755
|
+
tick: uint32;
|
|
3723
3756
|
}
|
|
3724
3757
|
/**
|
|
3725
3758
|
* Called after the results of an entity being mined are collected just before the entity is destroyed.
|
|
@@ -3748,7 +3781,7 @@ interface on_robot_mined_entity {
|
|
|
3748
3781
|
/**
|
|
3749
3782
|
* Tick the event was generated.
|
|
3750
3783
|
*/
|
|
3751
|
-
tick:
|
|
3784
|
+
tick: uint32;
|
|
3752
3785
|
}
|
|
3753
3786
|
/**
|
|
3754
3787
|
* Called after a robot mines tiles.
|
|
@@ -3765,11 +3798,11 @@ interface on_robot_mined_tile {
|
|
|
3765
3798
|
/**
|
|
3766
3799
|
* The surface the tile(s) were mined on.
|
|
3767
3800
|
*/
|
|
3768
|
-
surface_index:
|
|
3801
|
+
surface_index: uint32;
|
|
3769
3802
|
/**
|
|
3770
3803
|
* Tick the event was generated.
|
|
3771
3804
|
*/
|
|
3772
|
-
tick:
|
|
3805
|
+
tick: uint32;
|
|
3773
3806
|
/**
|
|
3774
3807
|
* The position data.
|
|
3775
3808
|
*/
|
|
@@ -3794,7 +3827,7 @@ interface on_robot_pre_mined {
|
|
|
3794
3827
|
/**
|
|
3795
3828
|
* Tick the event was generated.
|
|
3796
3829
|
*/
|
|
3797
|
-
tick:
|
|
3830
|
+
tick: uint32;
|
|
3798
3831
|
}
|
|
3799
3832
|
/**
|
|
3800
3833
|
* Called when a rocket silo is ordered to be launched.
|
|
@@ -3807,13 +3840,13 @@ interface on_rocket_launch_ordered {
|
|
|
3807
3840
|
/**
|
|
3808
3841
|
* The player that is riding the rocket, if any.
|
|
3809
3842
|
*/
|
|
3810
|
-
player_index?:
|
|
3843
|
+
player_index?: uint32;
|
|
3811
3844
|
rocket: LuaEntity;
|
|
3812
3845
|
rocket_silo: LuaEntity;
|
|
3813
3846
|
/**
|
|
3814
3847
|
* Tick the event was generated.
|
|
3815
3848
|
*/
|
|
3816
|
-
tick:
|
|
3849
|
+
tick: uint32;
|
|
3817
3850
|
}
|
|
3818
3851
|
/**
|
|
3819
3852
|
* 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 +3861,7 @@ interface on_rocket_launched {
|
|
|
3828
3861
|
/**
|
|
3829
3862
|
* Tick the event was generated.
|
|
3830
3863
|
*/
|
|
3831
|
-
tick:
|
|
3864
|
+
tick: uint32;
|
|
3832
3865
|
}
|
|
3833
3866
|
/**
|
|
3834
3867
|
* Called when a runtime mod setting is changed by a player.
|
|
@@ -3841,7 +3874,7 @@ interface on_runtime_mod_setting_changed {
|
|
|
3841
3874
|
/**
|
|
3842
3875
|
* 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
3876
|
*/
|
|
3844
|
-
player_index?:
|
|
3877
|
+
player_index?: uint32;
|
|
3845
3878
|
/**
|
|
3846
3879
|
* The prototype name of the setting that was changed.
|
|
3847
3880
|
*/
|
|
@@ -3850,7 +3883,7 @@ interface on_runtime_mod_setting_changed {
|
|
|
3850
3883
|
/**
|
|
3851
3884
|
* Tick the event was generated.
|
|
3852
3885
|
*/
|
|
3853
|
-
tick:
|
|
3886
|
+
tick: uint32;
|
|
3854
3887
|
}
|
|
3855
3888
|
/**
|
|
3856
3889
|
* Called just after a script inventory is resized.
|
|
@@ -3868,11 +3901,11 @@ interface on_script_inventory_resized {
|
|
|
3868
3901
|
/**
|
|
3869
3902
|
* The new inventory size.
|
|
3870
3903
|
*/
|
|
3871
|
-
new_size:
|
|
3904
|
+
new_size: uint32;
|
|
3872
3905
|
/**
|
|
3873
3906
|
* The old inventory size.
|
|
3874
3907
|
*/
|
|
3875
|
-
old_size:
|
|
3908
|
+
old_size: uint32;
|
|
3876
3909
|
/**
|
|
3877
3910
|
* Any items which didn't fit into the new inventory size.
|
|
3878
3911
|
*/
|
|
@@ -3880,11 +3913,11 @@ interface on_script_inventory_resized {
|
|
|
3880
3913
|
/**
|
|
3881
3914
|
* If done by console command; the player who ran the command.
|
|
3882
3915
|
*/
|
|
3883
|
-
player_index?:
|
|
3916
|
+
player_index?: uint32;
|
|
3884
3917
|
/**
|
|
3885
3918
|
* Tick the event was generated.
|
|
3886
3919
|
*/
|
|
3887
|
-
tick:
|
|
3920
|
+
tick: uint32;
|
|
3888
3921
|
}
|
|
3889
3922
|
/**
|
|
3890
3923
|
* Called when a {@link LuaSurface::request_path | runtime:LuaSurface::request_path} call completes.
|
|
@@ -3893,7 +3926,7 @@ interface on_script_path_request_finished {
|
|
|
3893
3926
|
/**
|
|
3894
3927
|
* Handle to associate the callback with a particular call to {@link LuaSurface::request_path | runtime:LuaSurface::request_path}.
|
|
3895
3928
|
*/
|
|
3896
|
-
id:
|
|
3929
|
+
id: uint32;
|
|
3897
3930
|
/**
|
|
3898
3931
|
* Identifier of the event
|
|
3899
3932
|
*/
|
|
@@ -3905,7 +3938,7 @@ interface on_script_path_request_finished {
|
|
|
3905
3938
|
/**
|
|
3906
3939
|
* Tick the event was generated.
|
|
3907
3940
|
*/
|
|
3908
|
-
tick:
|
|
3941
|
+
tick: uint32;
|
|
3909
3942
|
/**
|
|
3910
3943
|
* Indicates that the pathfinder failed because it is too busy, and that you can retry later.
|
|
3911
3944
|
*/
|
|
@@ -3933,13 +3966,13 @@ interface on_script_trigger_effect {
|
|
|
3933
3966
|
/**
|
|
3934
3967
|
* The surface the effect happened on.
|
|
3935
3968
|
*/
|
|
3936
|
-
surface_index:
|
|
3969
|
+
surface_index: uint32;
|
|
3937
3970
|
target_entity?: LuaEntity;
|
|
3938
3971
|
target_position?: MapPosition;
|
|
3939
3972
|
/**
|
|
3940
3973
|
* Tick the event was generated.
|
|
3941
3974
|
*/
|
|
3942
|
-
tick:
|
|
3975
|
+
tick: uint32;
|
|
3943
3976
|
}
|
|
3944
3977
|
/**
|
|
3945
3978
|
* Called when an entity of type `radar` finishes scanning a sector.
|
|
@@ -3964,7 +3997,7 @@ interface on_sector_scanned {
|
|
|
3964
3997
|
/**
|
|
3965
3998
|
* Tick the event was generated.
|
|
3966
3999
|
*/
|
|
3967
|
-
tick:
|
|
4000
|
+
tick: uint32;
|
|
3968
4001
|
}
|
|
3969
4002
|
/**
|
|
3970
4003
|
* Called when an individual segment of a SegmentedUnit is created.
|
|
@@ -3978,7 +4011,7 @@ interface on_segment_entity_created {
|
|
|
3978
4011
|
/**
|
|
3979
4012
|
* Tick the event was generated.
|
|
3980
4013
|
*/
|
|
3981
|
-
tick:
|
|
4014
|
+
tick: uint32;
|
|
3982
4015
|
}
|
|
3983
4016
|
/**
|
|
3984
4017
|
* Called when a segmented unit is created for any reason.
|
|
@@ -4003,7 +4036,7 @@ interface on_segmented_unit_created {
|
|
|
4003
4036
|
/**
|
|
4004
4037
|
* Tick the event was generated.
|
|
4005
4038
|
*/
|
|
4006
|
-
tick:
|
|
4039
|
+
tick: uint32;
|
|
4007
4040
|
}
|
|
4008
4041
|
/**
|
|
4009
4042
|
* 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 +4075,7 @@ interface on_segmented_unit_damaged {
|
|
|
4042
4075
|
/**
|
|
4043
4076
|
* Tick the event was generated.
|
|
4044
4077
|
*/
|
|
4045
|
-
tick:
|
|
4078
|
+
tick: uint32;
|
|
4046
4079
|
}
|
|
4047
4080
|
/**
|
|
4048
4081
|
* Called when a segmented unit dies.
|
|
@@ -4071,7 +4104,7 @@ interface on_segmented_unit_died {
|
|
|
4071
4104
|
/**
|
|
4072
4105
|
* Tick the event was generated.
|
|
4073
4106
|
*/
|
|
4074
|
-
tick:
|
|
4107
|
+
tick: uint32;
|
|
4075
4108
|
}
|
|
4076
4109
|
/**
|
|
4077
4110
|
* Called after the selected entity changes for a given player.
|
|
@@ -4088,11 +4121,11 @@ interface on_selected_entity_changed {
|
|
|
4088
4121
|
/**
|
|
4089
4122
|
* The player whose selected entity changed.
|
|
4090
4123
|
*/
|
|
4091
|
-
player_index:
|
|
4124
|
+
player_index: uint32;
|
|
4092
4125
|
/**
|
|
4093
4126
|
* Tick the event was generated.
|
|
4094
4127
|
*/
|
|
4095
|
-
tick:
|
|
4128
|
+
tick: uint32;
|
|
4096
4129
|
}
|
|
4097
4130
|
/**
|
|
4098
4131
|
* 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 +4138,7 @@ interface on_singleplayer_init {
|
|
|
4105
4138
|
/**
|
|
4106
4139
|
* Tick the event was generated.
|
|
4107
4140
|
*/
|
|
4108
|
-
tick:
|
|
4141
|
+
tick: uint32;
|
|
4109
4142
|
}
|
|
4110
4143
|
/**
|
|
4111
4144
|
* Called when a space platform builds an entity.
|
|
@@ -4134,7 +4167,7 @@ interface on_space_platform_built_entity {
|
|
|
4134
4167
|
/**
|
|
4135
4168
|
* Tick the event was generated.
|
|
4136
4169
|
*/
|
|
4137
|
-
tick:
|
|
4170
|
+
tick: uint32;
|
|
4138
4171
|
}
|
|
4139
4172
|
/**
|
|
4140
4173
|
* Called after a space platform builds tiles.
|
|
@@ -4163,11 +4196,11 @@ interface on_space_platform_built_tile {
|
|
|
4163
4196
|
/**
|
|
4164
4197
|
* The surface the tile(s) are build on.
|
|
4165
4198
|
*/
|
|
4166
|
-
surface_index:
|
|
4199
|
+
surface_index: uint32;
|
|
4167
4200
|
/**
|
|
4168
4201
|
* Tick the event was generated.
|
|
4169
4202
|
*/
|
|
4170
|
-
tick:
|
|
4203
|
+
tick: uint32;
|
|
4171
4204
|
/**
|
|
4172
4205
|
* The tile prototype that was placed.
|
|
4173
4206
|
*/
|
|
@@ -4190,7 +4223,7 @@ interface on_space_platform_changed_state {
|
|
|
4190
4223
|
/**
|
|
4191
4224
|
* Tick the event was generated.
|
|
4192
4225
|
*/
|
|
4193
|
-
tick:
|
|
4226
|
+
tick: uint32;
|
|
4194
4227
|
}
|
|
4195
4228
|
/**
|
|
4196
4229
|
* Called after the results of an entity being mined are collected just before the entity is destroyed.
|
|
@@ -4219,7 +4252,7 @@ interface on_space_platform_mined_entity {
|
|
|
4219
4252
|
/**
|
|
4220
4253
|
* Tick the event was generated.
|
|
4221
4254
|
*/
|
|
4222
|
-
tick:
|
|
4255
|
+
tick: uint32;
|
|
4223
4256
|
}
|
|
4224
4257
|
/**
|
|
4225
4258
|
* Called when a platform mines an entity.
|
|
@@ -4240,7 +4273,7 @@ interface on_space_platform_mined_item {
|
|
|
4240
4273
|
/**
|
|
4241
4274
|
* Tick the event was generated.
|
|
4242
4275
|
*/
|
|
4243
|
-
tick:
|
|
4276
|
+
tick: uint32;
|
|
4244
4277
|
}
|
|
4245
4278
|
/**
|
|
4246
4279
|
* Called after a platform mines tiles.
|
|
@@ -4257,11 +4290,11 @@ interface on_space_platform_mined_tile {
|
|
|
4257
4290
|
/**
|
|
4258
4291
|
* The surface the tile(s) were mined on.
|
|
4259
4292
|
*/
|
|
4260
|
-
surface_index:
|
|
4293
|
+
surface_index: uint32;
|
|
4261
4294
|
/**
|
|
4262
4295
|
* Tick the event was generated.
|
|
4263
4296
|
*/
|
|
4264
|
-
tick:
|
|
4297
|
+
tick: uint32;
|
|
4265
4298
|
/**
|
|
4266
4299
|
* The position data.
|
|
4267
4300
|
*/
|
|
@@ -4286,7 +4319,7 @@ interface on_space_platform_pre_mined {
|
|
|
4286
4319
|
/**
|
|
4287
4320
|
* Tick the event was generated.
|
|
4288
4321
|
*/
|
|
4289
|
-
tick:
|
|
4322
|
+
tick: uint32;
|
|
4290
4323
|
}
|
|
4291
4324
|
/**
|
|
4292
4325
|
* Called when a spider finishes moving to its autopilot position.
|
|
@@ -4299,7 +4332,7 @@ interface on_spider_command_completed {
|
|
|
4299
4332
|
/**
|
|
4300
4333
|
* Tick the event was generated.
|
|
4301
4334
|
*/
|
|
4302
|
-
tick:
|
|
4335
|
+
tick: uint32;
|
|
4303
4336
|
/**
|
|
4304
4337
|
* Spider vehicle which was requested to move.
|
|
4305
4338
|
*/
|
|
@@ -4312,7 +4345,7 @@ interface on_string_translated {
|
|
|
4312
4345
|
/**
|
|
4313
4346
|
* The unique id for this translation request.
|
|
4314
4347
|
*/
|
|
4315
|
-
id:
|
|
4348
|
+
id: uint32;
|
|
4316
4349
|
/**
|
|
4317
4350
|
* The localised string being translated.
|
|
4318
4351
|
*/
|
|
@@ -4324,7 +4357,7 @@ interface on_string_translated {
|
|
|
4324
4357
|
/**
|
|
4325
4358
|
* The player whose locale was used for the translation.
|
|
4326
4359
|
*/
|
|
4327
|
-
player_index:
|
|
4360
|
+
player_index: uint32;
|
|
4328
4361
|
/**
|
|
4329
4362
|
* The translated `localised_string`.
|
|
4330
4363
|
*/
|
|
@@ -4332,7 +4365,7 @@ interface on_string_translated {
|
|
|
4332
4365
|
/**
|
|
4333
4366
|
* Tick the event was generated.
|
|
4334
4367
|
*/
|
|
4335
|
-
tick:
|
|
4368
|
+
tick: uint32;
|
|
4336
4369
|
/**
|
|
4337
4370
|
* Whether the requested localised string was valid and could be translated.
|
|
4338
4371
|
*/
|
|
@@ -4346,11 +4379,11 @@ interface on_surface_cleared {
|
|
|
4346
4379
|
* Identifier of the event
|
|
4347
4380
|
*/
|
|
4348
4381
|
name: defines.events;
|
|
4349
|
-
surface_index:
|
|
4382
|
+
surface_index: uint32;
|
|
4350
4383
|
/**
|
|
4351
4384
|
* Tick the event was generated.
|
|
4352
4385
|
*/
|
|
4353
|
-
tick:
|
|
4386
|
+
tick: uint32;
|
|
4354
4387
|
}
|
|
4355
4388
|
/**
|
|
4356
4389
|
* Called when a surface is created.
|
|
@@ -4362,11 +4395,11 @@ interface on_surface_created {
|
|
|
4362
4395
|
* Identifier of the event
|
|
4363
4396
|
*/
|
|
4364
4397
|
name: defines.events;
|
|
4365
|
-
surface_index:
|
|
4398
|
+
surface_index: uint32;
|
|
4366
4399
|
/**
|
|
4367
4400
|
* Tick the event was generated.
|
|
4368
4401
|
*/
|
|
4369
|
-
tick:
|
|
4402
|
+
tick: uint32;
|
|
4370
4403
|
}
|
|
4371
4404
|
/**
|
|
4372
4405
|
* Called after a surface is deleted.
|
|
@@ -4376,11 +4409,11 @@ interface on_surface_deleted {
|
|
|
4376
4409
|
* Identifier of the event
|
|
4377
4410
|
*/
|
|
4378
4411
|
name: defines.events;
|
|
4379
|
-
surface_index:
|
|
4412
|
+
surface_index: uint32;
|
|
4380
4413
|
/**
|
|
4381
4414
|
* Tick the event was generated.
|
|
4382
4415
|
*/
|
|
4383
|
-
tick:
|
|
4416
|
+
tick: uint32;
|
|
4384
4417
|
}
|
|
4385
4418
|
/**
|
|
4386
4419
|
* Called after a surface is imported via the map editor.
|
|
@@ -4394,11 +4427,11 @@ interface on_surface_imported {
|
|
|
4394
4427
|
* The original surface name.
|
|
4395
4428
|
*/
|
|
4396
4429
|
original_name: string;
|
|
4397
|
-
surface_index:
|
|
4430
|
+
surface_index: uint32;
|
|
4398
4431
|
/**
|
|
4399
4432
|
* Tick the event was generated.
|
|
4400
4433
|
*/
|
|
4401
|
-
tick:
|
|
4434
|
+
tick: uint32;
|
|
4402
4435
|
}
|
|
4403
4436
|
/**
|
|
4404
4437
|
* Called when a surface is renamed.
|
|
@@ -4410,11 +4443,11 @@ interface on_surface_renamed {
|
|
|
4410
4443
|
name: defines.events;
|
|
4411
4444
|
new_name: string;
|
|
4412
4445
|
old_name: string;
|
|
4413
|
-
surface_index:
|
|
4446
|
+
surface_index: uint32;
|
|
4414
4447
|
/**
|
|
4415
4448
|
* Tick the event was generated.
|
|
4416
4449
|
*/
|
|
4417
|
-
tick:
|
|
4450
|
+
tick: uint32;
|
|
4418
4451
|
}
|
|
4419
4452
|
/**
|
|
4420
4453
|
* Called when {@link LuaForce::reset_technology_effects | runtime:LuaForce::reset_technology_effects} is finished.
|
|
@@ -4428,7 +4461,7 @@ interface on_technology_effects_reset {
|
|
|
4428
4461
|
/**
|
|
4429
4462
|
* Tick the event was generated.
|
|
4430
4463
|
*/
|
|
4431
|
-
tick:
|
|
4464
|
+
tick: uint32;
|
|
4432
4465
|
}
|
|
4433
4466
|
/**
|
|
4434
4467
|
* Called when a territory is created for any reason.
|
|
@@ -4449,7 +4482,7 @@ interface on_territory_created {
|
|
|
4449
4482
|
/**
|
|
4450
4483
|
* Tick the event was generated.
|
|
4451
4484
|
*/
|
|
4452
|
-
tick:
|
|
4485
|
+
tick: uint32;
|
|
4453
4486
|
}
|
|
4454
4487
|
/**
|
|
4455
4488
|
* Called when a territory is destroyed from a surface.
|
|
@@ -4466,7 +4499,7 @@ interface on_territory_destroyed {
|
|
|
4466
4499
|
/**
|
|
4467
4500
|
* Tick the event was generated.
|
|
4468
4501
|
*/
|
|
4469
|
-
tick:
|
|
4502
|
+
tick: uint32;
|
|
4470
4503
|
}
|
|
4471
4504
|
/**
|
|
4472
4505
|
* It is fired once every tick. Since this event is fired every tick, its handler shouldn't include performance heavy code.
|
|
@@ -4479,7 +4512,7 @@ interface on_tick {
|
|
|
4479
4512
|
/**
|
|
4480
4513
|
* Tick the event was generated.
|
|
4481
4514
|
*/
|
|
4482
|
-
tick:
|
|
4515
|
+
tick: uint32;
|
|
4483
4516
|
}
|
|
4484
4517
|
/**
|
|
4485
4518
|
* Called after the results of an entity being mined are collected just before the entity is destroyed.
|
|
@@ -4504,7 +4537,7 @@ interface on_tower_mined_plant {
|
|
|
4504
4537
|
/**
|
|
4505
4538
|
* Tick the event was generated.
|
|
4506
4539
|
*/
|
|
4507
|
-
tick:
|
|
4540
|
+
tick: uint32;
|
|
4508
4541
|
/**
|
|
4509
4542
|
* The tower doing the mining.
|
|
4510
4543
|
*/
|
|
@@ -4529,7 +4562,7 @@ interface on_tower_planted_seed {
|
|
|
4529
4562
|
/**
|
|
4530
4563
|
* Tick the event was generated.
|
|
4531
4564
|
*/
|
|
4532
|
-
tick:
|
|
4565
|
+
tick: uint32;
|
|
4533
4566
|
/**
|
|
4534
4567
|
* The tower that did the planting.
|
|
4535
4568
|
*/
|
|
@@ -4550,7 +4583,7 @@ interface on_tower_pre_mined_plant {
|
|
|
4550
4583
|
/**
|
|
4551
4584
|
* Tick the event was generated.
|
|
4552
4585
|
*/
|
|
4553
|
-
tick:
|
|
4586
|
+
tick: uint32;
|
|
4554
4587
|
/**
|
|
4555
4588
|
* The tower that is about to do the mining.
|
|
4556
4589
|
*/
|
|
@@ -4568,7 +4601,7 @@ interface on_train_changed_state {
|
|
|
4568
4601
|
/**
|
|
4569
4602
|
* Tick the event was generated.
|
|
4570
4603
|
*/
|
|
4571
|
-
tick:
|
|
4604
|
+
tick: uint32;
|
|
4572
4605
|
train: LuaTrain;
|
|
4573
4606
|
}
|
|
4574
4607
|
/**
|
|
@@ -4582,15 +4615,15 @@ interface on_train_created {
|
|
|
4582
4615
|
/**
|
|
4583
4616
|
* The first old train id when splitting/merging trains.
|
|
4584
4617
|
*/
|
|
4585
|
-
old_train_id_1?:
|
|
4618
|
+
old_train_id_1?: uint32;
|
|
4586
4619
|
/**
|
|
4587
4620
|
* The second old train id when splitting/merging trains.
|
|
4588
4621
|
*/
|
|
4589
|
-
old_train_id_2?:
|
|
4622
|
+
old_train_id_2?: uint32;
|
|
4590
4623
|
/**
|
|
4591
4624
|
* Tick the event was generated.
|
|
4592
4625
|
*/
|
|
4593
|
-
tick:
|
|
4626
|
+
tick: uint32;
|
|
4594
4627
|
train: LuaTrain;
|
|
4595
4628
|
}
|
|
4596
4629
|
/**
|
|
@@ -4604,11 +4637,11 @@ interface on_train_schedule_changed {
|
|
|
4604
4637
|
/**
|
|
4605
4638
|
* The player who made the change if any.
|
|
4606
4639
|
*/
|
|
4607
|
-
player_index?:
|
|
4640
|
+
player_index?: uint32;
|
|
4608
4641
|
/**
|
|
4609
4642
|
* Tick the event was generated.
|
|
4610
4643
|
*/
|
|
4611
|
-
tick:
|
|
4644
|
+
tick: uint32;
|
|
4612
4645
|
train: LuaTrain;
|
|
4613
4646
|
}
|
|
4614
4647
|
/**
|
|
@@ -4624,7 +4657,7 @@ interface on_trigger_created_entity {
|
|
|
4624
4657
|
/**
|
|
4625
4658
|
* Tick the event was generated.
|
|
4626
4659
|
*/
|
|
4627
|
-
tick:
|
|
4660
|
+
tick: uint32;
|
|
4628
4661
|
}
|
|
4629
4662
|
/**
|
|
4630
4663
|
* 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 +4672,7 @@ interface on_trigger_fired_artillery {
|
|
|
4639
4672
|
/**
|
|
4640
4673
|
* Tick the event was generated.
|
|
4641
4674
|
*/
|
|
4642
|
-
tick:
|
|
4675
|
+
tick: uint32;
|
|
4643
4676
|
}
|
|
4644
4677
|
/**
|
|
4645
4678
|
* Called when new packets are processed by {@link LuaHelpers::recv_udp | runtime:LuaHelpers::recv_udp}.
|
|
@@ -4656,7 +4689,7 @@ interface on_udp_packet_received {
|
|
|
4656
4689
|
/**
|
|
4657
4690
|
* The player index whose instance received this packet, or 0 if received on the server
|
|
4658
4691
|
*/
|
|
4659
|
-
player_index:
|
|
4692
|
+
player_index: uint32;
|
|
4660
4693
|
/**
|
|
4661
4694
|
* The source port the packet was received from
|
|
4662
4695
|
*/
|
|
@@ -4664,7 +4697,7 @@ interface on_udp_packet_received {
|
|
|
4664
4697
|
/**
|
|
4665
4698
|
* Tick the event was generated.
|
|
4666
4699
|
*/
|
|
4667
|
-
tick:
|
|
4700
|
+
tick: uint32;
|
|
4668
4701
|
}
|
|
4669
4702
|
/**
|
|
4670
4703
|
* Called when the player triggers "undo".
|
|
@@ -4681,11 +4714,11 @@ interface on_undo_applied {
|
|
|
4681
4714
|
/**
|
|
4682
4715
|
* The player who triggered the undo action.
|
|
4683
4716
|
*/
|
|
4684
|
-
player_index:
|
|
4717
|
+
player_index: uint32;
|
|
4685
4718
|
/**
|
|
4686
4719
|
* Tick the event was generated.
|
|
4687
4720
|
*/
|
|
4688
|
-
tick:
|
|
4721
|
+
tick: uint32;
|
|
4689
4722
|
}
|
|
4690
4723
|
/**
|
|
4691
4724
|
* Called when a unit is added to a unit group.
|
|
@@ -4699,7 +4732,7 @@ interface on_unit_added_to_group {
|
|
|
4699
4732
|
/**
|
|
4700
4733
|
* Tick the event was generated.
|
|
4701
4734
|
*/
|
|
4702
|
-
tick:
|
|
4735
|
+
tick: uint32;
|
|
4703
4736
|
unit: LuaEntity;
|
|
4704
4737
|
}
|
|
4705
4738
|
/**
|
|
@@ -4714,7 +4747,7 @@ interface on_unit_group_created {
|
|
|
4714
4747
|
/**
|
|
4715
4748
|
* Tick the event was generated.
|
|
4716
4749
|
*/
|
|
4717
|
-
tick:
|
|
4750
|
+
tick: uint32;
|
|
4718
4751
|
}
|
|
4719
4752
|
/**
|
|
4720
4753
|
* Called when a unit group finishes gathering and starts executing its command.
|
|
@@ -4728,7 +4761,7 @@ interface on_unit_group_finished_gathering {
|
|
|
4728
4761
|
/**
|
|
4729
4762
|
* Tick the event was generated.
|
|
4730
4763
|
*/
|
|
4731
|
-
tick:
|
|
4764
|
+
tick: uint32;
|
|
4732
4765
|
}
|
|
4733
4766
|
/**
|
|
4734
4767
|
* Called when a unit is removed from a unit group.
|
|
@@ -4742,7 +4775,7 @@ interface on_unit_removed_from_group {
|
|
|
4742
4775
|
/**
|
|
4743
4776
|
* Tick the event was generated.
|
|
4744
4777
|
*/
|
|
4745
|
-
tick:
|
|
4778
|
+
tick: uint32;
|
|
4746
4779
|
unit: LuaEntity;
|
|
4747
4780
|
}
|
|
4748
4781
|
/**
|
|
@@ -4757,7 +4790,7 @@ interface on_worker_robot_expired {
|
|
|
4757
4790
|
/**
|
|
4758
4791
|
* Tick the event was generated.
|
|
4759
4792
|
*/
|
|
4760
|
-
tick:
|
|
4793
|
+
tick: uint32;
|
|
4761
4794
|
}
|
|
4762
4795
|
/**
|
|
4763
4796
|
* 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 +4807,7 @@ interface script_raised_built {
|
|
|
4774
4807
|
/**
|
|
4775
4808
|
* Tick the event was generated.
|
|
4776
4809
|
*/
|
|
4777
|
-
tick:
|
|
4810
|
+
tick: uint32;
|
|
4778
4811
|
}
|
|
4779
4812
|
/**
|
|
4780
4813
|
* 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 +4824,7 @@ interface script_raised_destroy {
|
|
|
4791
4824
|
/**
|
|
4792
4825
|
* Tick the event was generated.
|
|
4793
4826
|
*/
|
|
4794
|
-
tick:
|
|
4827
|
+
tick: uint32;
|
|
4795
4828
|
}
|
|
4796
4829
|
/**
|
|
4797
4830
|
* 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 +4841,7 @@ interface script_raised_destroy_segmented_unit {
|
|
|
4808
4841
|
/**
|
|
4809
4842
|
* Tick the event was generated.
|
|
4810
4843
|
*/
|
|
4811
|
-
tick:
|
|
4844
|
+
tick: uint32;
|
|
4812
4845
|
}
|
|
4813
4846
|
/**
|
|
4814
4847
|
* 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 +4862,7 @@ interface script_raised_revive {
|
|
|
4829
4862
|
/**
|
|
4830
4863
|
* Tick the event was generated.
|
|
4831
4864
|
*/
|
|
4832
|
-
tick:
|
|
4865
|
+
tick: uint32;
|
|
4833
4866
|
}
|
|
4834
4867
|
/**
|
|
4835
4868
|
* 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 +4875,11 @@ interface script_raised_set_tiles {
|
|
|
4842
4875
|
/**
|
|
4843
4876
|
* The surface whose tiles were changed.
|
|
4844
4877
|
*/
|
|
4845
|
-
surface_index:
|
|
4878
|
+
surface_index: uint32;
|
|
4846
4879
|
/**
|
|
4847
4880
|
* Tick the event was generated.
|
|
4848
4881
|
*/
|
|
4849
|
-
tick:
|
|
4882
|
+
tick: uint32;
|
|
4850
4883
|
/**
|
|
4851
4884
|
* The tiles that were changed.
|
|
4852
4885
|
*/
|
|
@@ -4875,7 +4908,7 @@ interface script_raised_teleported {
|
|
|
4875
4908
|
/**
|
|
4876
4909
|
* Tick the event was generated.
|
|
4877
4910
|
*/
|
|
4878
|
-
tick:
|
|
4911
|
+
tick: uint32;
|
|
4879
4912
|
}
|
|
4880
4913
|
|
|
4881
4914
|
}
|