typed-factorio 0.4.1 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -12
- package/generated/builtin-types.d.ts +18 -18
- package/generated/classes.d.ts +5412 -5401
- package/generated/concepts.d.ts +1661 -1509
- package/generated/defines.d.ts +280 -276
- package/generated/events.d.ts +1208 -1169
- package/generated/global-objects.d.ts +14 -14
- package/package.json +5 -5
package/generated/defines.d.ts
CHANGED
@@ -15,7 +15,7 @@ declare namespace defines {
|
|
15
15
|
/**
|
16
16
|
* AI command exit status. See {@link LuaEntity.set_command LuaEntity::set_command}
|
17
17
|
*
|
18
|
-
* {@link https://lua-api.factorio.com/
|
18
|
+
* {@link https://lua-api.factorio.com/next/defines.html#defines.behavior_result View documentation}
|
19
19
|
*/
|
20
20
|
enum behavior_result {
|
21
21
|
in_progress,
|
@@ -34,7 +34,7 @@ declare namespace defines {
|
|
34
34
|
/**
|
35
35
|
* State of a chain signal.
|
36
36
|
*
|
37
|
-
* {@link https://lua-api.factorio.com/
|
37
|
+
* {@link https://lua-api.factorio.com/next/defines.html#defines.chain_signal_state View documentation}
|
38
38
|
*/
|
39
39
|
enum chain_signal_state {
|
40
40
|
none,
|
@@ -81,86 +81,86 @@ declare namespace defines {
|
|
81
81
|
/**
|
82
82
|
* Command given to units describing what they should do.
|
83
83
|
*
|
84
|
-
* {@link https://lua-api.factorio.com/
|
84
|
+
* {@link https://lua-api.factorio.com/next/defines.html#defines.command View documentation}
|
85
85
|
*/
|
86
86
|
enum command {
|
87
87
|
/**
|
88
88
|
* Attack another entity.
|
89
89
|
*
|
90
|
-
* {@link https://lua-api.factorio.com/
|
90
|
+
* {@link https://lua-api.factorio.com/next/defines.html#defines.command.attack View documentation}
|
91
91
|
*/
|
92
92
|
attack = 0,
|
93
93
|
/**
|
94
94
|
* Go to a specific position.
|
95
95
|
*
|
96
|
-
* {@link https://lua-api.factorio.com/
|
96
|
+
* {@link https://lua-api.factorio.com/next/defines.html#defines.command.go_to_location View documentation}
|
97
97
|
*/
|
98
98
|
go_to_location = 1,
|
99
99
|
/**
|
100
100
|
* Chain commands together, see {@link defines.compound_command}.
|
101
101
|
*
|
102
|
-
* {@link https://lua-api.factorio.com/
|
102
|
+
* {@link https://lua-api.factorio.com/next/defines.html#defines.command.compound View documentation}
|
103
103
|
*/
|
104
104
|
compound = 2,
|
105
105
|
/**
|
106
106
|
* Do what your group wants you to do.
|
107
107
|
*
|
108
|
-
* {@link https://lua-api.factorio.com/
|
108
|
+
* {@link https://lua-api.factorio.com/next/defines.html#defines.command.group View documentation}
|
109
109
|
*/
|
110
110
|
group = 3,
|
111
111
|
/**
|
112
112
|
* Go to a place and attack what you see.
|
113
113
|
*
|
114
|
-
* {@link https://lua-api.factorio.com/
|
114
|
+
* {@link https://lua-api.factorio.com/next/defines.html#defines.command.attack_area View documentation}
|
115
115
|
*/
|
116
116
|
attack_area = 4,
|
117
117
|
/**
|
118
118
|
* Chill.
|
119
119
|
*
|
120
|
-
* {@link https://lua-api.factorio.com/
|
120
|
+
* {@link https://lua-api.factorio.com/next/defines.html#defines.command.wander View documentation}
|
121
121
|
*/
|
122
122
|
wander = 5,
|
123
123
|
/**
|
124
124
|
* Flee from another entity.
|
125
125
|
*
|
126
|
-
* {@link https://lua-api.factorio.com/
|
126
|
+
* {@link https://lua-api.factorio.com/next/defines.html#defines.command.flee View documentation}
|
127
127
|
*/
|
128
128
|
flee = 6,
|
129
129
|
/**
|
130
130
|
* Stop moving and stay where you are.
|
131
131
|
*
|
132
|
-
* {@link https://lua-api.factorio.com/
|
132
|
+
* {@link https://lua-api.factorio.com/next/defines.html#defines.command.stop View documentation}
|
133
133
|
*/
|
134
134
|
stop = 7,
|
135
135
|
/**
|
136
136
|
* Go to a position and build a base there.
|
137
137
|
*
|
138
|
-
* {@link https://lua-api.factorio.com/
|
138
|
+
* {@link https://lua-api.factorio.com/next/defines.html#defines.command.build_base View documentation}
|
139
139
|
*/
|
140
140
|
build_base = 8,
|
141
141
|
}
|
142
142
|
/**
|
143
143
|
* How commands are joined together in a compound command (see {@link defines.command.compound}).
|
144
144
|
*
|
145
|
-
* {@link https://lua-api.factorio.com/
|
145
|
+
* {@link https://lua-api.factorio.com/next/defines.html#defines.compound_command View documentation}
|
146
146
|
*/
|
147
147
|
enum compound_command {
|
148
148
|
/**
|
149
149
|
* Fail on first failure. Only succeeds if all commands (executed one after another) succeed.
|
150
150
|
*
|
151
|
-
* {@link https://lua-api.factorio.com/
|
151
|
+
* {@link https://lua-api.factorio.com/next/defines.html#defines.compound_command.logical_and View documentation}
|
152
152
|
*/
|
153
153
|
logical_and,
|
154
154
|
/**
|
155
155
|
* Succeed on first success. Only fails if all commands (executed one after another) fail.
|
156
156
|
*
|
157
|
-
* {@link https://lua-api.factorio.com/
|
157
|
+
* {@link https://lua-api.factorio.com/next/defines.html#defines.compound_command.logical_or View documentation}
|
158
158
|
*/
|
159
159
|
logical_or,
|
160
160
|
/**
|
161
161
|
* Execute all commands in sequence and fail or succeed depending on the return status of the last command.
|
162
162
|
*
|
163
|
-
* {@link https://lua-api.factorio.com/
|
163
|
+
* {@link https://lua-api.factorio.com/next/defines.html#defines.compound_command.return_last View documentation}
|
164
164
|
*/
|
165
165
|
return_last,
|
166
166
|
}
|
@@ -205,109 +205,109 @@ declare namespace defines {
|
|
205
205
|
/**
|
206
206
|
* {@link LuaContainerControlBehavior}
|
207
207
|
*
|
208
|
-
* {@link https://lua-api.factorio.com/
|
208
|
+
* {@link https://lua-api.factorio.com/next/defines.html#defines.control_behavior.type.container View documentation}
|
209
209
|
*/
|
210
210
|
container,
|
211
211
|
/**
|
212
212
|
* {@link LuaGenericOnOffControlBehavior}
|
213
213
|
*
|
214
|
-
* {@link https://lua-api.factorio.com/
|
214
|
+
* {@link https://lua-api.factorio.com/next/defines.html#defines.control_behavior.type.generic_on_off View documentation}
|
215
215
|
*/
|
216
216
|
generic_on_off,
|
217
217
|
/**
|
218
218
|
* {@link LuaInserterControlBehavior}
|
219
219
|
*
|
220
|
-
* {@link https://lua-api.factorio.com/
|
220
|
+
* {@link https://lua-api.factorio.com/next/defines.html#defines.control_behavior.type.inserter View documentation}
|
221
221
|
*/
|
222
222
|
inserter,
|
223
223
|
/**
|
224
224
|
* {@link LuaLampControlBehavior}
|
225
225
|
*
|
226
|
-
* {@link https://lua-api.factorio.com/
|
226
|
+
* {@link https://lua-api.factorio.com/next/defines.html#defines.control_behavior.type.lamp View documentation}
|
227
227
|
*/
|
228
228
|
lamp,
|
229
229
|
/**
|
230
230
|
* {@link LuaLogisticContainerControlBehavior}
|
231
231
|
*
|
232
|
-
* {@link https://lua-api.factorio.com/
|
232
|
+
* {@link https://lua-api.factorio.com/next/defines.html#defines.control_behavior.type.logistic_container View documentation}
|
233
233
|
*/
|
234
234
|
logistic_container,
|
235
235
|
/**
|
236
236
|
* {@link LuaRoboportControlBehavior}
|
237
237
|
*
|
238
|
-
* {@link https://lua-api.factorio.com/
|
238
|
+
* {@link https://lua-api.factorio.com/next/defines.html#defines.control_behavior.type.roboport View documentation}
|
239
239
|
*/
|
240
240
|
roboport,
|
241
241
|
/**
|
242
242
|
* {@link LuaStorageTankControlBehavior}
|
243
243
|
*
|
244
|
-
* {@link https://lua-api.factorio.com/
|
244
|
+
* {@link https://lua-api.factorio.com/next/defines.html#defines.control_behavior.type.storage_tank View documentation}
|
245
245
|
*/
|
246
246
|
storage_tank,
|
247
247
|
/**
|
248
248
|
* {@link LuaTrainStopControlBehavior}
|
249
249
|
*
|
250
|
-
* {@link https://lua-api.factorio.com/
|
250
|
+
* {@link https://lua-api.factorio.com/next/defines.html#defines.control_behavior.type.train_stop View documentation}
|
251
251
|
*/
|
252
252
|
train_stop,
|
253
253
|
/**
|
254
254
|
* {@link LuaDeciderCombinatorControlBehavior}
|
255
255
|
*
|
256
|
-
* {@link https://lua-api.factorio.com/
|
256
|
+
* {@link https://lua-api.factorio.com/next/defines.html#defines.control_behavior.type.decider_combinator View documentation}
|
257
257
|
*/
|
258
258
|
decider_combinator,
|
259
259
|
/**
|
260
260
|
* {@link LuaArithmeticCombinatorControlBehavior}
|
261
261
|
*
|
262
|
-
* {@link https://lua-api.factorio.com/
|
262
|
+
* {@link https://lua-api.factorio.com/next/defines.html#defines.control_behavior.type.arithmetic_combinator View documentation}
|
263
263
|
*/
|
264
264
|
arithmetic_combinator,
|
265
265
|
/**
|
266
266
|
* {@link LuaConstantCombinatorControlBehavior}
|
267
267
|
*
|
268
|
-
* {@link https://lua-api.factorio.com/
|
268
|
+
* {@link https://lua-api.factorio.com/next/defines.html#defines.control_behavior.type.constant_combinator View documentation}
|
269
269
|
*/
|
270
270
|
constant_combinator,
|
271
271
|
/**
|
272
272
|
* {@link LuaTransportBeltControlBehavior}
|
273
273
|
*
|
274
|
-
* {@link https://lua-api.factorio.com/
|
274
|
+
* {@link https://lua-api.factorio.com/next/defines.html#defines.control_behavior.type.transport_belt View documentation}
|
275
275
|
*/
|
276
276
|
transport_belt,
|
277
277
|
/**
|
278
278
|
* {@link LuaAccumulatorControlBehavior}
|
279
279
|
*
|
280
|
-
* {@link https://lua-api.factorio.com/
|
280
|
+
* {@link https://lua-api.factorio.com/next/defines.html#defines.control_behavior.type.accumulator View documentation}
|
281
281
|
*/
|
282
282
|
accumulator,
|
283
283
|
/**
|
284
284
|
* {@link LuaRailSignalControlBehavior}
|
285
285
|
*
|
286
|
-
* {@link https://lua-api.factorio.com/
|
286
|
+
* {@link https://lua-api.factorio.com/next/defines.html#defines.control_behavior.type.rail_signal View documentation}
|
287
287
|
*/
|
288
288
|
rail_signal,
|
289
289
|
/**
|
290
290
|
* {@link LuaRailChainSignalControlBehavior}
|
291
291
|
*
|
292
|
-
* {@link https://lua-api.factorio.com/
|
292
|
+
* {@link https://lua-api.factorio.com/next/defines.html#defines.control_behavior.type.rail_chain_signal View documentation}
|
293
293
|
*/
|
294
294
|
rail_chain_signal,
|
295
295
|
/**
|
296
296
|
* {@link LuaWallControlBehavior}
|
297
297
|
*
|
298
|
-
* {@link https://lua-api.factorio.com/
|
298
|
+
* {@link https://lua-api.factorio.com/next/defines.html#defines.control_behavior.type.wall View documentation}
|
299
299
|
*/
|
300
300
|
wall,
|
301
301
|
/**
|
302
302
|
* {@link LuaMiningDrillControlBehavior}
|
303
303
|
*
|
304
|
-
* {@link https://lua-api.factorio.com/
|
304
|
+
* {@link https://lua-api.factorio.com/next/defines.html#defines.control_behavior.type.mining_drill View documentation}
|
305
305
|
*/
|
306
306
|
mining_drill,
|
307
307
|
/**
|
308
308
|
* {@link LuaProgrammableSpeakerControlBehavior}
|
309
309
|
*
|
310
|
-
* {@link https://lua-api.factorio.com/
|
310
|
+
* {@link https://lua-api.factorio.com/next/defines.html#defines.control_behavior.type.programmable_speaker View documentation}
|
311
311
|
*/
|
312
312
|
programmable_speaker,
|
313
313
|
}
|
@@ -316,37 +316,37 @@ declare namespace defines {
|
|
316
316
|
/**
|
317
317
|
* Can't interact with the world, can only observe. Used in the multiplayer waiting-to-respawn screen.
|
318
318
|
*
|
319
|
-
* {@link https://lua-api.factorio.com/
|
319
|
+
* {@link https://lua-api.factorio.com/next/defines.html#defines.controllers.ghost View documentation}
|
320
320
|
*/
|
321
321
|
ghost,
|
322
322
|
/**
|
323
323
|
* The controller controls a character. This is the default controller in freeplay.
|
324
324
|
*
|
325
|
-
* {@link https://lua-api.factorio.com/
|
325
|
+
* {@link https://lua-api.factorio.com/next/defines.html#defines.controllers.character View documentation}
|
326
326
|
*/
|
327
327
|
character,
|
328
328
|
/**
|
329
329
|
* The controller isn't tied to a character. This is the default controller in sandbox.
|
330
330
|
*
|
331
|
-
* {@link https://lua-api.factorio.com/
|
331
|
+
* {@link https://lua-api.factorio.com/next/defines.html#defines.controllers.god View documentation}
|
332
332
|
*/
|
333
333
|
god,
|
334
334
|
/**
|
335
335
|
* The Editor Controller near ultimate power to do almost anything in the game.
|
336
336
|
*
|
337
|
-
* {@link https://lua-api.factorio.com/
|
337
|
+
* {@link https://lua-api.factorio.com/next/defines.html#defines.controllers.editor View documentation}
|
338
338
|
*/
|
339
339
|
editor,
|
340
340
|
/**
|
341
341
|
* The player can't interact with the world, and the camera pans around in a predefined manner.
|
342
342
|
*
|
343
|
-
* {@link https://lua-api.factorio.com/
|
343
|
+
* {@link https://lua-api.factorio.com/next/defines.html#defines.controllers.cutscene View documentation}
|
344
344
|
*/
|
345
345
|
cutscene,
|
346
346
|
/**
|
347
347
|
* Can't change anything in the world but can view anything.
|
348
348
|
*
|
349
|
-
* {@link https://lua-api.factorio.com/
|
349
|
+
* {@link https://lua-api.factorio.com/next/defines.html#defines.controllers.spectator View documentation}
|
350
350
|
*/
|
351
351
|
spectator,
|
352
352
|
}
|
@@ -408,25 +408,25 @@ declare namespace defines {
|
|
408
408
|
/**
|
409
409
|
* Perform command even if someone attacks the unit.
|
410
410
|
*
|
411
|
-
* {@link https://lua-api.factorio.com/
|
411
|
+
* {@link https://lua-api.factorio.com/next/defines.html#defines.distraction.none View documentation}
|
412
412
|
*/
|
413
413
|
none,
|
414
414
|
/**
|
415
415
|
* Attack closer enemy entities with force.
|
416
416
|
*
|
417
|
-
* {@link https://lua-api.factorio.com/
|
417
|
+
* {@link https://lua-api.factorio.com/next/defines.html#defines.distraction.by_enemy View documentation}
|
418
418
|
*/
|
419
419
|
by_enemy,
|
420
420
|
/**
|
421
421
|
* Attack closer enemy entities, including entities "built" by player (belts, inserters, chests).
|
422
422
|
*
|
423
|
-
* {@link https://lua-api.factorio.com/
|
423
|
+
* {@link https://lua-api.factorio.com/next/defines.html#defines.distraction.by_anything View documentation}
|
424
424
|
*/
|
425
425
|
by_anything,
|
426
426
|
/**
|
427
427
|
* Attack when attacked.
|
428
428
|
*
|
429
|
-
* {@link https://lua-api.factorio.com/
|
429
|
+
* {@link https://lua-api.factorio.com/next/defines.html#defines.distraction.by_damage View documentation}
|
430
430
|
*/
|
431
431
|
by_damage,
|
432
432
|
}
|
@@ -444,560 +444,564 @@ declare namespace defines {
|
|
444
444
|
/**
|
445
445
|
* Used by generators and solar panels.
|
446
446
|
*
|
447
|
-
* {@link https://lua-api.factorio.com/
|
447
|
+
* {@link https://lua-api.factorio.com/next/defines.html#defines.entity_status.not_plugged_in_electric_network View documentation}
|
448
448
|
*/
|
449
449
|
not_plugged_in_electric_network,
|
450
450
|
/**
|
451
451
|
* Used by power switches.
|
452
452
|
*
|
453
|
-
* {@link https://lua-api.factorio.com/
|
453
|
+
* {@link https://lua-api.factorio.com/next/defines.html#defines.entity_status.networks_connected View documentation}
|
454
454
|
*/
|
455
455
|
networks_connected,
|
456
456
|
/**
|
457
457
|
* Used by power switches.
|
458
458
|
*
|
459
|
-
* {@link https://lua-api.factorio.com/
|
459
|
+
* {@link https://lua-api.factorio.com/next/defines.html#defines.entity_status.networks_disconnected View documentation}
|
460
460
|
*/
|
461
461
|
networks_disconnected,
|
462
462
|
/**
|
463
463
|
* Used by accumulators.
|
464
464
|
*
|
465
|
-
* {@link https://lua-api.factorio.com/
|
465
|
+
* {@link https://lua-api.factorio.com/next/defines.html#defines.entity_status.charging View documentation}
|
466
466
|
*/
|
467
467
|
charging,
|
468
468
|
/**
|
469
469
|
* Used by accumulators.
|
470
470
|
*
|
471
|
-
* {@link https://lua-api.factorio.com/
|
471
|
+
* {@link https://lua-api.factorio.com/next/defines.html#defines.entity_status.discharging View documentation}
|
472
472
|
*/
|
473
473
|
discharging,
|
474
474
|
/**
|
475
475
|
* Used by accumulators.
|
476
476
|
*
|
477
|
-
* {@link https://lua-api.factorio.com/
|
477
|
+
* {@link https://lua-api.factorio.com/next/defines.html#defines.entity_status.fully_charged View documentation}
|
478
478
|
*/
|
479
479
|
fully_charged,
|
480
480
|
/**
|
481
481
|
* Used by logistic containers.
|
482
482
|
*
|
483
|
-
* {@link https://lua-api.factorio.com/
|
483
|
+
* {@link https://lua-api.factorio.com/next/defines.html#defines.entity_status.out_of_logistic_network View documentation}
|
484
484
|
*/
|
485
485
|
out_of_logistic_network,
|
486
486
|
/**
|
487
487
|
* Used by assembling machines.
|
488
488
|
*
|
489
|
-
* {@link https://lua-api.factorio.com/
|
489
|
+
* {@link https://lua-api.factorio.com/next/defines.html#defines.entity_status.no_recipe View documentation}
|
490
490
|
*/
|
491
491
|
no_recipe,
|
492
492
|
/**
|
493
493
|
* Used by furnaces.
|
494
494
|
*
|
495
|
-
* {@link https://lua-api.factorio.com/
|
495
|
+
* {@link https://lua-api.factorio.com/next/defines.html#defines.entity_status.no_ingredients View documentation}
|
496
496
|
*/
|
497
497
|
no_ingredients,
|
498
498
|
/**
|
499
499
|
* Used by boilers, fluid turrets and fluid energy sources: Boiler has no fluid to work with.
|
500
500
|
*
|
501
|
-
* {@link https://lua-api.factorio.com/
|
501
|
+
* {@link https://lua-api.factorio.com/next/defines.html#defines.entity_status.no_input_fluid View documentation}
|
502
502
|
*/
|
503
503
|
no_input_fluid,
|
504
504
|
/**
|
505
505
|
* Used by labs.
|
506
506
|
*
|
507
|
-
* {@link https://lua-api.factorio.com/
|
507
|
+
* {@link https://lua-api.factorio.com/next/defines.html#defines.entity_status.no_research_in_progress View documentation}
|
508
508
|
*/
|
509
509
|
no_research_in_progress,
|
510
510
|
/**
|
511
511
|
* Used by mining drills.
|
512
512
|
*
|
513
|
-
* {@link https://lua-api.factorio.com/
|
513
|
+
* {@link https://lua-api.factorio.com/next/defines.html#defines.entity_status.no_minable_resources View documentation}
|
514
514
|
*/
|
515
515
|
no_minable_resources,
|
516
516
|
/**
|
517
517
|
* Used by boilers and fluid turrets: Boiler still has some fluid but is about to run out.
|
518
518
|
*
|
519
|
-
* {@link https://lua-api.factorio.com/
|
519
|
+
* {@link https://lua-api.factorio.com/next/defines.html#defines.entity_status.low_input_fluid View documentation}
|
520
520
|
*/
|
521
521
|
low_input_fluid,
|
522
522
|
/**
|
523
523
|
* Used by crafting machines.
|
524
524
|
*
|
525
|
-
* {@link https://lua-api.factorio.com/
|
525
|
+
* {@link https://lua-api.factorio.com/next/defines.html#defines.entity_status.fluid_ingredient_shortage View documentation}
|
526
526
|
*/
|
527
527
|
fluid_ingredient_shortage,
|
528
528
|
/**
|
529
529
|
* Used by crafting machines, boilers, burner energy sources and reactors: Reactor/burner has full burnt result
|
530
530
|
* inventory, boiler has full output fluidbox.
|
531
531
|
*
|
532
|
-
* {@link https://lua-api.factorio.com/
|
532
|
+
* {@link https://lua-api.factorio.com/next/defines.html#defines.entity_status.full_output View documentation}
|
533
533
|
*/
|
534
534
|
full_output,
|
535
535
|
/**
|
536
536
|
* Used by crafting machines.
|
537
537
|
*
|
538
|
-
* {@link https://lua-api.factorio.com/
|
538
|
+
* {@link https://lua-api.factorio.com/next/defines.html#defines.entity_status.item_ingredient_shortage View documentation}
|
539
539
|
*/
|
540
540
|
item_ingredient_shortage,
|
541
541
|
/**
|
542
542
|
* Used by mining drills when the mining fluid is missing.
|
543
543
|
*
|
544
|
-
* {@link https://lua-api.factorio.com/
|
544
|
+
* {@link https://lua-api.factorio.com/next/defines.html#defines.entity_status.missing_required_fluid View documentation}
|
545
545
|
*/
|
546
546
|
missing_required_fluid,
|
547
547
|
/**
|
548
548
|
* Used by labs.
|
549
549
|
*
|
550
|
-
* {@link https://lua-api.factorio.com/
|
550
|
+
* {@link https://lua-api.factorio.com/next/defines.html#defines.entity_status.missing_science_packs View documentation}
|
551
551
|
*/
|
552
552
|
missing_science_packs,
|
553
553
|
/**
|
554
554
|
* Used by inserters.
|
555
555
|
*
|
556
|
-
* {@link https://lua-api.factorio.com/
|
556
|
+
* {@link https://lua-api.factorio.com/next/defines.html#defines.entity_status.waiting_for_source_items View documentation}
|
557
557
|
*/
|
558
558
|
waiting_for_source_items,
|
559
559
|
/**
|
560
560
|
* Used by inserters and mining drills.
|
561
561
|
*
|
562
|
-
* {@link https://lua-api.factorio.com/
|
562
|
+
* {@link https://lua-api.factorio.com/next/defines.html#defines.entity_status.waiting_for_space_in_destination View documentation}
|
563
563
|
*/
|
564
564
|
waiting_for_space_in_destination,
|
565
565
|
/**
|
566
566
|
* Used by the rocket silo.
|
567
567
|
*
|
568
|
-
* {@link https://lua-api.factorio.com/
|
568
|
+
* {@link https://lua-api.factorio.com/next/defines.html#defines.entity_status.preparing_rocket_for_launch View documentation}
|
569
569
|
*/
|
570
570
|
preparing_rocket_for_launch,
|
571
571
|
/**
|
572
572
|
* Used by the rocket silo.
|
573
573
|
*
|
574
|
-
* {@link https://lua-api.factorio.com/
|
574
|
+
* {@link https://lua-api.factorio.com/next/defines.html#defines.entity_status.waiting_to_launch_rocket View documentation}
|
575
575
|
*/
|
576
576
|
waiting_to_launch_rocket,
|
577
577
|
/**
|
578
578
|
* Used by the rocket silo.
|
579
579
|
*
|
580
|
-
* {@link https://lua-api.factorio.com/
|
580
|
+
* {@link https://lua-api.factorio.com/next/defines.html#defines.entity_status.launching_rocket View documentation}
|
581
581
|
*/
|
582
582
|
launching_rocket,
|
583
583
|
/**
|
584
584
|
* Used by beacons.
|
585
585
|
*
|
586
|
-
* {@link https://lua-api.factorio.com/
|
586
|
+
* {@link https://lua-api.factorio.com/next/defines.html#defines.entity_status.no_modules_to_transmit View documentation}
|
587
587
|
*/
|
588
588
|
no_modules_to_transmit,
|
589
589
|
/**
|
590
590
|
* Used by roboports.
|
591
591
|
*
|
592
|
-
* {@link https://lua-api.factorio.com/
|
592
|
+
* {@link https://lua-api.factorio.com/next/defines.html#defines.entity_status.recharging_after_power_outage View documentation}
|
593
593
|
*/
|
594
594
|
recharging_after_power_outage,
|
595
595
|
/**
|
596
596
|
* Used by inserters targeting entity ghosts.
|
597
597
|
*
|
598
|
-
* {@link https://lua-api.factorio.com/
|
598
|
+
* {@link https://lua-api.factorio.com/next/defines.html#defines.entity_status.waiting_for_target_to_be_built View documentation}
|
599
599
|
*/
|
600
600
|
waiting_for_target_to_be_built,
|
601
601
|
/**
|
602
602
|
* Used by inserters targeting rails.
|
603
603
|
*
|
604
|
-
* {@link https://lua-api.factorio.com/
|
604
|
+
* {@link https://lua-api.factorio.com/next/defines.html#defines.entity_status.waiting_for_train View documentation}
|
605
605
|
*/
|
606
606
|
waiting_for_train,
|
607
607
|
/**
|
608
608
|
* Used by ammo turrets.
|
609
609
|
*
|
610
|
-
* {@link https://lua-api.factorio.com/
|
610
|
+
* {@link https://lua-api.factorio.com/next/defines.html#defines.entity_status.no_ammo View documentation}
|
611
611
|
*/
|
612
612
|
no_ammo,
|
613
613
|
/**
|
614
614
|
* Used by heat energy sources.
|
615
615
|
*
|
616
|
-
* {@link https://lua-api.factorio.com/
|
616
|
+
* {@link https://lua-api.factorio.com/next/defines.html#defines.entity_status.low_temperature View documentation}
|
617
617
|
*/
|
618
618
|
low_temperature,
|
619
619
|
/**
|
620
620
|
* Used by constant combinators: Combinator is turned off via switch in GUI.
|
621
621
|
*
|
622
|
-
* {@link https://lua-api.factorio.com/
|
622
|
+
* {@link https://lua-api.factorio.com/next/defines.html#defines.entity_status.disabled View documentation}
|
623
623
|
*/
|
624
624
|
disabled,
|
625
625
|
/**
|
626
626
|
* Used by lamps.
|
627
627
|
*
|
628
|
-
* {@link https://lua-api.factorio.com/
|
628
|
+
* {@link https://lua-api.factorio.com/next/defines.html#defines.entity_status.turned_off_during_daytime View documentation}
|
629
629
|
*/
|
630
630
|
turned_off_during_daytime,
|
631
631
|
/**
|
632
632
|
* Used by rail signals.
|
633
633
|
*
|
634
|
-
* {@link https://lua-api.factorio.com/
|
634
|
+
* {@link https://lua-api.factorio.com/next/defines.html#defines.entity_status.not_connected_to_rail View documentation}
|
635
635
|
*/
|
636
636
|
not_connected_to_rail,
|
637
637
|
/**
|
638
638
|
* Used by rail signals.
|
639
639
|
*
|
640
|
-
* {@link https://lua-api.factorio.com/
|
640
|
+
* {@link https://lua-api.factorio.com/next/defines.html#defines.entity_status.cant_divide_segments View documentation}
|
641
641
|
*/
|
642
642
|
cant_divide_segments,
|
643
643
|
}
|
644
644
|
/**
|
645
|
-
* See the {@link https://lua-api.factorio.com/
|
646
|
-
*
|
645
|
+
* See the {@link https://lua-api.factorio.com/next/events.html events page} for more info on what events contain and
|
646
|
+
* when they get raised.
|
647
647
|
*
|
648
|
-
* {@link https://lua-api.factorio.com/
|
648
|
+
* {@link https://lua-api.factorio.com/next/defines.html#defines.events View documentation}
|
649
649
|
*/
|
650
650
|
namespace events {
|
651
651
|
/** Event type: {@link OnTickEvent} */
|
652
|
-
const on_tick: unique symbol
|
652
|
+
const on_tick: unique symbol
|
653
653
|
/** Event type: {@link OnGuiClickEvent} */
|
654
|
-
const on_gui_click: unique symbol
|
654
|
+
const on_gui_click: unique symbol
|
655
655
|
/** Event type: {@link OnGuiConfirmedEvent} */
|
656
|
-
const on_gui_confirmed: unique symbol
|
656
|
+
const on_gui_confirmed: unique symbol
|
657
657
|
/** Event type: {@link OnGuiTextChangedEvent} */
|
658
|
-
const on_gui_text_changed: unique symbol
|
658
|
+
const on_gui_text_changed: unique symbol
|
659
659
|
/** Event type: {@link OnGuiCheckedStateChangedEvent} */
|
660
|
-
const on_gui_checked_state_changed: unique symbol
|
660
|
+
const on_gui_checked_state_changed: unique symbol
|
661
661
|
/** Event type: {@link OnEntityDiedEvent} */
|
662
|
-
const on_entity_died: unique symbol
|
662
|
+
const on_entity_died: unique symbol
|
663
663
|
/** Event type: {@link OnPostEntityDiedEvent} */
|
664
|
-
const on_post_entity_died: unique symbol
|
664
|
+
const on_post_entity_died: unique symbol
|
665
665
|
/** Event type: {@link OnEntityDamagedEvent} */
|
666
|
-
const on_entity_damaged: unique symbol
|
666
|
+
const on_entity_damaged: unique symbol
|
667
667
|
/** Event type: {@link OnPickedUpItemEvent} */
|
668
|
-
const on_picked_up_item: unique symbol
|
668
|
+
const on_picked_up_item: unique symbol
|
669
669
|
/** Event type: {@link OnBuiltEntityEvent} */
|
670
|
-
const on_built_entity: unique symbol
|
670
|
+
const on_built_entity: unique symbol
|
671
671
|
/** Event type: {@link OnSectorScannedEvent} */
|
672
|
-
const on_sector_scanned: unique symbol
|
672
|
+
const on_sector_scanned: unique symbol
|
673
673
|
/** Event type: {@link OnPlayerMinedItemEvent} */
|
674
|
-
const on_player_mined_item: unique symbol
|
674
|
+
const on_player_mined_item: unique symbol
|
675
675
|
/** Event type: {@link OnPreBuildEvent} */
|
676
|
-
const on_pre_build: unique symbol
|
676
|
+
const on_pre_build: unique symbol
|
677
677
|
/** Event type: {@link OnRocketLaunchedEvent} */
|
678
|
-
const on_rocket_launched: unique symbol
|
678
|
+
const on_rocket_launched: unique symbol
|
679
679
|
/** Event type: {@link OnPrePlayerMinedItemEvent} */
|
680
|
-
const on_pre_player_mined_item: unique symbol
|
680
|
+
const on_pre_player_mined_item: unique symbol
|
681
681
|
/** Event type: {@link OnChunkGeneratedEvent} */
|
682
|
-
const on_chunk_generated: unique symbol
|
682
|
+
const on_chunk_generated: unique symbol
|
683
683
|
/** Event type: {@link OnPlayerCraftedItemEvent} */
|
684
|
-
const on_player_crafted_item: unique symbol
|
684
|
+
const on_player_crafted_item: unique symbol
|
685
685
|
/** Event type: {@link OnRobotBuiltEntityEvent} */
|
686
|
-
const on_robot_built_entity: unique symbol
|
686
|
+
const on_robot_built_entity: unique symbol
|
687
687
|
/** Event type: {@link OnRobotPreMinedEvent} */
|
688
|
-
const on_robot_pre_mined: unique symbol
|
688
|
+
const on_robot_pre_mined: unique symbol
|
689
689
|
/** Event type: {@link OnRobotMinedEvent} */
|
690
|
-
const on_robot_mined: unique symbol
|
690
|
+
const on_robot_mined: unique symbol
|
691
691
|
/** Event type: {@link OnResearchStartedEvent} */
|
692
|
-
const on_research_started: unique symbol
|
692
|
+
const on_research_started: unique symbol
|
693
693
|
/** Event type: {@link OnResearchFinishedEvent} */
|
694
|
-
const on_research_finished: unique symbol
|
694
|
+
const on_research_finished: unique symbol
|
695
695
|
/** Event type: {@link OnResearchReversedEvent} */
|
696
|
-
const on_research_reversed: unique symbol
|
696
|
+
const on_research_reversed: unique symbol
|
697
697
|
/** Event type: {@link OnPlayerRotatedEntityEvent} */
|
698
|
-
const on_player_rotated_entity: unique symbol
|
698
|
+
const on_player_rotated_entity: unique symbol
|
699
699
|
/** Event type: {@link OnMarkedForDeconstructionEvent} */
|
700
|
-
const on_marked_for_deconstruction: unique symbol
|
700
|
+
const on_marked_for_deconstruction: unique symbol
|
701
701
|
/** Event type: {@link OnCancelledDeconstructionEvent} */
|
702
|
-
const on_cancelled_deconstruction: unique symbol
|
702
|
+
const on_cancelled_deconstruction: unique symbol
|
703
703
|
/** Event type: {@link OnTriggerCreatedEntityEvent} */
|
704
|
-
const on_trigger_created_entity: unique symbol
|
704
|
+
const on_trigger_created_entity: unique symbol
|
705
705
|
/** Event type: {@link OnTriggerFiredArtilleryEvent} */
|
706
|
-
const on_trigger_fired_artillery: unique symbol
|
706
|
+
const on_trigger_fired_artillery: unique symbol
|
707
707
|
/** Event type: {@link OnTrainChangedStateEvent} */
|
708
|
-
const on_train_changed_state: unique symbol
|
708
|
+
const on_train_changed_state: unique symbol
|
709
709
|
/** Event type: {@link OnPlayerCreatedEvent} */
|
710
|
-
const on_player_created: unique symbol
|
710
|
+
const on_player_created: unique symbol
|
711
711
|
/** Event type: {@link OnResourceDepletedEvent} */
|
712
|
-
const on_resource_depleted: unique symbol
|
712
|
+
const on_resource_depleted: unique symbol
|
713
713
|
/** Event type: {@link OnPlayerDrivingChangedStateEvent} */
|
714
|
-
const on_player_driving_changed_state: unique symbol
|
714
|
+
const on_player_driving_changed_state: unique symbol
|
715
715
|
/** Event type: {@link OnForceCreatedEvent} */
|
716
|
-
const on_force_created: unique symbol
|
716
|
+
const on_force_created: unique symbol
|
717
717
|
/** Event type: {@link OnForcesMergingEvent} */
|
718
|
-
const on_forces_merging: unique symbol
|
718
|
+
const on_forces_merging: unique symbol
|
719
719
|
/** Event type: {@link OnPlayerCursorStackChangedEvent} */
|
720
|
-
const on_player_cursor_stack_changed: unique symbol
|
720
|
+
const on_player_cursor_stack_changed: unique symbol
|
721
721
|
/** Event type: {@link OnPreEntitySettingsPastedEvent} */
|
722
|
-
const on_pre_entity_settings_pasted: unique symbol
|
722
|
+
const on_pre_entity_settings_pasted: unique symbol
|
723
723
|
/** Event type: {@link OnEntitySettingsPastedEvent} */
|
724
|
-
const on_entity_settings_pasted: unique symbol
|
724
|
+
const on_entity_settings_pasted: unique symbol
|
725
725
|
/** Event type: {@link OnPlayerMainInventoryChangedEvent} */
|
726
|
-
const on_player_main_inventory_changed: unique symbol
|
726
|
+
const on_player_main_inventory_changed: unique symbol
|
727
727
|
/** Event type: {@link OnPlayerArmorInventoryChangedEvent} */
|
728
|
-
const on_player_armor_inventory_changed: unique symbol
|
728
|
+
const on_player_armor_inventory_changed: unique symbol
|
729
729
|
/** Event type: {@link OnPlayerAmmoInventoryChangedEvent} */
|
730
|
-
const on_player_ammo_inventory_changed: unique symbol
|
730
|
+
const on_player_ammo_inventory_changed: unique symbol
|
731
731
|
/** Event type: {@link OnPlayerGunInventoryChangedEvent} */
|
732
|
-
const on_player_gun_inventory_changed: unique symbol
|
732
|
+
const on_player_gun_inventory_changed: unique symbol
|
733
733
|
/** Event type: {@link OnPlayerPlacedEquipmentEvent} */
|
734
|
-
const on_player_placed_equipment: unique symbol
|
734
|
+
const on_player_placed_equipment: unique symbol
|
735
735
|
/** Event type: {@link OnPlayerRemovedEquipmentEvent} */
|
736
|
-
const on_player_removed_equipment: unique symbol
|
736
|
+
const on_player_removed_equipment: unique symbol
|
737
737
|
/** Event type: {@link OnPrePlayerDiedEvent} */
|
738
|
-
const on_pre_player_died: unique symbol
|
738
|
+
const on_pre_player_died: unique symbol
|
739
739
|
/** Event type: {@link OnPlayerDiedEvent} */
|
740
|
-
const on_player_died: unique symbol
|
740
|
+
const on_player_died: unique symbol
|
741
741
|
/** Event type: {@link OnPlayerRespawnedEvent} */
|
742
|
-
const on_player_respawned: unique symbol
|
742
|
+
const on_player_respawned: unique symbol
|
743
743
|
/** Event type: {@link OnPlayerJoinedGameEvent} */
|
744
|
-
const on_player_joined_game: unique symbol
|
744
|
+
const on_player_joined_game: unique symbol
|
745
745
|
/** Event type: {@link OnPlayerLeftGameEvent} */
|
746
|
-
const on_player_left_game: unique symbol
|
746
|
+
const on_player_left_game: unique symbol
|
747
747
|
/** Event type: {@link OnPlayerBuiltTileEvent} */
|
748
|
-
const on_player_built_tile: unique symbol
|
748
|
+
const on_player_built_tile: unique symbol
|
749
749
|
/** Event type: {@link OnPlayerMinedTileEvent} */
|
750
|
-
const on_player_mined_tile: unique symbol
|
750
|
+
const on_player_mined_tile: unique symbol
|
751
751
|
/** Event type: {@link OnRobotBuiltTileEvent} */
|
752
|
-
const on_robot_built_tile: unique symbol
|
752
|
+
const on_robot_built_tile: unique symbol
|
753
753
|
/** Event type: {@link OnRobotMinedTileEvent} */
|
754
|
-
const on_robot_mined_tile: unique symbol
|
754
|
+
const on_robot_mined_tile: unique symbol
|
755
755
|
/** Event type: {@link OnPlayerSelectedAreaEvent} */
|
756
|
-
const on_player_selected_area: unique symbol
|
756
|
+
const on_player_selected_area: unique symbol
|
757
757
|
/** Event type: {@link OnPlayerAltSelectedAreaEvent} */
|
758
|
-
const on_player_alt_selected_area: unique symbol
|
758
|
+
const on_player_alt_selected_area: unique symbol
|
759
759
|
/** Event type: {@link OnPlayerChangedSurfaceEvent} */
|
760
|
-
const on_player_changed_surface: unique symbol
|
760
|
+
const on_player_changed_surface: unique symbol
|
761
761
|
/** Event type: {@link OnSelectedEntityChangedEvent} */
|
762
|
-
const on_selected_entity_changed: unique symbol
|
762
|
+
const on_selected_entity_changed: unique symbol
|
763
763
|
/** Event type: {@link OnMarketItemPurchasedEvent} */
|
764
|
-
const on_market_item_purchased: unique symbol
|
764
|
+
const on_market_item_purchased: unique symbol
|
765
765
|
/** Event type: {@link OnPlayerDroppedItemEvent} */
|
766
|
-
const on_player_dropped_item: unique symbol
|
766
|
+
const on_player_dropped_item: unique symbol
|
767
767
|
/** Event type: {@link OnBiterBaseBuiltEvent} */
|
768
|
-
const on_biter_base_built: unique symbol
|
768
|
+
const on_biter_base_built: unique symbol
|
769
769
|
/** Event type: {@link OnPlayerChangedForceEvent} */
|
770
|
-
const on_player_changed_force: unique symbol
|
770
|
+
const on_player_changed_force: unique symbol
|
771
771
|
/** Event type: {@link OnEntityRenamedEvent} */
|
772
|
-
const on_entity_renamed: unique symbol
|
772
|
+
const on_entity_renamed: unique symbol
|
773
773
|
/** Event type: {@link OnGuiSelectionStateChangedEvent} */
|
774
|
-
const on_gui_selection_state_changed: unique symbol
|
774
|
+
const on_gui_selection_state_changed: unique symbol
|
775
775
|
/** Event type: {@link OnRuntimeModSettingChangedEvent} */
|
776
|
-
const on_runtime_mod_setting_changed: unique symbol
|
776
|
+
const on_runtime_mod_setting_changed: unique symbol
|
777
777
|
/** Event type: {@link OnDifficultySettingsChangedEvent} */
|
778
|
-
const on_difficulty_settings_changed: unique symbol
|
778
|
+
const on_difficulty_settings_changed: unique symbol
|
779
779
|
/** Event type: {@link OnSurfaceCreatedEvent} */
|
780
|
-
const on_surface_created: unique symbol
|
780
|
+
const on_surface_created: unique symbol
|
781
781
|
/** Event type: {@link OnSurfaceDeletedEvent} */
|
782
|
-
const on_surface_deleted: unique symbol
|
782
|
+
const on_surface_deleted: unique symbol
|
783
783
|
/** Event type: {@link OnPreSurfaceDeletedEvent} */
|
784
|
-
const on_pre_surface_deleted: unique symbol
|
784
|
+
const on_pre_surface_deleted: unique symbol
|
785
785
|
/** Event type: {@link OnPlayerMinedEntityEvent} */
|
786
|
-
const on_player_mined_entity: unique symbol
|
786
|
+
const on_player_mined_entity: unique symbol
|
787
787
|
/** Event type: {@link OnRobotMinedEntityEvent} */
|
788
|
-
const on_robot_mined_entity: unique symbol
|
788
|
+
const on_robot_mined_entity: unique symbol
|
789
789
|
/** Event type: {@link OnTrainCreatedEvent} */
|
790
|
-
const on_train_created: unique symbol
|
790
|
+
const on_train_created: unique symbol
|
791
791
|
/** Event type: {@link OnGuiElemChangedEvent} */
|
792
|
-
const on_gui_elem_changed: unique symbol
|
792
|
+
const on_gui_elem_changed: unique symbol
|
793
793
|
/** Event type: {@link OnPlayerSetupBlueprintEvent} */
|
794
|
-
const on_player_setup_blueprint: unique symbol
|
794
|
+
const on_player_setup_blueprint: unique symbol
|
795
795
|
/** Event type: {@link OnPlayerDeconstructedAreaEvent} */
|
796
|
-
const on_player_deconstructed_area: unique symbol
|
796
|
+
const on_player_deconstructed_area: unique symbol
|
797
797
|
/** Event type: {@link OnPlayerConfiguredBlueprintEvent} */
|
798
|
-
const on_player_configured_blueprint: unique symbol
|
798
|
+
const on_player_configured_blueprint: unique symbol
|
799
799
|
/** Event type: {@link OnConsoleChatEvent} */
|
800
|
-
const on_console_chat: unique symbol
|
800
|
+
const on_console_chat: unique symbol
|
801
801
|
/** Event type: {@link OnConsoleCommandEvent} */
|
802
|
-
const on_console_command: unique symbol
|
802
|
+
const on_console_command: unique symbol
|
803
803
|
/** Event type: {@link OnPlayerRemovedEvent} */
|
804
|
-
const on_player_removed: unique symbol
|
804
|
+
const on_player_removed: unique symbol
|
805
805
|
/** Event type: {@link OnPrePlayerRemovedEvent} */
|
806
|
-
const on_pre_player_removed: unique symbol
|
806
|
+
const on_pre_player_removed: unique symbol
|
807
807
|
/** Event type: {@link OnPlayerUsedCapsuleEvent} */
|
808
|
-
const on_player_used_capsule: unique symbol
|
808
|
+
const on_player_used_capsule: unique symbol
|
809
809
|
/** Event type: {@link ScriptRaisedBuiltEvent} */
|
810
|
-
const script_raised_built: unique symbol
|
810
|
+
const script_raised_built: unique symbol
|
811
811
|
/** Event type: {@link ScriptRaisedDestroyEvent} */
|
812
|
-
const script_raised_destroy: unique symbol
|
812
|
+
const script_raised_destroy: unique symbol
|
813
813
|
/** Event type: {@link ScriptRaisedReviveEvent} */
|
814
|
-
const script_raised_revive: unique symbol
|
814
|
+
const script_raised_revive: unique symbol
|
815
815
|
/** Event type: {@link ScriptRaisedSetTilesEvent} */
|
816
|
-
const script_raised_set_tiles: unique symbol
|
816
|
+
const script_raised_set_tiles: unique symbol
|
817
817
|
/** Event type: {@link OnPlayerPromotedEvent} */
|
818
|
-
const on_player_promoted: unique symbol
|
818
|
+
const on_player_promoted: unique symbol
|
819
819
|
/** Event type: {@link OnPlayerDemotedEvent} */
|
820
|
-
const on_player_demoted: unique symbol
|
820
|
+
const on_player_demoted: unique symbol
|
821
821
|
/** Event type: {@link OnCombatRobotExpiredEvent} */
|
822
|
-
const on_combat_robot_expired: unique symbol
|
822
|
+
const on_combat_robot_expired: unique symbol
|
823
823
|
/** Event type: {@link OnWorkerRobotExpiredEvent} */
|
824
|
-
const on_worker_robot_expired: unique symbol
|
824
|
+
const on_worker_robot_expired: unique symbol
|
825
825
|
/** Event type: {@link OnPlayerChangedPositionEvent} */
|
826
|
-
const on_player_changed_position: unique symbol
|
826
|
+
const on_player_changed_position: unique symbol
|
827
827
|
/** Event type: {@link OnModItemOpenedEvent} */
|
828
|
-
const on_mod_item_opened: unique symbol
|
828
|
+
const on_mod_item_opened: unique symbol
|
829
829
|
/** Event type: {@link OnGuiOpenedEvent} */
|
830
|
-
const on_gui_opened: unique symbol
|
830
|
+
const on_gui_opened: unique symbol
|
831
831
|
/** Event type: {@link OnGuiClosedEvent} */
|
832
|
-
const on_gui_closed: unique symbol
|
832
|
+
const on_gui_closed: unique symbol
|
833
833
|
/** Event type: {@link OnGuiValueChangedEvent} */
|
834
|
-
const on_gui_value_changed: unique symbol
|
834
|
+
const on_gui_value_changed: unique symbol
|
835
835
|
/** Event type: {@link OnPlayerMutedEvent} */
|
836
|
-
const on_player_muted: unique symbol
|
836
|
+
const on_player_muted: unique symbol
|
837
837
|
/** Event type: {@link OnPlayerUnmutedEvent} */
|
838
|
-
const on_player_unmuted: unique symbol
|
838
|
+
const on_player_unmuted: unique symbol
|
839
839
|
/** Event type: {@link OnPlayerCheatModeEnabledEvent} */
|
840
|
-
const on_player_cheat_mode_enabled: unique symbol
|
840
|
+
const on_player_cheat_mode_enabled: unique symbol
|
841
841
|
/** Event type: {@link OnPlayerCheatModeDisabledEvent} */
|
842
|
-
const on_player_cheat_mode_disabled: unique symbol
|
842
|
+
const on_player_cheat_mode_disabled: unique symbol
|
843
843
|
/** Event type: {@link OnCharacterCorpseExpiredEvent} */
|
844
|
-
const on_character_corpse_expired: unique symbol
|
844
|
+
const on_character_corpse_expired: unique symbol
|
845
845
|
/** Event type: {@link OnPreGhostDeconstructedEvent} */
|
846
|
-
const on_pre_ghost_deconstructed: unique symbol
|
846
|
+
const on_pre_ghost_deconstructed: unique symbol
|
847
847
|
/** Event type: {@link OnPlayerPipetteEvent} */
|
848
|
-
const on_player_pipette: unique symbol
|
848
|
+
const on_player_pipette: unique symbol
|
849
849
|
/** Event type: {@link OnPlayerDisplayResolutionChangedEvent} */
|
850
|
-
const on_player_display_resolution_changed: unique symbol
|
850
|
+
const on_player_display_resolution_changed: unique symbol
|
851
851
|
/** Event type: {@link OnPlayerDisplayScaleChangedEvent} */
|
852
|
-
const on_player_display_scale_changed: unique symbol
|
852
|
+
const on_player_display_scale_changed: unique symbol
|
853
853
|
/** Event type: {@link OnPrePlayerCraftedItemEvent} */
|
854
|
-
const on_pre_player_crafted_item: unique symbol
|
854
|
+
const on_pre_player_crafted_item: unique symbol
|
855
855
|
/** Event type: {@link OnPlayerCancelledCraftingEvent} */
|
856
|
-
const on_player_cancelled_crafting: unique symbol
|
856
|
+
const on_player_cancelled_crafting: unique symbol
|
857
857
|
/** Event type: {@link OnChunkChartedEvent} */
|
858
|
-
const on_chunk_charted: unique symbol
|
858
|
+
const on_chunk_charted: unique symbol
|
859
859
|
/** Event type: {@link OnTechnologyEffectsResetEvent} */
|
860
|
-
const on_technology_effects_reset: unique symbol
|
860
|
+
const on_technology_effects_reset: unique symbol
|
861
861
|
/** Event type: {@link OnForceResetEvent} */
|
862
|
-
const on_force_reset: unique symbol
|
862
|
+
const on_force_reset: unique symbol
|
863
863
|
/** Event type: {@link OnLandMineArmedEvent} */
|
864
|
-
const on_land_mine_armed: unique symbol
|
864
|
+
const on_land_mine_armed: unique symbol
|
865
865
|
/** Event type: {@link OnForcesMergedEvent} */
|
866
|
-
const on_forces_merged: unique symbol
|
866
|
+
const on_forces_merged: unique symbol
|
867
867
|
/** Event type: {@link OnPlayerTrashInventoryChangedEvent} */
|
868
|
-
const on_player_trash_inventory_changed: unique symbol
|
868
|
+
const on_player_trash_inventory_changed: unique symbol
|
869
869
|
/** Event type: {@link OnPrePlayerLeftGameEvent} */
|
870
|
-
const on_pre_player_left_game: unique symbol
|
870
|
+
const on_pre_player_left_game: unique symbol
|
871
871
|
/** Event type: {@link OnPreSurfaceClearedEvent} */
|
872
|
-
const on_pre_surface_cleared: unique symbol
|
872
|
+
const on_pre_surface_cleared: unique symbol
|
873
873
|
/** Event type: {@link OnSurfaceClearedEvent} */
|
874
|
-
const on_surface_cleared: unique symbol
|
874
|
+
const on_surface_cleared: unique symbol
|
875
875
|
/** Event type: {@link OnChunkDeletedEvent} */
|
876
|
-
const on_chunk_deleted: unique symbol
|
876
|
+
const on_chunk_deleted: unique symbol
|
877
877
|
/** Event type: {@link OnPreChunkDeletedEvent} */
|
878
|
-
const on_pre_chunk_deleted: unique symbol
|
878
|
+
const on_pre_chunk_deleted: unique symbol
|
879
879
|
/** Event type: {@link OnTrainScheduleChangedEvent} */
|
880
|
-
const on_train_schedule_changed: unique symbol
|
880
|
+
const on_train_schedule_changed: unique symbol
|
881
881
|
/** Event type: {@link OnPlayerBannedEvent} */
|
882
|
-
const on_player_banned: unique symbol
|
882
|
+
const on_player_banned: unique symbol
|
883
883
|
/** Event type: {@link OnPlayerKickedEvent} */
|
884
|
-
const on_player_kicked: unique symbol
|
884
|
+
const on_player_kicked: unique symbol
|
885
885
|
/** Event type: {@link OnPlayerUnbannedEvent} */
|
886
|
-
const on_player_unbanned: unique symbol
|
886
|
+
const on_player_unbanned: unique symbol
|
887
887
|
/** Event type: {@link OnRocketLaunchOrderedEvent} */
|
888
|
-
const on_rocket_launch_ordered: unique symbol
|
888
|
+
const on_rocket_launch_ordered: unique symbol
|
889
889
|
/** Event type: {@link OnScriptPathRequestFinishedEvent} */
|
890
|
-
const on_script_path_request_finished: unique symbol
|
890
|
+
const on_script_path_request_finished: unique symbol
|
891
891
|
/** Event type: {@link OnAiCommandCompletedEvent} */
|
892
|
-
const on_ai_command_completed: unique symbol
|
892
|
+
const on_ai_command_completed: unique symbol
|
893
893
|
/** Event type: {@link OnMarkedForUpgradeEvent} */
|
894
|
-
const on_marked_for_upgrade: unique symbol
|
894
|
+
const on_marked_for_upgrade: unique symbol
|
895
895
|
/** Event type: {@link OnCancelledUpgradeEvent} */
|
896
|
-
const on_cancelled_upgrade: unique symbol
|
896
|
+
const on_cancelled_upgrade: unique symbol
|
897
897
|
/** Event type: {@link OnPlayerToggledMapEditorEvent} */
|
898
|
-
const on_player_toggled_map_editor: unique symbol
|
898
|
+
const on_player_toggled_map_editor: unique symbol
|
899
899
|
/** Event type: {@link OnEntityClonedEvent} */
|
900
|
-
const on_entity_cloned: unique symbol
|
900
|
+
const on_entity_cloned: unique symbol
|
901
901
|
/** Event type: {@link OnAreaClonedEvent} */
|
902
|
-
const on_area_cloned: unique symbol
|
902
|
+
const on_area_cloned: unique symbol
|
903
903
|
/** Event type: {@link OnBrushClonedEvent} */
|
904
|
-
const on_brush_cloned: unique symbol
|
904
|
+
const on_brush_cloned: unique symbol
|
905
905
|
/** Event type: {@link OnGameCreatedFromScenarioEvent} */
|
906
|
-
const on_game_created_from_scenario: unique symbol
|
906
|
+
const on_game_created_from_scenario: unique symbol
|
907
907
|
/** Event type: {@link OnSurfaceImportedEvent} */
|
908
|
-
const on_surface_imported: unique symbol
|
908
|
+
const on_surface_imported: unique symbol
|
909
909
|
/** Event type: {@link OnSurfaceRenamedEvent} */
|
910
|
-
const on_surface_renamed: unique symbol
|
910
|
+
const on_surface_renamed: unique symbol
|
911
911
|
/** Event type: {@link OnPlayerToggledAltModeEvent} */
|
912
|
-
const on_player_toggled_alt_mode: unique symbol
|
912
|
+
const on_player_toggled_alt_mode: unique symbol
|
913
913
|
/** Event type: {@link OnPlayerRepairedEntityEvent} */
|
914
|
-
const on_player_repaired_entity: unique symbol
|
914
|
+
const on_player_repaired_entity: unique symbol
|
915
915
|
/** Event type: {@link OnPlayerFastTransferredEvent} */
|
916
|
-
const on_player_fast_transferred: unique symbol
|
916
|
+
const on_player_fast_transferred: unique symbol
|
917
917
|
/** Event type: {@link OnPreRobotExplodedCliffEvent} */
|
918
|
-
const on_pre_robot_exploded_cliff: unique symbol
|
918
|
+
const on_pre_robot_exploded_cliff: unique symbol
|
919
919
|
/** Event type: {@link OnRobotExplodedCliffEvent} */
|
920
|
-
const on_robot_exploded_cliff: unique symbol
|
920
|
+
const on_robot_exploded_cliff: unique symbol
|
921
921
|
/** Event type: {@link OnEntitySpawnedEvent} */
|
922
|
-
const on_entity_spawned: unique symbol
|
922
|
+
const on_entity_spawned: unique symbol
|
923
923
|
/** Event type: {@link OnCutsceneWaypointReachedEvent} */
|
924
|
-
const on_cutscene_waypoint_reached: unique symbol
|
924
|
+
const on_cutscene_waypoint_reached: unique symbol
|
925
925
|
/** Event type: {@link OnUnitGroupCreatedEvent} */
|
926
|
-
const on_unit_group_created: unique symbol
|
926
|
+
const on_unit_group_created: unique symbol
|
927
927
|
/** Event type: {@link OnUnitAddedToGroupEvent} */
|
928
|
-
const on_unit_added_to_group: unique symbol
|
928
|
+
const on_unit_added_to_group: unique symbol
|
929
929
|
/** Event type: {@link OnUnitRemovedFromGroupEvent} */
|
930
|
-
const on_unit_removed_from_group: unique symbol
|
930
|
+
const on_unit_removed_from_group: unique symbol
|
931
931
|
/** Event type: {@link OnUnitGroupFinishedGatheringEvent} */
|
932
|
-
const on_unit_group_finished_gathering: unique symbol
|
932
|
+
const on_unit_group_finished_gathering: unique symbol
|
933
933
|
/** Event type: {@link OnBuildBaseArrivedEvent} */
|
934
|
-
const on_build_base_arrived: unique symbol
|
934
|
+
const on_build_base_arrived: unique symbol
|
935
935
|
/** Event type: {@link OnChartTagAddedEvent} */
|
936
|
-
const on_chart_tag_added: unique symbol
|
936
|
+
const on_chart_tag_added: unique symbol
|
937
937
|
/** Event type: {@link OnChartTagModifiedEvent} */
|
938
|
-
const on_chart_tag_modified: unique symbol
|
938
|
+
const on_chart_tag_modified: unique symbol
|
939
939
|
/** Event type: {@link OnChartTagRemovedEvent} */
|
940
|
-
const on_chart_tag_removed: unique symbol
|
940
|
+
const on_chart_tag_removed: unique symbol
|
941
941
|
/** Event type: {@link OnLuaShortcutEvent} */
|
942
|
-
const on_lua_shortcut: unique symbol
|
942
|
+
const on_lua_shortcut: unique symbol
|
943
943
|
/** Event type: {@link OnGuiLocationChangedEvent} */
|
944
|
-
const on_gui_location_changed: unique symbol
|
944
|
+
const on_gui_location_changed: unique symbol
|
945
945
|
/** Event type: {@link OnGuiSelectedTabChangedEvent} */
|
946
|
-
const on_gui_selected_tab_changed: unique symbol
|
946
|
+
const on_gui_selected_tab_changed: unique symbol
|
947
947
|
/** Event type: {@link OnGuiSwitchStateChangedEvent} */
|
948
|
-
const on_gui_switch_state_changed: unique symbol
|
948
|
+
const on_gui_switch_state_changed: unique symbol
|
949
949
|
/** Event type: {@link OnForceCeaseFireChangedEvent} */
|
950
|
-
const on_force_cease_fire_changed: unique symbol
|
950
|
+
const on_force_cease_fire_changed: unique symbol
|
951
951
|
/** Event type: {@link OnForceFriendsChangedEvent} */
|
952
|
-
const on_force_friends_changed: unique symbol
|
952
|
+
const on_force_friends_changed: unique symbol
|
953
953
|
/** Event type: {@link OnStringTranslatedEvent} */
|
954
|
-
const on_string_translated: unique symbol
|
954
|
+
const on_string_translated: unique symbol
|
955
955
|
/** Event type: {@link OnScriptTriggerEffectEvent} */
|
956
|
-
const on_script_trigger_effect: unique symbol
|
956
|
+
const on_script_trigger_effect: unique symbol
|
957
957
|
/** Event type: {@link OnPlayerSetQuickBarSlotEvent} */
|
958
|
-
const on_player_set_quick_bar_slot: unique symbol
|
958
|
+
const on_player_set_quick_bar_slot: unique symbol
|
959
959
|
/** Event type: {@link OnPrePlayerToggledMapEditorEvent} */
|
960
|
-
const on_pre_player_toggled_map_editor: unique symbol
|
960
|
+
const on_pre_player_toggled_map_editor: unique symbol
|
961
961
|
/** Event type: {@link OnPreScriptInventoryResizedEvent} */
|
962
|
-
const on_pre_script_inventory_resized: unique symbol
|
962
|
+
const on_pre_script_inventory_resized: unique symbol
|
963
963
|
/** Event type: {@link OnScriptInventoryResizedEvent} */
|
964
|
-
const on_script_inventory_resized: unique symbol
|
964
|
+
const on_script_inventory_resized: unique symbol
|
965
965
|
/** Event type: {@link OnEntityDestroyedEvent} */
|
966
|
-
const on_entity_destroyed: unique symbol
|
966
|
+
const on_entity_destroyed: unique symbol
|
967
967
|
/** Event type: {@link OnPlayerClickedGpsTagEvent} */
|
968
|
-
const on_player_clicked_gps_tag: unique symbol
|
968
|
+
const on_player_clicked_gps_tag: unique symbol
|
969
969
|
/** Event type: {@link OnPlayerFlushedFluidEvent} */
|
970
|
-
const on_player_flushed_fluid: unique symbol
|
970
|
+
const on_player_flushed_fluid: unique symbol
|
971
971
|
/** Event type: {@link OnPermissionGroupEditedEvent} */
|
972
|
-
const on_permission_group_edited: unique symbol
|
972
|
+
const on_permission_group_edited: unique symbol
|
973
973
|
/** Event type: {@link OnPrePermissionStringImportedEvent} */
|
974
|
-
const on_pre_permission_string_imported: unique symbol
|
974
|
+
const on_pre_permission_string_imported: unique symbol
|
975
975
|
/** Event type: {@link OnPermissionStringImportedEvent} */
|
976
|
-
const on_permission_string_imported: unique symbol
|
976
|
+
const on_permission_string_imported: unique symbol
|
977
977
|
/** Event type: {@link OnPrePermissionGroupDeletedEvent} */
|
978
|
-
const on_pre_permission_group_deleted: unique symbol
|
978
|
+
const on_pre_permission_group_deleted: unique symbol
|
979
979
|
/** Event type: {@link OnPermissionGroupDeletedEvent} */
|
980
|
-
const on_permission_group_deleted: unique symbol
|
980
|
+
const on_permission_group_deleted: unique symbol
|
981
981
|
/** Event type: {@link OnPermissionGroupAddedEvent} */
|
982
|
-
const on_permission_group_added: unique symbol
|
982
|
+
const on_permission_group_added: unique symbol
|
983
983
|
/** Event type: {@link OnCutsceneCancelledEvent} */
|
984
|
-
const on_cutscene_cancelled: unique symbol
|
984
|
+
const on_cutscene_cancelled: unique symbol
|
985
985
|
/** Event type: {@link OnPlayerConfiguredSpiderRemoteEvent} */
|
986
|
-
const on_player_configured_spider_remote: unique symbol
|
986
|
+
const on_player_configured_spider_remote: unique symbol
|
987
987
|
/** Event type: {@link OnPlayerUsedSpiderRemoteEvent} */
|
988
|
-
const on_player_used_spider_remote: unique symbol
|
988
|
+
const on_player_used_spider_remote: unique symbol
|
989
989
|
/** Event type: {@link OnSpiderCommandCompletedEvent} */
|
990
|
-
const on_spider_command_completed: unique symbol
|
990
|
+
const on_spider_command_completed: unique symbol
|
991
991
|
/** Event type: {@link OnEntityLogisticSlotChangedEvent} */
|
992
|
-
const on_entity_logistic_slot_changed: unique symbol
|
992
|
+
const on_entity_logistic_slot_changed: unique symbol
|
993
|
+
/** Event type: {@link OnEquipmentInsertedEvent} */
|
994
|
+
const on_equipment_inserted: unique symbol
|
995
|
+
/** Event type: {@link OnEquipmentRemovedEvent} */
|
996
|
+
const on_equipment_removed: unique symbol
|
993
997
|
}
|
994
998
|
/**
|
995
|
-
* See the {@link https://lua-api.factorio.com/
|
996
|
-
*
|
999
|
+
* See the {@link https://lua-api.factorio.com/next/events.html events page} for more info on what events contain and
|
1000
|
+
* when they get raised.
|
997
1001
|
*
|
998
|
-
* {@link https://lua-api.factorio.com/
|
1002
|
+
* {@link https://lua-api.factorio.com/next/defines.html#defines.events View documentation}
|
999
1003
|
*/
|
1000
|
-
type events = typeof events[keyof typeof events]
|
1004
|
+
type events = typeof events[keyof typeof events]
|
1001
1005
|
enum flow_precision_index {
|
1002
1006
|
five_seconds,
|
1003
1007
|
one_minute,
|
@@ -1310,15 +1314,15 @@ declare namespace defines {
|
|
1310
1314
|
* organized as a lookup table, meaning it maps the sub-prototype names to `0`. As an example,
|
1311
1315
|
* `defines.prototypes['entity']` looks like this: `{furnace=0, inserter=0, container=0, ...}`.
|
1312
1316
|
*
|
1313
|
-
* {@link https://lua-api.factorio.com/
|
1317
|
+
* {@link https://lua-api.factorio.com/next/defines.html#defines.prototypes View documentation}
|
1314
1318
|
*/
|
1315
1319
|
const prototypes: {
|
1316
1320
|
readonly [Type in string]?: {
|
1317
1321
|
readonly [Name in string]?: 0 & {
|
1318
|
-
_notFalsyBrand: any
|
1319
|
-
}
|
1320
|
-
}
|
1321
|
-
}
|
1322
|
+
_notFalsyBrand: any
|
1323
|
+
}
|
1324
|
+
}
|
1325
|
+
}
|
1322
1326
|
enum rail_connection_direction {
|
1323
1327
|
left,
|
1324
1328
|
straight,
|
@@ -1431,31 +1435,31 @@ declare namespace defines {
|
|
1431
1435
|
/**
|
1432
1436
|
* State of an ordinary rail signal.
|
1433
1437
|
*
|
1434
|
-
* {@link https://lua-api.factorio.com/
|
1438
|
+
* {@link https://lua-api.factorio.com/next/defines.html#defines.signal_state View documentation}
|
1435
1439
|
*/
|
1436
1440
|
enum signal_state {
|
1437
1441
|
/**
|
1438
1442
|
* Green.
|
1439
1443
|
*
|
1440
|
-
* {@link https://lua-api.factorio.com/
|
1444
|
+
* {@link https://lua-api.factorio.com/next/defines.html#defines.signal_state.open View documentation}
|
1441
1445
|
*/
|
1442
1446
|
open,
|
1443
1447
|
/**
|
1444
1448
|
* Red.
|
1445
1449
|
*
|
1446
|
-
* {@link https://lua-api.factorio.com/
|
1450
|
+
* {@link https://lua-api.factorio.com/next/defines.html#defines.signal_state.closed View documentation}
|
1447
1451
|
*/
|
1448
1452
|
closed,
|
1449
1453
|
/**
|
1450
1454
|
* Orange.
|
1451
1455
|
*
|
1452
|
-
* {@link https://lua-api.factorio.com/
|
1456
|
+
* {@link https://lua-api.factorio.com/next/defines.html#defines.signal_state.reserved View documentation}
|
1453
1457
|
*/
|
1454
1458
|
reserved,
|
1455
1459
|
/**
|
1456
1460
|
* Red - From circuit network.
|
1457
1461
|
*
|
1458
|
-
* {@link https://lua-api.factorio.com/
|
1462
|
+
* {@link https://lua-api.factorio.com/next/defines.html#defines.signal_state.reserved_by_circuit_network View documentation}
|
1459
1463
|
*/
|
1460
1464
|
reserved_by_circuit_network,
|
1461
1465
|
}
|
@@ -1463,67 +1467,67 @@ declare namespace defines {
|
|
1463
1467
|
/**
|
1464
1468
|
* Normal state -- following the path.
|
1465
1469
|
*
|
1466
|
-
* {@link https://lua-api.factorio.com/
|
1470
|
+
* {@link https://lua-api.factorio.com/next/defines.html#defines.train_state.on_the_path View documentation}
|
1467
1471
|
*/
|
1468
1472
|
on_the_path,
|
1469
1473
|
/**
|
1470
1474
|
* Had path and lost it -- must stop.
|
1471
1475
|
*
|
1472
|
-
* {@link https://lua-api.factorio.com/
|
1476
|
+
* {@link https://lua-api.factorio.com/next/defines.html#defines.train_state.path_lost View documentation}
|
1473
1477
|
*/
|
1474
1478
|
path_lost,
|
1475
1479
|
/**
|
1476
1480
|
* Doesn't have anywhere to go.
|
1477
1481
|
*
|
1478
|
-
* {@link https://lua-api.factorio.com/
|
1482
|
+
* {@link https://lua-api.factorio.com/next/defines.html#defines.train_state.no_schedule View documentation}
|
1479
1483
|
*/
|
1480
1484
|
no_schedule,
|
1481
1485
|
/**
|
1482
1486
|
* Has no path and is stopped.
|
1483
1487
|
*
|
1484
|
-
* {@link https://lua-api.factorio.com/
|
1488
|
+
* {@link https://lua-api.factorio.com/next/defines.html#defines.train_state.no_path View documentation}
|
1485
1489
|
*/
|
1486
1490
|
no_path,
|
1487
1491
|
/**
|
1488
1492
|
* Braking before a rail signal.
|
1489
1493
|
*
|
1490
|
-
* {@link https://lua-api.factorio.com/
|
1494
|
+
* {@link https://lua-api.factorio.com/next/defines.html#defines.train_state.arrive_signal View documentation}
|
1491
1495
|
*/
|
1492
1496
|
arrive_signal,
|
1493
1497
|
/**
|
1494
1498
|
* Waiting at a signal.
|
1495
1499
|
*
|
1496
|
-
* {@link https://lua-api.factorio.com/
|
1500
|
+
* {@link https://lua-api.factorio.com/next/defines.html#defines.train_state.wait_signal View documentation}
|
1497
1501
|
*/
|
1498
1502
|
wait_signal,
|
1499
1503
|
/**
|
1500
1504
|
* Braking before a station.
|
1501
1505
|
*
|
1502
|
-
* {@link https://lua-api.factorio.com/
|
1506
|
+
* {@link https://lua-api.factorio.com/next/defines.html#defines.train_state.arrive_station View documentation}
|
1503
1507
|
*/
|
1504
1508
|
arrive_station,
|
1505
1509
|
/**
|
1506
1510
|
* Waiting at a station.
|
1507
1511
|
*
|
1508
|
-
* {@link https://lua-api.factorio.com/
|
1512
|
+
* {@link https://lua-api.factorio.com/next/defines.html#defines.train_state.wait_station View documentation}
|
1509
1513
|
*/
|
1510
1514
|
wait_station,
|
1511
1515
|
/**
|
1512
1516
|
* Switched to manual control and has to stop.
|
1513
1517
|
*
|
1514
|
-
* {@link https://lua-api.factorio.com/
|
1518
|
+
* {@link https://lua-api.factorio.com/next/defines.html#defines.train_state.manual_control_stop View documentation}
|
1515
1519
|
*/
|
1516
1520
|
manual_control_stop,
|
1517
1521
|
/**
|
1518
1522
|
* Can move if user explicitly sits in and rides the train.
|
1519
1523
|
*
|
1520
|
-
* {@link https://lua-api.factorio.com/
|
1524
|
+
* {@link https://lua-api.factorio.com/next/defines.html#defines.train_state.manual_control View documentation}
|
1521
1525
|
*/
|
1522
1526
|
manual_control,
|
1523
1527
|
/**
|
1524
1528
|
* Same as no_path but all candidate train stops are full
|
1525
1529
|
*
|
1526
|
-
* {@link https://lua-api.factorio.com/
|
1530
|
+
* {@link https://lua-api.factorio.com/next/defines.html#defines.train_state.destination_full View documentation}
|
1527
1531
|
*/
|
1528
1532
|
destination_full,
|
1529
1533
|
}
|