typed-factorio 3.0.1 → 3.1.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/package.json +1 -1
- package/prototype/generated/prototypes.d.ts +2086 -2063
- package/prototype/generated/types.d.ts +2107 -2086
- package/runtime/generated/classes.d.ts +3533 -3498
- package/runtime/generated/concepts.d.ts +276 -271
- package/runtime/generated/defines.d.ts +991 -985
- package/runtime/generated/events.d.ts +204 -200
- package/runtime/generated/global-functions.d.ts +3 -3
- package/runtime/generated/global-objects.d.ts +8 -8
@@ -208,765 +208,765 @@ import type {
|
|
208
208
|
declare global {
|
209
209
|
namespace defines {
|
210
210
|
enum alert_type {
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
211
|
+
collector_path_blocked,
|
212
|
+
custom,
|
213
|
+
entity_destroyed,
|
214
|
+
entity_under_attack,
|
215
|
+
no_material_for_construction,
|
216
|
+
no_platform_storage,
|
217
|
+
no_roboport_storage,
|
218
|
+
no_storage,
|
219
|
+
not_enough_construction_robots,
|
220
|
+
not_enough_repair_packs,
|
221
|
+
pipeline_overextended,
|
222
|
+
platform_tile_building_blocked,
|
223
|
+
train_no_path,
|
224
|
+
train_out_of_fuel,
|
225
|
+
turret_fire,
|
226
|
+
turret_out_of_ammo,
|
227
|
+
unclaimed_cargo,
|
228
228
|
}
|
229
229
|
/**
|
230
230
|
* AI command exit status. See {@link LuaEntity#set_command LuaEntity::set_command}
|
231
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
231
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.behavior_result Online documentation}
|
232
232
|
*/
|
233
233
|
enum behavior_result {
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
234
|
+
in_progress,
|
235
|
+
fail,
|
236
|
+
success,
|
237
|
+
deleted,
|
238
238
|
}
|
239
239
|
enum build_check_type {
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
240
|
+
script,
|
241
|
+
manual,
|
242
|
+
manual_ghost,
|
243
|
+
script_ghost,
|
244
|
+
blueprint_ghost,
|
245
|
+
ghost_revive,
|
246
246
|
}
|
247
247
|
enum build_mode {
|
248
|
-
|
249
|
-
|
250
|
-
|
248
|
+
normal,
|
249
|
+
forced,
|
250
|
+
superforced,
|
251
251
|
}
|
252
252
|
/**
|
253
253
|
* State of a chain signal.
|
254
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
254
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.chain_signal_state Online documentation}
|
255
255
|
*/
|
256
256
|
enum chain_signal_state {
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
257
|
+
none,
|
258
|
+
all_open,
|
259
|
+
partially_open,
|
260
|
+
none_open,
|
261
261
|
}
|
262
262
|
enum chunk_generated_status {
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
263
|
+
nothing,
|
264
|
+
custom_tiles,
|
265
|
+
basic_tiles,
|
266
|
+
corrected_tiles,
|
267
|
+
tiles,
|
268
|
+
entities,
|
269
269
|
}
|
270
270
|
/**
|
271
271
|
* Command given to units describing what they should do.
|
272
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
272
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.command Online documentation}
|
273
273
|
*/
|
274
274
|
enum command {
|
275
275
|
/**
|
276
276
|
* Attack another entity.
|
277
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
277
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.command.attack Online documentation}
|
278
278
|
*/
|
279
|
-
|
279
|
+
attack = 0,
|
280
280
|
/**
|
281
281
|
* Go to a specific position.
|
282
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
282
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.command.go_to_location Online documentation}
|
283
283
|
*/
|
284
|
-
|
284
|
+
go_to_location = 1,
|
285
285
|
/**
|
286
286
|
* Chain commands together, see {@link defines.compound_command}.
|
287
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
287
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.command.compound Online documentation}
|
288
288
|
*/
|
289
|
-
|
289
|
+
compound = 2,
|
290
290
|
/**
|
291
291
|
* Do what your group wants you to do.
|
292
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
292
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.command.group Online documentation}
|
293
293
|
*/
|
294
|
-
|
294
|
+
group = 3,
|
295
295
|
/**
|
296
296
|
* Go to a place and attack what you see.
|
297
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
297
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.command.attack_area Online documentation}
|
298
298
|
*/
|
299
|
-
|
299
|
+
attack_area = 4,
|
300
300
|
/**
|
301
301
|
* Chill.
|
302
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
302
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.command.wander Online documentation}
|
303
303
|
*/
|
304
|
-
|
304
|
+
wander = 5,
|
305
305
|
/**
|
306
306
|
* Flee from another entity.
|
307
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
307
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.command.flee Online documentation}
|
308
308
|
*/
|
309
|
-
|
309
|
+
flee = 6,
|
310
310
|
/**
|
311
311
|
* Stop moving and stay where you are.
|
312
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
312
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.command.stop Online documentation}
|
313
313
|
*/
|
314
|
-
|
314
|
+
stop = 7,
|
315
315
|
/**
|
316
316
|
* Go to a position and build a base there.
|
317
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
317
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.command.build_base Online documentation}
|
318
318
|
*/
|
319
|
-
|
319
|
+
build_base = 8,
|
320
320
|
}
|
321
321
|
/**
|
322
322
|
* How commands are joined together in a compound command (see {@link defines.command.compound}).
|
323
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
323
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.compound_command Online documentation}
|
324
324
|
*/
|
325
325
|
enum compound_command {
|
326
326
|
/**
|
327
327
|
* Fail on first failure. Only succeeds if all commands (executed one after another) succeed.
|
328
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
328
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.compound_command.logical_and Online documentation}
|
329
329
|
*/
|
330
|
-
|
330
|
+
logical_and,
|
331
331
|
/**
|
332
332
|
* Succeed on first success. Only fails if all commands (executed one after another) fail.
|
333
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
333
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.compound_command.logical_or Online documentation}
|
334
334
|
*/
|
335
|
-
|
335
|
+
logical_or,
|
336
336
|
/**
|
337
337
|
* Execute all commands in sequence and fail or succeed depending on the return status of the last command.
|
338
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
338
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.compound_command.return_last Online documentation}
|
339
339
|
*/
|
340
|
-
|
340
|
+
return_last,
|
341
341
|
}
|
342
342
|
namespace control_behavior {
|
343
343
|
namespace inserter {
|
344
344
|
enum hand_read_mode {
|
345
|
-
|
346
|
-
|
345
|
+
hold,
|
346
|
+
pulse,
|
347
347
|
}
|
348
348
|
}
|
349
349
|
namespace logistic_container {
|
350
350
|
enum exclusive_mode {
|
351
|
-
|
352
|
-
|
353
|
-
|
351
|
+
send_contents,
|
352
|
+
set_requests,
|
353
|
+
none,
|
354
354
|
}
|
355
355
|
}
|
356
356
|
namespace lamp {
|
357
357
|
enum color_mode {
|
358
|
-
|
359
|
-
|
360
|
-
|
358
|
+
color_mapping,
|
359
|
+
components,
|
360
|
+
packed_rgb,
|
361
361
|
}
|
362
362
|
}
|
363
363
|
namespace mining_drill {
|
364
364
|
enum resource_read_mode {
|
365
|
-
|
366
|
-
|
365
|
+
this_miner,
|
366
|
+
entire_patch,
|
367
367
|
}
|
368
368
|
}
|
369
369
|
namespace transport_belt {
|
370
370
|
enum content_read_mode {
|
371
|
-
|
372
|
-
|
373
|
-
|
371
|
+
pulse,
|
372
|
+
hold,
|
373
|
+
entire_belt_hold,
|
374
374
|
}
|
375
375
|
}
|
376
376
|
namespace rocket_silo {
|
377
377
|
enum read_mode {
|
378
|
-
|
379
|
-
|
380
|
-
|
378
|
+
none,
|
379
|
+
logistic_inventory,
|
380
|
+
orbital_requests,
|
381
381
|
}
|
382
382
|
}
|
383
383
|
namespace roboport {
|
384
384
|
enum read_items_mode {
|
385
|
-
|
386
|
-
|
387
|
-
|
385
|
+
none,
|
386
|
+
logistics,
|
387
|
+
missing_requests,
|
388
388
|
}
|
389
389
|
}
|
390
390
|
namespace cargo_landing_pad {
|
391
391
|
enum exclusive_mode {
|
392
|
-
|
393
|
-
|
394
|
-
|
392
|
+
none,
|
393
|
+
send_contents,
|
394
|
+
set_requests,
|
395
395
|
}
|
396
396
|
}
|
397
397
|
enum type {
|
398
398
|
/**
|
399
399
|
* {@link LuaContainerControlBehavior}
|
400
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
400
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.control_behavior.type.container Online documentation}
|
401
401
|
*/
|
402
|
-
|
402
|
+
container,
|
403
403
|
/**
|
404
404
|
* {@link LuaGenericOnOffControlBehavior}
|
405
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
405
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.control_behavior.type.generic_on_off Online documentation}
|
406
406
|
*/
|
407
|
-
|
407
|
+
generic_on_off,
|
408
408
|
/**
|
409
409
|
* {@link LuaInserterControlBehavior}
|
410
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
410
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.control_behavior.type.inserter Online documentation}
|
411
411
|
*/
|
412
|
-
|
412
|
+
inserter,
|
413
413
|
/**
|
414
414
|
* {@link LuaLampControlBehavior}
|
415
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
415
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.control_behavior.type.lamp Online documentation}
|
416
416
|
*/
|
417
|
-
|
417
|
+
lamp,
|
418
418
|
/**
|
419
419
|
* {@link LuaLogisticContainerControlBehavior}
|
420
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
420
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.control_behavior.type.logistic_container Online documentation}
|
421
421
|
*/
|
422
|
-
|
422
|
+
logistic_container,
|
423
423
|
/**
|
424
424
|
* {@link LuaRoboportControlBehavior}
|
425
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
425
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.control_behavior.type.roboport Online documentation}
|
426
426
|
*/
|
427
|
-
|
427
|
+
roboport,
|
428
428
|
/**
|
429
429
|
* {@link LuaStorageTankControlBehavior}
|
430
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
430
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.control_behavior.type.storage_tank Online documentation}
|
431
431
|
*/
|
432
|
-
|
432
|
+
storage_tank,
|
433
433
|
/**
|
434
434
|
* {@link LuaTrainStopControlBehavior}
|
435
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
435
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.control_behavior.type.train_stop Online documentation}
|
436
436
|
*/
|
437
|
-
|
437
|
+
train_stop,
|
438
438
|
/**
|
439
439
|
* {@link LuaDeciderCombinatorControlBehavior}
|
440
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
440
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.control_behavior.type.decider_combinator Online documentation}
|
441
441
|
*/
|
442
|
-
|
442
|
+
decider_combinator,
|
443
443
|
/**
|
444
444
|
* {@link LuaArithmeticCombinatorControlBehavior}
|
445
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
445
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.control_behavior.type.arithmetic_combinator Online documentation}
|
446
446
|
*/
|
447
|
-
|
447
|
+
arithmetic_combinator,
|
448
448
|
/**
|
449
449
|
* {@link LuaConstantCombinatorControlBehavior}
|
450
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
450
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.control_behavior.type.constant_combinator Online documentation}
|
451
451
|
*/
|
452
|
-
|
452
|
+
constant_combinator,
|
453
453
|
/**
|
454
454
|
* {@link LuaTransportBeltControlBehavior}
|
455
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
455
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.control_behavior.type.transport_belt Online documentation}
|
456
456
|
*/
|
457
|
-
|
457
|
+
transport_belt,
|
458
458
|
/**
|
459
459
|
* {@link LuaAccumulatorControlBehavior}
|
460
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
460
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.control_behavior.type.accumulator Online documentation}
|
461
461
|
*/
|
462
|
-
|
462
|
+
accumulator,
|
463
463
|
/**
|
464
464
|
* {@link LuaRailSignalBaseControlBehavior}
|
465
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
465
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.control_behavior.type.rail_signal Online documentation}
|
466
466
|
*/
|
467
|
-
|
467
|
+
rail_signal,
|
468
468
|
/**
|
469
469
|
* {@link LuaRailSignalBaseControlBehavior}
|
470
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
470
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.control_behavior.type.rail_chain_signal Online documentation}
|
471
471
|
*/
|
472
|
-
|
472
|
+
rail_chain_signal,
|
473
473
|
/**
|
474
474
|
* {@link LuaWallControlBehavior}
|
475
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
475
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.control_behavior.type.wall Online documentation}
|
476
476
|
*/
|
477
|
-
|
477
|
+
wall,
|
478
478
|
/**
|
479
479
|
* {@link LuaMiningDrillControlBehavior}
|
480
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
480
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.control_behavior.type.mining_drill Online documentation}
|
481
481
|
*/
|
482
|
-
|
482
|
+
mining_drill,
|
483
483
|
/**
|
484
484
|
* {@link LuaProgrammableSpeakerControlBehavior}
|
485
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
485
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.control_behavior.type.programmable_speaker Online documentation}
|
486
486
|
*/
|
487
|
-
|
487
|
+
programmable_speaker,
|
488
488
|
/**
|
489
489
|
* {@link LuaAssemblingMachineControlBehavior}
|
490
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
490
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.control_behavior.type.assembling_machine Online documentation}
|
491
491
|
*/
|
492
|
-
|
492
|
+
assembling_machine,
|
493
493
|
/**
|
494
494
|
* {@link LuaPumpControlBehavior}
|
495
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
495
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.control_behavior.type.pump Online documentation}
|
496
496
|
*/
|
497
|
-
|
497
|
+
pump,
|
498
498
|
/**
|
499
499
|
* {@link LuaSelectorCombinatorControlBehavior}
|
500
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
500
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.control_behavior.type.selector_combinator Online documentation}
|
501
501
|
*/
|
502
|
-
|
502
|
+
selector_combinator,
|
503
503
|
/**
|
504
504
|
* {@link LuaRocketSiloControlBehavior}
|
505
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
505
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.control_behavior.type.rocket_silo Online documentation}
|
506
506
|
*/
|
507
|
-
|
507
|
+
rocket_silo,
|
508
508
|
/**
|
509
509
|
* {@link LuaTurretControlBehavior}
|
510
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
510
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.control_behavior.type.turret Online documentation}
|
511
511
|
*/
|
512
|
-
|
512
|
+
turret,
|
513
513
|
/**
|
514
514
|
* {@link LuaReactorControlBehavior}
|
515
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
515
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.control_behavior.type.reactor Online documentation}
|
516
516
|
*/
|
517
|
-
|
517
|
+
reactor,
|
518
518
|
/**
|
519
519
|
* {@link LuaSpacePlatformHubControlBehavior}
|
520
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
520
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.control_behavior.type.space_platform_hub Online documentation}
|
521
521
|
*/
|
522
|
-
|
522
|
+
space_platform_hub,
|
523
523
|
/**
|
524
524
|
* {@link LuaArtilleryTurretControlBehavior}
|
525
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
525
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.control_behavior.type.artillery_turret Online documentation}
|
526
526
|
*/
|
527
|
-
|
527
|
+
artillery_turret,
|
528
528
|
/**
|
529
529
|
* {@link LuaAsteroidCollectorControlBehavior}
|
530
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
530
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.control_behavior.type.asteroid_collector Online documentation}
|
531
531
|
*/
|
532
|
-
|
532
|
+
asteroid_collector,
|
533
533
|
/**
|
534
534
|
* {@link LuaRadarControlBehavior}
|
535
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
535
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.control_behavior.type.radar Online documentation}
|
536
536
|
*/
|
537
|
-
|
537
|
+
radar,
|
538
538
|
/**
|
539
539
|
* {@link LuaDisplayPanelControlBehavior}
|
540
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
540
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.control_behavior.type.display_panel Online documentation}
|
541
541
|
*/
|
542
|
-
|
542
|
+
display_panel,
|
543
543
|
/**
|
544
544
|
* {@link LuaLoaderControlBehavior}
|
545
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
545
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.control_behavior.type.loader Online documentation}
|
546
546
|
*/
|
547
|
-
|
547
|
+
loader,
|
548
548
|
/**
|
549
549
|
* {@link LuaCargoLandingPadControlBehavior}
|
550
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
550
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.control_behavior.type.cargo_landing_pad Online documentation}
|
551
551
|
*/
|
552
|
-
|
552
|
+
cargo_landing_pad,
|
553
553
|
/**
|
554
554
|
* {@link LuaAgriculturalTowerControlBehavior}
|
555
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
555
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.control_behavior.type.agricultural_tower Online documentation}
|
556
556
|
*/
|
557
|
-
|
557
|
+
agricultural_tower,
|
558
558
|
}
|
559
559
|
}
|
560
560
|
enum controllers {
|
561
561
|
/**
|
562
562
|
* Can't interact with the world, can only observe. Used in the multiplayer waiting-to-respawn screen.
|
563
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
563
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.controllers.ghost Online documentation}
|
564
564
|
*/
|
565
|
-
|
565
|
+
ghost,
|
566
566
|
/**
|
567
567
|
* The controller controls a character. This is the default controller in freeplay.
|
568
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
568
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.controllers.character Online documentation}
|
569
569
|
*/
|
570
|
-
|
570
|
+
character,
|
571
571
|
/**
|
572
572
|
* The controller isn't tied to a character. This is the default controller in sandbox.
|
573
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
573
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.controllers.god Online documentation}
|
574
574
|
*/
|
575
|
-
|
575
|
+
god,
|
576
576
|
/**
|
577
577
|
* The Editor Controller near ultimate power to do almost anything in the game.
|
578
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
578
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.controllers.editor Online documentation}
|
579
579
|
*/
|
580
|
-
|
580
|
+
editor,
|
581
581
|
/**
|
582
582
|
* The player can't interact with the world, and the camera pans around in a predefined manner.
|
583
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
583
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.controllers.cutscene Online documentation}
|
584
584
|
*/
|
585
|
-
|
585
|
+
cutscene,
|
586
586
|
/**
|
587
587
|
* Can't change anything in the world but can view anything.
|
588
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
588
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.controllers.spectator Online documentation}
|
589
589
|
*/
|
590
|
-
|
590
|
+
spectator,
|
591
591
|
/**
|
592
592
|
* Can't move/change items but can build ghosts/change settings.
|
593
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
593
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.controllers.remote Online documentation}
|
594
594
|
*/
|
595
|
-
|
595
|
+
remote,
|
596
596
|
}
|
597
597
|
namespace deconstruction_item {
|
598
598
|
enum entity_filter_mode {
|
599
|
-
|
600
|
-
|
599
|
+
whitelist,
|
600
|
+
blacklist,
|
601
601
|
}
|
602
602
|
enum tile_filter_mode {
|
603
|
-
|
604
|
-
|
603
|
+
whitelist,
|
604
|
+
blacklist,
|
605
605
|
}
|
606
606
|
enum tile_selection_mode {
|
607
|
-
|
608
|
-
|
609
|
-
|
610
|
-
|
607
|
+
normal,
|
608
|
+
always,
|
609
|
+
never,
|
610
|
+
only,
|
611
611
|
}
|
612
612
|
}
|
613
613
|
// See https://forums.factorio.com/viewtopic.php?f=233&t=118305
|
614
614
|
/** @omit */
|
615
615
|
enum default_icon_size {}
|
616
616
|
enum difficulty {
|
617
|
-
|
618
|
-
|
619
|
-
|
617
|
+
easy,
|
618
|
+
normal,
|
619
|
+
hard,
|
620
620
|
}
|
621
621
|
enum direction {
|
622
|
-
|
623
|
-
|
624
|
-
|
625
|
-
|
626
|
-
|
627
|
-
|
628
|
-
|
629
|
-
|
630
|
-
|
631
|
-
|
632
|
-
|
633
|
-
|
634
|
-
|
635
|
-
|
636
|
-
|
637
|
-
|
622
|
+
north = 0,
|
623
|
+
northnortheast = 1,
|
624
|
+
northeast = 2,
|
625
|
+
eastnortheast = 3,
|
626
|
+
east = 4,
|
627
|
+
eastsoutheast = 5,
|
628
|
+
southeast = 6,
|
629
|
+
southsoutheast = 7,
|
630
|
+
south = 8,
|
631
|
+
southsouthwest = 9,
|
632
|
+
southwest = 10,
|
633
|
+
westsouthwest = 11,
|
634
|
+
west = 12,
|
635
|
+
westnorthwest = 13,
|
636
|
+
northwest = 14,
|
637
|
+
northnorthwest = 15,
|
638
638
|
}
|
639
639
|
enum disconnect_reason {
|
640
|
-
|
641
|
-
|
642
|
-
|
643
|
-
|
644
|
-
|
645
|
-
|
646
|
-
|
647
|
-
|
648
|
-
|
649
|
-
|
650
|
-
|
640
|
+
quit,
|
641
|
+
dropped,
|
642
|
+
reconnect,
|
643
|
+
wrong_input,
|
644
|
+
desync_limit_reached,
|
645
|
+
cannot_keep_up,
|
646
|
+
afk,
|
647
|
+
kicked,
|
648
|
+
kicked_and_deleted,
|
649
|
+
banned,
|
650
|
+
switching_servers,
|
651
651
|
}
|
652
652
|
enum distraction {
|
653
653
|
/**
|
654
654
|
* Perform command even if someone attacks the unit.
|
655
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
655
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.distraction.none Online documentation}
|
656
656
|
*/
|
657
|
-
|
657
|
+
none,
|
658
658
|
/**
|
659
659
|
* Attack closer enemy entities with force.
|
660
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
660
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.distraction.by_enemy Online documentation}
|
661
661
|
*/
|
662
|
-
|
662
|
+
by_enemy,
|
663
663
|
/**
|
664
664
|
* Attack closer enemy entities, including entities "built" by player (belts, inserters, chests).
|
665
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
665
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.distraction.by_anything Online documentation}
|
666
666
|
*/
|
667
|
-
|
667
|
+
by_anything,
|
668
668
|
/**
|
669
669
|
* Attack when attacked.
|
670
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
670
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.distraction.by_damage Online documentation}
|
671
671
|
*/
|
672
|
-
|
672
|
+
by_damage,
|
673
673
|
}
|
674
674
|
enum entity_status {
|
675
|
-
|
676
|
-
|
675
|
+
working,
|
676
|
+
normal,
|
677
677
|
/**
|
678
678
|
* Used by ghosts.
|
679
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
679
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.entity_status.ghost Online documentation}
|
680
680
|
*/
|
681
|
-
|
681
|
+
ghost,
|
682
682
|
/**
|
683
683
|
* Only used if set through {@link LuaEntity#status LuaEntity::status} or {@link import("factorio:prototype").ContainerPrototype#default_status ContainerPrototype::default_status}.
|
684
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
685
|
-
*/
|
686
|
-
|
687
|
-
|
688
|
-
|
689
|
-
|
690
|
-
|
691
|
-
|
692
|
-
|
693
|
-
|
694
|
-
|
695
|
-
|
684
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.entity_status.broken Online documentation}
|
685
|
+
*/
|
686
|
+
broken,
|
687
|
+
no_power,
|
688
|
+
low_power,
|
689
|
+
no_fuel,
|
690
|
+
frozen,
|
691
|
+
disabled_by_control_behavior,
|
692
|
+
opened_by_circuit_network,
|
693
|
+
closed_by_circuit_network,
|
694
|
+
disabled_by_script,
|
695
|
+
marked_for_deconstruction,
|
696
696
|
/**
|
697
697
|
* Used by space platform hubs.
|
698
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
698
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.entity_status.paused Online documentation}
|
699
699
|
*/
|
700
|
-
|
700
|
+
paused,
|
701
701
|
/**
|
702
702
|
* Used by generators and solar panels.
|
703
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
703
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.entity_status.not_plugged_in_electric_network Online documentation}
|
704
704
|
*/
|
705
|
-
|
705
|
+
not_plugged_in_electric_network,
|
706
706
|
/**
|
707
707
|
* Used by power switches.
|
708
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
708
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.entity_status.networks_connected Online documentation}
|
709
709
|
*/
|
710
|
-
|
710
|
+
networks_connected,
|
711
711
|
/**
|
712
712
|
* Used by power switches.
|
713
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
713
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.entity_status.networks_disconnected Online documentation}
|
714
714
|
*/
|
715
|
-
|
715
|
+
networks_disconnected,
|
716
716
|
/**
|
717
717
|
* Used by accumulators.
|
718
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
718
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.entity_status.charging Online documentation}
|
719
719
|
*/
|
720
|
-
|
720
|
+
charging,
|
721
721
|
/**
|
722
722
|
* Used by accumulators.
|
723
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
723
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.entity_status.discharging Online documentation}
|
724
724
|
*/
|
725
|
-
|
725
|
+
discharging,
|
726
726
|
/**
|
727
727
|
* Used by accumulators.
|
728
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
728
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.entity_status.fully_charged Online documentation}
|
729
729
|
*/
|
730
|
-
|
730
|
+
fully_charged,
|
731
731
|
/**
|
732
732
|
* Used by logistic containers.
|
733
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
733
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.entity_status.out_of_logistic_network Online documentation}
|
734
734
|
*/
|
735
|
-
|
735
|
+
out_of_logistic_network,
|
736
736
|
/**
|
737
737
|
* Used by assembling machines.
|
738
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
738
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.entity_status.no_recipe Online documentation}
|
739
739
|
*/
|
740
|
-
|
740
|
+
no_recipe,
|
741
741
|
/**
|
742
742
|
* Used by furnaces.
|
743
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
743
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.entity_status.no_ingredients Online documentation}
|
744
744
|
*/
|
745
|
-
|
745
|
+
no_ingredients,
|
746
746
|
/**
|
747
747
|
* Used by boilers, fluid turrets and fluid energy sources: Boiler has no fluid to work with.
|
748
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
748
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.entity_status.no_input_fluid Online documentation}
|
749
749
|
*/
|
750
|
-
|
750
|
+
no_input_fluid,
|
751
751
|
/**
|
752
752
|
* Used by labs.
|
753
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
753
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.entity_status.no_research_in_progress Online documentation}
|
754
754
|
*/
|
755
|
-
|
755
|
+
no_research_in_progress,
|
756
756
|
/**
|
757
757
|
* Used by mining drills.
|
758
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
758
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.entity_status.no_minable_resources Online documentation}
|
759
759
|
*/
|
760
|
-
|
760
|
+
no_minable_resources,
|
761
761
|
/**
|
762
762
|
* Used by cargo bays.
|
763
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
763
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.entity_status.not_connected_to_hub_or_pad Online documentation}
|
764
764
|
*/
|
765
|
-
|
765
|
+
not_connected_to_hub_or_pad,
|
766
766
|
/**
|
767
767
|
* Used by boilers and fluid turrets: Boiler still has some fluid but is about to run out.
|
768
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
768
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.entity_status.low_input_fluid Online documentation}
|
769
769
|
*/
|
770
|
-
|
770
|
+
low_input_fluid,
|
771
771
|
/**
|
772
772
|
* Used by crafting machines.
|
773
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
773
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.entity_status.fluid_ingredient_shortage Online documentation}
|
774
774
|
*/
|
775
|
-
|
775
|
+
fluid_ingredient_shortage,
|
776
776
|
/**
|
777
777
|
* Used by crafting machines, boilers, burner energy sources and reactors: Reactor/burner has full burnt result inventory, boiler has full output fluidbox.
|
778
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
778
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.entity_status.full_output Online documentation}
|
779
779
|
*/
|
780
|
-
|
780
|
+
full_output,
|
781
781
|
/**
|
782
782
|
* Used by agricultural towers.
|
783
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
783
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.entity_status.not_enough_space_in_output Online documentation}
|
784
784
|
*/
|
785
|
-
|
785
|
+
not_enough_space_in_output,
|
786
786
|
/**
|
787
787
|
* Used by burner energy sources.
|
788
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
788
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.entity_status.full_burnt_result_output Online documentation}
|
789
789
|
*/
|
790
|
-
|
790
|
+
full_burnt_result_output,
|
791
791
|
/**
|
792
792
|
* Used by crafting machines.
|
793
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
793
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.entity_status.item_ingredient_shortage Online documentation}
|
794
794
|
*/
|
795
|
-
|
795
|
+
item_ingredient_shortage,
|
796
796
|
/**
|
797
797
|
* Used by mining drills when the mining fluid is missing.
|
798
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
798
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.entity_status.missing_required_fluid Online documentation}
|
799
799
|
*/
|
800
|
-
|
800
|
+
missing_required_fluid,
|
801
801
|
/**
|
802
802
|
* Used by labs.
|
803
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
803
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.entity_status.missing_science_packs Online documentation}
|
804
804
|
*/
|
805
|
-
|
805
|
+
missing_science_packs,
|
806
806
|
/**
|
807
807
|
* Used by inserters.
|
808
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
808
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.entity_status.waiting_for_source_items Online documentation}
|
809
809
|
*/
|
810
|
-
|
810
|
+
waiting_for_source_items,
|
811
811
|
/**
|
812
812
|
* Used by inserters when wait_for_full_hand is set.
|
813
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
813
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.entity_status.waiting_for_more_items Online documentation}
|
814
814
|
*/
|
815
|
-
|
815
|
+
waiting_for_more_items,
|
816
816
|
/**
|
817
817
|
* Used by inserters and mining drills.
|
818
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
818
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.entity_status.waiting_for_space_in_destination Online documentation}
|
819
819
|
*/
|
820
|
-
|
820
|
+
waiting_for_space_in_destination,
|
821
821
|
/**
|
822
822
|
* Used by the rocket silo.
|
823
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
823
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.entity_status.preparing_rocket_for_launch Online documentation}
|
824
824
|
*/
|
825
|
-
|
825
|
+
preparing_rocket_for_launch,
|
826
826
|
/**
|
827
827
|
* Used by the rocket silo.
|
828
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
828
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.entity_status.waiting_to_launch_rocket Online documentation}
|
829
829
|
*/
|
830
|
-
|
830
|
+
waiting_to_launch_rocket,
|
831
831
|
/**
|
832
832
|
* Used by the rocket silo.
|
833
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
833
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.entity_status.waiting_for_space_in_platform_hub Online documentation}
|
834
834
|
*/
|
835
|
-
|
835
|
+
waiting_for_space_in_platform_hub,
|
836
836
|
/**
|
837
837
|
* Used by the rocket silo.
|
838
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
838
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.entity_status.launching_rocket Online documentation}
|
839
839
|
*/
|
840
|
-
|
840
|
+
launching_rocket,
|
841
841
|
/**
|
842
842
|
* Used by thrusters.
|
843
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
843
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.entity_status.thrust_not_required Online documentation}
|
844
844
|
*/
|
845
|
-
|
845
|
+
thrust_not_required,
|
846
846
|
/**
|
847
847
|
* Used by space platform hubs.
|
848
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
848
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.entity_status.on_the_way Online documentation}
|
849
849
|
*/
|
850
|
-
|
850
|
+
on_the_way,
|
851
851
|
/**
|
852
852
|
* Used by space platform hubs.
|
853
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
853
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.entity_status.waiting_in_orbit Online documentation}
|
854
854
|
*/
|
855
|
-
|
855
|
+
waiting_in_orbit,
|
856
856
|
/**
|
857
857
|
* Used by trains.
|
858
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
858
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.entity_status.waiting_at_stop Online documentation}
|
859
859
|
*/
|
860
|
-
|
860
|
+
waiting_at_stop,
|
861
861
|
/**
|
862
862
|
* Used by space platform hubs.
|
863
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
863
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.entity_status.waiting_for_rockets_to_arrive Online documentation}
|
864
864
|
*/
|
865
|
-
|
865
|
+
waiting_for_rockets_to_arrive,
|
866
866
|
/**
|
867
867
|
* Used by space platform hubs.
|
868
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
868
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.entity_status.not_enough_thrust Online documentation}
|
869
869
|
*/
|
870
|
-
|
870
|
+
not_enough_thrust,
|
871
871
|
/**
|
872
872
|
* Used by trains.
|
873
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
873
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.entity_status.destination_stop_full Online documentation}
|
874
874
|
*/
|
875
|
-
|
875
|
+
destination_stop_full,
|
876
876
|
/**
|
877
877
|
* Used by trains and space platform hubs.
|
878
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
878
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.entity_status.no_path Online documentation}
|
879
879
|
*/
|
880
|
-
|
880
|
+
no_path,
|
881
881
|
/**
|
882
882
|
* Used by beacons.
|
883
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
883
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.entity_status.no_modules_to_transmit Online documentation}
|
884
884
|
*/
|
885
|
-
|
885
|
+
no_modules_to_transmit,
|
886
886
|
/**
|
887
887
|
* Used by roboports.
|
888
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
888
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.entity_status.recharging_after_power_outage Online documentation}
|
889
889
|
*/
|
890
|
-
|
890
|
+
recharging_after_power_outage,
|
891
891
|
/**
|
892
892
|
* Used by inserters targeting entity ghosts.
|
893
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
893
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.entity_status.waiting_for_target_to_be_built Online documentation}
|
894
894
|
*/
|
895
|
-
|
895
|
+
waiting_for_target_to_be_built,
|
896
896
|
/**
|
897
897
|
* Used by inserters targeting rails.
|
898
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
898
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.entity_status.waiting_for_train Online documentation}
|
899
899
|
*/
|
900
|
-
|
900
|
+
waiting_for_train,
|
901
901
|
/**
|
902
902
|
* Used by ammo turrets.
|
903
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
903
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.entity_status.no_ammo Online documentation}
|
904
904
|
*/
|
905
|
-
|
905
|
+
no_ammo,
|
906
906
|
/**
|
907
907
|
* Used by heat energy sources.
|
908
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
908
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.entity_status.low_temperature Online documentation}
|
909
909
|
*/
|
910
|
-
|
910
|
+
low_temperature,
|
911
911
|
/**
|
912
912
|
* Used by constant combinators: Combinator is turned off via switch in GUI.
|
913
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
913
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.entity_status.disabled Online documentation}
|
914
914
|
*/
|
915
|
-
|
915
|
+
disabled,
|
916
916
|
/**
|
917
917
|
* Used by lamps.
|
918
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
918
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.entity_status.turned_off_during_daytime Online documentation}
|
919
919
|
*/
|
920
|
-
|
920
|
+
turned_off_during_daytime,
|
921
921
|
/**
|
922
922
|
* Used by rail signals.
|
923
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
923
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.entity_status.not_connected_to_rail Online documentation}
|
924
924
|
*/
|
925
|
-
|
925
|
+
not_connected_to_rail,
|
926
926
|
/**
|
927
927
|
* Used by rail signals.
|
928
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
928
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.entity_status.cant_divide_segments Online documentation}
|
929
929
|
*/
|
930
|
-
|
930
|
+
cant_divide_segments,
|
931
931
|
/**
|
932
932
|
* Used by filter inserters.
|
933
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
933
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.entity_status.no_filter Online documentation}
|
934
934
|
*/
|
935
|
-
|
935
|
+
no_filter,
|
936
936
|
/**
|
937
937
|
* Used by agricultural towers.
|
938
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
938
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.entity_status.no_spot_seedable_by_inputs Online documentation}
|
939
939
|
*/
|
940
|
-
|
940
|
+
no_spot_seedable_by_inputs,
|
941
941
|
/**
|
942
942
|
* Used by agricultural towers.
|
943
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
943
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.entity_status.waiting_for_plants_to_grow Online documentation}
|
944
944
|
*/
|
945
|
-
|
945
|
+
waiting_for_plants_to_grow,
|
946
946
|
/**
|
947
947
|
* Used by asteroid collectors.
|
948
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
948
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.entity_status.computing_navigation Online documentation}
|
949
949
|
*/
|
950
|
-
|
950
|
+
computing_navigation,
|
951
951
|
/**
|
952
952
|
* Used by pipes, pipes to ground and storage tanks.
|
953
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
953
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.entity_status.pipeline_overextended Online documentation}
|
954
954
|
*/
|
955
|
-
|
955
|
+
pipeline_overextended,
|
956
956
|
/**
|
957
957
|
* Used by assembling machines.
|
958
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
958
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.entity_status.recipe_not_researched Online documentation}
|
959
959
|
*/
|
960
|
-
|
960
|
+
recipe_not_researched,
|
961
961
|
}
|
962
962
|
enum entity_status_diode {
|
963
|
-
|
964
|
-
|
965
|
-
|
963
|
+
green,
|
964
|
+
red,
|
965
|
+
yellow,
|
966
966
|
}
|
967
967
|
/**
|
968
|
-
* See the {@linkplain https://lua-api.factorio.com/2.0.
|
969
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
968
|
+
* See the {@linkplain https://lua-api.factorio.com/2.0.15/events.html events page} for more info on what events contain and when they get raised.
|
969
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.events Online documentation}
|
970
970
|
*/
|
971
971
|
namespace events {
|
972
972
|
/**
|
@@ -1767,462 +1767,463 @@ declare global {
|
|
1767
1767
|
const script_raised_teleported: EventId<ScriptRaisedTeleportedEvent>
|
1768
1768
|
}
|
1769
1769
|
/**
|
1770
|
-
* See the {@linkplain https://lua-api.factorio.com/2.0.
|
1771
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1770
|
+
* See the {@linkplain https://lua-api.factorio.com/2.0.15/events.html events page} for more info on what events contain and when they get raised.
|
1771
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.events Online documentation}
|
1772
1772
|
*/
|
1773
1773
|
type events = (typeof events)[keyof typeof events]
|
1774
1774
|
enum flow_precision_index {
|
1775
|
-
|
1776
|
-
|
1777
|
-
|
1778
|
-
|
1779
|
-
|
1780
|
-
|
1781
|
-
|
1782
|
-
|
1775
|
+
five_seconds,
|
1776
|
+
one_minute,
|
1777
|
+
ten_minutes,
|
1778
|
+
one_hour,
|
1779
|
+
ten_hours,
|
1780
|
+
fifty_hours,
|
1781
|
+
two_hundred_fifty_hours,
|
1782
|
+
one_thousand_hours,
|
1783
1783
|
}
|
1784
1784
|
enum game_controller_interaction {
|
1785
1785
|
/**
|
1786
1786
|
* Game controller will always hover this element regardless of type or state.
|
1787
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1787
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.game_controller_interaction.always Online documentation}
|
1788
1788
|
*/
|
1789
|
-
|
1789
|
+
always,
|
1790
1790
|
/**
|
1791
1791
|
* Never hover this element with a game controller.
|
1792
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1792
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.game_controller_interaction.never Online documentation}
|
1793
1793
|
*/
|
1794
|
-
|
1794
|
+
never,
|
1795
1795
|
/**
|
1796
1796
|
* Hover according to the element type and implementation.
|
1797
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1797
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.game_controller_interaction.normal Online documentation}
|
1798
1798
|
*/
|
1799
|
-
|
1799
|
+
normal,
|
1800
1800
|
}
|
1801
1801
|
enum group_state {
|
1802
|
-
|
1803
|
-
|
1804
|
-
|
1805
|
-
|
1806
|
-
|
1807
|
-
|
1808
|
-
|
1802
|
+
gathering,
|
1803
|
+
moving,
|
1804
|
+
attacking_distraction,
|
1805
|
+
attacking_target,
|
1806
|
+
finished,
|
1807
|
+
pathfinding,
|
1808
|
+
wander_in_group,
|
1809
1809
|
}
|
1810
1810
|
enum gui_type {
|
1811
|
-
|
1812
|
-
|
1813
|
-
|
1814
|
-
|
1815
|
-
|
1816
|
-
|
1817
|
-
|
1818
|
-
|
1819
|
-
|
1820
|
-
|
1821
|
-
|
1822
|
-
|
1823
|
-
|
1824
|
-
|
1825
|
-
|
1826
|
-
|
1827
|
-
|
1828
|
-
|
1829
|
-
|
1830
|
-
|
1811
|
+
achievement,
|
1812
|
+
blueprint_library,
|
1813
|
+
bonus,
|
1814
|
+
controller,
|
1815
|
+
custom,
|
1816
|
+
entity,
|
1817
|
+
equipment,
|
1818
|
+
global_electric_network,
|
1819
|
+
item,
|
1820
|
+
logistic,
|
1821
|
+
none,
|
1822
|
+
opened_entity_grid,
|
1823
|
+
other_player,
|
1824
|
+
permissions,
|
1825
|
+
player_management,
|
1826
|
+
production,
|
1827
|
+
script_inventory,
|
1828
|
+
server_management,
|
1829
|
+
tile,
|
1830
|
+
trains,
|
1831
1831
|
}
|
1832
1832
|
enum input_action {
|
1833
|
-
|
1834
|
-
|
1835
|
-
|
1836
|
-
|
1837
|
-
|
1838
|
-
|
1839
|
-
|
1840
|
-
|
1841
|
-
|
1842
|
-
|
1843
|
-
|
1844
|
-
|
1845
|
-
|
1846
|
-
|
1847
|
-
|
1848
|
-
|
1849
|
-
|
1850
|
-
|
1851
|
-
|
1852
|
-
|
1853
|
-
|
1854
|
-
|
1855
|
-
|
1856
|
-
|
1857
|
-
|
1858
|
-
|
1859
|
-
|
1860
|
-
|
1861
|
-
|
1862
|
-
|
1863
|
-
|
1864
|
-
|
1865
|
-
|
1866
|
-
|
1867
|
-
|
1868
|
-
|
1869
|
-
|
1870
|
-
|
1871
|
-
|
1872
|
-
|
1873
|
-
|
1874
|
-
|
1875
|
-
|
1876
|
-
|
1877
|
-
|
1878
|
-
|
1879
|
-
|
1880
|
-
|
1881
|
-
|
1882
|
-
|
1883
|
-
|
1884
|
-
|
1885
|
-
|
1886
|
-
|
1887
|
-
|
1888
|
-
|
1889
|
-
|
1890
|
-
|
1891
|
-
|
1892
|
-
|
1893
|
-
|
1894
|
-
|
1895
|
-
|
1896
|
-
|
1897
|
-
|
1898
|
-
|
1899
|
-
|
1900
|
-
|
1901
|
-
|
1902
|
-
|
1903
|
-
|
1904
|
-
|
1905
|
-
|
1906
|
-
|
1907
|
-
|
1908
|
-
|
1909
|
-
|
1910
|
-
|
1911
|
-
|
1912
|
-
|
1913
|
-
|
1914
|
-
|
1915
|
-
|
1916
|
-
|
1917
|
-
|
1918
|
-
|
1919
|
-
|
1920
|
-
|
1921
|
-
|
1922
|
-
|
1923
|
-
|
1924
|
-
|
1925
|
-
|
1926
|
-
|
1927
|
-
|
1928
|
-
|
1929
|
-
|
1930
|
-
|
1931
|
-
|
1932
|
-
|
1933
|
-
|
1934
|
-
|
1935
|
-
|
1936
|
-
|
1937
|
-
|
1938
|
-
|
1939
|
-
|
1940
|
-
|
1941
|
-
|
1942
|
-
|
1943
|
-
|
1944
|
-
|
1945
|
-
|
1946
|
-
|
1947
|
-
|
1948
|
-
|
1949
|
-
|
1950
|
-
|
1951
|
-
|
1952
|
-
|
1953
|
-
|
1954
|
-
|
1955
|
-
|
1956
|
-
|
1957
|
-
|
1958
|
-
|
1959
|
-
|
1960
|
-
|
1961
|
-
|
1962
|
-
|
1963
|
-
|
1964
|
-
|
1965
|
-
|
1966
|
-
|
1967
|
-
|
1968
|
-
|
1969
|
-
|
1970
|
-
|
1971
|
-
|
1972
|
-
|
1973
|
-
|
1974
|
-
|
1975
|
-
|
1976
|
-
|
1977
|
-
|
1978
|
-
|
1979
|
-
|
1980
|
-
|
1981
|
-
|
1982
|
-
|
1983
|
-
|
1984
|
-
|
1985
|
-
|
1986
|
-
|
1987
|
-
|
1988
|
-
|
1989
|
-
|
1990
|
-
|
1991
|
-
|
1992
|
-
|
1993
|
-
|
1994
|
-
|
1995
|
-
|
1996
|
-
|
1997
|
-
|
1998
|
-
|
1999
|
-
|
2000
|
-
|
2001
|
-
|
2002
|
-
|
2003
|
-
|
2004
|
-
|
2005
|
-
|
2006
|
-
|
2007
|
-
|
2008
|
-
|
2009
|
-
|
2010
|
-
|
2011
|
-
|
2012
|
-
|
2013
|
-
|
2014
|
-
|
2015
|
-
|
2016
|
-
|
2017
|
-
|
2018
|
-
|
2019
|
-
|
2020
|
-
|
2021
|
-
|
2022
|
-
|
2023
|
-
|
2024
|
-
|
2025
|
-
|
2026
|
-
|
2027
|
-
|
2028
|
-
|
2029
|
-
|
2030
|
-
|
2031
|
-
|
2032
|
-
|
2033
|
-
|
2034
|
-
|
2035
|
-
|
2036
|
-
|
2037
|
-
|
2038
|
-
|
2039
|
-
|
2040
|
-
|
2041
|
-
|
2042
|
-
|
2043
|
-
|
2044
|
-
|
2045
|
-
|
2046
|
-
|
2047
|
-
|
2048
|
-
|
2049
|
-
|
2050
|
-
|
2051
|
-
|
2052
|
-
|
2053
|
-
|
2054
|
-
|
2055
|
-
|
2056
|
-
|
2057
|
-
|
2058
|
-
|
2059
|
-
|
2060
|
-
|
2061
|
-
|
2062
|
-
|
2063
|
-
|
2064
|
-
|
2065
|
-
|
2066
|
-
|
2067
|
-
|
2068
|
-
|
2069
|
-
|
2070
|
-
|
2071
|
-
|
2072
|
-
|
2073
|
-
|
2074
|
-
|
2075
|
-
|
2076
|
-
|
2077
|
-
|
2078
|
-
|
2079
|
-
|
2080
|
-
|
2081
|
-
|
2082
|
-
|
2083
|
-
|
2084
|
-
|
2085
|
-
|
2086
|
-
|
2087
|
-
|
2088
|
-
|
2089
|
-
|
2090
|
-
|
2091
|
-
|
2092
|
-
|
2093
|
-
|
2094
|
-
|
2095
|
-
|
2096
|
-
|
2097
|
-
|
2098
|
-
|
2099
|
-
|
1833
|
+
activate_interrupt,
|
1834
|
+
activate_paste,
|
1835
|
+
add_decider_combinator_condition,
|
1836
|
+
add_decider_combinator_output,
|
1837
|
+
add_logistic_section,
|
1838
|
+
add_permission_group,
|
1839
|
+
add_pin,
|
1840
|
+
add_train_interrupt,
|
1841
|
+
add_train_station,
|
1842
|
+
adjust_blueprint_snapping,
|
1843
|
+
admin_action,
|
1844
|
+
alt_reverse_select_area,
|
1845
|
+
alt_select_area,
|
1846
|
+
alt_select_blueprint_entities,
|
1847
|
+
alternative_copy,
|
1848
|
+
begin_mining,
|
1849
|
+
begin_mining_terrain,
|
1850
|
+
build,
|
1851
|
+
build_rail,
|
1852
|
+
build_terrain,
|
1853
|
+
cancel_craft,
|
1854
|
+
cancel_deconstruct,
|
1855
|
+
cancel_delete_space_platform,
|
1856
|
+
cancel_new_blueprint,
|
1857
|
+
cancel_research,
|
1858
|
+
cancel_upgrade,
|
1859
|
+
change_active_character_tab,
|
1860
|
+
change_active_item_group_for_crafting,
|
1861
|
+
change_active_item_group_for_filters,
|
1862
|
+
change_active_quick_bar,
|
1863
|
+
change_arithmetic_combinator_parameters,
|
1864
|
+
change_entity_label,
|
1865
|
+
change_item_label,
|
1866
|
+
change_logistic_point_group,
|
1867
|
+
change_multiplayer_config,
|
1868
|
+
change_picking_state,
|
1869
|
+
change_programmable_speaker_alert_parameters,
|
1870
|
+
change_programmable_speaker_circuit_parameters,
|
1871
|
+
change_programmable_speaker_parameters,
|
1872
|
+
change_riding_state,
|
1873
|
+
change_selector_combinator_parameters,
|
1874
|
+
change_shooting_state,
|
1875
|
+
change_train_name,
|
1876
|
+
change_train_stop_station,
|
1877
|
+
change_train_wait_condition,
|
1878
|
+
change_train_wait_condition_data,
|
1879
|
+
clear_cursor,
|
1880
|
+
connect_rolling_stock,
|
1881
|
+
copy,
|
1882
|
+
copy_entity_settings,
|
1883
|
+
copy_large_opened_blueprint,
|
1884
|
+
copy_large_opened_item,
|
1885
|
+
copy_opened_blueprint,
|
1886
|
+
copy_opened_item,
|
1887
|
+
craft,
|
1888
|
+
create_space_platform,
|
1889
|
+
cursor_split,
|
1890
|
+
cursor_transfer,
|
1891
|
+
custom_input,
|
1892
|
+
cycle_blueprint_book_backwards,
|
1893
|
+
cycle_blueprint_book_forwards,
|
1894
|
+
cycle_quality_down,
|
1895
|
+
cycle_quality_up,
|
1896
|
+
deconstruct,
|
1897
|
+
delete_blueprint_library,
|
1898
|
+
delete_blueprint_record,
|
1899
|
+
delete_custom_tag,
|
1900
|
+
delete_logistic_group,
|
1901
|
+
delete_permission_group,
|
1902
|
+
delete_space_platform,
|
1903
|
+
destroy_item,
|
1904
|
+
destroy_opened_item,
|
1905
|
+
disconnect_rolling_stock,
|
1906
|
+
drag_decider_combinator_condition,
|
1907
|
+
drag_decider_combinator_output,
|
1908
|
+
drag_train_schedule,
|
1909
|
+
drag_train_schedule_interrupt,
|
1910
|
+
drag_train_wait_condition,
|
1911
|
+
drop_blueprint_record,
|
1912
|
+
drop_item,
|
1913
|
+
edit_blueprint_tool_preview,
|
1914
|
+
edit_custom_tag,
|
1915
|
+
edit_display_panel,
|
1916
|
+
edit_display_panel_always_show,
|
1917
|
+
edit_display_panel_icon,
|
1918
|
+
edit_display_panel_parameters,
|
1919
|
+
edit_display_panel_show_in_chart,
|
1920
|
+
edit_interrupt,
|
1921
|
+
edit_permission_group,
|
1922
|
+
edit_pin,
|
1923
|
+
enable_transitional_requests,
|
1924
|
+
export_blueprint,
|
1925
|
+
fast_entity_split,
|
1926
|
+
fast_entity_transfer,
|
1927
|
+
flip_entity,
|
1928
|
+
flush_opened_entity_fluid,
|
1929
|
+
flush_opened_entity_specific_fluid,
|
1930
|
+
go_to_train_station,
|
1931
|
+
grab_blueprint_record,
|
1932
|
+
gui_checked_state_changed,
|
1933
|
+
gui_click,
|
1934
|
+
gui_confirmed,
|
1935
|
+
gui_elem_changed,
|
1936
|
+
gui_hover,
|
1937
|
+
gui_leave,
|
1938
|
+
gui_location_changed,
|
1939
|
+
gui_selected_tab_changed,
|
1940
|
+
gui_selection_state_changed,
|
1941
|
+
gui_switch_state_changed,
|
1942
|
+
gui_text_changed,
|
1943
|
+
gui_value_changed,
|
1944
|
+
import_blueprint,
|
1945
|
+
import_blueprint_string,
|
1946
|
+
import_blueprints_filtered,
|
1947
|
+
import_permissions_string,
|
1948
|
+
instantly_create_space_platform,
|
1949
|
+
inventory_split,
|
1950
|
+
inventory_transfer,
|
1951
|
+
land_at_planet,
|
1952
|
+
launch_rocket,
|
1953
|
+
lua_shortcut,
|
1954
|
+
map_editor_action,
|
1955
|
+
market_offer,
|
1956
|
+
mod_settings_changed,
|
1957
|
+
modify_decider_combinator_condition,
|
1958
|
+
modify_decider_combinator_output,
|
1959
|
+
move_research,
|
1960
|
+
open_achievements_gui,
|
1961
|
+
open_blueprint_library_gui,
|
1962
|
+
open_blueprint_record,
|
1963
|
+
open_bonus_gui,
|
1964
|
+
open_character_gui,
|
1965
|
+
open_current_vehicle_gui,
|
1966
|
+
open_equipment,
|
1967
|
+
open_global_electric_network_gui,
|
1968
|
+
open_gui,
|
1969
|
+
open_item,
|
1970
|
+
open_logistics_gui,
|
1971
|
+
open_mod_item,
|
1972
|
+
open_new_platform_button_from_rocket_silo,
|
1973
|
+
open_opened_entity_grid,
|
1974
|
+
open_parent_of_opened_item,
|
1975
|
+
open_production_gui,
|
1976
|
+
open_train_gui,
|
1977
|
+
open_train_station_gui,
|
1978
|
+
open_trains_gui,
|
1979
|
+
parametrise_blueprint,
|
1980
|
+
paste_entity_settings,
|
1981
|
+
pin_alert_group,
|
1982
|
+
pin_custom_alert,
|
1983
|
+
pin_search_result,
|
1984
|
+
pipette,
|
1985
|
+
place_equipment,
|
1986
|
+
quick_bar_pick_slot,
|
1987
|
+
quick_bar_set_selected_page,
|
1988
|
+
quick_bar_set_slot,
|
1989
|
+
reassign_blueprint,
|
1990
|
+
redo,
|
1991
|
+
remote_view_entity,
|
1992
|
+
remote_view_surface,
|
1993
|
+
remove_cables,
|
1994
|
+
remove_decider_combinator_condition,
|
1995
|
+
remove_decider_combinator_output,
|
1996
|
+
remove_logistic_section,
|
1997
|
+
remove_pin,
|
1998
|
+
remove_train_interrupt,
|
1999
|
+
remove_train_station,
|
2000
|
+
rename_interrupt,
|
2001
|
+
rename_space_platform,
|
2002
|
+
reorder_logistic_section,
|
2003
|
+
request_missing_construction_materials,
|
2004
|
+
reset_assembling_machine,
|
2005
|
+
reverse_select_area,
|
2006
|
+
rotate_entity,
|
2007
|
+
select_area,
|
2008
|
+
select_asteroid_chunk_slot,
|
2009
|
+
select_blueprint_entities,
|
2010
|
+
select_entity_filter_slot,
|
2011
|
+
select_entity_slot,
|
2012
|
+
select_item_filter,
|
2013
|
+
select_mapper_slot_from,
|
2014
|
+
select_mapper_slot_to,
|
2015
|
+
select_next_valid_gun,
|
2016
|
+
select_tile_slot,
|
2017
|
+
send_spidertron,
|
2018
|
+
send_stack_to_trash,
|
2019
|
+
send_stacks_to_trash,
|
2020
|
+
send_train_to_pin_target,
|
2021
|
+
set_behavior_mode,
|
2022
|
+
set_car_weapons_control,
|
2023
|
+
set_cheat_mode_quality,
|
2024
|
+
set_circuit_condition,
|
2025
|
+
set_circuit_mode_of_operation,
|
2026
|
+
set_combinator_description,
|
2027
|
+
set_copy_color_from_train_stop,
|
2028
|
+
set_deconstruction_item_tile_selection_mode,
|
2029
|
+
set_deconstruction_item_trees_and_rocks_only,
|
2030
|
+
set_entity_color,
|
2031
|
+
set_entity_energy_property,
|
2032
|
+
set_filter,
|
2033
|
+
set_ghost_cursor,
|
2034
|
+
set_heat_interface_mode,
|
2035
|
+
set_heat_interface_temperature,
|
2036
|
+
set_infinity_container_filter_item,
|
2037
|
+
set_infinity_container_remove_unfiltered_items,
|
2038
|
+
set_infinity_pipe_filter,
|
2039
|
+
set_inserter_max_stack_size,
|
2040
|
+
set_inventory_bar,
|
2041
|
+
set_lamp_always_on,
|
2042
|
+
set_linked_container_link_i_d,
|
2043
|
+
set_logistic_filter_item,
|
2044
|
+
set_logistic_network_name,
|
2045
|
+
set_logistic_section_active,
|
2046
|
+
set_player_color,
|
2047
|
+
set_pump_fluid_filter,
|
2048
|
+
set_request_from_buffers,
|
2049
|
+
set_research_finished_stops_game,
|
2050
|
+
set_rocket_silo_send_to_orbit_automated_mode,
|
2051
|
+
set_schedule_record_allow_unloading,
|
2052
|
+
set_signal,
|
2053
|
+
set_splitter_priority,
|
2054
|
+
set_spoil_priority,
|
2055
|
+
set_train_stop_priority,
|
2056
|
+
set_train_stopped,
|
2057
|
+
set_trains_limit,
|
2058
|
+
set_turret_ignore_unlisted,
|
2059
|
+
set_use_inserter_filters,
|
2060
|
+
set_vehicle_automatic_targeting_parameters,
|
2061
|
+
setup_assembling_machine,
|
2062
|
+
setup_blueprint,
|
2063
|
+
setup_single_blueprint_record,
|
2064
|
+
spawn_item,
|
2065
|
+
spectator_change_surface,
|
2066
|
+
stack_split,
|
2067
|
+
stack_transfer,
|
2068
|
+
start_repair,
|
2069
|
+
start_research,
|
2070
|
+
start_walking,
|
2071
|
+
stop_drag_build,
|
2072
|
+
swap_logistic_filter_items,
|
2073
|
+
switch_connect_to_logistic_network,
|
2074
|
+
switch_constant_combinator_state,
|
2075
|
+
switch_inserter_filter_mode_state,
|
2076
|
+
switch_loader_filter_mode,
|
2077
|
+
switch_mining_drill_filter_mode_state,
|
2078
|
+
switch_power_switch_state,
|
2079
|
+
take_equipment,
|
2080
|
+
toggle_artillery_auto_targeting,
|
2081
|
+
toggle_deconstruction_item_entity_filter_mode,
|
2082
|
+
toggle_deconstruction_item_tile_filter_mode,
|
2083
|
+
toggle_driving,
|
2084
|
+
toggle_enable_vehicle_logistics_while_moving,
|
2085
|
+
toggle_entity_logistic_requests,
|
2086
|
+
toggle_equipment_movement_bonus,
|
2087
|
+
toggle_map_editor,
|
2088
|
+
toggle_personal_logistic_requests,
|
2089
|
+
toggle_personal_roboport,
|
2090
|
+
toggle_selected_entity,
|
2091
|
+
toggle_show_entity_info,
|
2092
|
+
translate_string,
|
2093
|
+
trash_not_requested_items,
|
2094
|
+
undo,
|
2095
|
+
upgrade,
|
2096
|
+
upgrade_opened_blueprint_by_item,
|
2097
|
+
upgrade_opened_blueprint_by_record,
|
2098
|
+
use_item,
|
2099
|
+
wire_dragging,
|
2100
|
+
write_to_console,
|
2100
2101
|
}
|
2101
2102
|
enum input_method {
|
2102
|
-
|
2103
|
-
|
2103
|
+
keyboard_and_mouse,
|
2104
|
+
game_controller,
|
2104
2105
|
}
|
2105
2106
|
enum inventory {
|
2106
|
-
|
2107
|
-
|
2108
|
-
|
2109
|
-
|
2110
|
-
|
2111
|
-
|
2112
|
-
|
2113
|
-
|
2114
|
-
|
2115
|
-
|
2116
|
-
|
2117
|
-
|
2118
|
-
|
2119
|
-
|
2120
|
-
|
2121
|
-
|
2122
|
-
|
2123
|
-
|
2124
|
-
|
2125
|
-
|
2126
|
-
|
2127
|
-
|
2128
|
-
|
2129
|
-
|
2130
|
-
|
2131
|
-
|
2132
|
-
|
2133
|
-
|
2134
|
-
|
2135
|
-
|
2136
|
-
|
2137
|
-
|
2138
|
-
|
2139
|
-
|
2140
|
-
|
2141
|
-
|
2142
|
-
|
2143
|
-
|
2144
|
-
|
2145
|
-
|
2146
|
-
|
2147
|
-
|
2148
|
-
|
2149
|
-
|
2150
|
-
|
2151
|
-
|
2152
|
-
|
2153
|
-
|
2154
|
-
|
2155
|
-
|
2156
|
-
|
2107
|
+
fuel,
|
2108
|
+
burnt_result,
|
2109
|
+
chest,
|
2110
|
+
logistic_container_trash,
|
2111
|
+
furnace_source,
|
2112
|
+
furnace_result,
|
2113
|
+
furnace_modules,
|
2114
|
+
character_main,
|
2115
|
+
character_guns,
|
2116
|
+
character_ammo,
|
2117
|
+
character_armor,
|
2118
|
+
character_vehicle,
|
2119
|
+
character_trash,
|
2120
|
+
god_main,
|
2121
|
+
editor_main,
|
2122
|
+
editor_guns,
|
2123
|
+
editor_ammo,
|
2124
|
+
editor_armor,
|
2125
|
+
roboport_robot,
|
2126
|
+
roboport_material,
|
2127
|
+
robot_cargo,
|
2128
|
+
robot_repair,
|
2129
|
+
assembling_machine_input,
|
2130
|
+
assembling_machine_output,
|
2131
|
+
assembling_machine_modules,
|
2132
|
+
assembling_machine_dump,
|
2133
|
+
lab_input,
|
2134
|
+
lab_modules,
|
2135
|
+
mining_drill_modules,
|
2136
|
+
item_main,
|
2137
|
+
rocket_silo_rocket,
|
2138
|
+
rocket_silo_trash,
|
2139
|
+
rocket_silo_input,
|
2140
|
+
rocket_silo_output,
|
2141
|
+
rocket_silo_modules,
|
2142
|
+
cargo_unit,
|
2143
|
+
car_trunk,
|
2144
|
+
car_ammo,
|
2145
|
+
cargo_wagon,
|
2146
|
+
turret_ammo,
|
2147
|
+
beacon_modules,
|
2148
|
+
character_corpse,
|
2149
|
+
artillery_turret_ammo,
|
2150
|
+
artillery_wagon_ammo,
|
2151
|
+
spider_trunk,
|
2152
|
+
spider_ammo,
|
2153
|
+
spider_trash,
|
2154
|
+
hub_main,
|
2155
|
+
hub_trash,
|
2156
|
+
cargo_landing_pad_main,
|
2157
|
+
cargo_landing_pad_trash,
|
2157
2158
|
}
|
2158
2159
|
enum logistic_member_index {
|
2159
|
-
|
2160
|
-
|
2161
|
-
|
2162
|
-
|
2163
|
-
|
2164
|
-
|
2165
|
-
|
2160
|
+
logistic_container,
|
2161
|
+
vehicle_storage,
|
2162
|
+
character_requester,
|
2163
|
+
character_storage,
|
2164
|
+
character_provider,
|
2165
|
+
generic_on_off_behavior,
|
2166
|
+
spidertron_requester,
|
2166
2167
|
}
|
2167
2168
|
enum logistic_mode {
|
2168
|
-
|
2169
|
-
|
2170
|
-
|
2171
|
-
|
2172
|
-
|
2173
|
-
|
2169
|
+
none,
|
2170
|
+
active_provider,
|
2171
|
+
storage,
|
2172
|
+
requester,
|
2173
|
+
passive_provider,
|
2174
|
+
buffer,
|
2174
2175
|
}
|
2175
2176
|
enum logistic_section_type {
|
2176
|
-
|
2177
|
-
|
2177
|
+
manual,
|
2178
|
+
circuit_controlled,
|
2178
2179
|
/**
|
2179
2180
|
* Used by rocket silos.
|
2180
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2181
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.logistic_section_type.transitional_request_controlled Online documentation}
|
2181
2182
|
*/
|
2182
|
-
|
2183
|
+
transitional_request_controlled,
|
2183
2184
|
/**
|
2184
2185
|
* Used by space platform hubs.
|
2185
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2186
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.logistic_section_type.request_missing_materials_controlled Online documentation}
|
2186
2187
|
*/
|
2187
|
-
|
2188
|
+
request_missing_materials_controlled,
|
2188
2189
|
}
|
2189
2190
|
enum mouse_button_type {
|
2190
|
-
|
2191
|
-
|
2192
|
-
|
2193
|
-
|
2191
|
+
none,
|
2192
|
+
left,
|
2193
|
+
right,
|
2194
|
+
middle,
|
2194
2195
|
}
|
2195
2196
|
enum moving_state {
|
2196
|
-
|
2197
|
-
|
2198
|
-
|
2199
|
-
|
2197
|
+
stale,
|
2198
|
+
moving,
|
2199
|
+
adaptive,
|
2200
|
+
stuck,
|
2200
2201
|
}
|
2201
2202
|
enum print_skip {
|
2202
2203
|
/**
|
2203
2204
|
* Print will not be skipped.
|
2204
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2205
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.print_skip.never Online documentation}
|
2205
2206
|
*/
|
2206
|
-
|
2207
|
+
never,
|
2207
2208
|
/**
|
2208
2209
|
* Print will be skipped if same text was recently printed (within last 60 ticks). Used by most game messages.
|
2209
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2210
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.print_skip.if_redundant Online documentation}
|
2210
2211
|
*/
|
2211
|
-
|
2212
|
+
if_redundant,
|
2212
2213
|
/**
|
2213
2214
|
* Print will be skipped if same text is still visible (printed within last 1152 ticks). Used by some notifications.
|
2214
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2215
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.print_skip.if_visible Online documentation}
|
2215
2216
|
*/
|
2216
|
-
|
2217
|
+
if_visible,
|
2217
2218
|
}
|
2218
2219
|
enum print_sound {
|
2219
|
-
|
2220
|
-
|
2221
|
-
|
2220
|
+
always,
|
2221
|
+
never,
|
2222
|
+
use_player_settings,
|
2222
2223
|
}
|
2223
2224
|
/**
|
2224
2225
|
* This define describes all top-level prototypes and their associated subtypes. It is organized as a lookup table, meaning the values of all the defines is `0`. As an example, `defines.prototypes['entity']` looks like `{furnace=0, inserter=0, container=0, ...}`.
|
2225
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2226
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.prototypes Online documentation}
|
2226
2227
|
*/
|
2227
2228
|
interface prototypes {
|
2228
2229
|
achievement: {
|
@@ -2611,439 +2612,444 @@ declare global {
|
|
2611
2612
|
}
|
2612
2613
|
/**
|
2613
2614
|
* This define describes all top-level prototypes and their associated subtypes. It is organized as a lookup table, meaning the values of all the defines is `0`. As an example, `defines.prototypes['entity']` looks like `{furnace=0, inserter=0, container=0, ...}`.
|
2614
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2615
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.prototypes Online documentation}
|
2615
2616
|
*/
|
2616
2617
|
const prototypes: prototypes
|
2617
2618
|
enum rail_connection_direction {
|
2618
|
-
|
2619
|
-
|
2620
|
-
|
2621
|
-
|
2619
|
+
left,
|
2620
|
+
straight,
|
2621
|
+
right,
|
2622
|
+
none,
|
2622
2623
|
}
|
2623
2624
|
enum rail_direction {
|
2624
|
-
|
2625
|
-
|
2625
|
+
front,
|
2626
|
+
back,
|
2626
2627
|
}
|
2627
2628
|
enum rail_layer {
|
2628
|
-
|
2629
|
-
|
2629
|
+
ground,
|
2630
|
+
elevated,
|
2630
2631
|
}
|
2631
2632
|
enum relative_gui_position {
|
2632
|
-
|
2633
|
-
|
2634
|
-
|
2635
|
-
|
2633
|
+
top,
|
2634
|
+
bottom,
|
2635
|
+
left,
|
2636
|
+
right,
|
2636
2637
|
}
|
2637
2638
|
enum relative_gui_type {
|
2638
|
-
|
2639
|
-
|
2640
|
-
|
2641
|
-
|
2642
|
-
|
2643
|
-
|
2644
|
-
|
2645
|
-
|
2646
|
-
|
2647
|
-
|
2648
|
-
|
2649
|
-
|
2650
|
-
|
2651
|
-
|
2652
|
-
|
2653
|
-
|
2654
|
-
|
2655
|
-
|
2656
|
-
|
2657
|
-
|
2658
|
-
|
2659
|
-
|
2660
|
-
|
2661
|
-
|
2662
|
-
|
2663
|
-
|
2664
|
-
|
2665
|
-
|
2666
|
-
|
2667
|
-
|
2668
|
-
|
2669
|
-
|
2670
|
-
|
2671
|
-
|
2672
|
-
|
2673
|
-
|
2674
|
-
|
2675
|
-
|
2676
|
-
|
2677
|
-
|
2678
|
-
|
2679
|
-
|
2680
|
-
|
2681
|
-
|
2682
|
-
|
2683
|
-
|
2684
|
-
|
2685
|
-
|
2686
|
-
|
2687
|
-
|
2688
|
-
|
2689
|
-
|
2690
|
-
|
2691
|
-
|
2692
|
-
|
2693
|
-
|
2694
|
-
|
2695
|
-
|
2696
|
-
|
2697
|
-
|
2698
|
-
|
2699
|
-
|
2700
|
-
|
2701
|
-
|
2702
|
-
|
2703
|
-
|
2704
|
-
|
2705
|
-
|
2706
|
-
|
2707
|
-
|
2708
|
-
|
2709
|
-
|
2710
|
-
|
2711
|
-
|
2639
|
+
accumulator_gui,
|
2640
|
+
achievement_gui,
|
2641
|
+
additional_entity_info_gui,
|
2642
|
+
admin_gui,
|
2643
|
+
agriculture_tower_gui,
|
2644
|
+
arithmetic_combinator_gui,
|
2645
|
+
armor_gui,
|
2646
|
+
assembling_machine_gui,
|
2647
|
+
assembling_machine_select_recipe_gui,
|
2648
|
+
asteroid_collector_gui,
|
2649
|
+
beacon_gui,
|
2650
|
+
blueprint_book_gui,
|
2651
|
+
blueprint_library_gui,
|
2652
|
+
blueprint_setup_gui,
|
2653
|
+
bonus_gui,
|
2654
|
+
burner_equipment_gui,
|
2655
|
+
car_gui,
|
2656
|
+
cargo_landing_pad_gui,
|
2657
|
+
constant_combinator_gui,
|
2658
|
+
container_gui,
|
2659
|
+
controller_gui,
|
2660
|
+
decider_combinator_gui,
|
2661
|
+
deconstruction_item_gui,
|
2662
|
+
display_panel_gui,
|
2663
|
+
electric_energy_interface_gui,
|
2664
|
+
electric_network_gui,
|
2665
|
+
entity_variations_gui,
|
2666
|
+
entity_with_energy_source_gui,
|
2667
|
+
equipment_grid_gui,
|
2668
|
+
furnace_gui,
|
2669
|
+
generic_on_off_entity_gui,
|
2670
|
+
ghost_picker_gui,
|
2671
|
+
global_electric_network_gui,
|
2672
|
+
heat_interface_gui,
|
2673
|
+
infinity_pipe_gui,
|
2674
|
+
inserter_gui,
|
2675
|
+
item_with_inventory_gui,
|
2676
|
+
lab_gui,
|
2677
|
+
lamp_gui,
|
2678
|
+
linked_container_gui,
|
2679
|
+
loader_gui,
|
2680
|
+
logistic_gui,
|
2681
|
+
market_gui,
|
2682
|
+
mining_drill_gui,
|
2683
|
+
other_player_gui,
|
2684
|
+
permissions_gui,
|
2685
|
+
pick_stop_gui,
|
2686
|
+
pipe_gui,
|
2687
|
+
power_switch_gui,
|
2688
|
+
production_gui,
|
2689
|
+
programmable_speaker_gui,
|
2690
|
+
pump_gui,
|
2691
|
+
rail_signal_base_gui,
|
2692
|
+
reactor_gui,
|
2693
|
+
resource_entity_gui,
|
2694
|
+
roboport_gui,
|
2695
|
+
rocket_silo_gui,
|
2696
|
+
script_inventory_gui,
|
2697
|
+
selector_combinator_gui,
|
2698
|
+
server_config_gui,
|
2699
|
+
space_platform_hub_gui,
|
2700
|
+
spider_vehicle_gui,
|
2701
|
+
splitter_gui,
|
2702
|
+
standalone_character_gui,
|
2703
|
+
storage_tank_gui,
|
2704
|
+
tile_variations_gui,
|
2705
|
+
tips_and_tricks_gui,
|
2706
|
+
train_gui,
|
2707
|
+
train_stop_gui,
|
2708
|
+
trains_gui,
|
2709
|
+
transport_belt_gui,
|
2710
|
+
turret_gui,
|
2711
|
+
upgrade_item_gui,
|
2712
|
+
wall_gui,
|
2712
2713
|
}
|
2713
2714
|
enum render_mode {
|
2714
|
-
|
2715
|
-
|
2716
|
-
|
2715
|
+
game,
|
2716
|
+
chart,
|
2717
|
+
chart_zoomed_in,
|
2717
2718
|
}
|
2718
2719
|
enum rich_text_setting {
|
2719
|
-
|
2720
|
-
|
2721
|
-
|
2720
|
+
enabled,
|
2721
|
+
disabled,
|
2722
|
+
highlight,
|
2722
2723
|
}
|
2723
2724
|
namespace riding {
|
2724
2725
|
enum acceleration {
|
2725
|
-
|
2726
|
-
|
2727
|
-
|
2728
|
-
|
2726
|
+
nothing,
|
2727
|
+
accelerating,
|
2728
|
+
braking,
|
2729
|
+
reversing,
|
2729
2730
|
}
|
2730
2731
|
enum direction {
|
2731
|
-
|
2732
|
-
|
2733
|
-
|
2732
|
+
left,
|
2733
|
+
straight,
|
2734
|
+
right,
|
2734
2735
|
}
|
2735
2736
|
}
|
2736
2737
|
enum robot_order_type {
|
2737
2738
|
/**
|
2738
2739
|
* Construct a ghost.
|
2739
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2740
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.robot_order_type.construct Online documentation}
|
2740
2741
|
*/
|
2741
|
-
|
2742
|
+
construct,
|
2742
2743
|
/**
|
2743
2744
|
* Pickup an item.
|
2744
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2745
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.robot_order_type.pickup Online documentation}
|
2745
2746
|
*/
|
2746
|
-
|
2747
|
+
pickup,
|
2747
2748
|
/**
|
2748
2749
|
* Deliver an item.
|
2749
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2750
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.robot_order_type.deliver Online documentation}
|
2750
2751
|
*/
|
2751
|
-
|
2752
|
+
deliver,
|
2752
2753
|
/**
|
2753
2754
|
* Repair an entity.
|
2754
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2755
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.robot_order_type.repair Online documentation}
|
2755
2756
|
*/
|
2756
|
-
|
2757
|
+
repair,
|
2757
2758
|
/**
|
2758
2759
|
* Deconstruct an entity.
|
2759
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2760
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.robot_order_type.deconstruct Online documentation}
|
2760
2761
|
*/
|
2761
|
-
|
2762
|
+
deconstruct,
|
2762
2763
|
/**
|
2763
2764
|
* Deliver specific items to an entity (item request proxy).
|
2764
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2765
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.robot_order_type.deliver_items Online documentation}
|
2765
2766
|
*/
|
2766
|
-
|
2767
|
+
deliver_items,
|
2767
2768
|
/**
|
2768
2769
|
* Upgrade an entity.
|
2769
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2770
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.robot_order_type.upgrade Online documentation}
|
2770
2771
|
*/
|
2771
|
-
|
2772
|
+
upgrade,
|
2772
2773
|
/**
|
2773
2774
|
* Explode a cliff.
|
2774
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2775
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.robot_order_type.explode_cliff Online documentation}
|
2775
2776
|
*/
|
2776
|
-
|
2777
|
+
explode_cliff,
|
2777
2778
|
/**
|
2778
2779
|
* Pickup items from an entity (item request proxy).
|
2779
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2780
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.robot_order_type.pickup_items Online documentation}
|
2780
2781
|
*/
|
2781
|
-
|
2782
|
+
pickup_items,
|
2782
2783
|
}
|
2783
2784
|
/**
|
2784
2785
|
* The various parts of the launch sequence of the rocket silo.
|
2785
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2786
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.rocket_silo_status Online documentation}
|
2786
2787
|
*/
|
2787
2788
|
enum rocket_silo_status {
|
2788
2789
|
/**
|
2789
2790
|
* The rocket silo is crafting rocket parts. When there are enough rocket parts, the silo will switch into the `create_rocket` state.
|
2790
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2791
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.rocket_silo_status.building_rocket Online documentation}
|
2791
2792
|
*/
|
2792
|
-
|
2793
|
+
building_rocket,
|
2793
2794
|
/**
|
2794
2795
|
* The next state is `lights_blinking_open`. The rocket silo rocket entity gets created.
|
2795
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2796
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.rocket_silo_status.create_rocket Online documentation}
|
2796
2797
|
*/
|
2797
|
-
|
2798
|
+
create_rocket,
|
2798
2799
|
/**
|
2799
2800
|
* The next state is `doors_opening`. The rocket is getting prepared for launch.
|
2800
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2801
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.rocket_silo_status.lights_blinking_open Online documentation}
|
2801
2802
|
*/
|
2802
|
-
|
2803
|
+
lights_blinking_open,
|
2803
2804
|
/**
|
2804
2805
|
* The next state is `doors_opened`. The rocket is getting prepared for launch.
|
2805
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2806
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.rocket_silo_status.doors_opening Online documentation}
|
2806
2807
|
*/
|
2807
|
-
|
2808
|
+
doors_opening,
|
2808
2809
|
/**
|
2809
2810
|
* The next state is `rocket_rising` or if the rocket is destroyed in this state then the next state will be `lights_blinking_close`. The rocket is getting prepared for launch.
|
2810
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2811
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.rocket_silo_status.doors_opened Online documentation}
|
2811
2812
|
*/
|
2812
|
-
|
2813
|
+
doors_opened,
|
2813
2814
|
/**
|
2814
2815
|
* The next state is `arms_advance` or if the rocket is destroyed in this state then the next state will be `lights_blinking_close`. The rocket is getting prepared for launch.
|
2815
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2816
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.rocket_silo_status.rocket_rising Online documentation}
|
2816
2817
|
*/
|
2817
|
-
|
2818
|
+
rocket_rising,
|
2818
2819
|
/**
|
2819
2820
|
* The next state is `rocket_ready` or if the rocket is destroyed in this state then the next state will be `lights_blinking_close`. The rocket is getting prepared for launch.
|
2820
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2821
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.rocket_silo_status.arms_advance Online documentation}
|
2821
2822
|
*/
|
2822
|
-
|
2823
|
+
arms_advance,
|
2823
2824
|
/**
|
2824
2825
|
* The rocket launch can be started by the player. When the launch is started, the silo switches into the `launch_starting` state.
|
2825
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2826
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.rocket_silo_status.rocket_ready Online documentation}
|
2826
2827
|
*/
|
2827
|
-
|
2828
|
+
rocket_ready,
|
2828
2829
|
/**
|
2829
2830
|
* The next state is `launch_started`.
|
2830
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2831
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.rocket_silo_status.launch_starting Online documentation}
|
2831
2832
|
*/
|
2832
|
-
|
2833
|
+
launch_starting,
|
2833
2834
|
/**
|
2834
2835
|
* The next state is `arms_retract` or if the rocket is destroyed in this state then the next state will be `lights_blinking_close`. The rocket is getting launched.
|
2835
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2836
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.rocket_silo_status.engine_starting Online documentation}
|
2836
2837
|
*/
|
2837
|
-
|
2838
|
+
engine_starting,
|
2838
2839
|
/**
|
2839
2840
|
* The next state is `rocket_flying` or if the rocket is destroyed in this state then the next state will be `lights_blinking_close`. The rocket is getting launched.
|
2840
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2841
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.rocket_silo_status.arms_retract Online documentation}
|
2841
2842
|
*/
|
2842
|
-
|
2843
|
+
arms_retract,
|
2843
2844
|
/**
|
2844
2845
|
* The next state is `lights_blinking_close`. The rocket is getting launched.
|
2845
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2846
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.rocket_silo_status.rocket_flying Online documentation}
|
2846
2847
|
*/
|
2847
|
-
|
2848
|
+
rocket_flying,
|
2848
2849
|
/**
|
2849
2850
|
* The next state is `doors_closing`.
|
2850
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2851
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.rocket_silo_status.lights_blinking_close Online documentation}
|
2851
2852
|
*/
|
2852
|
-
|
2853
|
+
lights_blinking_close,
|
2853
2854
|
/**
|
2854
2855
|
* The next state is `building_rocket`.
|
2855
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2856
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.rocket_silo_status.doors_closing Online documentation}
|
2856
2857
|
*/
|
2857
|
-
|
2858
|
+
doors_closing,
|
2858
2859
|
/**
|
2859
2860
|
* The next state is `engine_starting` or if the rocket is destroyed in this state then the next state will be `lights_blinking_close`. The rocket is getting launched.
|
2860
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2861
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.rocket_silo_status.launch_started Online documentation}
|
2861
2862
|
*/
|
2862
|
-
|
2863
|
+
launch_started,
|
2863
2864
|
}
|
2864
2865
|
enum selection_mode {
|
2865
|
-
|
2866
|
-
|
2867
|
-
|
2868
|
-
|
2866
|
+
select,
|
2867
|
+
alt_select,
|
2868
|
+
reverse_select,
|
2869
|
+
alt_reverse_select,
|
2869
2870
|
}
|
2870
2871
|
enum shooting {
|
2871
|
-
|
2872
|
-
|
2873
|
-
|
2872
|
+
not_shooting,
|
2873
|
+
shooting_enemies,
|
2874
|
+
shooting_selected,
|
2874
2875
|
}
|
2875
2876
|
/**
|
2876
2877
|
* State of an ordinary rail signal.
|
2877
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2878
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.signal_state Online documentation}
|
2878
2879
|
*/
|
2879
2880
|
enum signal_state {
|
2880
2881
|
/**
|
2881
2882
|
* Green.
|
2882
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2883
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.signal_state.open Online documentation}
|
2883
2884
|
*/
|
2884
|
-
|
2885
|
+
open,
|
2885
2886
|
/**
|
2886
2887
|
* Red.
|
2887
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2888
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.signal_state.closed Online documentation}
|
2888
2889
|
*/
|
2889
|
-
|
2890
|
+
closed,
|
2890
2891
|
/**
|
2891
2892
|
* Orange.
|
2892
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2893
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.signal_state.reserved Online documentation}
|
2893
2894
|
*/
|
2894
|
-
|
2895
|
+
reserved,
|
2895
2896
|
/**
|
2896
2897
|
* Red - From circuit network.
|
2897
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2898
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.signal_state.reserved_by_circuit_network Online documentation}
|
2898
2899
|
*/
|
2899
|
-
|
2900
|
+
reserved_by_circuit_network,
|
2900
2901
|
}
|
2901
2902
|
enum space_platform_state {
|
2902
2903
|
/**
|
2903
2904
|
* Waiting for a starter pack.
|
2904
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2905
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.space_platform_state.waiting_for_starter_pack Online documentation}
|
2905
2906
|
*/
|
2906
|
-
|
2907
|
+
waiting_for_starter_pack,
|
2907
2908
|
/**
|
2908
2909
|
* Starter pack was requested from the logistics system.
|
2909
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2910
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.space_platform_state.starter_pack_requested Online documentation}
|
2910
2911
|
*/
|
2911
|
-
|
2912
|
+
starter_pack_requested,
|
2912
2913
|
/**
|
2913
2914
|
* Starter pack is on the way.
|
2914
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2915
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.space_platform_state.starter_pack_on_the_way Online documentation}
|
2915
2916
|
*/
|
2916
|
-
|
2917
|
+
starter_pack_on_the_way,
|
2917
2918
|
/**
|
2918
2919
|
* Following the path.
|
2919
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2920
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.space_platform_state.on_the_path Online documentation}
|
2920
2921
|
*/
|
2921
|
-
|
2922
|
+
on_the_path,
|
2922
2923
|
/**
|
2923
2924
|
* Platform is ready to leave this planet and does not accept deliveries.
|
2924
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2925
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.space_platform_state.waiting_for_departure Online documentation}
|
2925
2926
|
*/
|
2926
|
-
|
2927
|
+
waiting_for_departure,
|
2927
2928
|
/**
|
2928
2929
|
* Waiting for a starter pack
|
2929
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2930
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.space_platform_state.no_schedule Online documentation}
|
2930
2931
|
*/
|
2931
|
-
|
2932
|
+
no_schedule,
|
2932
2933
|
/**
|
2933
2934
|
* Doesn't have anywhere to go.
|
2934
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2935
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.space_platform_state.no_path Online documentation}
|
2935
2936
|
*/
|
2936
|
-
|
2937
|
+
no_path,
|
2937
2938
|
/**
|
2938
2939
|
* Waiting at a station.
|
2939
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2940
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.space_platform_state.waiting_at_station Online documentation}
|
2940
2941
|
*/
|
2941
|
-
|
2942
|
+
waiting_at_station,
|
2943
|
+
/**
|
2944
|
+
* Paused.
|
2945
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.space_platform_state.paused Online documentation}
|
2946
|
+
*/
|
2947
|
+
paused,
|
2942
2948
|
}
|
2943
2949
|
enum target_type {
|
2944
|
-
|
2945
|
-
|
2946
|
-
|
2947
|
-
|
2948
|
-
|
2949
|
-
|
2950
|
-
|
2951
|
-
|
2952
|
-
|
2953
|
-
|
2954
|
-
|
2955
|
-
|
2956
|
-
|
2957
|
-
|
2958
|
-
|
2959
|
-
|
2960
|
-
|
2961
|
-
|
2950
|
+
entity,
|
2951
|
+
equipment,
|
2952
|
+
equipment_grid,
|
2953
|
+
item,
|
2954
|
+
logistic_cell,
|
2955
|
+
logistic_network,
|
2956
|
+
logistic_section,
|
2957
|
+
permission_group,
|
2958
|
+
planet,
|
2959
|
+
player,
|
2960
|
+
rail_path,
|
2961
|
+
render_object,
|
2962
|
+
space_platform,
|
2963
|
+
surface,
|
2964
|
+
train,
|
2965
|
+
commandable,
|
2966
|
+
custom_chart_tag,
|
2967
|
+
gui_element,
|
2962
2968
|
}
|
2963
2969
|
enum train_state {
|
2964
2970
|
/**
|
2965
2971
|
* Normal state -- following the path.
|
2966
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2972
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.train_state.on_the_path Online documentation}
|
2967
2973
|
*/
|
2968
|
-
|
2974
|
+
on_the_path,
|
2969
2975
|
/**
|
2970
2976
|
* Doesn't have anywhere to go.
|
2971
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2977
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.train_state.no_schedule Online documentation}
|
2972
2978
|
*/
|
2973
|
-
|
2979
|
+
no_schedule,
|
2974
2980
|
/**
|
2975
2981
|
* Has no path and is stopped.
|
2976
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2982
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.train_state.no_path Online documentation}
|
2977
2983
|
*/
|
2978
|
-
|
2984
|
+
no_path,
|
2979
2985
|
/**
|
2980
2986
|
* Braking before a rail signal.
|
2981
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2987
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.train_state.arrive_signal Online documentation}
|
2982
2988
|
*/
|
2983
|
-
|
2989
|
+
arrive_signal,
|
2984
2990
|
/**
|
2985
2991
|
* Waiting at a signal.
|
2986
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2992
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.train_state.wait_signal Online documentation}
|
2987
2993
|
*/
|
2988
|
-
|
2994
|
+
wait_signal,
|
2989
2995
|
/**
|
2990
2996
|
* Braking before a station.
|
2991
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2997
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.train_state.arrive_station Online documentation}
|
2992
2998
|
*/
|
2993
|
-
|
2999
|
+
arrive_station,
|
2994
3000
|
/**
|
2995
3001
|
* Switched to manual control and has to stop.
|
2996
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3002
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.train_state.manual_control_stop Online documentation}
|
2997
3003
|
*/
|
2998
|
-
|
3004
|
+
manual_control_stop,
|
2999
3005
|
/**
|
3000
3006
|
* Can move if user explicitly sits in and rides the train.
|
3001
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3007
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.train_state.manual_control Online documentation}
|
3002
3008
|
*/
|
3003
|
-
|
3009
|
+
manual_control,
|
3004
3010
|
/**
|
3005
3011
|
* Waiting at a station.
|
3006
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3012
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.train_state.wait_station Online documentation}
|
3007
3013
|
*/
|
3008
|
-
|
3014
|
+
wait_station,
|
3009
3015
|
/**
|
3010
3016
|
* Same as no_path but all candidate train stops are full
|
3011
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3017
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/defines.html#defines.train_state.destination_full Online documentation}
|
3012
3018
|
*/
|
3013
|
-
|
3019
|
+
destination_full,
|
3014
3020
|
}
|
3015
3021
|
enum transport_line {
|
3016
|
-
|
3017
|
-
|
3018
|
-
|
3019
|
-
|
3020
|
-
|
3021
|
-
|
3022
|
-
|
3023
|
-
|
3024
|
-
|
3025
|
-
|
3022
|
+
left_line,
|
3023
|
+
right_line,
|
3024
|
+
left_underground_line,
|
3025
|
+
right_underground_line,
|
3026
|
+
secondary_left_line,
|
3027
|
+
secondary_right_line,
|
3028
|
+
left_split_line,
|
3029
|
+
right_split_line,
|
3030
|
+
secondary_left_split_line,
|
3031
|
+
secondary_right_split_line,
|
3026
3032
|
}
|
3027
3033
|
enum wire_connector_id {
|
3028
|
-
|
3029
|
-
|
3030
|
-
|
3031
|
-
|
3032
|
-
|
3033
|
-
|
3034
|
-
|
3035
|
-
|
3036
|
-
|
3034
|
+
circuit_red,
|
3035
|
+
circuit_green,
|
3036
|
+
combinator_input_red,
|
3037
|
+
combinator_input_green,
|
3038
|
+
combinator_output_red,
|
3039
|
+
combinator_output_green,
|
3040
|
+
pole_copper,
|
3041
|
+
power_switch_left_copper,
|
3042
|
+
power_switch_right_copper,
|
3037
3043
|
}
|
3038
3044
|
enum wire_origin {
|
3039
|
-
|
3040
|
-
|
3041
|
-
|
3045
|
+
player,
|
3046
|
+
script,
|
3047
|
+
radars,
|
3042
3048
|
}
|
3043
3049
|
enum wire_type {
|
3044
|
-
|
3045
|
-
|
3046
|
-
|
3050
|
+
red,
|
3051
|
+
green,
|
3052
|
+
copper,
|
3047
3053
|
}
|
3048
3054
|
}
|
3049
3055
|
}
|