typed-factorio 1.3.1 → 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- package/Changelog.md +41 -9
- package/README.md +14 -19
- package/custom-index-template.d.ts +1 -0
- package/generated/builtin-types.d.ts +24 -19
- package/generated/classes.d.ts +6155 -7729
- package/generated/concepts.d.ts +3181 -1943
- package/generated/defines.d.ts +126 -193
- package/generated/events.d.ts +234 -382
- package/generated/global-functions.d.ts +33 -0
- package/generated/global-objects.d.ts +7 -14
- package/package.json +22 -21
- package/runtime/index.d.ts +1 -0
- package/runtime/librariesAndFunctions.d.ts +0 -32
package/generated/defines.d.ts
CHANGED
@@ -16,8 +16,7 @@ declare namespace defines {
|
|
16
16
|
}
|
17
17
|
/**
|
18
18
|
* AI command exit status. See {@link LuaEntity#set_command LuaEntity::set_command}
|
19
|
-
*
|
20
|
-
* {@link https://lua-api.factorio.com/latest/defines.html#defines.behavior_result View documentation}
|
19
|
+
* @see {@link https://lua-api.factorio.com/latest/defines.html#defines.behavior_result Online documentation}
|
21
20
|
*/
|
22
21
|
enum behavior_result {
|
23
22
|
in_progress,
|
@@ -35,8 +34,7 @@ declare namespace defines {
|
|
35
34
|
}
|
36
35
|
/**
|
37
36
|
* State of a chain signal.
|
38
|
-
*
|
39
|
-
* {@link https://lua-api.factorio.com/latest/defines.html#defines.chain_signal_state View documentation}
|
37
|
+
* @see {@link https://lua-api.factorio.com/latest/defines.html#defines.chain_signal_state Online documentation}
|
40
38
|
*/
|
41
39
|
enum chain_signal_state {
|
42
40
|
none,
|
@@ -66,6 +64,7 @@ declare namespace defines {
|
|
66
64
|
accumulator,
|
67
65
|
constant_combinator,
|
68
66
|
container,
|
67
|
+
linked_container,
|
69
68
|
programmable_speaker,
|
70
69
|
rail_signal,
|
71
70
|
rail_chain_signal,
|
@@ -82,87 +81,73 @@ declare namespace defines {
|
|
82
81
|
}
|
83
82
|
/**
|
84
83
|
* Command given to units describing what they should do.
|
85
|
-
*
|
86
|
-
* {@link https://lua-api.factorio.com/latest/defines.html#defines.command View documentation}
|
84
|
+
* @see {@link https://lua-api.factorio.com/latest/defines.html#defines.command Online documentation}
|
87
85
|
*/
|
88
86
|
enum command {
|
89
87
|
/**
|
90
88
|
* Attack another entity.
|
91
|
-
*
|
92
|
-
* {@link https://lua-api.factorio.com/latest/defines.html#defines.command.attack View documentation}
|
89
|
+
* @see {@link https://lua-api.factorio.com/latest/defines.html#defines.command.attack Online documentation}
|
93
90
|
*/
|
94
91
|
attack = 0,
|
95
92
|
/**
|
96
93
|
* Go to a specific position.
|
97
|
-
*
|
98
|
-
* {@link https://lua-api.factorio.com/latest/defines.html#defines.command.go_to_location View documentation}
|
94
|
+
* @see {@link https://lua-api.factorio.com/latest/defines.html#defines.command.go_to_location Online documentation}
|
99
95
|
*/
|
100
96
|
go_to_location = 1,
|
101
97
|
/**
|
102
98
|
* Chain commands together, see {@link defines.compound_command}.
|
103
|
-
*
|
104
|
-
* {@link https://lua-api.factorio.com/latest/defines.html#defines.command.compound View documentation}
|
99
|
+
* @see {@link https://lua-api.factorio.com/latest/defines.html#defines.command.compound Online documentation}
|
105
100
|
*/
|
106
101
|
compound = 2,
|
107
102
|
/**
|
108
103
|
* Do what your group wants you to do.
|
109
|
-
*
|
110
|
-
* {@link https://lua-api.factorio.com/latest/defines.html#defines.command.group View documentation}
|
104
|
+
* @see {@link https://lua-api.factorio.com/latest/defines.html#defines.command.group Online documentation}
|
111
105
|
*/
|
112
106
|
group = 3,
|
113
107
|
/**
|
114
108
|
* Go to a place and attack what you see.
|
115
|
-
*
|
116
|
-
* {@link https://lua-api.factorio.com/latest/defines.html#defines.command.attack_area View documentation}
|
109
|
+
* @see {@link https://lua-api.factorio.com/latest/defines.html#defines.command.attack_area Online documentation}
|
117
110
|
*/
|
118
111
|
attack_area = 4,
|
119
112
|
/**
|
120
113
|
* Chill.
|
121
|
-
*
|
122
|
-
* {@link https://lua-api.factorio.com/latest/defines.html#defines.command.wander View documentation}
|
114
|
+
* @see {@link https://lua-api.factorio.com/latest/defines.html#defines.command.wander Online documentation}
|
123
115
|
*/
|
124
116
|
wander = 5,
|
125
117
|
/**
|
126
118
|
* Flee from another entity.
|
127
|
-
*
|
128
|
-
* {@link https://lua-api.factorio.com/latest/defines.html#defines.command.flee View documentation}
|
119
|
+
* @see {@link https://lua-api.factorio.com/latest/defines.html#defines.command.flee Online documentation}
|
129
120
|
*/
|
130
121
|
flee = 6,
|
131
122
|
/**
|
132
123
|
* Stop moving and stay where you are.
|
133
|
-
*
|
134
|
-
* {@link https://lua-api.factorio.com/latest/defines.html#defines.command.stop View documentation}
|
124
|
+
* @see {@link https://lua-api.factorio.com/latest/defines.html#defines.command.stop Online documentation}
|
135
125
|
*/
|
136
126
|
stop = 7,
|
137
127
|
/**
|
138
128
|
* Go to a position and build a base there.
|
139
|
-
*
|
140
|
-
* {@link https://lua-api.factorio.com/latest/defines.html#defines.command.build_base View documentation}
|
129
|
+
* @see {@link https://lua-api.factorio.com/latest/defines.html#defines.command.build_base Online documentation}
|
141
130
|
*/
|
142
131
|
build_base = 8,
|
143
132
|
}
|
144
133
|
/**
|
145
134
|
* How commands are joined together in a compound command (see {@link defines.command.compound}).
|
146
|
-
*
|
147
|
-
* {@link https://lua-api.factorio.com/latest/defines.html#defines.compound_command View documentation}
|
135
|
+
* @see {@link https://lua-api.factorio.com/latest/defines.html#defines.compound_command Online documentation}
|
148
136
|
*/
|
149
137
|
enum compound_command {
|
150
138
|
/**
|
151
139
|
* Fail on first failure. Only succeeds if all commands (executed one after another) succeed.
|
152
|
-
*
|
153
|
-
* {@link https://lua-api.factorio.com/latest/defines.html#defines.compound_command.logical_and View documentation}
|
140
|
+
* @see {@link https://lua-api.factorio.com/latest/defines.html#defines.compound_command.logical_and Online documentation}
|
154
141
|
*/
|
155
142
|
logical_and,
|
156
143
|
/**
|
157
144
|
* Succeed on first success. Only fails if all commands (executed one after another) fail.
|
158
|
-
*
|
159
|
-
* {@link https://lua-api.factorio.com/latest/defines.html#defines.compound_command.logical_or View documentation}
|
145
|
+
* @see {@link https://lua-api.factorio.com/latest/defines.html#defines.compound_command.logical_or Online documentation}
|
160
146
|
*/
|
161
147
|
logical_or,
|
162
148
|
/**
|
163
149
|
* Execute all commands in sequence and fail or succeed depending on the return status of the last command.
|
164
|
-
*
|
165
|
-
* {@link https://lua-api.factorio.com/latest/defines.html#defines.compound_command.return_last View documentation}
|
150
|
+
* @see {@link https://lua-api.factorio.com/latest/defines.html#defines.compound_command.return_last Online documentation}
|
166
151
|
*/
|
167
152
|
return_last,
|
168
153
|
}
|
@@ -206,110 +191,92 @@ declare namespace defines {
|
|
206
191
|
enum type {
|
207
192
|
/**
|
208
193
|
* {@link LuaContainerControlBehavior}
|
209
|
-
*
|
210
|
-
* {@link https://lua-api.factorio.com/latest/defines.html#defines.control_behavior.type.container View documentation}
|
194
|
+
* @see {@link https://lua-api.factorio.com/latest/defines.html#defines.control_behavior.type.container Online documentation}
|
211
195
|
*/
|
212
196
|
container,
|
213
197
|
/**
|
214
198
|
* {@link LuaGenericOnOffControlBehavior}
|
215
|
-
*
|
216
|
-
* {@link https://lua-api.factorio.com/latest/defines.html#defines.control_behavior.type.generic_on_off View documentation}
|
199
|
+
* @see {@link https://lua-api.factorio.com/latest/defines.html#defines.control_behavior.type.generic_on_off Online documentation}
|
217
200
|
*/
|
218
201
|
generic_on_off,
|
219
202
|
/**
|
220
203
|
* {@link LuaInserterControlBehavior}
|
221
|
-
*
|
222
|
-
* {@link https://lua-api.factorio.com/latest/defines.html#defines.control_behavior.type.inserter View documentation}
|
204
|
+
* @see {@link https://lua-api.factorio.com/latest/defines.html#defines.control_behavior.type.inserter Online documentation}
|
223
205
|
*/
|
224
206
|
inserter,
|
225
207
|
/**
|
226
208
|
* {@link LuaLampControlBehavior}
|
227
|
-
*
|
228
|
-
* {@link https://lua-api.factorio.com/latest/defines.html#defines.control_behavior.type.lamp View documentation}
|
209
|
+
* @see {@link https://lua-api.factorio.com/latest/defines.html#defines.control_behavior.type.lamp Online documentation}
|
229
210
|
*/
|
230
211
|
lamp,
|
231
212
|
/**
|
232
213
|
* {@link LuaLogisticContainerControlBehavior}
|
233
|
-
*
|
234
|
-
* {@link https://lua-api.factorio.com/latest/defines.html#defines.control_behavior.type.logistic_container View documentation}
|
214
|
+
* @see {@link https://lua-api.factorio.com/latest/defines.html#defines.control_behavior.type.logistic_container Online documentation}
|
235
215
|
*/
|
236
216
|
logistic_container,
|
237
217
|
/**
|
238
218
|
* {@link LuaRoboportControlBehavior}
|
239
|
-
*
|
240
|
-
* {@link https://lua-api.factorio.com/latest/defines.html#defines.control_behavior.type.roboport View documentation}
|
219
|
+
* @see {@link https://lua-api.factorio.com/latest/defines.html#defines.control_behavior.type.roboport Online documentation}
|
241
220
|
*/
|
242
221
|
roboport,
|
243
222
|
/**
|
244
223
|
* {@link LuaStorageTankControlBehavior}
|
245
|
-
*
|
246
|
-
* {@link https://lua-api.factorio.com/latest/defines.html#defines.control_behavior.type.storage_tank View documentation}
|
224
|
+
* @see {@link https://lua-api.factorio.com/latest/defines.html#defines.control_behavior.type.storage_tank Online documentation}
|
247
225
|
*/
|
248
226
|
storage_tank,
|
249
227
|
/**
|
250
228
|
* {@link LuaTrainStopControlBehavior}
|
251
|
-
*
|
252
|
-
* {@link https://lua-api.factorio.com/latest/defines.html#defines.control_behavior.type.train_stop View documentation}
|
229
|
+
* @see {@link https://lua-api.factorio.com/latest/defines.html#defines.control_behavior.type.train_stop Online documentation}
|
253
230
|
*/
|
254
231
|
train_stop,
|
255
232
|
/**
|
256
233
|
* {@link LuaDeciderCombinatorControlBehavior}
|
257
|
-
*
|
258
|
-
* {@link https://lua-api.factorio.com/latest/defines.html#defines.control_behavior.type.decider_combinator View documentation}
|
234
|
+
* @see {@link https://lua-api.factorio.com/latest/defines.html#defines.control_behavior.type.decider_combinator Online documentation}
|
259
235
|
*/
|
260
236
|
decider_combinator,
|
261
237
|
/**
|
262
238
|
* {@link LuaArithmeticCombinatorControlBehavior}
|
263
|
-
*
|
264
|
-
* {@link https://lua-api.factorio.com/latest/defines.html#defines.control_behavior.type.arithmetic_combinator View documentation}
|
239
|
+
* @see {@link https://lua-api.factorio.com/latest/defines.html#defines.control_behavior.type.arithmetic_combinator Online documentation}
|
265
240
|
*/
|
266
241
|
arithmetic_combinator,
|
267
242
|
/**
|
268
243
|
* {@link LuaConstantCombinatorControlBehavior}
|
269
|
-
*
|
270
|
-
* {@link https://lua-api.factorio.com/latest/defines.html#defines.control_behavior.type.constant_combinator View documentation}
|
244
|
+
* @see {@link https://lua-api.factorio.com/latest/defines.html#defines.control_behavior.type.constant_combinator Online documentation}
|
271
245
|
*/
|
272
246
|
constant_combinator,
|
273
247
|
/**
|
274
248
|
* {@link LuaTransportBeltControlBehavior}
|
275
|
-
*
|
276
|
-
* {@link https://lua-api.factorio.com/latest/defines.html#defines.control_behavior.type.transport_belt View documentation}
|
249
|
+
* @see {@link https://lua-api.factorio.com/latest/defines.html#defines.control_behavior.type.transport_belt Online documentation}
|
277
250
|
*/
|
278
251
|
transport_belt,
|
279
252
|
/**
|
280
253
|
* {@link LuaAccumulatorControlBehavior}
|
281
|
-
*
|
282
|
-
* {@link https://lua-api.factorio.com/latest/defines.html#defines.control_behavior.type.accumulator View documentation}
|
254
|
+
* @see {@link https://lua-api.factorio.com/latest/defines.html#defines.control_behavior.type.accumulator Online documentation}
|
283
255
|
*/
|
284
256
|
accumulator,
|
285
257
|
/**
|
286
258
|
* {@link LuaRailSignalControlBehavior}
|
287
|
-
*
|
288
|
-
* {@link https://lua-api.factorio.com/latest/defines.html#defines.control_behavior.type.rail_signal View documentation}
|
259
|
+
* @see {@link https://lua-api.factorio.com/latest/defines.html#defines.control_behavior.type.rail_signal Online documentation}
|
289
260
|
*/
|
290
261
|
rail_signal,
|
291
262
|
/**
|
292
263
|
* {@link LuaRailChainSignalControlBehavior}
|
293
|
-
*
|
294
|
-
* {@link https://lua-api.factorio.com/latest/defines.html#defines.control_behavior.type.rail_chain_signal View documentation}
|
264
|
+
* @see {@link https://lua-api.factorio.com/latest/defines.html#defines.control_behavior.type.rail_chain_signal Online documentation}
|
295
265
|
*/
|
296
266
|
rail_chain_signal,
|
297
267
|
/**
|
298
268
|
* {@link LuaWallControlBehavior}
|
299
|
-
*
|
300
|
-
* {@link https://lua-api.factorio.com/latest/defines.html#defines.control_behavior.type.wall View documentation}
|
269
|
+
* @see {@link https://lua-api.factorio.com/latest/defines.html#defines.control_behavior.type.wall Online documentation}
|
301
270
|
*/
|
302
271
|
wall,
|
303
272
|
/**
|
304
273
|
* {@link LuaMiningDrillControlBehavior}
|
305
|
-
*
|
306
|
-
* {@link https://lua-api.factorio.com/latest/defines.html#defines.control_behavior.type.mining_drill View documentation}
|
274
|
+
* @see {@link https://lua-api.factorio.com/latest/defines.html#defines.control_behavior.type.mining_drill Online documentation}
|
307
275
|
*/
|
308
276
|
mining_drill,
|
309
277
|
/**
|
310
278
|
* {@link LuaProgrammableSpeakerControlBehavior}
|
311
|
-
*
|
312
|
-
* {@link https://lua-api.factorio.com/latest/defines.html#defines.control_behavior.type.programmable_speaker View documentation}
|
279
|
+
* @see {@link https://lua-api.factorio.com/latest/defines.html#defines.control_behavior.type.programmable_speaker Online documentation}
|
313
280
|
*/
|
314
281
|
programmable_speaker,
|
315
282
|
}
|
@@ -317,38 +284,32 @@ declare namespace defines {
|
|
317
284
|
enum controllers {
|
318
285
|
/**
|
319
286
|
* Can't interact with the world, can only observe. Used in the multiplayer waiting-to-respawn screen.
|
320
|
-
*
|
321
|
-
* {@link https://lua-api.factorio.com/latest/defines.html#defines.controllers.ghost View documentation}
|
287
|
+
* @see {@link https://lua-api.factorio.com/latest/defines.html#defines.controllers.ghost Online documentation}
|
322
288
|
*/
|
323
289
|
ghost,
|
324
290
|
/**
|
325
291
|
* The controller controls a character. This is the default controller in freeplay.
|
326
|
-
*
|
327
|
-
* {@link https://lua-api.factorio.com/latest/defines.html#defines.controllers.character View documentation}
|
292
|
+
* @see {@link https://lua-api.factorio.com/latest/defines.html#defines.controllers.character Online documentation}
|
328
293
|
*/
|
329
294
|
character,
|
330
295
|
/**
|
331
296
|
* The controller isn't tied to a character. This is the default controller in sandbox.
|
332
|
-
*
|
333
|
-
* {@link https://lua-api.factorio.com/latest/defines.html#defines.controllers.god View documentation}
|
297
|
+
* @see {@link https://lua-api.factorio.com/latest/defines.html#defines.controllers.god Online documentation}
|
334
298
|
*/
|
335
299
|
god,
|
336
300
|
/**
|
337
301
|
* The Editor Controller near ultimate power to do almost anything in the game.
|
338
|
-
*
|
339
|
-
* {@link https://lua-api.factorio.com/latest/defines.html#defines.controllers.editor View documentation}
|
302
|
+
* @see {@link https://lua-api.factorio.com/latest/defines.html#defines.controllers.editor Online documentation}
|
340
303
|
*/
|
341
304
|
editor,
|
342
305
|
/**
|
343
306
|
* The player can't interact with the world, and the camera pans around in a predefined manner.
|
344
|
-
*
|
345
|
-
* {@link https://lua-api.factorio.com/latest/defines.html#defines.controllers.cutscene View documentation}
|
307
|
+
* @see {@link https://lua-api.factorio.com/latest/defines.html#defines.controllers.cutscene Online documentation}
|
346
308
|
*/
|
347
309
|
cutscene,
|
348
310
|
/**
|
349
311
|
* Can't change anything in the world but can view anything.
|
350
|
-
*
|
351
|
-
* {@link https://lua-api.factorio.com/latest/defines.html#defines.controllers.spectator View documentation}
|
312
|
+
* @see {@link https://lua-api.factorio.com/latest/defines.html#defines.controllers.spectator Online documentation}
|
352
313
|
*/
|
353
314
|
spectator,
|
354
315
|
}
|
@@ -409,26 +370,22 @@ declare namespace defines {
|
|
409
370
|
enum distraction {
|
410
371
|
/**
|
411
372
|
* Perform command even if someone attacks the unit.
|
412
|
-
*
|
413
|
-
* {@link https://lua-api.factorio.com/latest/defines.html#defines.distraction.none View documentation}
|
373
|
+
* @see {@link https://lua-api.factorio.com/latest/defines.html#defines.distraction.none Online documentation}
|
414
374
|
*/
|
415
375
|
none,
|
416
376
|
/**
|
417
377
|
* Attack closer enemy entities with force.
|
418
|
-
*
|
419
|
-
* {@link https://lua-api.factorio.com/latest/defines.html#defines.distraction.by_enemy View documentation}
|
378
|
+
* @see {@link https://lua-api.factorio.com/latest/defines.html#defines.distraction.by_enemy Online documentation}
|
420
379
|
*/
|
421
380
|
by_enemy,
|
422
381
|
/**
|
423
382
|
* Attack closer enemy entities, including entities "built" by player (belts, inserters, chests).
|
424
|
-
*
|
425
|
-
* {@link https://lua-api.factorio.com/latest/defines.html#defines.distraction.by_anything View documentation}
|
383
|
+
* @see {@link https://lua-api.factorio.com/latest/defines.html#defines.distraction.by_anything Online documentation}
|
426
384
|
*/
|
427
385
|
by_anything,
|
428
386
|
/**
|
429
387
|
* Attack when attacked.
|
430
|
-
*
|
431
|
-
* {@link https://lua-api.factorio.com/latest/defines.html#defines.distraction.by_damage View documentation}
|
388
|
+
* @see {@link https://lua-api.factorio.com/latest/defines.html#defines.distraction.by_damage Online documentation}
|
432
389
|
*/
|
433
390
|
by_damage,
|
434
391
|
}
|
@@ -445,207 +402,173 @@ declare namespace defines {
|
|
445
402
|
marked_for_deconstruction,
|
446
403
|
/**
|
447
404
|
* Used by generators and solar panels.
|
448
|
-
*
|
449
|
-
* {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.not_plugged_in_electric_network View documentation}
|
405
|
+
* @see {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.not_plugged_in_electric_network Online documentation}
|
450
406
|
*/
|
451
407
|
not_plugged_in_electric_network,
|
452
408
|
/**
|
453
409
|
* Used by power switches.
|
454
|
-
*
|
455
|
-
* {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.networks_connected View documentation}
|
410
|
+
* @see {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.networks_connected Online documentation}
|
456
411
|
*/
|
457
412
|
networks_connected,
|
458
413
|
/**
|
459
414
|
* Used by power switches.
|
460
|
-
*
|
461
|
-
* {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.networks_disconnected View documentation}
|
415
|
+
* @see {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.networks_disconnected Online documentation}
|
462
416
|
*/
|
463
417
|
networks_disconnected,
|
464
418
|
/**
|
465
419
|
* Used by accumulators.
|
466
|
-
*
|
467
|
-
* {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.charging View documentation}
|
420
|
+
* @see {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.charging Online documentation}
|
468
421
|
*/
|
469
422
|
charging,
|
470
423
|
/**
|
471
424
|
* Used by accumulators.
|
472
|
-
*
|
473
|
-
* {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.discharging View documentation}
|
425
|
+
* @see {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.discharging Online documentation}
|
474
426
|
*/
|
475
427
|
discharging,
|
476
428
|
/**
|
477
429
|
* Used by accumulators.
|
478
|
-
*
|
479
|
-
* {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.fully_charged View documentation}
|
430
|
+
* @see {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.fully_charged Online documentation}
|
480
431
|
*/
|
481
432
|
fully_charged,
|
482
433
|
/**
|
483
434
|
* Used by logistic containers.
|
484
|
-
*
|
485
|
-
* {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.out_of_logistic_network View documentation}
|
435
|
+
* @see {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.out_of_logistic_network Online documentation}
|
486
436
|
*/
|
487
437
|
out_of_logistic_network,
|
488
438
|
/**
|
489
439
|
* Used by assembling machines.
|
490
|
-
*
|
491
|
-
* {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.no_recipe View documentation}
|
440
|
+
* @see {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.no_recipe Online documentation}
|
492
441
|
*/
|
493
442
|
no_recipe,
|
494
443
|
/**
|
495
444
|
* Used by furnaces.
|
496
|
-
*
|
497
|
-
* {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.no_ingredients View documentation}
|
445
|
+
* @see {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.no_ingredients Online documentation}
|
498
446
|
*/
|
499
447
|
no_ingredients,
|
500
448
|
/**
|
501
449
|
* Used by boilers, fluid turrets and fluid energy sources: Boiler has no fluid to work with.
|
502
|
-
*
|
503
|
-
* {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.no_input_fluid View documentation}
|
450
|
+
* @see {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.no_input_fluid Online documentation}
|
504
451
|
*/
|
505
452
|
no_input_fluid,
|
506
453
|
/**
|
507
454
|
* Used by labs.
|
508
|
-
*
|
509
|
-
* {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.no_research_in_progress View documentation}
|
455
|
+
* @see {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.no_research_in_progress Online documentation}
|
510
456
|
*/
|
511
457
|
no_research_in_progress,
|
512
458
|
/**
|
513
459
|
* Used by mining drills.
|
514
|
-
*
|
515
|
-
* {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.no_minable_resources View documentation}
|
460
|
+
* @see {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.no_minable_resources Online documentation}
|
516
461
|
*/
|
517
462
|
no_minable_resources,
|
518
463
|
/**
|
519
464
|
* Used by boilers and fluid turrets: Boiler still has some fluid but is about to run out.
|
520
|
-
*
|
521
|
-
* {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.low_input_fluid View documentation}
|
465
|
+
* @see {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.low_input_fluid Online documentation}
|
522
466
|
*/
|
523
467
|
low_input_fluid,
|
524
468
|
/**
|
525
469
|
* Used by crafting machines.
|
526
|
-
*
|
527
|
-
* {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.fluid_ingredient_shortage View documentation}
|
470
|
+
* @see {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.fluid_ingredient_shortage Online documentation}
|
528
471
|
*/
|
529
472
|
fluid_ingredient_shortage,
|
530
473
|
/**
|
531
474
|
* Used by crafting machines, boilers, burner energy sources and reactors: Reactor/burner has full burnt result inventory, boiler has full output fluidbox.
|
532
|
-
*
|
533
|
-
* {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.full_output View documentation}
|
475
|
+
* @see {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.full_output Online documentation}
|
534
476
|
*/
|
535
477
|
full_output,
|
536
478
|
/**
|
537
479
|
* Used by crafting machines.
|
538
|
-
*
|
539
|
-
* {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.item_ingredient_shortage View documentation}
|
480
|
+
* @see {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.item_ingredient_shortage Online documentation}
|
540
481
|
*/
|
541
482
|
item_ingredient_shortage,
|
542
483
|
/**
|
543
484
|
* Used by mining drills when the mining fluid is missing.
|
544
|
-
*
|
545
|
-
* {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.missing_required_fluid View documentation}
|
485
|
+
* @see {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.missing_required_fluid Online documentation}
|
546
486
|
*/
|
547
487
|
missing_required_fluid,
|
548
488
|
/**
|
549
489
|
* Used by labs.
|
550
|
-
*
|
551
|
-
* {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.missing_science_packs View documentation}
|
490
|
+
* @see {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.missing_science_packs Online documentation}
|
552
491
|
*/
|
553
492
|
missing_science_packs,
|
554
493
|
/**
|
555
494
|
* Used by inserters.
|
556
|
-
*
|
557
|
-
* {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.waiting_for_source_items View documentation}
|
495
|
+
* @see {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.waiting_for_source_items Online documentation}
|
558
496
|
*/
|
559
497
|
waiting_for_source_items,
|
560
498
|
/**
|
561
499
|
* Used by inserters and mining drills.
|
562
|
-
*
|
563
|
-
* {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.waiting_for_space_in_destination View documentation}
|
500
|
+
* @see {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.waiting_for_space_in_destination Online documentation}
|
564
501
|
*/
|
565
502
|
waiting_for_space_in_destination,
|
566
503
|
/**
|
567
504
|
* Used by the rocket silo.
|
568
|
-
*
|
569
|
-
* {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.preparing_rocket_for_launch View documentation}
|
505
|
+
* @see {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.preparing_rocket_for_launch Online documentation}
|
570
506
|
*/
|
571
507
|
preparing_rocket_for_launch,
|
572
508
|
/**
|
573
509
|
* Used by the rocket silo.
|
574
|
-
*
|
575
|
-
* {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.waiting_to_launch_rocket View documentation}
|
510
|
+
* @see {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.waiting_to_launch_rocket Online documentation}
|
576
511
|
*/
|
577
512
|
waiting_to_launch_rocket,
|
578
513
|
/**
|
579
514
|
* Used by the rocket silo.
|
580
|
-
*
|
581
|
-
* {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.launching_rocket View documentation}
|
515
|
+
* @see {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.launching_rocket Online documentation}
|
582
516
|
*/
|
583
517
|
launching_rocket,
|
584
518
|
/**
|
585
519
|
* Used by beacons.
|
586
|
-
*
|
587
|
-
* {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.no_modules_to_transmit View documentation}
|
520
|
+
* @see {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.no_modules_to_transmit Online documentation}
|
588
521
|
*/
|
589
522
|
no_modules_to_transmit,
|
590
523
|
/**
|
591
524
|
* Used by roboports.
|
592
|
-
*
|
593
|
-
* {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.recharging_after_power_outage View documentation}
|
525
|
+
* @see {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.recharging_after_power_outage Online documentation}
|
594
526
|
*/
|
595
527
|
recharging_after_power_outage,
|
596
528
|
/**
|
597
529
|
* Used by inserters targeting entity ghosts.
|
598
|
-
*
|
599
|
-
* {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.waiting_for_target_to_be_built View documentation}
|
530
|
+
* @see {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.waiting_for_target_to_be_built Online documentation}
|
600
531
|
*/
|
601
532
|
waiting_for_target_to_be_built,
|
602
533
|
/**
|
603
534
|
* Used by inserters targeting rails.
|
604
|
-
*
|
605
|
-
* {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.waiting_for_train View documentation}
|
535
|
+
* @see {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.waiting_for_train Online documentation}
|
606
536
|
*/
|
607
537
|
waiting_for_train,
|
608
538
|
/**
|
609
539
|
* Used by ammo turrets.
|
610
|
-
*
|
611
|
-
* {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.no_ammo View documentation}
|
540
|
+
* @see {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.no_ammo Online documentation}
|
612
541
|
*/
|
613
542
|
no_ammo,
|
614
543
|
/**
|
615
544
|
* Used by heat energy sources.
|
616
|
-
*
|
617
|
-
* {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.low_temperature View documentation}
|
545
|
+
* @see {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.low_temperature Online documentation}
|
618
546
|
*/
|
619
547
|
low_temperature,
|
620
548
|
/**
|
621
549
|
* Used by constant combinators: Combinator is turned off via switch in GUI.
|
622
|
-
*
|
623
|
-
* {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.disabled View documentation}
|
550
|
+
* @see {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.disabled Online documentation}
|
624
551
|
*/
|
625
552
|
disabled,
|
626
553
|
/**
|
627
554
|
* Used by lamps.
|
628
|
-
*
|
629
|
-
* {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.turned_off_during_daytime View documentation}
|
555
|
+
* @see {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.turned_off_during_daytime Online documentation}
|
630
556
|
*/
|
631
557
|
turned_off_during_daytime,
|
632
558
|
/**
|
633
559
|
* Used by rail signals.
|
634
|
-
*
|
635
|
-
* {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.not_connected_to_rail View documentation}
|
560
|
+
* @see {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.not_connected_to_rail Online documentation}
|
636
561
|
*/
|
637
562
|
not_connected_to_rail,
|
638
563
|
/**
|
639
564
|
* Used by rail signals.
|
640
|
-
*
|
641
|
-
* {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.cant_divide_segments View documentation}
|
565
|
+
* @see {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.cant_divide_segments Online documentation}
|
642
566
|
*/
|
643
567
|
cant_divide_segments,
|
644
568
|
}
|
645
569
|
/**
|
646
570
|
* See the {@linkplain https://lua-api.factorio.com/latest/events.html events page} for more info on what events contain and when they get raised.
|
647
|
-
*
|
648
|
-
* {@link https://lua-api.factorio.com/latest/defines.html#defines.events View documentation}
|
571
|
+
* @see {@link https://lua-api.factorio.com/latest/defines.html#defines.events Online documentation}
|
649
572
|
*/
|
650
573
|
namespace events {
|
651
574
|
/**
|
@@ -1082,6 +1005,12 @@ declare namespace defines {
|
|
1082
1005
|
* Event filter: {@link LuaPreGhostDeconstructedEventFilter}
|
1083
1006
|
*/
|
1084
1007
|
const on_pre_ghost_deconstructed: EventId<OnPreGhostDeconstructedEvent, LuaPreGhostDeconstructedEventFilter>
|
1008
|
+
/**
|
1009
|
+
* Event type: {@link OnPreGhostUpgradedEvent}
|
1010
|
+
*
|
1011
|
+
* Event filter: {@link LuaPreGhostUpgradedEventFilter}
|
1012
|
+
*/
|
1013
|
+
const on_pre_ghost_upgraded: EventId<OnPreGhostUpgradedEvent, LuaPreGhostUpgradedEventFilter>
|
1085
1014
|
/**
|
1086
1015
|
* Event type: {@link OnPlayerPipetteEvent}
|
1087
1016
|
*/
|
@@ -1397,10 +1326,9 @@ declare namespace defines {
|
|
1397
1326
|
}
|
1398
1327
|
/**
|
1399
1328
|
* See the {@linkplain https://lua-api.factorio.com/latest/events.html events page} for more info on what events contain and when they get raised.
|
1400
|
-
*
|
1401
|
-
* {@link https://lua-api.factorio.com/latest/defines.html#defines.events View documentation}
|
1329
|
+
* @see {@link https://lua-api.factorio.com/latest/defines.html#defines.events Online documentation}
|
1402
1330
|
*/
|
1403
|
-
type
|
1331
|
+
type events = typeof events[keyof typeof events]
|
1404
1332
|
enum flow_precision_index {
|
1405
1333
|
five_seconds,
|
1406
1334
|
one_minute,
|
@@ -1440,6 +1368,7 @@ declare namespace defines {
|
|
1440
1368
|
server_management,
|
1441
1369
|
player_management,
|
1442
1370
|
tile,
|
1371
|
+
script_inventory,
|
1443
1372
|
}
|
1444
1373
|
enum input_action {
|
1445
1374
|
activate_copy,
|
@@ -1674,6 +1603,9 @@ declare namespace defines {
|
|
1674
1603
|
item_main,
|
1675
1604
|
rocket_silo_rocket,
|
1676
1605
|
rocket_silo_result,
|
1606
|
+
rocket_silo_input,
|
1607
|
+
rocket_silo_output,
|
1608
|
+
rocket_silo_modules,
|
1677
1609
|
rocket,
|
1678
1610
|
car_trunk,
|
1679
1611
|
car_ammo,
|
@@ -1711,8 +1643,7 @@ declare namespace defines {
|
|
1711
1643
|
}
|
1712
1644
|
/**
|
1713
1645
|
* A dictionary mapping all top-level prototypes by name to a list of their associated subtypes. This list is organized as a lookup table, meaning it maps the sub-prototype names to `0`. As an example, `defines.prototypes['entity']` looks like this: `{furnace=0, inserter=0, container=0, ...}`.
|
1714
|
-
*
|
1715
|
-
* {@link https://lua-api.factorio.com/latest/defines.html#defines.prototypes View documentation}
|
1646
|
+
* @see {@link https://lua-api.factorio.com/latest/defines.html#defines.prototypes Online documentation}
|
1716
1647
|
*/
|
1717
1648
|
const prototypes: {
|
1718
1649
|
readonly [Type in string]?: {
|
@@ -1789,6 +1720,7 @@ declare namespace defines {
|
|
1789
1720
|
resource_entity_gui,
|
1790
1721
|
roboport_gui,
|
1791
1722
|
rocket_silo_gui,
|
1723
|
+
script_inventory_gui,
|
1792
1724
|
server_config_gui,
|
1793
1725
|
spider_vehicle_gui,
|
1794
1726
|
splitter_gui,
|
@@ -1825,6 +1757,23 @@ declare namespace defines {
|
|
1825
1757
|
right,
|
1826
1758
|
}
|
1827
1759
|
}
|
1760
|
+
enum rocket_silo_status {
|
1761
|
+
building_rocket,
|
1762
|
+
create_rocket,
|
1763
|
+
lights_blinking_open,
|
1764
|
+
doors_opening,
|
1765
|
+
doors_opened,
|
1766
|
+
rocket_rising,
|
1767
|
+
arms_advance,
|
1768
|
+
rocket_ready,
|
1769
|
+
launch_starting,
|
1770
|
+
engine_starting,
|
1771
|
+
arms_retract,
|
1772
|
+
rocket_flying,
|
1773
|
+
lights_blinking_close,
|
1774
|
+
doors_closing,
|
1775
|
+
launch_started,
|
1776
|
+
}
|
1828
1777
|
enum shooting {
|
1829
1778
|
not_shooting,
|
1830
1779
|
shooting_enemies,
|
@@ -1832,100 +1781,84 @@ declare namespace defines {
|
|
1832
1781
|
}
|
1833
1782
|
/**
|
1834
1783
|
* State of an ordinary rail signal.
|
1835
|
-
*
|
1836
|
-
* {@link https://lua-api.factorio.com/latest/defines.html#defines.signal_state View documentation}
|
1784
|
+
* @see {@link https://lua-api.factorio.com/latest/defines.html#defines.signal_state Online documentation}
|
1837
1785
|
*/
|
1838
1786
|
enum signal_state {
|
1839
1787
|
/**
|
1840
1788
|
* Green.
|
1841
|
-
*
|
1842
|
-
* {@link https://lua-api.factorio.com/latest/defines.html#defines.signal_state.open View documentation}
|
1789
|
+
* @see {@link https://lua-api.factorio.com/latest/defines.html#defines.signal_state.open Online documentation}
|
1843
1790
|
*/
|
1844
1791
|
open,
|
1845
1792
|
/**
|
1846
1793
|
* Red.
|
1847
|
-
*
|
1848
|
-
* {@link https://lua-api.factorio.com/latest/defines.html#defines.signal_state.closed View documentation}
|
1794
|
+
* @see {@link https://lua-api.factorio.com/latest/defines.html#defines.signal_state.closed Online documentation}
|
1849
1795
|
*/
|
1850
1796
|
closed,
|
1851
1797
|
/**
|
1852
1798
|
* Orange.
|
1853
|
-
*
|
1854
|
-
* {@link https://lua-api.factorio.com/latest/defines.html#defines.signal_state.reserved View documentation}
|
1799
|
+
* @see {@link https://lua-api.factorio.com/latest/defines.html#defines.signal_state.reserved Online documentation}
|
1855
1800
|
*/
|
1856
1801
|
reserved,
|
1857
1802
|
/**
|
1858
1803
|
* Red - From circuit network.
|
1859
|
-
*
|
1860
|
-
* {@link https://lua-api.factorio.com/latest/defines.html#defines.signal_state.reserved_by_circuit_network View documentation}
|
1804
|
+
* @see {@link https://lua-api.factorio.com/latest/defines.html#defines.signal_state.reserved_by_circuit_network Online documentation}
|
1861
1805
|
*/
|
1862
1806
|
reserved_by_circuit_network,
|
1863
1807
|
}
|
1864
1808
|
enum train_state {
|
1865
1809
|
/**
|
1866
1810
|
* Normal state -- following the path.
|
1867
|
-
*
|
1868
|
-
* {@link https://lua-api.factorio.com/latest/defines.html#defines.train_state.on_the_path View documentation}
|
1811
|
+
* @see {@link https://lua-api.factorio.com/latest/defines.html#defines.train_state.on_the_path Online documentation}
|
1869
1812
|
*/
|
1870
1813
|
on_the_path,
|
1871
1814
|
/**
|
1872
1815
|
* Had path and lost it -- must stop.
|
1873
|
-
*
|
1874
|
-
* {@link https://lua-api.factorio.com/latest/defines.html#defines.train_state.path_lost View documentation}
|
1816
|
+
* @see {@link https://lua-api.factorio.com/latest/defines.html#defines.train_state.path_lost Online documentation}
|
1875
1817
|
*/
|
1876
1818
|
path_lost,
|
1877
1819
|
/**
|
1878
1820
|
* Doesn't have anywhere to go.
|
1879
|
-
*
|
1880
|
-
* {@link https://lua-api.factorio.com/latest/defines.html#defines.train_state.no_schedule View documentation}
|
1821
|
+
* @see {@link https://lua-api.factorio.com/latest/defines.html#defines.train_state.no_schedule Online documentation}
|
1881
1822
|
*/
|
1882
1823
|
no_schedule,
|
1883
1824
|
/**
|
1884
1825
|
* Has no path and is stopped.
|
1885
|
-
*
|
1886
|
-
* {@link https://lua-api.factorio.com/latest/defines.html#defines.train_state.no_path View documentation}
|
1826
|
+
* @see {@link https://lua-api.factorio.com/latest/defines.html#defines.train_state.no_path Online documentation}
|
1887
1827
|
*/
|
1888
1828
|
no_path,
|
1889
1829
|
/**
|
1890
1830
|
* Braking before a rail signal.
|
1891
|
-
*
|
1892
|
-
* {@link https://lua-api.factorio.com/latest/defines.html#defines.train_state.arrive_signal View documentation}
|
1831
|
+
* @see {@link https://lua-api.factorio.com/latest/defines.html#defines.train_state.arrive_signal Online documentation}
|
1893
1832
|
*/
|
1894
1833
|
arrive_signal,
|
1895
1834
|
/**
|
1896
1835
|
* Waiting at a signal.
|
1897
|
-
*
|
1898
|
-
* {@link https://lua-api.factorio.com/latest/defines.html#defines.train_state.wait_signal View documentation}
|
1836
|
+
* @see {@link https://lua-api.factorio.com/latest/defines.html#defines.train_state.wait_signal Online documentation}
|
1899
1837
|
*/
|
1900
1838
|
wait_signal,
|
1901
1839
|
/**
|
1902
1840
|
* Braking before a station.
|
1903
|
-
*
|
1904
|
-
* {@link https://lua-api.factorio.com/latest/defines.html#defines.train_state.arrive_station View documentation}
|
1841
|
+
* @see {@link https://lua-api.factorio.com/latest/defines.html#defines.train_state.arrive_station Online documentation}
|
1905
1842
|
*/
|
1906
1843
|
arrive_station,
|
1907
1844
|
/**
|
1908
1845
|
* Waiting at a station.
|
1909
|
-
*
|
1910
|
-
* {@link https://lua-api.factorio.com/latest/defines.html#defines.train_state.wait_station View documentation}
|
1846
|
+
* @see {@link https://lua-api.factorio.com/latest/defines.html#defines.train_state.wait_station Online documentation}
|
1911
1847
|
*/
|
1912
1848
|
wait_station,
|
1913
1849
|
/**
|
1914
1850
|
* Switched to manual control and has to stop.
|
1915
|
-
*
|
1916
|
-
* {@link https://lua-api.factorio.com/latest/defines.html#defines.train_state.manual_control_stop View documentation}
|
1851
|
+
* @see {@link https://lua-api.factorio.com/latest/defines.html#defines.train_state.manual_control_stop Online documentation}
|
1917
1852
|
*/
|
1918
1853
|
manual_control_stop,
|
1919
1854
|
/**
|
1920
1855
|
* Can move if user explicitly sits in and rides the train.
|
1921
|
-
*
|
1922
|
-
* {@link https://lua-api.factorio.com/latest/defines.html#defines.train_state.manual_control View documentation}
|
1856
|
+
* @see {@link https://lua-api.factorio.com/latest/defines.html#defines.train_state.manual_control Online documentation}
|
1923
1857
|
*/
|
1924
1858
|
manual_control,
|
1925
1859
|
/**
|
1926
1860
|
* Same as no_path but all candidate train stops are full
|
1927
|
-
*
|
1928
|
-
* {@link https://lua-api.factorio.com/latest/defines.html#defines.train_state.destination_full View documentation}
|
1861
|
+
* @see {@link https://lua-api.factorio.com/latest/defines.html#defines.train_state.destination_full Online documentation}
|
1929
1862
|
*/
|
1930
1863
|
destination_full,
|
1931
1864
|
}
|