typed-factorio 3.26.0 → 3.27.0
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 +3 -3
- package/prototype/generated/prototypes.d.ts +2295 -2250
- package/prototype/generated/types.d.ts +2204 -2162
- package/runtime/generated/classes.d.ts +5005 -4116
- package/runtime/generated/concepts.d.ts +4645 -2299
- package/runtime/generated/defines.d.ts +332 -201
- package/runtime/generated/events.d.ts +556 -238
- package/runtime/generated/global-functions.d.ts +3 -3
- package/runtime/generated/global-objects.d.ts +7 -7
@@ -134,6 +134,7 @@ import type {
|
|
134
134
|
OnPlayerUsedCapsuleEvent,
|
135
135
|
OnPlayerUsedSpidertronRemoteEvent,
|
136
136
|
OnPostEntityDiedEvent,
|
137
|
+
OnPostSegmentedUnitDiedEvent,
|
137
138
|
OnPreBuildEvent,
|
138
139
|
OnPreChunkDeletedEvent,
|
139
140
|
OnPreEntitySettingsPastedEvent,
|
@@ -174,6 +175,9 @@ import type {
|
|
174
175
|
OnScriptPathRequestFinishedEvent,
|
175
176
|
OnScriptTriggerEffectEvent,
|
176
177
|
OnSectorScannedEvent,
|
178
|
+
OnSegmentedUnitCreatedEvent,
|
179
|
+
OnSegmentedUnitDamagedEvent,
|
180
|
+
OnSegmentedUnitDiedEvent,
|
177
181
|
OnSegmentEntityCreatedEvent,
|
178
182
|
OnSelectedEntityChangedEvent,
|
179
183
|
OnSingleplayerInitEvent,
|
@@ -192,12 +196,18 @@ import type {
|
|
192
196
|
OnSurfaceImportedEvent,
|
193
197
|
OnSurfaceRenamedEvent,
|
194
198
|
OnTechnologyEffectsResetEvent,
|
199
|
+
OnTerritoryCreatedEvent,
|
200
|
+
OnTerritoryDestroyedEvent,
|
195
201
|
OnTickEvent,
|
202
|
+
OnTowerMinedPlantEvent,
|
203
|
+
OnTowerPlantedSeedEvent,
|
204
|
+
OnTowerPreMinedPlantEvent,
|
196
205
|
OnTrainChangedStateEvent,
|
197
206
|
OnTrainCreatedEvent,
|
198
207
|
OnTrainScheduleChangedEvent,
|
199
208
|
OnTriggerCreatedEntityEvent,
|
200
209
|
OnTriggerFiredArtilleryEvent,
|
210
|
+
OnUdpPacketReceivedEvent,
|
201
211
|
OnUndoAppliedEvent,
|
202
212
|
OnUnitAddedToGroupEvent,
|
203
213
|
OnUnitGroupCreatedEvent,
|
@@ -206,6 +216,7 @@ import type {
|
|
206
216
|
OnWorkerRobotExpiredEvent,
|
207
217
|
ScriptRaisedBuiltEvent,
|
208
218
|
ScriptRaisedDestroyEvent,
|
219
|
+
ScriptRaisedDestroySegmentedUnitEvent,
|
209
220
|
ScriptRaisedReviveEvent,
|
210
221
|
ScriptRaisedSetTilesEvent,
|
211
222
|
ScriptRaisedTeleportedEvent,
|
@@ -234,7 +245,7 @@ declare global {
|
|
234
245
|
}
|
235
246
|
/**
|
236
247
|
* AI command exit status. See {@link LuaEntity#set_command LuaEntity::set_command}
|
237
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
248
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.behavior_result Online documentation}
|
238
249
|
*/
|
239
250
|
enum behavior_result {
|
240
251
|
in_progress,
|
@@ -258,33 +269,33 @@ declare global {
|
|
258
269
|
enum cargo_destination {
|
259
270
|
/**
|
260
271
|
* The default destination type of a cargo pod when created runtime. Setting its destination to any other type will instantly launch it.
|
261
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
272
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.cargo_destination.invalid Online documentation}
|
262
273
|
*/
|
263
274
|
invalid,
|
264
275
|
/**
|
265
276
|
* Cargo pods with orbit destination are destroyed when ascent is completed.
|
266
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
277
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.cargo_destination.orbit Online documentation}
|
267
278
|
*/
|
268
279
|
orbit,
|
269
280
|
/**
|
270
281
|
* Any cargo landing pad or space platform hub.
|
271
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
282
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.cargo_destination.station Online documentation}
|
272
283
|
*/
|
273
284
|
station,
|
274
285
|
/**
|
275
286
|
* Cargo pods will switch destination type from surface to station before starting descent if there is a station available and {@link CargoDestination#position CargoDestination::position} has not been specified. Note, setting the destination to "surface" when the surface is the same as the one the pod is on forces it to find and set a landing position.
|
276
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
287
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.cargo_destination.surface Online documentation}
|
277
288
|
*/
|
278
289
|
surface,
|
279
290
|
/**
|
280
291
|
* Only used for sending a space platform starter pack to a platform that is waiting for one. Regular deliveries to space platform hubs use {@link defines.cargo_destination.station station} destination type instead.
|
281
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
292
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.cargo_destination.space_platform Online documentation}
|
282
293
|
*/
|
283
294
|
space_platform,
|
284
295
|
}
|
285
296
|
/**
|
286
297
|
* State of a chain signal.
|
287
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
298
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.chain_signal_state Online documentation}
|
288
299
|
*/
|
289
300
|
enum chain_signal_state {
|
290
301
|
none,
|
@@ -302,73 +313,73 @@ declare global {
|
|
302
313
|
}
|
303
314
|
/**
|
304
315
|
* Command given to units describing what they should do.
|
305
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
316
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.command Online documentation}
|
306
317
|
*/
|
307
318
|
enum command {
|
308
319
|
/**
|
309
320
|
* Attack another entity.
|
310
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
321
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.command.attack Online documentation}
|
311
322
|
*/
|
312
323
|
attack = 0,
|
313
324
|
/**
|
314
325
|
* Go to a specific position.
|
315
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
326
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.command.go_to_location Online documentation}
|
316
327
|
*/
|
317
328
|
go_to_location = 1,
|
318
329
|
/**
|
319
330
|
* Chain commands together, see {@link defines.compound_command}.
|
320
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
331
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.command.compound Online documentation}
|
321
332
|
*/
|
322
333
|
compound = 2,
|
323
334
|
/**
|
324
335
|
* Do what your group wants you to do.
|
325
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
336
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.command.group Online documentation}
|
326
337
|
*/
|
327
338
|
group = 3,
|
328
339
|
/**
|
329
340
|
* Go to a place and attack what you see.
|
330
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
341
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.command.attack_area Online documentation}
|
331
342
|
*/
|
332
343
|
attack_area = 4,
|
333
344
|
/**
|
334
345
|
* Chill.
|
335
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
346
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.command.wander Online documentation}
|
336
347
|
*/
|
337
348
|
wander = 5,
|
338
349
|
/**
|
339
350
|
* Flee from another entity.
|
340
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
351
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.command.flee Online documentation}
|
341
352
|
*/
|
342
353
|
flee = 6,
|
343
354
|
/**
|
344
355
|
* Stop moving and stay where you are.
|
345
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
356
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.command.stop Online documentation}
|
346
357
|
*/
|
347
358
|
stop = 7,
|
348
359
|
/**
|
349
360
|
* Go to a position and build a base there.
|
350
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
361
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.command.build_base Online documentation}
|
351
362
|
*/
|
352
363
|
build_base = 8,
|
353
364
|
}
|
354
365
|
/**
|
355
366
|
* How commands are joined together in a compound command (see {@link defines.command.compound}).
|
356
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
367
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.compound_command Online documentation}
|
357
368
|
*/
|
358
369
|
enum compound_command {
|
359
370
|
/**
|
360
371
|
* Fail on first failure. Only succeeds if all commands (executed one after another) succeed.
|
361
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
372
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.compound_command.logical_and Online documentation}
|
362
373
|
*/
|
363
374
|
logical_and,
|
364
375
|
/**
|
365
376
|
* Succeed on first success. Only fails if all commands (executed one after another) fail.
|
366
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
377
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.compound_command.logical_or Online documentation}
|
367
378
|
*/
|
368
379
|
logical_or,
|
369
380
|
/**
|
370
381
|
* Execute all commands in sequence and fail or succeed depending on the return status of the last command.
|
371
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
382
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.compound_command.return_last Online documentation}
|
372
383
|
*/
|
373
384
|
return_last,
|
374
385
|
}
|
@@ -430,172 +441,172 @@ declare global {
|
|
430
441
|
enum type {
|
431
442
|
/**
|
432
443
|
* {@link LuaContainerControlBehavior}
|
433
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
444
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.control_behavior.type.container Online documentation}
|
434
445
|
*/
|
435
446
|
container,
|
436
447
|
/**
|
437
448
|
* {@link LuaGenericOnOffControlBehavior}
|
438
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
449
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.control_behavior.type.generic_on_off Online documentation}
|
439
450
|
*/
|
440
451
|
generic_on_off,
|
441
452
|
/**
|
442
453
|
* {@link LuaInserterControlBehavior}
|
443
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
454
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.control_behavior.type.inserter Online documentation}
|
444
455
|
*/
|
445
456
|
inserter,
|
446
457
|
/**
|
447
458
|
* {@link LuaLampControlBehavior}
|
448
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
459
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.control_behavior.type.lamp Online documentation}
|
449
460
|
*/
|
450
461
|
lamp,
|
451
462
|
/**
|
452
463
|
* {@link LuaLogisticContainerControlBehavior}
|
453
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
464
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.control_behavior.type.logistic_container Online documentation}
|
454
465
|
*/
|
455
466
|
logistic_container,
|
456
467
|
/**
|
457
468
|
* {@link LuaRoboportControlBehavior}
|
458
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
469
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.control_behavior.type.roboport Online documentation}
|
459
470
|
*/
|
460
471
|
roboport,
|
461
472
|
/**
|
462
473
|
* {@link LuaStorageTankControlBehavior}
|
463
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
474
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.control_behavior.type.storage_tank Online documentation}
|
464
475
|
*/
|
465
476
|
storage_tank,
|
466
477
|
/**
|
467
478
|
* {@link LuaTrainStopControlBehavior}
|
468
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
479
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.control_behavior.type.train_stop Online documentation}
|
469
480
|
*/
|
470
481
|
train_stop,
|
471
482
|
/**
|
472
483
|
* {@link LuaDeciderCombinatorControlBehavior}
|
473
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
484
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.control_behavior.type.decider_combinator Online documentation}
|
474
485
|
*/
|
475
486
|
decider_combinator,
|
476
487
|
/**
|
477
488
|
* {@link LuaArithmeticCombinatorControlBehavior}
|
478
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
489
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.control_behavior.type.arithmetic_combinator Online documentation}
|
479
490
|
*/
|
480
491
|
arithmetic_combinator,
|
481
492
|
/**
|
482
493
|
* {@link LuaConstantCombinatorControlBehavior}
|
483
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
494
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.control_behavior.type.constant_combinator Online documentation}
|
484
495
|
*/
|
485
496
|
constant_combinator,
|
486
497
|
/**
|
487
498
|
* {@link LuaTransportBeltControlBehavior}
|
488
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
499
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.control_behavior.type.transport_belt Online documentation}
|
489
500
|
*/
|
490
501
|
transport_belt,
|
491
502
|
/**
|
492
503
|
* {@link LuaAccumulatorControlBehavior}
|
493
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
504
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.control_behavior.type.accumulator Online documentation}
|
494
505
|
*/
|
495
506
|
accumulator,
|
496
507
|
/**
|
497
508
|
* {@link LuaRailSignalBaseControlBehavior}
|
498
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
509
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.control_behavior.type.rail_signal Online documentation}
|
499
510
|
*/
|
500
511
|
rail_signal,
|
501
512
|
/**
|
502
513
|
* {@link LuaRailSignalBaseControlBehavior}
|
503
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
514
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.control_behavior.type.rail_chain_signal Online documentation}
|
504
515
|
*/
|
505
516
|
rail_chain_signal,
|
506
517
|
/**
|
507
518
|
* {@link LuaWallControlBehavior}
|
508
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
519
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.control_behavior.type.wall Online documentation}
|
509
520
|
*/
|
510
521
|
wall,
|
511
522
|
/**
|
512
523
|
* {@link LuaMiningDrillControlBehavior}
|
513
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
524
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.control_behavior.type.mining_drill Online documentation}
|
514
525
|
*/
|
515
526
|
mining_drill,
|
516
527
|
/**
|
517
528
|
* {@link LuaProgrammableSpeakerControlBehavior}
|
518
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
529
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.control_behavior.type.programmable_speaker Online documentation}
|
519
530
|
*/
|
520
531
|
programmable_speaker,
|
521
532
|
/**
|
522
533
|
* {@link LuaAssemblingMachineControlBehavior}
|
523
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
534
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.control_behavior.type.assembling_machine Online documentation}
|
524
535
|
*/
|
525
536
|
assembling_machine,
|
526
537
|
/**
|
527
538
|
* {@link LuaPumpControlBehavior}
|
528
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
539
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.control_behavior.type.pump Online documentation}
|
529
540
|
*/
|
530
541
|
pump,
|
531
542
|
/**
|
532
543
|
* {@link LuaSelectorCombinatorControlBehavior}
|
533
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
544
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.control_behavior.type.selector_combinator Online documentation}
|
534
545
|
*/
|
535
546
|
selector_combinator,
|
536
547
|
/**
|
537
548
|
* {@link LuaRocketSiloControlBehavior}
|
538
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
549
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.control_behavior.type.rocket_silo Online documentation}
|
539
550
|
*/
|
540
551
|
rocket_silo,
|
541
552
|
/**
|
542
553
|
* {@link LuaTurretControlBehavior}
|
543
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
554
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.control_behavior.type.turret Online documentation}
|
544
555
|
*/
|
545
556
|
turret,
|
546
557
|
/**
|
547
558
|
* {@link LuaReactorControlBehavior}
|
548
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
559
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.control_behavior.type.reactor Online documentation}
|
549
560
|
*/
|
550
561
|
reactor,
|
551
562
|
/**
|
552
563
|
* {@link LuaSpacePlatformHubControlBehavior}
|
553
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
564
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.control_behavior.type.space_platform_hub Online documentation}
|
554
565
|
*/
|
555
566
|
space_platform_hub,
|
556
567
|
/**
|
557
568
|
* {@link LuaArtilleryTurretControlBehavior}
|
558
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
569
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.control_behavior.type.artillery_turret Online documentation}
|
559
570
|
*/
|
560
571
|
artillery_turret,
|
561
572
|
/**
|
562
573
|
* {@link LuaAsteroidCollectorControlBehavior}
|
563
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
574
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.control_behavior.type.asteroid_collector Online documentation}
|
564
575
|
*/
|
565
576
|
asteroid_collector,
|
566
577
|
/**
|
567
578
|
* {@link LuaRadarControlBehavior}
|
568
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
579
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.control_behavior.type.radar Online documentation}
|
569
580
|
*/
|
570
581
|
radar,
|
571
582
|
/**
|
572
583
|
* {@link LuaDisplayPanelControlBehavior}
|
573
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
584
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.control_behavior.type.display_panel Online documentation}
|
574
585
|
*/
|
575
586
|
display_panel,
|
576
587
|
/**
|
577
588
|
* {@link LuaLoaderControlBehavior}
|
578
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
589
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.control_behavior.type.loader Online documentation}
|
579
590
|
*/
|
580
591
|
loader,
|
581
592
|
/**
|
582
593
|
* {@link LuaCargoLandingPadControlBehavior}
|
583
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
594
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.control_behavior.type.cargo_landing_pad Online documentation}
|
584
595
|
*/
|
585
596
|
cargo_landing_pad,
|
586
597
|
/**
|
587
598
|
* {@link LuaAgriculturalTowerControlBehavior}
|
588
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
599
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.control_behavior.type.agricultural_tower Online documentation}
|
589
600
|
*/
|
590
601
|
agricultural_tower,
|
591
602
|
/**
|
592
603
|
* {@link LuaFurnaceControlBehavior}
|
593
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
604
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.control_behavior.type.furnace Online documentation}
|
594
605
|
*/
|
595
606
|
furnace,
|
596
607
|
/**
|
597
608
|
* {@link LuaProxyContainerControlBehavior}
|
598
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
609
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.control_behavior.type.proxy_container Online documentation}
|
599
610
|
*/
|
600
611
|
proxy_container,
|
601
612
|
}
|
@@ -603,37 +614,37 @@ declare global {
|
|
603
614
|
enum controllers {
|
604
615
|
/**
|
605
616
|
* Can't interact with the world, can only observe. Used in the multiplayer waiting-to-respawn screen.
|
606
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
617
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.controllers.ghost Online documentation}
|
607
618
|
*/
|
608
619
|
ghost,
|
609
620
|
/**
|
610
621
|
* The controller controls a character. This is the default controller in freeplay.
|
611
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
622
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.controllers.character Online documentation}
|
612
623
|
*/
|
613
624
|
character,
|
614
625
|
/**
|
615
626
|
* The controller isn't tied to a character. This is the default controller in sandbox.
|
616
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
627
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.controllers.god Online documentation}
|
617
628
|
*/
|
618
629
|
god,
|
619
630
|
/**
|
620
631
|
* The Editor Controller near ultimate power to do almost anything in the game.
|
621
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
632
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.controllers.editor Online documentation}
|
622
633
|
*/
|
623
634
|
editor,
|
624
635
|
/**
|
625
636
|
* The player can't interact with the world, and the camera pans around in a predefined manner.
|
626
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
637
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.controllers.cutscene Online documentation}
|
627
638
|
*/
|
628
639
|
cutscene,
|
629
640
|
/**
|
630
641
|
* Can't change anything in the world but can view anything.
|
631
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
642
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.controllers.spectator Online documentation}
|
632
643
|
*/
|
633
644
|
spectator,
|
634
645
|
/**
|
635
646
|
* Can't move/change items but can build ghosts/change settings.
|
636
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
647
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.controllers.remote Online documentation}
|
637
648
|
*/
|
638
649
|
remote,
|
639
650
|
}
|
@@ -695,22 +706,22 @@ declare global {
|
|
695
706
|
enum distraction {
|
696
707
|
/**
|
697
708
|
* Perform command even if someone attacks the unit.
|
698
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
709
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.distraction.none Online documentation}
|
699
710
|
*/
|
700
711
|
none,
|
701
712
|
/**
|
702
713
|
* Attack closer enemy entities with force.
|
703
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
714
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.distraction.by_enemy Online documentation}
|
704
715
|
*/
|
705
716
|
by_enemy,
|
706
717
|
/**
|
707
718
|
* Attack closer enemy entities, including entities "built" by player (belts, inserters, chests).
|
708
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
719
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.distraction.by_anything Online documentation}
|
709
720
|
*/
|
710
721
|
by_anything,
|
711
722
|
/**
|
712
723
|
* Attack when attacked.
|
713
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
724
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.distraction.by_damage Online documentation}
|
714
725
|
*/
|
715
726
|
by_damage,
|
716
727
|
}
|
@@ -719,12 +730,12 @@ declare global {
|
|
719
730
|
normal,
|
720
731
|
/**
|
721
732
|
* Used by ghosts.
|
722
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
733
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.entity_status.ghost Online documentation}
|
723
734
|
*/
|
724
735
|
ghost,
|
725
736
|
/**
|
726
737
|
* Only used if set through {@link import("factorio:prototype").ContainerPrototype#default_status ContainerPrototype::default_status}.
|
727
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
738
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.entity_status.broken Online documentation}
|
728
739
|
*/
|
729
740
|
broken,
|
730
741
|
no_power,
|
@@ -738,272 +749,272 @@ declare global {
|
|
738
749
|
marked_for_deconstruction,
|
739
750
|
/**
|
740
751
|
* Used by space platform hubs.
|
741
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
752
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.entity_status.paused Online documentation}
|
742
753
|
*/
|
743
754
|
paused,
|
744
755
|
/**
|
745
756
|
* Used by generators and solar panels.
|
746
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
757
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.entity_status.not_plugged_in_electric_network Online documentation}
|
747
758
|
*/
|
748
759
|
not_plugged_in_electric_network,
|
749
760
|
/**
|
750
761
|
* Used by power switches.
|
751
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
762
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.entity_status.networks_connected Online documentation}
|
752
763
|
*/
|
753
764
|
networks_connected,
|
754
765
|
/**
|
755
766
|
* Used by power switches.
|
756
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
767
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.entity_status.networks_disconnected Online documentation}
|
757
768
|
*/
|
758
769
|
networks_disconnected,
|
759
770
|
/**
|
760
771
|
* Used by accumulators.
|
761
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
772
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.entity_status.charging Online documentation}
|
762
773
|
*/
|
763
774
|
charging,
|
764
775
|
/**
|
765
776
|
* Used by accumulators.
|
766
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
777
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.entity_status.discharging Online documentation}
|
767
778
|
*/
|
768
779
|
discharging,
|
769
780
|
/**
|
770
781
|
* Used by accumulators.
|
771
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
782
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.entity_status.fully_charged Online documentation}
|
772
783
|
*/
|
773
784
|
fully_charged,
|
774
785
|
/**
|
775
786
|
* Used by logistic containers.
|
776
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
787
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.entity_status.out_of_logistic_network Online documentation}
|
777
788
|
*/
|
778
789
|
out_of_logistic_network,
|
779
790
|
/**
|
780
791
|
* Used by assembling machines.
|
781
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
792
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.entity_status.no_recipe Online documentation}
|
782
793
|
*/
|
783
794
|
no_recipe,
|
784
795
|
/**
|
785
796
|
* Used by furnaces.
|
786
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
797
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.entity_status.no_ingredients Online documentation}
|
787
798
|
*/
|
788
799
|
no_ingredients,
|
789
800
|
/**
|
790
801
|
* Used by boilers, fluid turrets and fluid energy sources: Boiler has no fluid to work with.
|
791
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
802
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.entity_status.no_input_fluid Online documentation}
|
792
803
|
*/
|
793
804
|
no_input_fluid,
|
794
805
|
/**
|
795
806
|
* Used by labs.
|
796
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
807
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.entity_status.no_research_in_progress Online documentation}
|
797
808
|
*/
|
798
809
|
no_research_in_progress,
|
799
810
|
/**
|
800
811
|
* Used by mining drills.
|
801
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
812
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.entity_status.no_minable_resources Online documentation}
|
802
813
|
*/
|
803
814
|
no_minable_resources,
|
804
815
|
/**
|
805
816
|
* Used by cargo bays.
|
806
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
817
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.entity_status.not_connected_to_hub_or_pad Online documentation}
|
807
818
|
*/
|
808
819
|
not_connected_to_hub_or_pad,
|
809
820
|
/**
|
810
821
|
* Used by boilers and fluid turrets: Boiler still has some fluid but is about to run out.
|
811
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
822
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.entity_status.low_input_fluid Online documentation}
|
812
823
|
*/
|
813
824
|
low_input_fluid,
|
814
825
|
/**
|
815
826
|
* Used by crafting machines.
|
816
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
827
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.entity_status.fluid_ingredient_shortage Online documentation}
|
817
828
|
*/
|
818
829
|
fluid_ingredient_shortage,
|
819
830
|
/**
|
820
831
|
* Used by crafting machines, boilers, burner energy sources and reactors: Reactor/burner has full burnt result inventory, boiler has full output fluidbox.
|
821
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
832
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.entity_status.full_output Online documentation}
|
822
833
|
*/
|
823
834
|
full_output,
|
824
835
|
/**
|
825
836
|
* Used by agricultural towers.
|
826
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
837
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.entity_status.not_enough_space_in_output Online documentation}
|
827
838
|
*/
|
828
839
|
not_enough_space_in_output,
|
829
840
|
/**
|
830
841
|
* Used by burner energy sources.
|
831
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
842
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.entity_status.full_burnt_result_output Online documentation}
|
832
843
|
*/
|
833
844
|
full_burnt_result_output,
|
834
845
|
/**
|
835
846
|
* Used by crafting machines.
|
836
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
847
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.entity_status.item_ingredient_shortage Online documentation}
|
837
848
|
*/
|
838
849
|
item_ingredient_shortage,
|
839
850
|
/**
|
840
851
|
* Used by mining drills when the mining fluid is missing.
|
841
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
852
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.entity_status.missing_required_fluid Online documentation}
|
842
853
|
*/
|
843
854
|
missing_required_fluid,
|
844
855
|
/**
|
845
856
|
* Used by labs.
|
846
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
857
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.entity_status.missing_science_packs Online documentation}
|
847
858
|
*/
|
848
859
|
missing_science_packs,
|
849
860
|
/**
|
850
861
|
* Used by inserters.
|
851
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
862
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.entity_status.waiting_for_source_items Online documentation}
|
852
863
|
*/
|
853
864
|
waiting_for_source_items,
|
854
865
|
/**
|
855
866
|
* Used by inserters when wait_for_full_hand is set.
|
856
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
867
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.entity_status.waiting_for_more_items Online documentation}
|
857
868
|
*/
|
858
869
|
waiting_for_more_items,
|
859
870
|
/**
|
860
871
|
* Used by inserters and mining drills.
|
861
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
872
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.entity_status.waiting_for_space_in_destination Online documentation}
|
862
873
|
*/
|
863
874
|
waiting_for_space_in_destination,
|
864
875
|
/**
|
865
876
|
* Used by the rocket silo.
|
866
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
877
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.entity_status.preparing_rocket_for_launch Online documentation}
|
867
878
|
*/
|
868
879
|
preparing_rocket_for_launch,
|
869
880
|
/**
|
870
881
|
* Used by the rocket silo.
|
871
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
882
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.entity_status.waiting_to_launch_rocket Online documentation}
|
872
883
|
*/
|
873
884
|
waiting_to_launch_rocket,
|
874
885
|
/**
|
875
886
|
* Used by the rocket silo.
|
876
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
887
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.entity_status.waiting_for_space_in_platform_hub Online documentation}
|
877
888
|
*/
|
878
889
|
waiting_for_space_in_platform_hub,
|
879
890
|
/**
|
880
891
|
* Used by the rocket silo.
|
881
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
892
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.entity_status.launching_rocket Online documentation}
|
882
893
|
*/
|
883
894
|
launching_rocket,
|
884
895
|
/**
|
885
896
|
* Used by thrusters.
|
886
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
897
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.entity_status.thrust_not_required Online documentation}
|
887
898
|
*/
|
888
899
|
thrust_not_required,
|
889
900
|
/**
|
890
901
|
* Used by space platform hubs.
|
891
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
902
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.entity_status.on_the_way Online documentation}
|
892
903
|
*/
|
893
904
|
on_the_way,
|
894
905
|
/**
|
895
906
|
* Used by space platform hubs.
|
896
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
907
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.entity_status.waiting_in_orbit Online documentation}
|
897
908
|
*/
|
898
909
|
waiting_in_orbit,
|
899
910
|
/**
|
900
911
|
* Used by trains.
|
901
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
912
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.entity_status.waiting_at_stop Online documentation}
|
902
913
|
*/
|
903
914
|
waiting_at_stop,
|
904
915
|
/**
|
905
916
|
* Used by space platform hubs.
|
906
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
917
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.entity_status.waiting_for_rockets_to_arrive Online documentation}
|
907
918
|
*/
|
908
919
|
waiting_for_rockets_to_arrive,
|
909
920
|
/**
|
910
921
|
* Used by space platform hubs.
|
911
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
922
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.entity_status.not_enough_thrust Online documentation}
|
912
923
|
*/
|
913
924
|
not_enough_thrust,
|
914
925
|
/**
|
915
926
|
* Used by trains.
|
916
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
927
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.entity_status.destination_stop_full Online documentation}
|
917
928
|
*/
|
918
929
|
destination_stop_full,
|
919
930
|
/**
|
920
931
|
* Used by trains and space platform hubs.
|
921
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
932
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.entity_status.no_path Online documentation}
|
922
933
|
*/
|
923
934
|
no_path,
|
924
935
|
/**
|
925
936
|
* Used by beacons.
|
926
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
937
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.entity_status.no_modules_to_transmit Online documentation}
|
927
938
|
*/
|
928
939
|
no_modules_to_transmit,
|
929
940
|
/**
|
930
941
|
* Used by roboports.
|
931
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
942
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.entity_status.recharging_after_power_outage Online documentation}
|
932
943
|
*/
|
933
944
|
recharging_after_power_outage,
|
934
945
|
/**
|
935
946
|
* Used by inserters targeting entity ghosts.
|
936
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
947
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.entity_status.waiting_for_target_to_be_built Online documentation}
|
937
948
|
*/
|
938
949
|
waiting_for_target_to_be_built,
|
939
950
|
/**
|
940
951
|
* Used by inserters targeting rails.
|
941
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
952
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.entity_status.waiting_for_train Online documentation}
|
942
953
|
*/
|
943
954
|
waiting_for_train,
|
944
955
|
/**
|
945
956
|
* Used by ammo turrets.
|
946
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
957
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.entity_status.no_ammo Online documentation}
|
947
958
|
*/
|
948
959
|
no_ammo,
|
949
960
|
/**
|
950
961
|
* Used by heat energy sources.
|
951
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
962
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.entity_status.low_temperature Online documentation}
|
952
963
|
*/
|
953
964
|
low_temperature,
|
954
965
|
/**
|
955
966
|
* Used by constant combinators: Combinator is turned off via switch in GUI.
|
956
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
967
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.entity_status.disabled Online documentation}
|
957
968
|
*/
|
958
969
|
disabled,
|
959
970
|
/**
|
960
971
|
* Used by lamps.
|
961
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
972
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.entity_status.turned_off_during_daytime Online documentation}
|
962
973
|
*/
|
963
974
|
turned_off_during_daytime,
|
964
975
|
/**
|
965
976
|
* Used by rail signals.
|
966
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
977
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.entity_status.not_connected_to_rail Online documentation}
|
967
978
|
*/
|
968
979
|
not_connected_to_rail,
|
969
980
|
/**
|
970
981
|
* Used by rail signals.
|
971
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
982
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.entity_status.cant_divide_segments Online documentation}
|
972
983
|
*/
|
973
984
|
cant_divide_segments,
|
974
985
|
/**
|
975
986
|
* Used by filter inserters.
|
976
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
987
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.entity_status.no_filter Online documentation}
|
977
988
|
*/
|
978
989
|
no_filter,
|
979
990
|
/**
|
980
991
|
* Used by agricultural towers.
|
981
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
992
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.entity_status.no_spot_seedable_by_inputs Online documentation}
|
982
993
|
*/
|
983
994
|
no_spot_seedable_by_inputs,
|
984
995
|
/**
|
985
996
|
* Used by agricultural towers.
|
986
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
997
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.entity_status.waiting_for_plants_to_grow Online documentation}
|
987
998
|
*/
|
988
999
|
waiting_for_plants_to_grow,
|
989
1000
|
/**
|
990
1001
|
* Used by asteroid collectors.
|
991
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1002
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.entity_status.computing_navigation Online documentation}
|
992
1003
|
*/
|
993
1004
|
computing_navigation,
|
994
1005
|
/**
|
995
1006
|
* Used by pipes, pipes to ground and storage tanks.
|
996
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1007
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.entity_status.pipeline_overextended Online documentation}
|
997
1008
|
*/
|
998
1009
|
pipeline_overextended,
|
999
1010
|
/**
|
1000
1011
|
* Used by assembling machines.
|
1001
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1012
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.entity_status.recipe_not_researched Online documentation}
|
1002
1013
|
*/
|
1003
1014
|
recipe_not_researched,
|
1004
1015
|
/**
|
1005
1016
|
* Used by assembling machines.
|
1006
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1017
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.entity_status.recipe_is_parameter Online documentation}
|
1007
1018
|
*/
|
1008
1019
|
recipe_is_parameter,
|
1009
1020
|
}
|
@@ -1013,8 +1024,8 @@ declare global {
|
|
1013
1024
|
yellow,
|
1014
1025
|
}
|
1015
1026
|
/**
|
1016
|
-
* See the {@linkplain https://lua-api.factorio.com/2.0.
|
1017
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1027
|
+
* See the {@linkplain https://lua-api.factorio.com/2.0.62/events.html events page} for more info on what events contain and when they get raised.
|
1028
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.events Online documentation}
|
1018
1029
|
*/
|
1019
1030
|
namespace events {
|
1020
1031
|
/**
|
@@ -1537,6 +1548,10 @@ declare global {
|
|
1537
1548
|
* Event type: {@link OnPostEntityDiedEvent}
|
1538
1549
|
*/
|
1539
1550
|
const on_post_entity_died: EventId<OnPostEntityDiedEvent>
|
1551
|
+
/**
|
1552
|
+
* Event type: {@link OnPostSegmentedUnitDiedEvent}
|
1553
|
+
*/
|
1554
|
+
const on_post_segmented_unit_died: EventId<OnPostSegmentedUnitDiedEvent>
|
1540
1555
|
/**
|
1541
1556
|
* Event type: {@link OnPreBuildEvent}
|
1542
1557
|
*/
|
@@ -1701,6 +1716,18 @@ declare global {
|
|
1701
1716
|
* Event type: {@link OnSegmentEntityCreatedEvent}
|
1702
1717
|
*/
|
1703
1718
|
const on_segment_entity_created: EventId<OnSegmentEntityCreatedEvent>
|
1719
|
+
/**
|
1720
|
+
* Event type: {@link OnSegmentedUnitCreatedEvent}
|
1721
|
+
*/
|
1722
|
+
const on_segmented_unit_created: EventId<OnSegmentedUnitCreatedEvent>
|
1723
|
+
/**
|
1724
|
+
* Event type: {@link OnSegmentedUnitDamagedEvent}
|
1725
|
+
*/
|
1726
|
+
const on_segmented_unit_damaged: EventId<OnSegmentedUnitDamagedEvent>
|
1727
|
+
/**
|
1728
|
+
* Event type: {@link OnSegmentedUnitDiedEvent}
|
1729
|
+
*/
|
1730
|
+
const on_segmented_unit_died: EventId<OnSegmentedUnitDiedEvent>
|
1704
1731
|
/**
|
1705
1732
|
* Event type: {@link OnSelectedEntityChangedEvent}
|
1706
1733
|
*/
|
@@ -1769,10 +1796,30 @@ declare global {
|
|
1769
1796
|
* Event type: {@link OnTechnologyEffectsResetEvent}
|
1770
1797
|
*/
|
1771
1798
|
const on_technology_effects_reset: EventId<OnTechnologyEffectsResetEvent>
|
1799
|
+
/**
|
1800
|
+
* Event type: {@link OnTerritoryCreatedEvent}
|
1801
|
+
*/
|
1802
|
+
const on_territory_created: EventId<OnTerritoryCreatedEvent>
|
1803
|
+
/**
|
1804
|
+
* Event type: {@link OnTerritoryDestroyedEvent}
|
1805
|
+
*/
|
1806
|
+
const on_territory_destroyed: EventId<OnTerritoryDestroyedEvent>
|
1772
1807
|
/**
|
1773
1808
|
* Event type: {@link OnTickEvent}
|
1774
1809
|
*/
|
1775
1810
|
const on_tick: EventId<OnTickEvent>
|
1811
|
+
/**
|
1812
|
+
* Event type: {@link OnTowerMinedPlantEvent}
|
1813
|
+
*/
|
1814
|
+
const on_tower_mined_plant: EventId<OnTowerMinedPlantEvent>
|
1815
|
+
/**
|
1816
|
+
* Event type: {@link OnTowerPlantedSeedEvent}
|
1817
|
+
*/
|
1818
|
+
const on_tower_planted_seed: EventId<OnTowerPlantedSeedEvent>
|
1819
|
+
/**
|
1820
|
+
* Event type: {@link OnTowerPreMinedPlantEvent}
|
1821
|
+
*/
|
1822
|
+
const on_tower_pre_mined_plant: EventId<OnTowerPreMinedPlantEvent>
|
1776
1823
|
/**
|
1777
1824
|
* Event type: {@link OnTrainChangedStateEvent}
|
1778
1825
|
*/
|
@@ -1793,6 +1840,10 @@ declare global {
|
|
1793
1840
|
* Event type: {@link OnTriggerFiredArtilleryEvent}
|
1794
1841
|
*/
|
1795
1842
|
const on_trigger_fired_artillery: EventId<OnTriggerFiredArtilleryEvent>
|
1843
|
+
/**
|
1844
|
+
* Event type: {@link OnUdpPacketReceivedEvent}
|
1845
|
+
*/
|
1846
|
+
const on_udp_packet_received: EventId<OnUdpPacketReceivedEvent>
|
1796
1847
|
/**
|
1797
1848
|
* Event type: {@link OnUndoAppliedEvent}
|
1798
1849
|
*/
|
@@ -1825,6 +1876,10 @@ declare global {
|
|
1825
1876
|
* Event type: {@link ScriptRaisedDestroyEvent}
|
1826
1877
|
*/
|
1827
1878
|
const script_raised_destroy: EventId<ScriptRaisedDestroyEvent>
|
1879
|
+
/**
|
1880
|
+
* Event type: {@link ScriptRaisedDestroySegmentedUnitEvent}
|
1881
|
+
*/
|
1882
|
+
const script_raised_destroy_segmented_unit: EventId<ScriptRaisedDestroySegmentedUnitEvent>
|
1828
1883
|
/**
|
1829
1884
|
* Event type: {@link ScriptRaisedReviveEvent}
|
1830
1885
|
*/
|
@@ -1839,8 +1894,8 @@ declare global {
|
|
1839
1894
|
const script_raised_teleported: EventId<ScriptRaisedTeleportedEvent>
|
1840
1895
|
}
|
1841
1896
|
/**
|
1842
|
-
* See the {@linkplain https://lua-api.factorio.com/2.0.
|
1843
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1897
|
+
* See the {@linkplain https://lua-api.factorio.com/2.0.62/events.html events page} for more info on what events contain and when they get raised.
|
1898
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.events Online documentation}
|
1844
1899
|
*/
|
1845
1900
|
type events = (typeof events)[keyof typeof events]
|
1846
1901
|
enum flow_precision_index {
|
@@ -1856,17 +1911,17 @@ declare global {
|
|
1856
1911
|
enum game_controller_interaction {
|
1857
1912
|
/**
|
1858
1913
|
* Game controller will always hover this element regardless of type or state.
|
1859
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1914
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.game_controller_interaction.always Online documentation}
|
1860
1915
|
*/
|
1861
1916
|
always,
|
1862
1917
|
/**
|
1863
1918
|
* Never hover this element with a game controller.
|
1864
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1919
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.game_controller_interaction.never Online documentation}
|
1865
1920
|
*/
|
1866
1921
|
never,
|
1867
1922
|
/**
|
1868
1923
|
* Hover according to the element type and implementation.
|
1869
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1924
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.game_controller_interaction.normal Online documentation}
|
1870
1925
|
*/
|
1871
1926
|
normal,
|
1872
1927
|
}
|
@@ -1991,6 +2046,7 @@ declare global {
|
|
1991
2046
|
edit_display_panel_icon,
|
1992
2047
|
edit_display_panel_parameters,
|
1993
2048
|
edit_display_panel_show_in_chart,
|
2049
|
+
edit_display_panel_single_entry,
|
1994
2050
|
edit_interrupt,
|
1995
2051
|
edit_permission_group,
|
1996
2052
|
edit_pin,
|
@@ -2192,22 +2248,22 @@ declare global {
|
|
2192
2248
|
logistic_container_trash,
|
2193
2249
|
/**
|
2194
2250
|
* Deprecated, replaced by `"crafter_input"`.
|
2195
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2251
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.inventory.furnace_source Online documentation}
|
2196
2252
|
*/
|
2197
2253
|
furnace_source,
|
2198
2254
|
/**
|
2199
2255
|
* Deprecated, replaced by `"crafter_output"`.
|
2200
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2256
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.inventory.furnace_result Online documentation}
|
2201
2257
|
*/
|
2202
2258
|
furnace_result,
|
2203
2259
|
/**
|
2204
2260
|
* Deprecated, replaced by `"crafter_modules"`.
|
2205
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2261
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.inventory.furnace_modules Online documentation}
|
2206
2262
|
*/
|
2207
2263
|
furnace_modules,
|
2208
2264
|
/**
|
2209
2265
|
* Deprecated, replaced by `"crafter_trash"`.
|
2210
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2266
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.inventory.furnace_trash Online documentation}
|
2211
2267
|
*/
|
2212
2268
|
furnace_trash,
|
2213
2269
|
character_main,
|
@@ -2227,27 +2283,27 @@ declare global {
|
|
2227
2283
|
robot_repair,
|
2228
2284
|
/**
|
2229
2285
|
* Deprecated, replaced by `"crafter_input"`.
|
2230
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2286
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.inventory.assembling_machine_input Online documentation}
|
2231
2287
|
*/
|
2232
2288
|
assembling_machine_input,
|
2233
2289
|
/**
|
2234
2290
|
* Deprecated, replaced by `"crafter_output"`.
|
2235
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2291
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.inventory.assembling_machine_output Online documentation}
|
2236
2292
|
*/
|
2237
2293
|
assembling_machine_output,
|
2238
2294
|
/**
|
2239
2295
|
* Deprecated, replaced by `"crafter_modules"`.
|
2240
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2296
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.inventory.assembling_machine_modules Online documentation}
|
2241
2297
|
*/
|
2242
2298
|
assembling_machine_modules,
|
2243
2299
|
/**
|
2244
2300
|
* Used for ejected items, or items held by inserters that can't be inserted due the recipe being changed with the circuit network.
|
2245
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2301
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.inventory.assembling_machine_dump Online documentation}
|
2246
2302
|
*/
|
2247
2303
|
assembling_machine_dump,
|
2248
2304
|
/**
|
2249
2305
|
* Deprecated, replaced by `"crafter_trash"`.
|
2250
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2306
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.inventory.assembling_machine_trash Online documentation}
|
2251
2307
|
*/
|
2252
2308
|
assembling_machine_trash,
|
2253
2309
|
lab_input,
|
@@ -2259,17 +2315,17 @@ declare global {
|
|
2259
2315
|
rocket_silo_trash,
|
2260
2316
|
/**
|
2261
2317
|
* Deprecated, replaced by `"crafter_input"`.
|
2262
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2318
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.inventory.rocket_silo_input Online documentation}
|
2263
2319
|
*/
|
2264
2320
|
rocket_silo_input,
|
2265
2321
|
/**
|
2266
2322
|
* Deprecated, replaced by `"crafter_output"`.
|
2267
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2323
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.inventory.rocket_silo_output Online documentation}
|
2268
2324
|
*/
|
2269
2325
|
rocket_silo_output,
|
2270
2326
|
/**
|
2271
2327
|
* Deprecated, replaced by `"crafter_modules"`.
|
2272
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2328
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.inventory.rocket_silo_modules Online documentation}
|
2273
2329
|
*/
|
2274
2330
|
rocket_silo_modules,
|
2275
2331
|
cargo_unit,
|
@@ -2298,7 +2354,7 @@ declare global {
|
|
2298
2354
|
crafter_modules,
|
2299
2355
|
/**
|
2300
2356
|
* Used for spoil result items that do not fit into the recipe slots, and for items that are ejected when changing the recipe via remote view.
|
2301
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2357
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.inventory.crafter_trash Online documentation}
|
2302
2358
|
*/
|
2303
2359
|
crafter_trash,
|
2304
2360
|
asteroid_collector_output,
|
@@ -2341,12 +2397,12 @@ declare global {
|
|
2341
2397
|
circuit_controlled,
|
2342
2398
|
/**
|
2343
2399
|
* Used by rocket silos.
|
2344
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2400
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.logistic_section_type.transitional_request_controlled Online documentation}
|
2345
2401
|
*/
|
2346
2402
|
transitional_request_controlled,
|
2347
2403
|
/**
|
2348
2404
|
* Used by space platform hubs.
|
2349
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2405
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.logistic_section_type.request_missing_materials_controlled Online documentation}
|
2350
2406
|
*/
|
2351
2407
|
request_missing_materials_controlled,
|
2352
2408
|
}
|
@@ -2365,17 +2421,17 @@ declare global {
|
|
2365
2421
|
enum print_skip {
|
2366
2422
|
/**
|
2367
2423
|
* Print will not be skipped.
|
2368
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2424
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.print_skip.never Online documentation}
|
2369
2425
|
*/
|
2370
2426
|
never,
|
2371
2427
|
/**
|
2372
2428
|
* Print will be skipped if same text was recently printed (within last 60 ticks). Used by most game messages.
|
2373
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2429
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.print_skip.if_redundant Online documentation}
|
2374
2430
|
*/
|
2375
2431
|
if_redundant,
|
2376
2432
|
/**
|
2377
2433
|
* Print will be skipped if same text is still visible (printed within last 1152 ticks). Used by some notifications.
|
2378
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2434
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.print_skip.if_visible Online documentation}
|
2379
2435
|
*/
|
2380
2436
|
if_visible,
|
2381
2437
|
}
|
@@ -2386,7 +2442,7 @@ declare global {
|
|
2386
2442
|
}
|
2387
2443
|
/**
|
2388
2444
|
* 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, ...}`.
|
2389
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2445
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.prototypes Online documentation}
|
2390
2446
|
*/
|
2391
2447
|
interface prototypes {
|
2392
2448
|
achievement: {
|
@@ -2781,7 +2837,7 @@ declare global {
|
|
2781
2837
|
}
|
2782
2838
|
/**
|
2783
2839
|
* 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, ...}`.
|
2784
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2840
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.prototypes Online documentation}
|
2785
2841
|
*/
|
2786
2842
|
const prototypes: prototypes
|
2787
2843
|
enum rail_connection_direction {
|
@@ -2907,131 +2963,192 @@ declare global {
|
|
2907
2963
|
enum robot_order_type {
|
2908
2964
|
/**
|
2909
2965
|
* Construct a ghost.
|
2910
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2966
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.robot_order_type.construct Online documentation}
|
2911
2967
|
*/
|
2912
2968
|
construct,
|
2913
2969
|
/**
|
2914
2970
|
* Pickup an item.
|
2915
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2971
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.robot_order_type.pickup Online documentation}
|
2916
2972
|
*/
|
2917
2973
|
pickup,
|
2918
2974
|
/**
|
2919
2975
|
* Deliver an item.
|
2920
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2976
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.robot_order_type.deliver Online documentation}
|
2921
2977
|
*/
|
2922
2978
|
deliver,
|
2923
2979
|
/**
|
2924
2980
|
* Repair an entity.
|
2925
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2981
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.robot_order_type.repair Online documentation}
|
2926
2982
|
*/
|
2927
2983
|
repair,
|
2928
2984
|
/**
|
2929
2985
|
* Deconstruct an entity.
|
2930
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2986
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.robot_order_type.deconstruct Online documentation}
|
2931
2987
|
*/
|
2932
2988
|
deconstruct,
|
2933
2989
|
/**
|
2934
2990
|
* Deliver specific items to an entity (item request proxy).
|
2935
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2991
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.robot_order_type.deliver_items Online documentation}
|
2936
2992
|
*/
|
2937
2993
|
deliver_items,
|
2938
2994
|
/**
|
2939
2995
|
* Upgrade an entity.
|
2940
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2996
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.robot_order_type.upgrade Online documentation}
|
2941
2997
|
*/
|
2942
2998
|
upgrade,
|
2943
2999
|
/**
|
2944
3000
|
* Explode a cliff.
|
2945
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3001
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.robot_order_type.explode_cliff Online documentation}
|
2946
3002
|
*/
|
2947
3003
|
explode_cliff,
|
2948
3004
|
/**
|
2949
3005
|
* Pickup items from an entity (item request proxy).
|
2950
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3006
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.robot_order_type.pickup_items Online documentation}
|
2951
3007
|
*/
|
2952
3008
|
pickup_items,
|
2953
3009
|
}
|
2954
3010
|
/**
|
2955
3011
|
* The various parts of the launch sequence of the rocket silo.
|
2956
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3012
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.rocket_silo_status Online documentation}
|
2957
3013
|
*/
|
2958
3014
|
enum rocket_silo_status {
|
2959
3015
|
/**
|
2960
3016
|
* The rocket silo is crafting rocket parts. When there are enough rocket parts, the silo will switch into the `create_rocket` state.
|
2961
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3017
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.rocket_silo_status.building_rocket Online documentation}
|
2962
3018
|
*/
|
2963
3019
|
building_rocket,
|
2964
3020
|
/**
|
2965
3021
|
* The next state is `lights_blinking_open`. The rocket silo rocket entity gets created.
|
2966
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3022
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.rocket_silo_status.create_rocket Online documentation}
|
2967
3023
|
*/
|
2968
3024
|
create_rocket,
|
2969
3025
|
/**
|
2970
3026
|
* The next state is `doors_opening`. The rocket is getting prepared for launch.
|
2971
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3027
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.rocket_silo_status.lights_blinking_open Online documentation}
|
2972
3028
|
*/
|
2973
3029
|
lights_blinking_open,
|
2974
3030
|
/**
|
2975
3031
|
* The next state is `doors_opened`. The rocket is getting prepared for launch.
|
2976
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3032
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.rocket_silo_status.doors_opening Online documentation}
|
2977
3033
|
*/
|
2978
3034
|
doors_opening,
|
2979
3035
|
/**
|
2980
3036
|
* 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.
|
2981
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3037
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.rocket_silo_status.doors_opened Online documentation}
|
2982
3038
|
*/
|
2983
3039
|
doors_opened,
|
2984
3040
|
/**
|
2985
3041
|
* 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.
|
2986
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3042
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.rocket_silo_status.rocket_rising Online documentation}
|
2987
3043
|
*/
|
2988
3044
|
rocket_rising,
|
2989
3045
|
/**
|
2990
3046
|
* 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.
|
2991
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3047
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.rocket_silo_status.arms_advance Online documentation}
|
2992
3048
|
*/
|
2993
3049
|
arms_advance,
|
2994
3050
|
/**
|
2995
3051
|
* The rocket launch can be started by the player. When the launch is started, the silo switches into the `launch_starting` state.
|
2996
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3052
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.rocket_silo_status.rocket_ready Online documentation}
|
2997
3053
|
*/
|
2998
3054
|
rocket_ready,
|
2999
3055
|
/**
|
3000
3056
|
* The next state is `launch_started`.
|
3001
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3057
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.rocket_silo_status.launch_starting Online documentation}
|
3002
3058
|
*/
|
3003
3059
|
launch_starting,
|
3004
3060
|
/**
|
3005
3061
|
* 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.
|
3006
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3062
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.rocket_silo_status.engine_starting Online documentation}
|
3007
3063
|
*/
|
3008
3064
|
engine_starting,
|
3009
3065
|
/**
|
3010
3066
|
* 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.
|
3011
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3067
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.rocket_silo_status.arms_retract Online documentation}
|
3012
3068
|
*/
|
3013
3069
|
arms_retract,
|
3014
3070
|
/**
|
3015
3071
|
* The next state is `lights_blinking_close`. The rocket is getting launched.
|
3016
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3072
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.rocket_silo_status.rocket_flying Online documentation}
|
3017
3073
|
*/
|
3018
3074
|
rocket_flying,
|
3019
3075
|
/**
|
3020
3076
|
* The next state is `doors_closing`.
|
3021
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3077
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.rocket_silo_status.lights_blinking_close Online documentation}
|
3022
3078
|
*/
|
3023
3079
|
lights_blinking_close,
|
3024
3080
|
/**
|
3025
3081
|
* The next state is `building_rocket`.
|
3026
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3082
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.rocket_silo_status.doors_closing Online documentation}
|
3027
3083
|
*/
|
3028
3084
|
doors_closing,
|
3029
3085
|
/**
|
3030
3086
|
* 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.
|
3031
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3087
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.rocket_silo_status.launch_started Online documentation}
|
3032
3088
|
*/
|
3033
3089
|
launch_started,
|
3034
3090
|
}
|
3091
|
+
enum segmented_unit_activity_mode {
|
3092
|
+
/**
|
3093
|
+
* The segmented unit is completely asleep, only performing the bare minimum checks to wake up if needed.
|
3094
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.segmented_unit_activity_mode.asleep Online documentation}
|
3095
|
+
*/
|
3096
|
+
asleep,
|
3097
|
+
/**
|
3098
|
+
* The segmented unit is minimally active, reducing unnecessary entity movement and trigger effects while continuing to patrol around its territory.
|
3099
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.segmented_unit_activity_mode.minimal Online documentation}
|
3100
|
+
*/
|
3101
|
+
minimal,
|
3102
|
+
/**
|
3103
|
+
* The segmented unit is fully active and simulated as if it is being observed by a player.
|
3104
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.segmented_unit_activity_mode.full Online documentation}
|
3105
|
+
*/
|
3106
|
+
full,
|
3107
|
+
}
|
3108
|
+
enum segmented_unit_ai_state {
|
3109
|
+
/**
|
3110
|
+
* The segmented unit is navigating its territory's patrol path. If the unit is not assigned to a territory, then it is patrolling around the position it was created.
|
3111
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.segmented_unit_ai_state.patrolling Online documentation}
|
3112
|
+
*/
|
3113
|
+
patrolling,
|
3114
|
+
/**
|
3115
|
+
* The segmented unit is investigating a location where it detected a disturbance.
|
3116
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.segmented_unit_ai_state.investigating Online documentation}
|
3117
|
+
*/
|
3118
|
+
investigating,
|
3119
|
+
/**
|
3120
|
+
* The segmented unit is attacking an entity that is trespassing on its territory, but the segmented unit is not using its full strength.
|
3121
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.segmented_unit_ai_state.attacking Online documentation}
|
3122
|
+
*/
|
3123
|
+
attacking,
|
3124
|
+
/**
|
3125
|
+
* The segmented unit is angry because it was attacked and is aggressively attacking an entity with its full strength.
|
3126
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.segmented_unit_ai_state.enraged_at_target Online documentation}
|
3127
|
+
*/
|
3128
|
+
enraged_at_target,
|
3129
|
+
/**
|
3130
|
+
* The segmented unit is angry because it was attacked but it does not have a valid attack target, so it is wandering around trying to find a valid attack target.
|
3131
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.segmented_unit_ai_state.enraged_at_nothing Online documentation}
|
3132
|
+
*/
|
3133
|
+
enraged_at_nothing,
|
3134
|
+
}
|
3135
|
+
enum segmented_unit_created_cause {
|
3136
|
+
/**
|
3137
|
+
* The segmented unit was spawned naturally by the map generator.
|
3138
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.segmented_unit_created_cause.map_generated Online documentation}
|
3139
|
+
*/
|
3140
|
+
map_generated,
|
3141
|
+
/**
|
3142
|
+
* The segmented unit was created manually via script.
|
3143
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.segmented_unit_created_cause.script_created Online documentation}
|
3144
|
+
*/
|
3145
|
+
script_created,
|
3146
|
+
/**
|
3147
|
+
* The segmented unit was cloned from an existing segmented unit via script.
|
3148
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.segmented_unit_created_cause.script_cloned Online documentation}
|
3149
|
+
*/
|
3150
|
+
script_cloned,
|
3151
|
+
}
|
3035
3152
|
enum selection_mode {
|
3036
3153
|
select,
|
3037
3154
|
alt_select,
|
@@ -3045,74 +3162,74 @@ declare global {
|
|
3045
3162
|
}
|
3046
3163
|
/**
|
3047
3164
|
* State of an ordinary rail signal.
|
3048
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3165
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.signal_state Online documentation}
|
3049
3166
|
*/
|
3050
3167
|
enum signal_state {
|
3051
3168
|
/**
|
3052
3169
|
* Green.
|
3053
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3170
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.signal_state.open Online documentation}
|
3054
3171
|
*/
|
3055
3172
|
open,
|
3056
3173
|
/**
|
3057
3174
|
* Red.
|
3058
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3175
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.signal_state.closed Online documentation}
|
3059
3176
|
*/
|
3060
3177
|
closed,
|
3061
3178
|
/**
|
3062
3179
|
* Orange.
|
3063
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3180
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.signal_state.reserved Online documentation}
|
3064
3181
|
*/
|
3065
3182
|
reserved,
|
3066
3183
|
/**
|
3067
3184
|
* Red - From circuit network.
|
3068
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3185
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.signal_state.reserved_by_circuit_network Online documentation}
|
3069
3186
|
*/
|
3070
3187
|
reserved_by_circuit_network,
|
3071
3188
|
}
|
3072
3189
|
enum space_platform_state {
|
3073
3190
|
/**
|
3074
3191
|
* Waiting for a starter pack.
|
3075
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3192
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.space_platform_state.waiting_for_starter_pack Online documentation}
|
3076
3193
|
*/
|
3077
3194
|
waiting_for_starter_pack,
|
3078
3195
|
/**
|
3079
3196
|
* Starter pack was requested from the logistics system.
|
3080
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3197
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.space_platform_state.starter_pack_requested Online documentation}
|
3081
3198
|
*/
|
3082
3199
|
starter_pack_requested,
|
3083
3200
|
/**
|
3084
3201
|
* Starter pack is on the way.
|
3085
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3202
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.space_platform_state.starter_pack_on_the_way Online documentation}
|
3086
3203
|
*/
|
3087
3204
|
starter_pack_on_the_way,
|
3088
3205
|
/**
|
3089
3206
|
* Following the path.
|
3090
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3207
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.space_platform_state.on_the_path Online documentation}
|
3091
3208
|
*/
|
3092
3209
|
on_the_path,
|
3093
3210
|
/**
|
3094
3211
|
* Platform is ready to leave this planet and does not accept deliveries.
|
3095
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3212
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.space_platform_state.waiting_for_departure Online documentation}
|
3096
3213
|
*/
|
3097
3214
|
waiting_for_departure,
|
3098
3215
|
/**
|
3099
3216
|
* Doesn't have any stations in schedule.
|
3100
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3217
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.space_platform_state.no_schedule Online documentation}
|
3101
3218
|
*/
|
3102
3219
|
no_schedule,
|
3103
3220
|
/**
|
3104
3221
|
* Doesn't have anywhere to go.
|
3105
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3222
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.space_platform_state.no_path Online documentation}
|
3106
3223
|
*/
|
3107
3224
|
no_path,
|
3108
3225
|
/**
|
3109
3226
|
* Waiting at a station.
|
3110
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3227
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.space_platform_state.waiting_at_station Online documentation}
|
3111
3228
|
*/
|
3112
3229
|
waiting_at_station,
|
3113
3230
|
/**
|
3114
3231
|
* Paused.
|
3115
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3232
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.space_platform_state.paused Online documentation}
|
3116
3233
|
*/
|
3117
3234
|
paused,
|
3118
3235
|
}
|
@@ -3137,56 +3254,70 @@ declare global {
|
|
3137
3254
|
gui_element,
|
3138
3255
|
cargo_hatch,
|
3139
3256
|
schedule,
|
3257
|
+
territory,
|
3258
|
+
segmented_unit,
|
3259
|
+
}
|
3260
|
+
enum territory_created_cause {
|
3261
|
+
/**
|
3262
|
+
* The territory was spawned naturally by the map generator.
|
3263
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.territory_created_cause.map_generated Online documentation}
|
3264
|
+
*/
|
3265
|
+
map_generated,
|
3266
|
+
/**
|
3267
|
+
* The territory was created manually via script.
|
3268
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.territory_created_cause.script_created Online documentation}
|
3269
|
+
*/
|
3270
|
+
script_created,
|
3140
3271
|
}
|
3141
3272
|
enum train_state {
|
3142
3273
|
/**
|
3143
3274
|
* Normal state -- following the path.
|
3144
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3275
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.train_state.on_the_path Online documentation}
|
3145
3276
|
*/
|
3146
3277
|
on_the_path,
|
3147
3278
|
/**
|
3148
3279
|
* Doesn't have anywhere to go.
|
3149
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3280
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.train_state.no_schedule Online documentation}
|
3150
3281
|
*/
|
3151
3282
|
no_schedule,
|
3152
3283
|
/**
|
3153
3284
|
* Has no path and is stopped.
|
3154
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3285
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.train_state.no_path Online documentation}
|
3155
3286
|
*/
|
3156
3287
|
no_path,
|
3157
3288
|
/**
|
3158
3289
|
* Braking before a rail signal.
|
3159
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3290
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.train_state.arrive_signal Online documentation}
|
3160
3291
|
*/
|
3161
3292
|
arrive_signal,
|
3162
3293
|
/**
|
3163
3294
|
* Waiting at a signal.
|
3164
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3295
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.train_state.wait_signal Online documentation}
|
3165
3296
|
*/
|
3166
3297
|
wait_signal,
|
3167
3298
|
/**
|
3168
3299
|
* Braking before a station.
|
3169
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3300
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.train_state.arrive_station Online documentation}
|
3170
3301
|
*/
|
3171
3302
|
arrive_station,
|
3172
3303
|
/**
|
3173
3304
|
* Switched to manual control and has to stop.
|
3174
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3305
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.train_state.manual_control_stop Online documentation}
|
3175
3306
|
*/
|
3176
3307
|
manual_control_stop,
|
3177
3308
|
/**
|
3178
3309
|
* Can move if user explicitly sits in and rides the train.
|
3179
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3310
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.train_state.manual_control Online documentation}
|
3180
3311
|
*/
|
3181
3312
|
manual_control,
|
3182
3313
|
/**
|
3183
3314
|
* Waiting at a station.
|
3184
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3315
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.train_state.wait_station Online documentation}
|
3185
3316
|
*/
|
3186
3317
|
wait_station,
|
3187
3318
|
/**
|
3188
3319
|
* Same as no_path but all candidate train stops are full
|
3189
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3320
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.train_state.destination_full Online documentation}
|
3190
3321
|
*/
|
3191
3322
|
destination_full,
|
3192
3323
|
}
|
@@ -3216,17 +3347,17 @@ declare global {
|
|
3216
3347
|
enum wire_origin {
|
3217
3348
|
/**
|
3218
3349
|
* These wires can be modified by players, scripts, and the game. They are visible to the player if the entity's `draw_circuit_wires` prototype property is set to `true` and both ends of it are on the same surface.
|
3219
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3350
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.wire_origin.player Online documentation}
|
3220
3351
|
*/
|
3221
3352
|
player,
|
3222
3353
|
/**
|
3223
3354
|
* These wires can be modified by scripts and the game. They are not visible to the player, irrespective of the `draw_circuit_wires` prototype property.
|
3224
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3355
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.wire_origin.script Online documentation}
|
3225
3356
|
*/
|
3226
3357
|
script,
|
3227
3358
|
/**
|
3228
3359
|
* These wires can only be modified by the game. They are not visible to the player, irrespective of the `draw_circuit_wires` prototype property.
|
3229
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3360
|
+
* @see {@link https://lua-api.factorio.com/2.0.62/defines.html#defines.wire_origin.radars Online documentation}
|
3230
3361
|
*/
|
3231
3362
|
radars,
|
3232
3363
|
}
|