typed-factorio 2.14.0 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +6 -5
- package/package.json +1 -2
- package/prototype/generated/prototypes.d.ts +6818 -4113
- package/prototype/generated/types.d.ts +10656 -6113
- package/runtime/generated/classes.d.ts +11574 -10762
- package/runtime/generated/concepts.d.ts +7516 -5096
- package/runtime/generated/defines.d.ts +832 -250
- package/runtime/generated/events.d.ts +712 -287
- package/runtime/generated/global-functions.d.ts +3 -3
- package/runtime/generated/global-objects.d.ts +23 -11
@@ -4,6 +4,7 @@
|
|
4
4
|
|
5
5
|
import type {
|
6
6
|
EventId,
|
7
|
+
OnAchievementGainedEvent,
|
7
8
|
OnAiCommandCompletedEvent,
|
8
9
|
OnAreaClonedEvent,
|
9
10
|
OnBiterBaseBuiltEvent,
|
@@ -26,11 +27,9 @@ import type {
|
|
26
27
|
OnCutsceneFinishedEvent,
|
27
28
|
OnCutsceneStartedEvent,
|
28
29
|
OnCutsceneWaypointReachedEvent,
|
29
|
-
OnDifficultySettingsChangedEvent,
|
30
30
|
OnEntityClonedEvent,
|
31
31
|
OnEntityColorChangedEvent,
|
32
32
|
OnEntityDamagedEvent,
|
33
|
-
OnEntityDestroyedEvent,
|
34
33
|
OnEntityDiedEvent,
|
35
34
|
OnEntityLogisticSlotChangedEvent,
|
36
35
|
OnEntityRenamedEvent,
|
@@ -65,6 +64,7 @@ import type {
|
|
65
64
|
OnMarkedForUpgradeEvent,
|
66
65
|
OnMarketItemPurchasedEvent,
|
67
66
|
OnModItemOpenedEvent,
|
67
|
+
OnObjectDestroyedEvent,
|
68
68
|
OnPermissionGroupAddedEvent,
|
69
69
|
OnPermissionGroupDeletedEvent,
|
70
70
|
OnPermissionGroupEditedEvent,
|
@@ -84,24 +84,27 @@ import type {
|
|
84
84
|
OnPlayerCheatModeEnabledEvent,
|
85
85
|
OnPlayerClickedGpsTagEvent,
|
86
86
|
OnPlayerConfiguredBlueprintEvent,
|
87
|
-
|
87
|
+
OnPlayerControllerChangedEvent,
|
88
88
|
OnPlayerCraftedItemEvent,
|
89
89
|
OnPlayerCreatedEvent,
|
90
90
|
OnPlayerCursorStackChangedEvent,
|
91
91
|
OnPlayerDeconstructedAreaEvent,
|
92
92
|
OnPlayerDemotedEvent,
|
93
93
|
OnPlayerDiedEvent,
|
94
|
+
OnPlayerDisplayDensityScaleChangedEvent,
|
94
95
|
OnPlayerDisplayResolutionChangedEvent,
|
95
96
|
OnPlayerDisplayScaleChangedEvent,
|
96
97
|
OnPlayerDrivingChangedStateEvent,
|
97
98
|
OnPlayerDroppedItemEvent,
|
98
99
|
OnPlayerFastTransferredEvent,
|
100
|
+
OnPlayerFlippedEntityEvent,
|
99
101
|
OnPlayerFlushedFluidEvent,
|
100
102
|
OnPlayerGunInventoryChangedEvent,
|
101
103
|
OnPlayerInputMethodChangedEvent,
|
102
104
|
OnPlayerJoinedGameEvent,
|
103
105
|
OnPlayerKickedEvent,
|
104
106
|
OnPlayerLeftGameEvent,
|
107
|
+
OnPlayerLocaleChangedEvent,
|
105
108
|
OnPlayerMainInventoryChangedEvent,
|
106
109
|
OnPlayerMinedEntityEvent,
|
107
110
|
OnPlayerMinedItemEvent,
|
@@ -125,7 +128,7 @@ import type {
|
|
125
128
|
OnPlayerUnbannedEvent,
|
126
129
|
OnPlayerUnmutedEvent,
|
127
130
|
OnPlayerUsedCapsuleEvent,
|
128
|
-
|
131
|
+
OnPlayerUsedSpidertronRemoteEvent,
|
129
132
|
OnPostEntityDiedEvent,
|
130
133
|
OnPreBuildEvent,
|
131
134
|
OnPreChunkDeletedEvent,
|
@@ -141,11 +144,14 @@ import type {
|
|
141
144
|
OnPrePlayerRemovedEvent,
|
142
145
|
OnPrePlayerToggledMapEditorEvent,
|
143
146
|
OnPreRobotExplodedCliffEvent,
|
147
|
+
OnPreScenarioFinishedEvent,
|
144
148
|
OnPreScriptInventoryResizedEvent,
|
145
149
|
OnPreSurfaceClearedEvent,
|
146
150
|
OnPreSurfaceDeletedEvent,
|
151
|
+
OnRedoAppliedEvent,
|
147
152
|
OnResearchCancelledEvent,
|
148
153
|
OnResearchFinishedEvent,
|
154
|
+
OnResearchMovedEvent,
|
149
155
|
OnResearchReversedEvent,
|
150
156
|
OnResearchStartedEvent,
|
151
157
|
OnResourceDepletedEvent,
|
@@ -163,7 +169,15 @@ import type {
|
|
163
169
|
OnScriptPathRequestFinishedEvent,
|
164
170
|
OnScriptTriggerEffectEvent,
|
165
171
|
OnSectorScannedEvent,
|
172
|
+
OnSegmentEntityCreatedEvent,
|
166
173
|
OnSelectedEntityChangedEvent,
|
174
|
+
OnSpacePlatformBuiltEntityEvent,
|
175
|
+
OnSpacePlatformBuiltTileEvent,
|
176
|
+
OnSpacePlatformChangedStateEvent,
|
177
|
+
OnSpacePlatformMinedEntityEvent,
|
178
|
+
OnSpacePlatformMinedItemEvent,
|
179
|
+
OnSpacePlatformMinedTileEvent,
|
180
|
+
OnSpacePlatformPreMinedEvent,
|
167
181
|
OnSpiderCommandCompletedEvent,
|
168
182
|
OnStringTranslatedEvent,
|
169
183
|
OnSurfaceClearedEvent,
|
@@ -178,6 +192,7 @@ import type {
|
|
178
192
|
OnTrainScheduleChangedEvent,
|
179
193
|
OnTriggerCreatedEntityEvent,
|
180
194
|
OnTriggerFiredArtilleryEvent,
|
195
|
+
OnUndoAppliedEvent,
|
181
196
|
OnUnitAddedToGroupEvent,
|
182
197
|
OnUnitGroupCreatedEvent,
|
183
198
|
OnUnitGroupFinishedGatheringEvent,
|
@@ -193,19 +208,27 @@ import type {
|
|
193
208
|
declare global {
|
194
209
|
namespace defines {
|
195
210
|
enum alert_type {
|
211
|
+
"collector_path_blocked",
|
196
212
|
"custom",
|
197
213
|
"entity_destroyed",
|
198
214
|
"entity_under_attack",
|
199
215
|
"no_material_for_construction",
|
216
|
+
"no_platform_storage",
|
217
|
+
"no_roboport_storage",
|
200
218
|
"no_storage",
|
201
219
|
"not_enough_construction_robots",
|
202
220
|
"not_enough_repair_packs",
|
221
|
+
"pipeline_overextended",
|
222
|
+
"platform_tile_building_blocked",
|
223
|
+
"train_no_path",
|
203
224
|
"train_out_of_fuel",
|
204
225
|
"turret_fire",
|
226
|
+
"turret_out_of_ammo",
|
227
|
+
"unclaimed_cargo",
|
205
228
|
}
|
206
229
|
/**
|
207
230
|
* AI command exit status. See {@link LuaEntity#set_command LuaEntity::set_command}
|
208
|
-
* @see {@link https://lua-api.factorio.com/
|
231
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.behavior_result Online documentation}
|
209
232
|
*/
|
210
233
|
enum behavior_result {
|
211
234
|
"in_progress",
|
@@ -221,9 +244,14 @@ declare global {
|
|
221
244
|
"blueprint_ghost",
|
222
245
|
"ghost_revive",
|
223
246
|
}
|
247
|
+
enum build_mode {
|
248
|
+
"normal",
|
249
|
+
"forced",
|
250
|
+
"superforced",
|
251
|
+
}
|
224
252
|
/**
|
225
253
|
* State of a chain signal.
|
226
|
-
* @see {@link https://lua-api.factorio.com/
|
254
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.chain_signal_state Online documentation}
|
227
255
|
*/
|
228
256
|
enum chain_signal_state {
|
229
257
|
"none",
|
@@ -239,130 +267,97 @@ declare global {
|
|
239
267
|
"tiles",
|
240
268
|
"entities",
|
241
269
|
}
|
242
|
-
enum circuit_condition_index {
|
243
|
-
"inserter_circuit",
|
244
|
-
"inserter_logistic",
|
245
|
-
"lamp",
|
246
|
-
"arithmetic_combinator",
|
247
|
-
"decider_combinator",
|
248
|
-
"constant_combinator",
|
249
|
-
"offshore_pump",
|
250
|
-
"pump",
|
251
|
-
}
|
252
|
-
enum circuit_connector_id {
|
253
|
-
"accumulator",
|
254
|
-
"constant_combinator",
|
255
|
-
"container",
|
256
|
-
"linked_container",
|
257
|
-
"programmable_speaker",
|
258
|
-
"rail_signal",
|
259
|
-
"rail_chain_signal",
|
260
|
-
"roboport",
|
261
|
-
"storage_tank",
|
262
|
-
"wall",
|
263
|
-
"electric_pole",
|
264
|
-
"inserter",
|
265
|
-
"lamp",
|
266
|
-
"combinator_input",
|
267
|
-
"combinator_output",
|
268
|
-
"offshore_pump",
|
269
|
-
"pump",
|
270
|
-
}
|
271
270
|
/**
|
272
271
|
* Command given to units describing what they should do.
|
273
|
-
* @see {@link https://lua-api.factorio.com/
|
272
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.command Online documentation}
|
274
273
|
*/
|
275
274
|
enum command {
|
276
275
|
/**
|
277
276
|
* Attack another entity.
|
278
|
-
* @see {@link https://lua-api.factorio.com/
|
277
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.command.attack Online documentation}
|
279
278
|
*/
|
280
279
|
"attack" = 0,
|
281
280
|
/**
|
282
281
|
* Go to a specific position.
|
283
|
-
* @see {@link https://lua-api.factorio.com/
|
282
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.command.go_to_location Online documentation}
|
284
283
|
*/
|
285
284
|
"go_to_location" = 1,
|
286
285
|
/**
|
287
286
|
* Chain commands together, see {@link defines.compound_command}.
|
288
|
-
* @see {@link https://lua-api.factorio.com/
|
287
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.command.compound Online documentation}
|
289
288
|
*/
|
290
289
|
"compound" = 2,
|
291
290
|
/**
|
292
291
|
* Do what your group wants you to do.
|
293
|
-
* @see {@link https://lua-api.factorio.com/
|
292
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.command.group Online documentation}
|
294
293
|
*/
|
295
294
|
"group" = 3,
|
296
295
|
/**
|
297
296
|
* Go to a place and attack what you see.
|
298
|
-
* @see {@link https://lua-api.factorio.com/
|
297
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.command.attack_area Online documentation}
|
299
298
|
*/
|
300
299
|
"attack_area" = 4,
|
301
300
|
/**
|
302
301
|
* Chill.
|
303
|
-
* @see {@link https://lua-api.factorio.com/
|
302
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.command.wander Online documentation}
|
304
303
|
*/
|
305
304
|
"wander" = 5,
|
306
305
|
/**
|
307
306
|
* Flee from another entity.
|
308
|
-
* @see {@link https://lua-api.factorio.com/
|
307
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.command.flee Online documentation}
|
309
308
|
*/
|
310
309
|
"flee" = 6,
|
311
310
|
/**
|
312
311
|
* Stop moving and stay where you are.
|
313
|
-
* @see {@link https://lua-api.factorio.com/
|
312
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.command.stop Online documentation}
|
314
313
|
*/
|
315
314
|
"stop" = 7,
|
316
315
|
/**
|
317
316
|
* Go to a position and build a base there.
|
318
|
-
* @see {@link https://lua-api.factorio.com/
|
317
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.command.build_base Online documentation}
|
319
318
|
*/
|
320
319
|
"build_base" = 8,
|
321
320
|
}
|
322
321
|
/**
|
323
322
|
* How commands are joined together in a compound command (see {@link defines.command.compound}).
|
324
|
-
* @see {@link https://lua-api.factorio.com/
|
323
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.compound_command Online documentation}
|
325
324
|
*/
|
326
325
|
enum compound_command {
|
327
326
|
/**
|
328
327
|
* Fail on first failure. Only succeeds if all commands (executed one after another) succeed.
|
329
|
-
* @see {@link https://lua-api.factorio.com/
|
328
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.compound_command.logical_and Online documentation}
|
330
329
|
*/
|
331
330
|
"logical_and",
|
332
331
|
/**
|
333
332
|
* Succeed on first success. Only fails if all commands (executed one after another) fail.
|
334
|
-
* @see {@link https://lua-api.factorio.com/
|
333
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.compound_command.logical_or Online documentation}
|
335
334
|
*/
|
336
335
|
"logical_or",
|
337
336
|
/**
|
338
337
|
* Execute all commands in sequence and fail or succeed depending on the return status of the last command.
|
339
|
-
* @see {@link https://lua-api.factorio.com/
|
338
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.compound_command.return_last Online documentation}
|
340
339
|
*/
|
341
340
|
"return_last",
|
342
341
|
}
|
343
342
|
namespace control_behavior {
|
344
343
|
namespace inserter {
|
345
|
-
enum circuit_mode_of_operation {
|
346
|
-
"none",
|
347
|
-
"enable_disable",
|
348
|
-
"set_filters",
|
349
|
-
"read_hand_contents",
|
350
|
-
"set_stack_size",
|
351
|
-
}
|
352
344
|
enum hand_read_mode {
|
353
345
|
"hold",
|
354
346
|
"pulse",
|
355
347
|
}
|
356
348
|
}
|
357
349
|
namespace logistic_container {
|
358
|
-
enum
|
350
|
+
enum exclusive_mode {
|
359
351
|
"send_contents",
|
360
352
|
"set_requests",
|
353
|
+
"none",
|
361
354
|
}
|
362
355
|
}
|
363
356
|
namespace lamp {
|
364
|
-
enum
|
365
|
-
"
|
357
|
+
enum color_mode {
|
358
|
+
"color_mapping",
|
359
|
+
"components",
|
360
|
+
"packed_rgb",
|
366
361
|
}
|
367
362
|
}
|
368
363
|
namespace mining_drill {
|
@@ -375,132 +370,229 @@ declare global {
|
|
375
370
|
enum content_read_mode {
|
376
371
|
"pulse",
|
377
372
|
"hold",
|
373
|
+
"entire_belt_hold",
|
374
|
+
}
|
375
|
+
}
|
376
|
+
namespace rocket_silo {
|
377
|
+
enum read_mode {
|
378
|
+
"none",
|
379
|
+
"logistic_inventory",
|
380
|
+
"orbital_requests",
|
381
|
+
}
|
382
|
+
}
|
383
|
+
namespace roboport {
|
384
|
+
enum read_items_mode {
|
385
|
+
"none",
|
386
|
+
"logistics",
|
387
|
+
"missing_requests",
|
388
|
+
}
|
389
|
+
}
|
390
|
+
namespace cargo_landing_pad {
|
391
|
+
enum exclusive_mode {
|
392
|
+
"none",
|
393
|
+
"send_contents",
|
394
|
+
"set_requests",
|
378
395
|
}
|
379
396
|
}
|
380
397
|
enum type {
|
381
398
|
/**
|
382
399
|
* {@link LuaContainerControlBehavior}
|
383
|
-
* @see {@link https://lua-api.factorio.com/
|
400
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.control_behavior.type.container Online documentation}
|
384
401
|
*/
|
385
402
|
"container",
|
386
403
|
/**
|
387
404
|
* {@link LuaGenericOnOffControlBehavior}
|
388
|
-
* @see {@link https://lua-api.factorio.com/
|
405
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.control_behavior.type.generic_on_off Online documentation}
|
389
406
|
*/
|
390
407
|
"generic_on_off",
|
391
408
|
/**
|
392
409
|
* {@link LuaInserterControlBehavior}
|
393
|
-
* @see {@link https://lua-api.factorio.com/
|
410
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.control_behavior.type.inserter Online documentation}
|
394
411
|
*/
|
395
412
|
"inserter",
|
396
413
|
/**
|
397
414
|
* {@link LuaLampControlBehavior}
|
398
|
-
* @see {@link https://lua-api.factorio.com/
|
415
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.control_behavior.type.lamp Online documentation}
|
399
416
|
*/
|
400
417
|
"lamp",
|
401
418
|
/**
|
402
419
|
* {@link LuaLogisticContainerControlBehavior}
|
403
|
-
* @see {@link https://lua-api.factorio.com/
|
420
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.control_behavior.type.logistic_container Online documentation}
|
404
421
|
*/
|
405
422
|
"logistic_container",
|
406
423
|
/**
|
407
424
|
* {@link LuaRoboportControlBehavior}
|
408
|
-
* @see {@link https://lua-api.factorio.com/
|
425
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.control_behavior.type.roboport Online documentation}
|
409
426
|
*/
|
410
427
|
"roboport",
|
411
428
|
/**
|
412
429
|
* {@link LuaStorageTankControlBehavior}
|
413
|
-
* @see {@link https://lua-api.factorio.com/
|
430
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.control_behavior.type.storage_tank Online documentation}
|
414
431
|
*/
|
415
432
|
"storage_tank",
|
416
433
|
/**
|
417
434
|
* {@link LuaTrainStopControlBehavior}
|
418
|
-
* @see {@link https://lua-api.factorio.com/
|
435
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.control_behavior.type.train_stop Online documentation}
|
419
436
|
*/
|
420
437
|
"train_stop",
|
421
438
|
/**
|
422
439
|
* {@link LuaDeciderCombinatorControlBehavior}
|
423
|
-
* @see {@link https://lua-api.factorio.com/
|
440
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.control_behavior.type.decider_combinator Online documentation}
|
424
441
|
*/
|
425
442
|
"decider_combinator",
|
426
443
|
/**
|
427
444
|
* {@link LuaArithmeticCombinatorControlBehavior}
|
428
|
-
* @see {@link https://lua-api.factorio.com/
|
445
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.control_behavior.type.arithmetic_combinator Online documentation}
|
429
446
|
*/
|
430
447
|
"arithmetic_combinator",
|
431
448
|
/**
|
432
449
|
* {@link LuaConstantCombinatorControlBehavior}
|
433
|
-
* @see {@link https://lua-api.factorio.com/
|
450
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.control_behavior.type.constant_combinator Online documentation}
|
434
451
|
*/
|
435
452
|
"constant_combinator",
|
436
453
|
/**
|
437
454
|
* {@link LuaTransportBeltControlBehavior}
|
438
|
-
* @see {@link https://lua-api.factorio.com/
|
455
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.control_behavior.type.transport_belt Online documentation}
|
439
456
|
*/
|
440
457
|
"transport_belt",
|
441
458
|
/**
|
442
459
|
* {@link LuaAccumulatorControlBehavior}
|
443
|
-
* @see {@link https://lua-api.factorio.com/
|
460
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.control_behavior.type.accumulator Online documentation}
|
444
461
|
*/
|
445
462
|
"accumulator",
|
446
463
|
/**
|
447
|
-
* {@link
|
448
|
-
* @see {@link https://lua-api.factorio.com/
|
464
|
+
* {@link LuaRailSignalBaseControlBehavior}
|
465
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.control_behavior.type.rail_signal Online documentation}
|
449
466
|
*/
|
450
467
|
"rail_signal",
|
451
468
|
/**
|
452
|
-
* {@link
|
453
|
-
* @see {@link https://lua-api.factorio.com/
|
469
|
+
* {@link LuaRailSignalBaseControlBehavior}
|
470
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.control_behavior.type.rail_chain_signal Online documentation}
|
454
471
|
*/
|
455
472
|
"rail_chain_signal",
|
456
473
|
/**
|
457
474
|
* {@link LuaWallControlBehavior}
|
458
|
-
* @see {@link https://lua-api.factorio.com/
|
475
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.control_behavior.type.wall Online documentation}
|
459
476
|
*/
|
460
477
|
"wall",
|
461
478
|
/**
|
462
479
|
* {@link LuaMiningDrillControlBehavior}
|
463
|
-
* @see {@link https://lua-api.factorio.com/
|
480
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.control_behavior.type.mining_drill Online documentation}
|
464
481
|
*/
|
465
482
|
"mining_drill",
|
466
483
|
/**
|
467
484
|
* {@link LuaProgrammableSpeakerControlBehavior}
|
468
|
-
* @see {@link https://lua-api.factorio.com/
|
485
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.control_behavior.type.programmable_speaker Online documentation}
|
469
486
|
*/
|
470
487
|
"programmable_speaker",
|
488
|
+
/**
|
489
|
+
* {@link LuaAssemblingMachineControlBehavior}
|
490
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.control_behavior.type.assembling_machine Online documentation}
|
491
|
+
*/
|
492
|
+
"assembling_machine",
|
493
|
+
/**
|
494
|
+
* {@link LuaPumpControlBehavior}
|
495
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.control_behavior.type.pump Online documentation}
|
496
|
+
*/
|
497
|
+
"pump",
|
498
|
+
/**
|
499
|
+
* {@link LuaSelectorCombinatorControlBehavior}
|
500
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.control_behavior.type.selector_combinator Online documentation}
|
501
|
+
*/
|
502
|
+
"selector_combinator",
|
503
|
+
/**
|
504
|
+
* {@link LuaRocketSiloControlBehavior}
|
505
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.control_behavior.type.rocket_silo Online documentation}
|
506
|
+
*/
|
507
|
+
"rocket_silo",
|
508
|
+
/**
|
509
|
+
* {@link LuaTurretControlBehavior}
|
510
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.control_behavior.type.turret Online documentation}
|
511
|
+
*/
|
512
|
+
"turret",
|
513
|
+
/**
|
514
|
+
* {@link LuaReactorControlBehavior}
|
515
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.control_behavior.type.reactor Online documentation}
|
516
|
+
*/
|
517
|
+
"reactor",
|
518
|
+
/**
|
519
|
+
* {@link LuaSpacePlatformHubControlBehavior}
|
520
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.control_behavior.type.space_platform_hub Online documentation}
|
521
|
+
*/
|
522
|
+
"space_platform_hub",
|
523
|
+
/**
|
524
|
+
* {@link LuaArtilleryTurretControlBehavior}
|
525
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.control_behavior.type.artillery_turret Online documentation}
|
526
|
+
*/
|
527
|
+
"artillery_turret",
|
528
|
+
/**
|
529
|
+
* {@link LuaAsteroidCollectorControlBehavior}
|
530
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.control_behavior.type.asteroid_collector Online documentation}
|
531
|
+
*/
|
532
|
+
"asteroid_collector",
|
533
|
+
/**
|
534
|
+
* {@link LuaRadarControlBehavior}
|
535
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.control_behavior.type.radar Online documentation}
|
536
|
+
*/
|
537
|
+
"radar",
|
538
|
+
/**
|
539
|
+
* {@link LuaDisplayPanelControlBehavior}
|
540
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.control_behavior.type.display_panel Online documentation}
|
541
|
+
*/
|
542
|
+
"display_panel",
|
543
|
+
/**
|
544
|
+
* {@link LuaLoaderControlBehavior}
|
545
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.control_behavior.type.loader Online documentation}
|
546
|
+
*/
|
547
|
+
"loader",
|
548
|
+
/**
|
549
|
+
* {@link LuaCargoLandingPadControlBehavior}
|
550
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.control_behavior.type.cargo_landing_pad Online documentation}
|
551
|
+
*/
|
552
|
+
"cargo_landing_pad",
|
553
|
+
/**
|
554
|
+
* {@link LuaAgriculturalTowerControlBehavior}
|
555
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.control_behavior.type.agricultural_tower Online documentation}
|
556
|
+
*/
|
557
|
+
"agricultural_tower",
|
471
558
|
}
|
472
559
|
}
|
473
560
|
enum controllers {
|
474
561
|
/**
|
475
562
|
* Can't interact with the world, can only observe. Used in the multiplayer waiting-to-respawn screen.
|
476
|
-
* @see {@link https://lua-api.factorio.com/
|
563
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.controllers.ghost Online documentation}
|
477
564
|
*/
|
478
565
|
"ghost",
|
479
566
|
/**
|
480
567
|
* The controller controls a character. This is the default controller in freeplay.
|
481
|
-
* @see {@link https://lua-api.factorio.com/
|
568
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.controllers.character Online documentation}
|
482
569
|
*/
|
483
570
|
"character",
|
484
571
|
/**
|
485
572
|
* The controller isn't tied to a character. This is the default controller in sandbox.
|
486
|
-
* @see {@link https://lua-api.factorio.com/
|
573
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.controllers.god Online documentation}
|
487
574
|
*/
|
488
575
|
"god",
|
489
576
|
/**
|
490
577
|
* The Editor Controller near ultimate power to do almost anything in the game.
|
491
|
-
* @see {@link https://lua-api.factorio.com/
|
578
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.controllers.editor Online documentation}
|
492
579
|
*/
|
493
580
|
"editor",
|
494
581
|
/**
|
495
582
|
* The player can't interact with the world, and the camera pans around in a predefined manner.
|
496
|
-
* @see {@link https://lua-api.factorio.com/
|
583
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.controllers.cutscene Online documentation}
|
497
584
|
*/
|
498
585
|
"cutscene",
|
499
586
|
/**
|
500
587
|
* Can't change anything in the world but can view anything.
|
501
|
-
* @see {@link https://lua-api.factorio.com/
|
588
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.controllers.spectator Online documentation}
|
502
589
|
*/
|
503
590
|
"spectator",
|
591
|
+
/**
|
592
|
+
* Can't move/change items but can build ghosts/change settings.
|
593
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.controllers.remote Online documentation}
|
594
|
+
*/
|
595
|
+
"remote",
|
504
596
|
}
|
505
597
|
namespace deconstruction_item {
|
506
598
|
enum entity_filter_mode {
|
@@ -518,30 +610,31 @@ declare global {
|
|
518
610
|
"only",
|
519
611
|
}
|
520
612
|
}
|
613
|
+
// See https://forums.factorio.com/viewtopic.php?f=233&t=118305
|
614
|
+
/** @omit */
|
615
|
+
enum default_icon_size {}
|
521
616
|
enum difficulty {
|
522
617
|
"easy",
|
523
618
|
"normal",
|
524
619
|
"hard",
|
525
620
|
}
|
526
|
-
namespace difficulty_settings {
|
527
|
-
enum recipe_difficulty {
|
528
|
-
"normal",
|
529
|
-
"expensive",
|
530
|
-
}
|
531
|
-
enum technology_difficulty {
|
532
|
-
"normal",
|
533
|
-
"expensive",
|
534
|
-
}
|
535
|
-
}
|
536
621
|
enum direction {
|
537
622
|
"north" = 0,
|
538
|
-
"
|
539
|
-
"
|
540
|
-
"
|
541
|
-
"
|
542
|
-
"
|
543
|
-
"
|
544
|
-
"
|
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,
|
545
638
|
}
|
546
639
|
enum disconnect_reason {
|
547
640
|
"quit",
|
@@ -559,212 +652,327 @@ declare global {
|
|
559
652
|
enum distraction {
|
560
653
|
/**
|
561
654
|
* Perform command even if someone attacks the unit.
|
562
|
-
* @see {@link https://lua-api.factorio.com/
|
655
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.distraction.none Online documentation}
|
563
656
|
*/
|
564
657
|
"none",
|
565
658
|
/**
|
566
659
|
* Attack closer enemy entities with force.
|
567
|
-
* @see {@link https://lua-api.factorio.com/
|
660
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.distraction.by_enemy Online documentation}
|
568
661
|
*/
|
569
662
|
"by_enemy",
|
570
663
|
/**
|
571
664
|
* Attack closer enemy entities, including entities "built" by player (belts, inserters, chests).
|
572
|
-
* @see {@link https://lua-api.factorio.com/
|
665
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.distraction.by_anything Online documentation}
|
573
666
|
*/
|
574
667
|
"by_anything",
|
575
668
|
/**
|
576
669
|
* Attack when attacked.
|
577
|
-
* @see {@link https://lua-api.factorio.com/
|
670
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.distraction.by_damage Online documentation}
|
578
671
|
*/
|
579
672
|
"by_damage",
|
580
673
|
}
|
581
674
|
enum entity_status {
|
582
675
|
"working",
|
583
676
|
"normal",
|
677
|
+
/**
|
678
|
+
* Used by ghosts.
|
679
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.entity_status.ghost Online documentation}
|
680
|
+
*/
|
681
|
+
"ghost",
|
682
|
+
/**
|
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.12/defines.html#defines.entity_status.broken Online documentation}
|
685
|
+
*/
|
686
|
+
"broken",
|
584
687
|
"no_power",
|
585
688
|
"low_power",
|
586
689
|
"no_fuel",
|
690
|
+
"frozen",
|
587
691
|
"disabled_by_control_behavior",
|
588
692
|
"opened_by_circuit_network",
|
589
693
|
"closed_by_circuit_network",
|
590
694
|
"disabled_by_script",
|
591
695
|
"marked_for_deconstruction",
|
696
|
+
/**
|
697
|
+
* Used by space platform hubs.
|
698
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.entity_status.paused Online documentation}
|
699
|
+
*/
|
700
|
+
"paused",
|
592
701
|
/**
|
593
702
|
* Used by generators and solar panels.
|
594
|
-
* @see {@link https://lua-api.factorio.com/
|
703
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.entity_status.not_plugged_in_electric_network Online documentation}
|
595
704
|
*/
|
596
705
|
"not_plugged_in_electric_network",
|
597
706
|
/**
|
598
707
|
* Used by power switches.
|
599
|
-
* @see {@link https://lua-api.factorio.com/
|
708
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.entity_status.networks_connected Online documentation}
|
600
709
|
*/
|
601
710
|
"networks_connected",
|
602
711
|
/**
|
603
712
|
* Used by power switches.
|
604
|
-
* @see {@link https://lua-api.factorio.com/
|
713
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.entity_status.networks_disconnected Online documentation}
|
605
714
|
*/
|
606
715
|
"networks_disconnected",
|
607
716
|
/**
|
608
717
|
* Used by accumulators.
|
609
|
-
* @see {@link https://lua-api.factorio.com/
|
718
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.entity_status.charging Online documentation}
|
610
719
|
*/
|
611
720
|
"charging",
|
612
721
|
/**
|
613
722
|
* Used by accumulators.
|
614
|
-
* @see {@link https://lua-api.factorio.com/
|
723
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.entity_status.discharging Online documentation}
|
615
724
|
*/
|
616
725
|
"discharging",
|
617
726
|
/**
|
618
727
|
* Used by accumulators.
|
619
|
-
* @see {@link https://lua-api.factorio.com/
|
728
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.entity_status.fully_charged Online documentation}
|
620
729
|
*/
|
621
730
|
"fully_charged",
|
622
731
|
/**
|
623
732
|
* Used by logistic containers.
|
624
|
-
* @see {@link https://lua-api.factorio.com/
|
733
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.entity_status.out_of_logistic_network Online documentation}
|
625
734
|
*/
|
626
735
|
"out_of_logistic_network",
|
627
736
|
/**
|
628
737
|
* Used by assembling machines.
|
629
|
-
* @see {@link https://lua-api.factorio.com/
|
738
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.entity_status.no_recipe Online documentation}
|
630
739
|
*/
|
631
740
|
"no_recipe",
|
632
741
|
/**
|
633
742
|
* Used by furnaces.
|
634
|
-
* @see {@link https://lua-api.factorio.com/
|
743
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.entity_status.no_ingredients Online documentation}
|
635
744
|
*/
|
636
745
|
"no_ingredients",
|
637
746
|
/**
|
638
747
|
* Used by boilers, fluid turrets and fluid energy sources: Boiler has no fluid to work with.
|
639
|
-
* @see {@link https://lua-api.factorio.com/
|
748
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.entity_status.no_input_fluid Online documentation}
|
640
749
|
*/
|
641
750
|
"no_input_fluid",
|
642
751
|
/**
|
643
752
|
* Used by labs.
|
644
|
-
* @see {@link https://lua-api.factorio.com/
|
753
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.entity_status.no_research_in_progress Online documentation}
|
645
754
|
*/
|
646
755
|
"no_research_in_progress",
|
647
756
|
/**
|
648
757
|
* Used by mining drills.
|
649
|
-
* @see {@link https://lua-api.factorio.com/
|
758
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.entity_status.no_minable_resources Online documentation}
|
650
759
|
*/
|
651
760
|
"no_minable_resources",
|
761
|
+
/**
|
762
|
+
* Used by cargo bays.
|
763
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.entity_status.not_connected_to_hub_or_pad Online documentation}
|
764
|
+
*/
|
765
|
+
"not_connected_to_hub_or_pad",
|
652
766
|
/**
|
653
767
|
* Used by boilers and fluid turrets: Boiler still has some fluid but is about to run out.
|
654
|
-
* @see {@link https://lua-api.factorio.com/
|
768
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.entity_status.low_input_fluid Online documentation}
|
655
769
|
*/
|
656
770
|
"low_input_fluid",
|
657
771
|
/**
|
658
772
|
* Used by crafting machines.
|
659
|
-
* @see {@link https://lua-api.factorio.com/
|
773
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.entity_status.fluid_ingredient_shortage Online documentation}
|
660
774
|
*/
|
661
775
|
"fluid_ingredient_shortage",
|
662
776
|
/**
|
663
777
|
* Used by crafting machines, boilers, burner energy sources and reactors: Reactor/burner has full burnt result inventory, boiler has full output fluidbox.
|
664
|
-
* @see {@link https://lua-api.factorio.com/
|
778
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.entity_status.full_output Online documentation}
|
665
779
|
*/
|
666
780
|
"full_output",
|
781
|
+
/**
|
782
|
+
* Used by agricultural towers.
|
783
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.entity_status.not_enough_space_in_output Online documentation}
|
784
|
+
*/
|
785
|
+
"not_enough_space_in_output",
|
667
786
|
/**
|
668
787
|
* Used by burner energy sources.
|
669
|
-
* @see {@link https://lua-api.factorio.com/
|
788
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.entity_status.full_burnt_result_output Online documentation}
|
670
789
|
*/
|
671
790
|
"full_burnt_result_output",
|
672
791
|
/**
|
673
792
|
* Used by crafting machines.
|
674
|
-
* @see {@link https://lua-api.factorio.com/
|
793
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.entity_status.item_ingredient_shortage Online documentation}
|
675
794
|
*/
|
676
795
|
"item_ingredient_shortage",
|
677
796
|
/**
|
678
797
|
* Used by mining drills when the mining fluid is missing.
|
679
|
-
* @see {@link https://lua-api.factorio.com/
|
798
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.entity_status.missing_required_fluid Online documentation}
|
680
799
|
*/
|
681
800
|
"missing_required_fluid",
|
682
801
|
/**
|
683
802
|
* Used by labs.
|
684
|
-
* @see {@link https://lua-api.factorio.com/
|
803
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.entity_status.missing_science_packs Online documentation}
|
685
804
|
*/
|
686
805
|
"missing_science_packs",
|
687
806
|
/**
|
688
807
|
* Used by inserters.
|
689
|
-
* @see {@link https://lua-api.factorio.com/
|
808
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.entity_status.waiting_for_source_items Online documentation}
|
690
809
|
*/
|
691
810
|
"waiting_for_source_items",
|
811
|
+
/**
|
812
|
+
* Used by inserters when wait_for_full_hand is set.
|
813
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.entity_status.waiting_for_more_items Online documentation}
|
814
|
+
*/
|
815
|
+
"waiting_for_more_items",
|
692
816
|
/**
|
693
817
|
* Used by inserters and mining drills.
|
694
|
-
* @see {@link https://lua-api.factorio.com/
|
818
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.entity_status.waiting_for_space_in_destination Online documentation}
|
695
819
|
*/
|
696
820
|
"waiting_for_space_in_destination",
|
697
821
|
/**
|
698
822
|
* Used by the rocket silo.
|
699
|
-
* @see {@link https://lua-api.factorio.com/
|
823
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.entity_status.preparing_rocket_for_launch Online documentation}
|
700
824
|
*/
|
701
825
|
"preparing_rocket_for_launch",
|
702
826
|
/**
|
703
827
|
* Used by the rocket silo.
|
704
|
-
* @see {@link https://lua-api.factorio.com/
|
828
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.entity_status.waiting_to_launch_rocket Online documentation}
|
705
829
|
*/
|
706
830
|
"waiting_to_launch_rocket",
|
707
831
|
/**
|
708
832
|
* Used by the rocket silo.
|
709
|
-
* @see {@link https://lua-api.factorio.com/
|
833
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.entity_status.waiting_for_space_in_platform_hub Online documentation}
|
834
|
+
*/
|
835
|
+
"waiting_for_space_in_platform_hub",
|
836
|
+
/**
|
837
|
+
* Used by the rocket silo.
|
838
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.entity_status.launching_rocket Online documentation}
|
710
839
|
*/
|
711
840
|
"launching_rocket",
|
841
|
+
/**
|
842
|
+
* Used by thrusters.
|
843
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.entity_status.thrust_not_required Online documentation}
|
844
|
+
*/
|
845
|
+
"thrust_not_required",
|
846
|
+
/**
|
847
|
+
* Used by space platform hubs.
|
848
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.entity_status.on_the_way Online documentation}
|
849
|
+
*/
|
850
|
+
"on_the_way",
|
851
|
+
/**
|
852
|
+
* Used by space platform hubs.
|
853
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.entity_status.waiting_in_orbit Online documentation}
|
854
|
+
*/
|
855
|
+
"waiting_in_orbit",
|
856
|
+
/**
|
857
|
+
* Used by trains.
|
858
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.entity_status.waiting_at_stop Online documentation}
|
859
|
+
*/
|
860
|
+
"waiting_at_stop",
|
861
|
+
/**
|
862
|
+
* Used by space platform hubs.
|
863
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.entity_status.waiting_for_rockets_to_arrive Online documentation}
|
864
|
+
*/
|
865
|
+
"waiting_for_rockets_to_arrive",
|
866
|
+
/**
|
867
|
+
* Used by space platform hubs.
|
868
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.entity_status.not_enough_thrust Online documentation}
|
869
|
+
*/
|
870
|
+
"not_enough_thrust",
|
871
|
+
/**
|
872
|
+
* Used by trains.
|
873
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.entity_status.destination_stop_full Online documentation}
|
874
|
+
*/
|
875
|
+
"destination_stop_full",
|
876
|
+
/**
|
877
|
+
* Used by trains and space platform hubs.
|
878
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.entity_status.no_path Online documentation}
|
879
|
+
*/
|
880
|
+
"no_path",
|
712
881
|
/**
|
713
882
|
* Used by beacons.
|
714
|
-
* @see {@link https://lua-api.factorio.com/
|
883
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.entity_status.no_modules_to_transmit Online documentation}
|
715
884
|
*/
|
716
885
|
"no_modules_to_transmit",
|
717
886
|
/**
|
718
887
|
* Used by roboports.
|
719
|
-
* @see {@link https://lua-api.factorio.com/
|
888
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.entity_status.recharging_after_power_outage Online documentation}
|
720
889
|
*/
|
721
890
|
"recharging_after_power_outage",
|
722
891
|
/**
|
723
892
|
* Used by inserters targeting entity ghosts.
|
724
|
-
* @see {@link https://lua-api.factorio.com/
|
893
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.entity_status.waiting_for_target_to_be_built Online documentation}
|
725
894
|
*/
|
726
895
|
"waiting_for_target_to_be_built",
|
727
896
|
/**
|
728
897
|
* Used by inserters targeting rails.
|
729
|
-
* @see {@link https://lua-api.factorio.com/
|
898
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.entity_status.waiting_for_train Online documentation}
|
730
899
|
*/
|
731
900
|
"waiting_for_train",
|
732
901
|
/**
|
733
902
|
* Used by ammo turrets.
|
734
|
-
* @see {@link https://lua-api.factorio.com/
|
903
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.entity_status.no_ammo Online documentation}
|
735
904
|
*/
|
736
905
|
"no_ammo",
|
737
906
|
/**
|
738
907
|
* Used by heat energy sources.
|
739
|
-
* @see {@link https://lua-api.factorio.com/
|
908
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.entity_status.low_temperature Online documentation}
|
740
909
|
*/
|
741
910
|
"low_temperature",
|
742
911
|
/**
|
743
912
|
* Used by constant combinators: Combinator is turned off via switch in GUI.
|
744
|
-
* @see {@link https://lua-api.factorio.com/
|
913
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.entity_status.disabled Online documentation}
|
745
914
|
*/
|
746
915
|
"disabled",
|
747
916
|
/**
|
748
917
|
* Used by lamps.
|
749
|
-
* @see {@link https://lua-api.factorio.com/
|
918
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.entity_status.turned_off_during_daytime Online documentation}
|
750
919
|
*/
|
751
920
|
"turned_off_during_daytime",
|
752
921
|
/**
|
753
922
|
* Used by rail signals.
|
754
|
-
* @see {@link https://lua-api.factorio.com/
|
923
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.entity_status.not_connected_to_rail Online documentation}
|
755
924
|
*/
|
756
925
|
"not_connected_to_rail",
|
757
926
|
/**
|
758
927
|
* Used by rail signals.
|
759
|
-
* @see {@link https://lua-api.factorio.com/
|
928
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.entity_status.cant_divide_segments Online documentation}
|
760
929
|
*/
|
761
930
|
"cant_divide_segments",
|
931
|
+
/**
|
932
|
+
* Used by filter inserters.
|
933
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.entity_status.no_filter Online documentation}
|
934
|
+
*/
|
935
|
+
"no_filter",
|
936
|
+
/**
|
937
|
+
* Used by agricultural towers.
|
938
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.entity_status.no_spot_seedable_by_inputs Online documentation}
|
939
|
+
*/
|
940
|
+
"no_spot_seedable_by_inputs",
|
941
|
+
/**
|
942
|
+
* Used by agricultural towers.
|
943
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.entity_status.waiting_for_plants_to_grow Online documentation}
|
944
|
+
*/
|
945
|
+
"waiting_for_plants_to_grow",
|
946
|
+
/**
|
947
|
+
* Used by asteroid collectors.
|
948
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.entity_status.computing_navigation Online documentation}
|
949
|
+
*/
|
950
|
+
"computing_navigation",
|
951
|
+
/**
|
952
|
+
* Used by pipes, pipes to ground and storage tanks.
|
953
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.entity_status.pipeline_overextended Online documentation}
|
954
|
+
*/
|
955
|
+
"pipeline_overextended",
|
956
|
+
/**
|
957
|
+
* Used by assembling machines.
|
958
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.entity_status.recipe_not_researched Online documentation}
|
959
|
+
*/
|
960
|
+
"recipe_not_researched",
|
961
|
+
}
|
962
|
+
enum entity_status_diode {
|
963
|
+
"green",
|
964
|
+
"red",
|
965
|
+
"yellow",
|
762
966
|
}
|
763
967
|
/**
|
764
|
-
* See the {@linkplain https://lua-api.factorio.com/
|
765
|
-
* @see {@link https://lua-api.factorio.com/
|
968
|
+
* See the {@linkplain https://lua-api.factorio.com/2.0.12/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.12/defines.html#defines.events Online documentation}
|
766
970
|
*/
|
767
971
|
namespace events {
|
972
|
+
/**
|
973
|
+
* Event type: {@link OnAchievementGainedEvent}
|
974
|
+
*/
|
975
|
+
const on_achievement_gained: EventId<OnAchievementGainedEvent>
|
768
976
|
/**
|
769
977
|
* Event type: {@link OnAiCommandCompletedEvent}
|
770
978
|
*/
|
@@ -853,10 +1061,6 @@ declare global {
|
|
853
1061
|
* Event type: {@link OnCutsceneWaypointReachedEvent}
|
854
1062
|
*/
|
855
1063
|
const on_cutscene_waypoint_reached: EventId<OnCutsceneWaypointReachedEvent>
|
856
|
-
/**
|
857
|
-
* Event type: {@link OnDifficultySettingsChangedEvent}
|
858
|
-
*/
|
859
|
-
const on_difficulty_settings_changed: EventId<OnDifficultySettingsChangedEvent>
|
860
1064
|
/**
|
861
1065
|
* Event type: {@link OnEntityClonedEvent}
|
862
1066
|
*/
|
@@ -869,10 +1073,6 @@ declare global {
|
|
869
1073
|
* Event type: {@link OnEntityDamagedEvent}
|
870
1074
|
*/
|
871
1075
|
const on_entity_damaged: EventId<OnEntityDamagedEvent>
|
872
|
-
/**
|
873
|
-
* Event type: {@link OnEntityDestroyedEvent}
|
874
|
-
*/
|
875
|
-
const on_entity_destroyed: EventId<OnEntityDestroyedEvent>
|
876
1076
|
/**
|
877
1077
|
* Event type: {@link OnEntityDiedEvent}
|
878
1078
|
*/
|
@@ -1009,6 +1209,10 @@ declare global {
|
|
1009
1209
|
* Event type: {@link OnModItemOpenedEvent}
|
1010
1210
|
*/
|
1011
1211
|
const on_mod_item_opened: EventId<OnModItemOpenedEvent>
|
1212
|
+
/**
|
1213
|
+
* Event type: {@link OnObjectDestroyedEvent}
|
1214
|
+
*/
|
1215
|
+
const on_object_destroyed: EventId<OnObjectDestroyedEvent>
|
1012
1216
|
/**
|
1013
1217
|
* Event type: {@link OnPermissionGroupAddedEvent}
|
1014
1218
|
*/
|
@@ -1086,9 +1290,9 @@ declare global {
|
|
1086
1290
|
*/
|
1087
1291
|
const on_player_configured_blueprint: EventId<OnPlayerConfiguredBlueprintEvent>
|
1088
1292
|
/**
|
1089
|
-
* Event type: {@link
|
1293
|
+
* Event type: {@link OnPlayerControllerChangedEvent}
|
1090
1294
|
*/
|
1091
|
-
const
|
1295
|
+
const on_player_controller_changed: EventId<OnPlayerControllerChangedEvent>
|
1092
1296
|
/**
|
1093
1297
|
* Event type: {@link OnPlayerCraftedItemEvent}
|
1094
1298
|
*/
|
@@ -1113,6 +1317,10 @@ declare global {
|
|
1113
1317
|
* Event type: {@link OnPlayerDiedEvent}
|
1114
1318
|
*/
|
1115
1319
|
const on_player_died: EventId<OnPlayerDiedEvent>
|
1320
|
+
/**
|
1321
|
+
* Event type: {@link OnPlayerDisplayDensityScaleChangedEvent}
|
1322
|
+
*/
|
1323
|
+
const on_player_display_density_scale_changed: EventId<OnPlayerDisplayDensityScaleChangedEvent>
|
1116
1324
|
/**
|
1117
1325
|
* Event type: {@link OnPlayerDisplayResolutionChangedEvent}
|
1118
1326
|
*/
|
@@ -1133,6 +1341,10 @@ declare global {
|
|
1133
1341
|
* Event type: {@link OnPlayerFastTransferredEvent}
|
1134
1342
|
*/
|
1135
1343
|
const on_player_fast_transferred: EventId<OnPlayerFastTransferredEvent>
|
1344
|
+
/**
|
1345
|
+
* Event type: {@link OnPlayerFlippedEntityEvent}
|
1346
|
+
*/
|
1347
|
+
const on_player_flipped_entity: EventId<OnPlayerFlippedEntityEvent>
|
1136
1348
|
/**
|
1137
1349
|
* Event type: {@link OnPlayerFlushedFluidEvent}
|
1138
1350
|
*/
|
@@ -1157,6 +1369,10 @@ declare global {
|
|
1157
1369
|
* Event type: {@link OnPlayerLeftGameEvent}
|
1158
1370
|
*/
|
1159
1371
|
const on_player_left_game: EventId<OnPlayerLeftGameEvent>
|
1372
|
+
/**
|
1373
|
+
* Event type: {@link OnPlayerLocaleChangedEvent}
|
1374
|
+
*/
|
1375
|
+
const on_player_locale_changed: EventId<OnPlayerLocaleChangedEvent>
|
1160
1376
|
/**
|
1161
1377
|
* Event type: {@link OnPlayerMainInventoryChangedEvent}
|
1162
1378
|
*/
|
@@ -1250,9 +1466,9 @@ declare global {
|
|
1250
1466
|
*/
|
1251
1467
|
const on_player_used_capsule: EventId<OnPlayerUsedCapsuleEvent>
|
1252
1468
|
/**
|
1253
|
-
* Event type: {@link
|
1469
|
+
* Event type: {@link OnPlayerUsedSpidertronRemoteEvent}
|
1254
1470
|
*/
|
1255
|
-
const
|
1471
|
+
const on_player_used_spidertron_remote: EventId<OnPlayerUsedSpidertronRemoteEvent>
|
1256
1472
|
/**
|
1257
1473
|
* Event type: {@link OnPostEntityDiedEvent}
|
1258
1474
|
*/
|
@@ -1313,6 +1529,10 @@ declare global {
|
|
1313
1529
|
* Event type: {@link OnPreRobotExplodedCliffEvent}
|
1314
1530
|
*/
|
1315
1531
|
const on_pre_robot_exploded_cliff: EventId<OnPreRobotExplodedCliffEvent>
|
1532
|
+
/**
|
1533
|
+
* Event type: {@link OnPreScenarioFinishedEvent}
|
1534
|
+
*/
|
1535
|
+
const on_pre_scenario_finished: EventId<OnPreScenarioFinishedEvent>
|
1316
1536
|
/**
|
1317
1537
|
* Event type: {@link OnPreScriptInventoryResizedEvent}
|
1318
1538
|
*/
|
@@ -1325,6 +1545,10 @@ declare global {
|
|
1325
1545
|
* Event type: {@link OnPreSurfaceDeletedEvent}
|
1326
1546
|
*/
|
1327
1547
|
const on_pre_surface_deleted: EventId<OnPreSurfaceDeletedEvent>
|
1548
|
+
/**
|
1549
|
+
* Event type: {@link OnRedoAppliedEvent}
|
1550
|
+
*/
|
1551
|
+
const on_redo_applied: EventId<OnRedoAppliedEvent>
|
1328
1552
|
/**
|
1329
1553
|
* Event type: {@link OnResearchCancelledEvent}
|
1330
1554
|
*/
|
@@ -1333,6 +1557,10 @@ declare global {
|
|
1333
1557
|
* Event type: {@link OnResearchFinishedEvent}
|
1334
1558
|
*/
|
1335
1559
|
const on_research_finished: EventId<OnResearchFinishedEvent>
|
1560
|
+
/**
|
1561
|
+
* Event type: {@link OnResearchMovedEvent}
|
1562
|
+
*/
|
1563
|
+
const on_research_moved: EventId<OnResearchMovedEvent>
|
1336
1564
|
/**
|
1337
1565
|
* Event type: {@link OnResearchReversedEvent}
|
1338
1566
|
*/
|
@@ -1401,10 +1629,42 @@ declare global {
|
|
1401
1629
|
* Event type: {@link OnSectorScannedEvent}
|
1402
1630
|
*/
|
1403
1631
|
const on_sector_scanned: EventId<OnSectorScannedEvent>
|
1632
|
+
/**
|
1633
|
+
* Event type: {@link OnSegmentEntityCreatedEvent}
|
1634
|
+
*/
|
1635
|
+
const on_segment_entity_created: EventId<OnSegmentEntityCreatedEvent>
|
1404
1636
|
/**
|
1405
1637
|
* Event type: {@link OnSelectedEntityChangedEvent}
|
1406
1638
|
*/
|
1407
1639
|
const on_selected_entity_changed: EventId<OnSelectedEntityChangedEvent>
|
1640
|
+
/**
|
1641
|
+
* Event type: {@link OnSpacePlatformBuiltEntityEvent}
|
1642
|
+
*/
|
1643
|
+
const on_space_platform_built_entity: EventId<OnSpacePlatformBuiltEntityEvent>
|
1644
|
+
/**
|
1645
|
+
* Event type: {@link OnSpacePlatformBuiltTileEvent}
|
1646
|
+
*/
|
1647
|
+
const on_space_platform_built_tile: EventId<OnSpacePlatformBuiltTileEvent>
|
1648
|
+
/**
|
1649
|
+
* Event type: {@link OnSpacePlatformChangedStateEvent}
|
1650
|
+
*/
|
1651
|
+
const on_space_platform_changed_state: EventId<OnSpacePlatformChangedStateEvent>
|
1652
|
+
/**
|
1653
|
+
* Event type: {@link OnSpacePlatformMinedEntityEvent}
|
1654
|
+
*/
|
1655
|
+
const on_space_platform_mined_entity: EventId<OnSpacePlatformMinedEntityEvent>
|
1656
|
+
/**
|
1657
|
+
* Event type: {@link OnSpacePlatformMinedItemEvent}
|
1658
|
+
*/
|
1659
|
+
const on_space_platform_mined_item: EventId<OnSpacePlatformMinedItemEvent>
|
1660
|
+
/**
|
1661
|
+
* Event type: {@link OnSpacePlatformMinedTileEvent}
|
1662
|
+
*/
|
1663
|
+
const on_space_platform_mined_tile: EventId<OnSpacePlatformMinedTileEvent>
|
1664
|
+
/**
|
1665
|
+
* Event type: {@link OnSpacePlatformPreMinedEvent}
|
1666
|
+
*/
|
1667
|
+
const on_space_platform_pre_mined: EventId<OnSpacePlatformPreMinedEvent>
|
1408
1668
|
/**
|
1409
1669
|
* Event type: {@link OnSpiderCommandCompletedEvent}
|
1410
1670
|
*/
|
@@ -1461,6 +1721,10 @@ declare global {
|
|
1461
1721
|
* Event type: {@link OnTriggerFiredArtilleryEvent}
|
1462
1722
|
*/
|
1463
1723
|
const on_trigger_fired_artillery: EventId<OnTriggerFiredArtilleryEvent>
|
1724
|
+
/**
|
1725
|
+
* Event type: {@link OnUndoAppliedEvent}
|
1726
|
+
*/
|
1727
|
+
const on_undo_applied: EventId<OnUndoAppliedEvent>
|
1464
1728
|
/**
|
1465
1729
|
* Event type: {@link OnUnitAddedToGroupEvent}
|
1466
1730
|
*/
|
@@ -1503,8 +1767,8 @@ declare global {
|
|
1503
1767
|
const script_raised_teleported: EventId<ScriptRaisedTeleportedEvent>
|
1504
1768
|
}
|
1505
1769
|
/**
|
1506
|
-
* See the {@linkplain https://lua-api.factorio.com/
|
1507
|
-
* @see {@link https://lua-api.factorio.com/
|
1770
|
+
* See the {@linkplain https://lua-api.factorio.com/2.0.12/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.12/defines.html#defines.events Online documentation}
|
1508
1772
|
*/
|
1509
1773
|
type events = (typeof events)[keyof typeof events]
|
1510
1774
|
enum flow_precision_index {
|
@@ -1520,17 +1784,17 @@ declare global {
|
|
1520
1784
|
enum game_controller_interaction {
|
1521
1785
|
/**
|
1522
1786
|
* Game controller will always hover this element regardless of type or state.
|
1523
|
-
* @see {@link https://lua-api.factorio.com/
|
1787
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.game_controller_interaction.always Online documentation}
|
1524
1788
|
*/
|
1525
1789
|
"always",
|
1526
1790
|
/**
|
1527
1791
|
* Never hover this element with a game controller.
|
1528
|
-
* @see {@link https://lua-api.factorio.com/
|
1792
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.game_controller_interaction.never Online documentation}
|
1529
1793
|
*/
|
1530
1794
|
"never",
|
1531
1795
|
/**
|
1532
1796
|
* Hover according to the element type and implementation.
|
1533
|
-
* @see {@link https://lua-api.factorio.com/
|
1797
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.game_controller_interaction.normal Online documentation}
|
1534
1798
|
*/
|
1535
1799
|
"normal",
|
1536
1800
|
}
|
@@ -1551,26 +1815,31 @@ declare global {
|
|
1551
1815
|
"custom",
|
1552
1816
|
"entity",
|
1553
1817
|
"equipment",
|
1818
|
+
"global_electric_network",
|
1554
1819
|
"item",
|
1555
1820
|
"logistic",
|
1556
1821
|
"none",
|
1822
|
+
"opened_entity_grid",
|
1557
1823
|
"other_player",
|
1558
1824
|
"permissions",
|
1559
1825
|
"player_management",
|
1560
1826
|
"production",
|
1561
|
-
"research",
|
1562
1827
|
"script_inventory",
|
1563
1828
|
"server_management",
|
1564
1829
|
"tile",
|
1565
1830
|
"trains",
|
1566
|
-
"tutorials",
|
1567
1831
|
}
|
1568
1832
|
enum input_action {
|
1569
|
-
"
|
1570
|
-
"activate_cut",
|
1833
|
+
"activate_interrupt",
|
1571
1834
|
"activate_paste",
|
1835
|
+
"add_decider_combinator_condition",
|
1836
|
+
"add_decider_combinator_output",
|
1837
|
+
"add_logistic_section",
|
1572
1838
|
"add_permission_group",
|
1839
|
+
"add_pin",
|
1840
|
+
"add_train_interrupt",
|
1573
1841
|
"add_train_station",
|
1842
|
+
"adjust_blueprint_snapping",
|
1574
1843
|
"admin_action",
|
1575
1844
|
"alt_reverse_select_area",
|
1576
1845
|
"alt_select_area",
|
@@ -1583,6 +1852,7 @@ declare global {
|
|
1583
1852
|
"build_terrain",
|
1584
1853
|
"cancel_craft",
|
1585
1854
|
"cancel_deconstruct",
|
1855
|
+
"cancel_delete_space_platform",
|
1586
1856
|
"cancel_new_blueprint",
|
1587
1857
|
"cancel_research",
|
1588
1858
|
"cancel_upgrade",
|
@@ -1591,17 +1861,18 @@ declare global {
|
|
1591
1861
|
"change_active_item_group_for_filters",
|
1592
1862
|
"change_active_quick_bar",
|
1593
1863
|
"change_arithmetic_combinator_parameters",
|
1594
|
-
"change_decider_combinator_parameters",
|
1595
1864
|
"change_entity_label",
|
1596
|
-
"change_item_description",
|
1597
1865
|
"change_item_label",
|
1866
|
+
"change_logistic_point_group",
|
1598
1867
|
"change_multiplayer_config",
|
1599
1868
|
"change_picking_state",
|
1600
1869
|
"change_programmable_speaker_alert_parameters",
|
1601
1870
|
"change_programmable_speaker_circuit_parameters",
|
1602
1871
|
"change_programmable_speaker_parameters",
|
1603
1872
|
"change_riding_state",
|
1873
|
+
"change_selector_combinator_parameters",
|
1604
1874
|
"change_shooting_state",
|
1875
|
+
"change_train_name",
|
1605
1876
|
"change_train_stop_station",
|
1606
1877
|
"change_train_wait_condition",
|
1607
1878
|
"change_train_wait_condition_data",
|
@@ -1609,32 +1880,51 @@ declare global {
|
|
1609
1880
|
"connect_rolling_stock",
|
1610
1881
|
"copy",
|
1611
1882
|
"copy_entity_settings",
|
1883
|
+
"copy_large_opened_blueprint",
|
1884
|
+
"copy_large_opened_item",
|
1612
1885
|
"copy_opened_blueprint",
|
1613
1886
|
"copy_opened_item",
|
1614
1887
|
"craft",
|
1888
|
+
"create_space_platform",
|
1615
1889
|
"cursor_split",
|
1616
1890
|
"cursor_transfer",
|
1617
1891
|
"custom_input",
|
1618
1892
|
"cycle_blueprint_book_backwards",
|
1619
1893
|
"cycle_blueprint_book_forwards",
|
1894
|
+
"cycle_quality_down",
|
1895
|
+
"cycle_quality_up",
|
1620
1896
|
"deconstruct",
|
1621
1897
|
"delete_blueprint_library",
|
1622
1898
|
"delete_blueprint_record",
|
1623
1899
|
"delete_custom_tag",
|
1900
|
+
"delete_logistic_group",
|
1624
1901
|
"delete_permission_group",
|
1902
|
+
"delete_space_platform",
|
1625
1903
|
"destroy_item",
|
1626
1904
|
"destroy_opened_item",
|
1627
1905
|
"disconnect_rolling_stock",
|
1906
|
+
"drag_decider_combinator_condition",
|
1907
|
+
"drag_decider_combinator_output",
|
1628
1908
|
"drag_train_schedule",
|
1909
|
+
"drag_train_schedule_interrupt",
|
1629
1910
|
"drag_train_wait_condition",
|
1630
1911
|
"drop_blueprint_record",
|
1631
1912
|
"drop_item",
|
1632
1913
|
"edit_blueprint_tool_preview",
|
1633
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",
|
1634
1921
|
"edit_permission_group",
|
1922
|
+
"edit_pin",
|
1923
|
+
"enable_transitional_requests",
|
1635
1924
|
"export_blueprint",
|
1636
1925
|
"fast_entity_split",
|
1637
1926
|
"fast_entity_transfer",
|
1927
|
+
"flip_entity",
|
1638
1928
|
"flush_opened_entity_fluid",
|
1639
1929
|
"flush_opened_entity_specific_fluid",
|
1640
1930
|
"go_to_train_station",
|
@@ -1655,13 +1945,18 @@ declare global {
|
|
1655
1945
|
"import_blueprint_string",
|
1656
1946
|
"import_blueprints_filtered",
|
1657
1947
|
"import_permissions_string",
|
1948
|
+
"instantly_create_space_platform",
|
1658
1949
|
"inventory_split",
|
1659
1950
|
"inventory_transfer",
|
1951
|
+
"land_at_planet",
|
1660
1952
|
"launch_rocket",
|
1661
1953
|
"lua_shortcut",
|
1662
1954
|
"map_editor_action",
|
1663
1955
|
"market_offer",
|
1664
1956
|
"mod_settings_changed",
|
1957
|
+
"modify_decider_combinator_condition",
|
1958
|
+
"modify_decider_combinator_output",
|
1959
|
+
"move_research",
|
1665
1960
|
"open_achievements_gui",
|
1666
1961
|
"open_blueprint_library_gui",
|
1667
1962
|
"open_blueprint_record",
|
@@ -1669,51 +1964,73 @@ declare global {
|
|
1669
1964
|
"open_character_gui",
|
1670
1965
|
"open_current_vehicle_gui",
|
1671
1966
|
"open_equipment",
|
1967
|
+
"open_global_electric_network_gui",
|
1672
1968
|
"open_gui",
|
1673
1969
|
"open_item",
|
1674
|
-
"
|
1970
|
+
"open_logistics_gui",
|
1675
1971
|
"open_mod_item",
|
1972
|
+
"open_new_platform_button_from_rocket_silo",
|
1973
|
+
"open_opened_entity_grid",
|
1676
1974
|
"open_parent_of_opened_item",
|
1677
1975
|
"open_production_gui",
|
1678
|
-
"open_technology_gui",
|
1679
|
-
"open_tips_and_tricks_gui",
|
1680
1976
|
"open_train_gui",
|
1681
1977
|
"open_train_station_gui",
|
1682
1978
|
"open_trains_gui",
|
1979
|
+
"parametrise_blueprint",
|
1683
1980
|
"paste_entity_settings",
|
1981
|
+
"pin_alert_group",
|
1982
|
+
"pin_custom_alert",
|
1983
|
+
"pin_search_result",
|
1984
|
+
"pipette",
|
1684
1985
|
"place_equipment",
|
1685
1986
|
"quick_bar_pick_slot",
|
1686
1987
|
"quick_bar_set_selected_page",
|
1687
1988
|
"quick_bar_set_slot",
|
1688
1989
|
"reassign_blueprint",
|
1990
|
+
"redo",
|
1991
|
+
"remote_view_entity",
|
1992
|
+
"remote_view_surface",
|
1689
1993
|
"remove_cables",
|
1994
|
+
"remove_decider_combinator_condition",
|
1995
|
+
"remove_decider_combinator_output",
|
1996
|
+
"remove_logistic_section",
|
1997
|
+
"remove_pin",
|
1998
|
+
"remove_train_interrupt",
|
1690
1999
|
"remove_train_station",
|
2000
|
+
"rename_interrupt",
|
2001
|
+
"rename_space_platform",
|
2002
|
+
"reorder_logistic_section",
|
2003
|
+
"request_missing_construction_materials",
|
1691
2004
|
"reset_assembling_machine",
|
1692
|
-
"reset_item",
|
1693
2005
|
"reverse_select_area",
|
1694
2006
|
"rotate_entity",
|
1695
2007
|
"select_area",
|
2008
|
+
"select_asteroid_chunk_slot",
|
1696
2009
|
"select_blueprint_entities",
|
2010
|
+
"select_entity_filter_slot",
|
1697
2011
|
"select_entity_slot",
|
1698
|
-
"
|
1699
|
-
"
|
2012
|
+
"select_item_filter",
|
2013
|
+
"select_mapper_slot_from",
|
2014
|
+
"select_mapper_slot_to",
|
1700
2015
|
"select_next_valid_gun",
|
1701
2016
|
"select_tile_slot",
|
1702
2017
|
"send_spidertron",
|
1703
|
-
"
|
1704
|
-
"
|
2018
|
+
"send_stack_to_trash",
|
2019
|
+
"send_stacks_to_trash",
|
2020
|
+
"send_train_to_pin_target",
|
1705
2021
|
"set_behavior_mode",
|
1706
2022
|
"set_car_weapons_control",
|
2023
|
+
"set_cheat_mode_quality",
|
1707
2024
|
"set_circuit_condition",
|
1708
2025
|
"set_circuit_mode_of_operation",
|
1709
|
-
"
|
2026
|
+
"set_combinator_description",
|
2027
|
+
"set_copy_color_from_train_stop",
|
1710
2028
|
"set_deconstruction_item_tile_selection_mode",
|
1711
2029
|
"set_deconstruction_item_trees_and_rocks_only",
|
1712
2030
|
"set_entity_color",
|
1713
2031
|
"set_entity_energy_property",
|
1714
|
-
"set_entity_logistic_trash_filter_item",
|
1715
2032
|
"set_filter",
|
1716
|
-
"
|
2033
|
+
"set_ghost_cursor",
|
1717
2034
|
"set_heat_interface_mode",
|
1718
2035
|
"set_heat_interface_temperature",
|
1719
2036
|
"set_infinity_container_filter_item",
|
@@ -1721,35 +2038,45 @@ declare global {
|
|
1721
2038
|
"set_infinity_pipe_filter",
|
1722
2039
|
"set_inserter_max_stack_size",
|
1723
2040
|
"set_inventory_bar",
|
2041
|
+
"set_lamp_always_on",
|
1724
2042
|
"set_linked_container_link_i_d",
|
1725
2043
|
"set_logistic_filter_item",
|
1726
|
-
"
|
2044
|
+
"set_logistic_network_name",
|
2045
|
+
"set_logistic_section_active",
|
1727
2046
|
"set_player_color",
|
1728
|
-
"
|
2047
|
+
"set_pump_fluid_filter",
|
1729
2048
|
"set_request_from_buffers",
|
1730
2049
|
"set_research_finished_stops_game",
|
2050
|
+
"set_rocket_silo_send_to_orbit_automated_mode",
|
2051
|
+
"set_schedule_record_allow_unloading",
|
1731
2052
|
"set_signal",
|
1732
2053
|
"set_splitter_priority",
|
2054
|
+
"set_spoil_priority",
|
2055
|
+
"set_train_stop_priority",
|
1733
2056
|
"set_train_stopped",
|
1734
2057
|
"set_trains_limit",
|
2058
|
+
"set_turret_ignore_unlisted",
|
2059
|
+
"set_use_inserter_filters",
|
1735
2060
|
"set_vehicle_automatic_targeting_parameters",
|
1736
2061
|
"setup_assembling_machine",
|
1737
2062
|
"setup_blueprint",
|
1738
2063
|
"setup_single_blueprint_record",
|
1739
|
-
"smart_pipette",
|
1740
2064
|
"spawn_item",
|
2065
|
+
"spectator_change_surface",
|
1741
2066
|
"stack_split",
|
1742
2067
|
"stack_transfer",
|
1743
2068
|
"start_repair",
|
1744
2069
|
"start_research",
|
1745
2070
|
"start_walking",
|
1746
|
-
"
|
2071
|
+
"stop_drag_build",
|
2072
|
+
"swap_logistic_filter_items",
|
1747
2073
|
"switch_connect_to_logistic_network",
|
1748
2074
|
"switch_constant_combinator_state",
|
1749
2075
|
"switch_inserter_filter_mode_state",
|
2076
|
+
"switch_mining_drill_filter_mode_state",
|
1750
2077
|
"switch_power_switch_state",
|
1751
|
-
"switch_to_rename_stop_gui",
|
1752
2078
|
"take_equipment",
|
2079
|
+
"toggle_artillery_auto_targeting",
|
1753
2080
|
"toggle_deconstruction_item_entity_filter_mode",
|
1754
2081
|
"toggle_deconstruction_item_tile_filter_mode",
|
1755
2082
|
"toggle_driving",
|
@@ -1759,13 +2086,14 @@ declare global {
|
|
1759
2086
|
"toggle_map_editor",
|
1760
2087
|
"toggle_personal_logistic_requests",
|
1761
2088
|
"toggle_personal_roboport",
|
2089
|
+
"toggle_selected_entity",
|
1762
2090
|
"toggle_show_entity_info",
|
1763
2091
|
"translate_string",
|
2092
|
+
"trash_not_requested_items",
|
1764
2093
|
"undo",
|
1765
2094
|
"upgrade",
|
1766
2095
|
"upgrade_opened_blueprint_by_item",
|
1767
2096
|
"upgrade_opened_blueprint_by_record",
|
1768
|
-
"use_artillery_remote",
|
1769
2097
|
"use_item",
|
1770
2098
|
"wire_dragging",
|
1771
2099
|
"write_to_console",
|
@@ -1778,6 +2106,7 @@ declare global {
|
|
1778
2106
|
"fuel",
|
1779
2107
|
"burnt_result",
|
1780
2108
|
"chest",
|
2109
|
+
"logistic_container_trash",
|
1781
2110
|
"furnace_source",
|
1782
2111
|
"furnace_result",
|
1783
2112
|
"furnace_modules",
|
@@ -1799,16 +2128,17 @@ declare global {
|
|
1799
2128
|
"assembling_machine_input",
|
1800
2129
|
"assembling_machine_output",
|
1801
2130
|
"assembling_machine_modules",
|
2131
|
+
"assembling_machine_dump",
|
1802
2132
|
"lab_input",
|
1803
2133
|
"lab_modules",
|
1804
2134
|
"mining_drill_modules",
|
1805
2135
|
"item_main",
|
1806
2136
|
"rocket_silo_rocket",
|
1807
|
-
"
|
2137
|
+
"rocket_silo_trash",
|
1808
2138
|
"rocket_silo_input",
|
1809
2139
|
"rocket_silo_output",
|
1810
2140
|
"rocket_silo_modules",
|
1811
|
-
"
|
2141
|
+
"cargo_unit",
|
1812
2142
|
"car_trunk",
|
1813
2143
|
"car_ammo",
|
1814
2144
|
"cargo_wagon",
|
@@ -1820,6 +2150,10 @@ declare global {
|
|
1820
2150
|
"spider_trunk",
|
1821
2151
|
"spider_ammo",
|
1822
2152
|
"spider_trash",
|
2153
|
+
"hub_main",
|
2154
|
+
"hub_trash",
|
2155
|
+
"cargo_landing_pad_main",
|
2156
|
+
"cargo_landing_pad_trash",
|
1823
2157
|
}
|
1824
2158
|
enum logistic_member_index {
|
1825
2159
|
"logistic_container",
|
@@ -1828,6 +2162,7 @@ declare global {
|
|
1828
2162
|
"character_storage",
|
1829
2163
|
"character_provider",
|
1830
2164
|
"generic_on_off_behavior",
|
2165
|
+
"spidertron_requester",
|
1831
2166
|
}
|
1832
2167
|
enum logistic_mode {
|
1833
2168
|
"none",
|
@@ -1837,26 +2172,46 @@ declare global {
|
|
1837
2172
|
"passive_provider",
|
1838
2173
|
"buffer",
|
1839
2174
|
}
|
2175
|
+
enum logistic_section_type {
|
2176
|
+
"manual",
|
2177
|
+
"circuit_controlled",
|
2178
|
+
/**
|
2179
|
+
* Used by rocket silos.
|
2180
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.logistic_section_type.transitional_request_controlled Online documentation}
|
2181
|
+
*/
|
2182
|
+
"transitional_request_controlled",
|
2183
|
+
/**
|
2184
|
+
* Used by space platform hubs.
|
2185
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.logistic_section_type.request_missing_materials_controlled Online documentation}
|
2186
|
+
*/
|
2187
|
+
"request_missing_materials_controlled",
|
2188
|
+
}
|
1840
2189
|
enum mouse_button_type {
|
1841
2190
|
"none",
|
1842
2191
|
"left",
|
1843
2192
|
"right",
|
1844
2193
|
"middle",
|
1845
2194
|
}
|
2195
|
+
enum moving_state {
|
2196
|
+
"stale",
|
2197
|
+
"moving",
|
2198
|
+
"adaptive",
|
2199
|
+
"stuck",
|
2200
|
+
}
|
1846
2201
|
enum print_skip {
|
1847
2202
|
/**
|
1848
2203
|
* Print will not be skipped.
|
1849
|
-
* @see {@link https://lua-api.factorio.com/
|
2204
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.print_skip.never Online documentation}
|
1850
2205
|
*/
|
1851
2206
|
"never",
|
1852
2207
|
/**
|
1853
2208
|
* Print will be skipped if same text was recently printed (within last 60 ticks). Used by most game messages.
|
1854
|
-
* @see {@link https://lua-api.factorio.com/
|
2209
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.print_skip.if_redundant Online documentation}
|
1855
2210
|
*/
|
1856
2211
|
"if_redundant",
|
1857
2212
|
/**
|
1858
2213
|
* Print will be skipped if same text is still visible (printed within last 1152 ticks). Used by some notifications.
|
1859
|
-
* @see {@link https://lua-api.factorio.com/
|
2214
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.print_skip.if_visible Online documentation}
|
1860
2215
|
*/
|
1861
2216
|
"if_visible",
|
1862
2217
|
}
|
@@ -1867,27 +2222,48 @@ declare global {
|
|
1867
2222
|
}
|
1868
2223
|
/**
|
1869
2224
|
* 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, ...}`.
|
1870
|
-
* @see {@link https://lua-api.factorio.com/
|
2225
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.prototypes Online documentation}
|
1871
2226
|
*/
|
1872
2227
|
interface prototypes {
|
1873
2228
|
achievement: {
|
1874
2229
|
achievement: 0
|
1875
2230
|
"build-entity-achievement": 0
|
1876
|
-
"
|
2231
|
+
"change-surface-achievement": 0
|
2232
|
+
"combat-robot-count-achievement": 0
|
2233
|
+
"complete-objective-achievement": 0
|
1877
2234
|
"construct-with-robots-achievement": 0
|
2235
|
+
"create-platform-achievement": 0
|
1878
2236
|
"deconstruct-with-robots-achievement": 0
|
1879
2237
|
"deliver-by-robots-achievement": 0
|
2238
|
+
"deplete-resource-achievement": 0
|
2239
|
+
"destroy-cliff-achievement": 0
|
1880
2240
|
"dont-build-entity-achievement": 0
|
1881
2241
|
"dont-craft-manually-achievement": 0
|
2242
|
+
"dont-kill-manually-achievement": 0
|
2243
|
+
"dont-research-before-researching-achievement": 0
|
1882
2244
|
"dont-use-entity-in-energy-production-achievement": 0
|
1883
|
-
"
|
2245
|
+
"equip-armor-achievement": 0
|
1884
2246
|
"group-attack-achievement": 0
|
1885
2247
|
"kill-achievement": 0
|
2248
|
+
"module-transfer-achievement": 0
|
2249
|
+
"place-equipment-achievement": 0
|
1886
2250
|
"player-damaged-achievement": 0
|
1887
2251
|
"produce-achievement": 0
|
1888
2252
|
"produce-per-hour-achievement": 0
|
1889
2253
|
"research-achievement": 0
|
2254
|
+
"research-with-science-pack-achievement": 0
|
2255
|
+
"shoot-achievement": 0
|
2256
|
+
"space-connection-distance-traveled-achievement": 0
|
1890
2257
|
"train-path-achievement": 0
|
2258
|
+
"use-entity-in-energy-production-achievement": 0
|
2259
|
+
"use-item-achievement": 0
|
2260
|
+
}
|
2261
|
+
"active-trigger": {
|
2262
|
+
"chain-active-trigger": 0
|
2263
|
+
"delayed-active-trigger": 0
|
2264
|
+
}
|
2265
|
+
"airborne-pollutant": {
|
2266
|
+
"airborne-pollutant": 0
|
1891
2267
|
}
|
1892
2268
|
"ambient-sound": {
|
1893
2269
|
"ambient-sound": 0
|
@@ -1898,9 +2274,21 @@ declare global {
|
|
1898
2274
|
animation: {
|
1899
2275
|
animation: 0
|
1900
2276
|
}
|
2277
|
+
"asteroid-chunk": {
|
2278
|
+
"asteroid-chunk": 0
|
2279
|
+
}
|
1901
2280
|
"autoplace-control": {
|
1902
2281
|
"autoplace-control": 0
|
1903
2282
|
}
|
2283
|
+
"burner-usage": {
|
2284
|
+
"burner-usage": 0
|
2285
|
+
}
|
2286
|
+
"collision-layer": {
|
2287
|
+
"collision-layer": 0
|
2288
|
+
}
|
2289
|
+
"custom-event": {
|
2290
|
+
"custom-event": 0
|
2291
|
+
}
|
1904
2292
|
"custom-input": {
|
1905
2293
|
"custom-input": 0
|
1906
2294
|
}
|
@@ -1910,11 +2298,18 @@ declare global {
|
|
1910
2298
|
decorative: {
|
1911
2299
|
"optimized-decorative": 0
|
1912
2300
|
}
|
2301
|
+
"deliver-category": {
|
2302
|
+
"deliver-category": 0
|
2303
|
+
}
|
2304
|
+
"deliver-impact-combination": {
|
2305
|
+
"deliver-impact-combination": 0
|
2306
|
+
}
|
1913
2307
|
"editor-controller": {
|
1914
2308
|
"editor-controller": 0
|
1915
2309
|
}
|
1916
2310
|
entity: {
|
1917
2311
|
accumulator: 0
|
2312
|
+
"agricultural-tower": 0
|
1918
2313
|
"ammo-turret": 0
|
1919
2314
|
"arithmetic-combinator": 0
|
1920
2315
|
arrow: 0
|
@@ -1923,11 +2318,17 @@ declare global {
|
|
1923
2318
|
"artillery-turret": 0
|
1924
2319
|
"artillery-wagon": 0
|
1925
2320
|
"assembling-machine": 0
|
2321
|
+
asteroid: 0
|
2322
|
+
"asteroid-collector": 0
|
1926
2323
|
beacon: 0
|
1927
2324
|
beam: 0
|
1928
2325
|
boiler: 0
|
1929
2326
|
"burner-generator": 0
|
2327
|
+
"capture-robot": 0
|
1930
2328
|
car: 0
|
2329
|
+
"cargo-bay": 0
|
2330
|
+
"cargo-landing-pad": 0
|
2331
|
+
"cargo-pod": 0
|
1931
2332
|
"cargo-wagon": 0
|
1932
2333
|
character: 0
|
1933
2334
|
"character-corpse": 0
|
@@ -1937,23 +2338,30 @@ declare global {
|
|
1937
2338
|
"construction-robot": 0
|
1938
2339
|
container: 0
|
1939
2340
|
corpse: 0
|
1940
|
-
"curved-rail": 0
|
2341
|
+
"curved-rail-a": 0
|
2342
|
+
"curved-rail-b": 0
|
1941
2343
|
"decider-combinator": 0
|
1942
2344
|
"deconstructible-tile-proxy": 0
|
2345
|
+
"display-panel": 0
|
1943
2346
|
"electric-energy-interface": 0
|
1944
2347
|
"electric-pole": 0
|
1945
2348
|
"electric-turret": 0
|
2349
|
+
"elevated-curved-rail-a": 0
|
2350
|
+
"elevated-curved-rail-b": 0
|
2351
|
+
"elevated-half-diagonal-rail": 0
|
2352
|
+
"elevated-straight-rail": 0
|
1946
2353
|
"entity-ghost": 0
|
1947
2354
|
explosion: 0
|
1948
2355
|
fire: 0
|
1949
2356
|
fish: 0
|
1950
|
-
"flame-thrower-explosion": 0
|
1951
2357
|
"fluid-turret": 0
|
1952
2358
|
"fluid-wagon": 0
|
1953
|
-
"flying-text": 0
|
1954
2359
|
furnace: 0
|
2360
|
+
"fusion-generator": 0
|
2361
|
+
"fusion-reactor": 0
|
1955
2362
|
gate: 0
|
1956
2363
|
generator: 0
|
2364
|
+
"half-diagonal-rail": 0
|
1957
2365
|
"heat-interface": 0
|
1958
2366
|
"heat-pipe": 0
|
1959
2367
|
"highlight-box": 0
|
@@ -1965,7 +2373,11 @@ declare global {
|
|
1965
2373
|
lab: 0
|
1966
2374
|
lamp: 0
|
1967
2375
|
"land-mine": 0
|
1968
|
-
"
|
2376
|
+
"lane-splitter": 0
|
2377
|
+
"legacy-curved-rail": 0
|
2378
|
+
"legacy-straight-rail": 0
|
2379
|
+
lightning: 0
|
2380
|
+
"lightning-attractor": 0
|
1969
2381
|
"linked-belt": 0
|
1970
2382
|
"linked-container": 0
|
1971
2383
|
loader: 0
|
@@ -1976,10 +2388,10 @@ declare global {
|
|
1976
2388
|
market: 0
|
1977
2389
|
"mining-drill": 0
|
1978
2390
|
"offshore-pump": 0
|
1979
|
-
particle: 0
|
1980
2391
|
"particle-source": 0
|
1981
2392
|
pipe: 0
|
1982
2393
|
"pipe-to-ground": 0
|
2394
|
+
plant: 0
|
1983
2395
|
"player-port": 0
|
1984
2396
|
"power-switch": 0
|
1985
2397
|
"programmable-speaker": 0
|
@@ -1987,28 +2399,36 @@ declare global {
|
|
1987
2399
|
pump: 0
|
1988
2400
|
radar: 0
|
1989
2401
|
"rail-chain-signal": 0
|
2402
|
+
"rail-ramp": 0
|
1990
2403
|
"rail-remnants": 0
|
1991
2404
|
"rail-signal": 0
|
2405
|
+
"rail-support": 0
|
1992
2406
|
reactor: 0
|
1993
2407
|
resource: 0
|
1994
2408
|
roboport: 0
|
1995
2409
|
"rocket-silo": 0
|
1996
2410
|
"rocket-silo-rocket": 0
|
1997
2411
|
"rocket-silo-rocket-shadow": 0
|
2412
|
+
segment: 0
|
2413
|
+
"segmented-unit": 0
|
2414
|
+
"selector-combinator": 0
|
1998
2415
|
"simple-entity": 0
|
1999
2416
|
"simple-entity-with-force": 0
|
2000
2417
|
"simple-entity-with-owner": 0
|
2001
|
-
smoke: 0
|
2002
2418
|
"smoke-with-trigger": 0
|
2003
2419
|
"solar-panel": 0
|
2420
|
+
"space-platform-hub": 0
|
2004
2421
|
"speech-bubble": 0
|
2005
2422
|
"spider-leg": 0
|
2423
|
+
"spider-unit": 0
|
2006
2424
|
"spider-vehicle": 0
|
2007
2425
|
splitter: 0
|
2008
2426
|
sticker: 0
|
2009
2427
|
"storage-tank": 0
|
2010
2428
|
"straight-rail": 0
|
2011
2429
|
stream: 0
|
2430
|
+
"temporary-container": 0
|
2431
|
+
thruster: 0
|
2012
2432
|
"tile-ghost": 0
|
2013
2433
|
"train-stop": 0
|
2014
2434
|
"transport-belt": 0
|
@@ -2024,7 +2444,9 @@ declare global {
|
|
2024
2444
|
"battery-equipment": 0
|
2025
2445
|
"belt-immunity-equipment": 0
|
2026
2446
|
"energy-shield-equipment": 0
|
2447
|
+
"equipment-ghost": 0
|
2027
2448
|
"generator-equipment": 0
|
2449
|
+
"inventory-bonus-equipment": 0
|
2028
2450
|
"movement-bonus-equipment": 0
|
2029
2451
|
"night-vision-equipment": 0
|
2030
2452
|
"roboport-equipment": 0
|
@@ -2051,6 +2473,9 @@ declare global {
|
|
2051
2473
|
"gui-style": {
|
2052
2474
|
"gui-style": 0
|
2053
2475
|
}
|
2476
|
+
"impact-category": {
|
2477
|
+
"impact-category": 0
|
2478
|
+
}
|
2054
2479
|
item: {
|
2055
2480
|
ammo: 0
|
2056
2481
|
armor: 0
|
@@ -2065,11 +2490,11 @@ declare global {
|
|
2065
2490
|
"item-with-inventory": 0
|
2066
2491
|
"item-with-label": 0
|
2067
2492
|
"item-with-tags": 0
|
2068
|
-
"mining-tool": 0
|
2069
2493
|
module: 0
|
2070
2494
|
"rail-planner": 0
|
2071
2495
|
"repair-tool": 0
|
2072
2496
|
"selection-tool": 0
|
2497
|
+
"space-platform-starter-pack": 0
|
2073
2498
|
"spidertron-remote": 0
|
2074
2499
|
tool: 0
|
2075
2500
|
"upgrade-item": 0
|
@@ -2095,18 +2520,30 @@ declare global {
|
|
2095
2520
|
"noise-expression": {
|
2096
2521
|
"noise-expression": 0
|
2097
2522
|
}
|
2098
|
-
"noise-
|
2099
|
-
"noise-
|
2523
|
+
"noise-function": {
|
2524
|
+
"noise-function": 0
|
2100
2525
|
}
|
2101
2526
|
particle: {
|
2102
2527
|
"optimized-particle": 0
|
2103
2528
|
}
|
2529
|
+
procession: {
|
2530
|
+
procession: 0
|
2531
|
+
}
|
2532
|
+
"procession-layer-inheritance-group": {
|
2533
|
+
"procession-layer-inheritance-group": 0
|
2534
|
+
}
|
2535
|
+
quality: {
|
2536
|
+
quality: 0
|
2537
|
+
}
|
2104
2538
|
recipe: {
|
2105
2539
|
recipe: 0
|
2106
2540
|
}
|
2107
2541
|
"recipe-category": {
|
2108
2542
|
"recipe-category": 0
|
2109
2543
|
}
|
2544
|
+
"remote-controller": {
|
2545
|
+
"remote-controller": 0
|
2546
|
+
}
|
2110
2547
|
"resource-category": {
|
2111
2548
|
"resource-category": 0
|
2112
2549
|
}
|
@@ -2116,12 +2553,25 @@ declare global {
|
|
2116
2553
|
sound: {
|
2117
2554
|
sound: 0
|
2118
2555
|
}
|
2556
|
+
"space-connection": {
|
2557
|
+
"space-connection": 0
|
2558
|
+
}
|
2559
|
+
"space-location": {
|
2560
|
+
planet: 0
|
2561
|
+
"space-location": 0
|
2562
|
+
}
|
2119
2563
|
"spectator-controller": {
|
2120
2564
|
"spectator-controller": 0
|
2121
2565
|
}
|
2122
2566
|
sprite: {
|
2123
2567
|
sprite: 0
|
2124
2568
|
}
|
2569
|
+
surface: {
|
2570
|
+
surface: 0
|
2571
|
+
}
|
2572
|
+
"surface-property": {
|
2573
|
+
"surface-property": 0
|
2574
|
+
}
|
2125
2575
|
technology: {
|
2126
2576
|
technology: 0
|
2127
2577
|
}
|
@@ -2158,13 +2608,10 @@ declare global {
|
|
2158
2608
|
"virtual-signal": {
|
2159
2609
|
"virtual-signal": 0
|
2160
2610
|
}
|
2161
|
-
"wind-sound": {
|
2162
|
-
"wind-sound": 0
|
2163
|
-
}
|
2164
2611
|
}
|
2165
2612
|
/**
|
2166
2613
|
* 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, ...}`.
|
2167
|
-
* @see {@link https://lua-api.factorio.com/
|
2614
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.prototypes Online documentation}
|
2168
2615
|
*/
|
2169
2616
|
const prototypes: prototypes
|
2170
2617
|
enum rail_connection_direction {
|
@@ -2177,6 +2624,10 @@ declare global {
|
|
2177
2624
|
"front",
|
2178
2625
|
"back",
|
2179
2626
|
}
|
2627
|
+
enum rail_layer {
|
2628
|
+
"ground",
|
2629
|
+
"elevated",
|
2630
|
+
}
|
2180
2631
|
enum relative_gui_position {
|
2181
2632
|
"top",
|
2182
2633
|
"bottom",
|
@@ -2188,10 +2639,12 @@ declare global {
|
|
2188
2639
|
"achievement_gui",
|
2189
2640
|
"additional_entity_info_gui",
|
2190
2641
|
"admin_gui",
|
2642
|
+
"agriculture_tower_gui",
|
2191
2643
|
"arithmetic_combinator_gui",
|
2192
2644
|
"armor_gui",
|
2193
2645
|
"assembling_machine_gui",
|
2194
2646
|
"assembling_machine_select_recipe_gui",
|
2647
|
+
"asteroid_collector_gui",
|
2195
2648
|
"beacon_gui",
|
2196
2649
|
"blueprint_book_gui",
|
2197
2650
|
"blueprint_library_gui",
|
@@ -2199,11 +2652,13 @@ declare global {
|
|
2199
2652
|
"bonus_gui",
|
2200
2653
|
"burner_equipment_gui",
|
2201
2654
|
"car_gui",
|
2655
|
+
"cargo_landing_pad_gui",
|
2202
2656
|
"constant_combinator_gui",
|
2203
2657
|
"container_gui",
|
2204
2658
|
"controller_gui",
|
2205
2659
|
"decider_combinator_gui",
|
2206
2660
|
"deconstruction_item_gui",
|
2661
|
+
"display_panel_gui",
|
2207
2662
|
"electric_energy_interface_gui",
|
2208
2663
|
"electric_network_gui",
|
2209
2664
|
"entity_variations_gui",
|
@@ -2211,6 +2666,8 @@ declare global {
|
|
2211
2666
|
"equipment_grid_gui",
|
2212
2667
|
"furnace_gui",
|
2213
2668
|
"generic_on_off_entity_gui",
|
2669
|
+
"ghost_picker_gui",
|
2670
|
+
"global_electric_network_gui",
|
2214
2671
|
"heat_interface_gui",
|
2215
2672
|
"infinity_pipe_gui",
|
2216
2673
|
"inserter_gui",
|
@@ -2224,28 +2681,32 @@ declare global {
|
|
2224
2681
|
"mining_drill_gui",
|
2225
2682
|
"other_player_gui",
|
2226
2683
|
"permissions_gui",
|
2684
|
+
"pick_stop_gui",
|
2227
2685
|
"pipe_gui",
|
2228
2686
|
"power_switch_gui",
|
2229
2687
|
"production_gui",
|
2230
2688
|
"programmable_speaker_gui",
|
2231
|
-
"
|
2232
|
-
"
|
2689
|
+
"pump_gui",
|
2690
|
+
"rail_signal_base_gui",
|
2233
2691
|
"reactor_gui",
|
2234
|
-
"rename_stop_gui",
|
2235
2692
|
"resource_entity_gui",
|
2236
2693
|
"roboport_gui",
|
2237
2694
|
"rocket_silo_gui",
|
2238
2695
|
"script_inventory_gui",
|
2696
|
+
"selector_combinator_gui",
|
2239
2697
|
"server_config_gui",
|
2698
|
+
"space_platform_hub_gui",
|
2240
2699
|
"spider_vehicle_gui",
|
2241
2700
|
"splitter_gui",
|
2242
2701
|
"standalone_character_gui",
|
2243
2702
|
"storage_tank_gui",
|
2244
2703
|
"tile_variations_gui",
|
2704
|
+
"tips_and_tricks_gui",
|
2245
2705
|
"train_gui",
|
2246
2706
|
"train_stop_gui",
|
2247
2707
|
"trains_gui",
|
2248
2708
|
"transport_belt_gui",
|
2709
|
+
"turret_gui",
|
2249
2710
|
"upgrade_item_gui",
|
2250
2711
|
"wall_gui",
|
2251
2712
|
}
|
@@ -2272,87 +2733,140 @@ declare global {
|
|
2272
2733
|
"right",
|
2273
2734
|
}
|
2274
2735
|
}
|
2736
|
+
enum robot_order_type {
|
2737
|
+
/**
|
2738
|
+
* Construct a ghost.
|
2739
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.robot_order_type.construct Online documentation}
|
2740
|
+
*/
|
2741
|
+
"construct",
|
2742
|
+
/**
|
2743
|
+
* Pickup an item.
|
2744
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.robot_order_type.pickup Online documentation}
|
2745
|
+
*/
|
2746
|
+
"pickup",
|
2747
|
+
/**
|
2748
|
+
* Deliver an item.
|
2749
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.robot_order_type.deliver Online documentation}
|
2750
|
+
*/
|
2751
|
+
"deliver",
|
2752
|
+
/**
|
2753
|
+
* Repair an entity.
|
2754
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.robot_order_type.repair Online documentation}
|
2755
|
+
*/
|
2756
|
+
"repair",
|
2757
|
+
/**
|
2758
|
+
* Deconstruct an entity.
|
2759
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.robot_order_type.deconstruct Online documentation}
|
2760
|
+
*/
|
2761
|
+
"deconstruct",
|
2762
|
+
/**
|
2763
|
+
* Deliver specific items to an entity (item request proxy).
|
2764
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.robot_order_type.deliver_items Online documentation}
|
2765
|
+
*/
|
2766
|
+
"deliver_items",
|
2767
|
+
/**
|
2768
|
+
* Upgrade an entity.
|
2769
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.robot_order_type.upgrade Online documentation}
|
2770
|
+
*/
|
2771
|
+
"upgrade",
|
2772
|
+
/**
|
2773
|
+
* Explode a cliff.
|
2774
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.robot_order_type.explode_cliff Online documentation}
|
2775
|
+
*/
|
2776
|
+
"explode_cliff",
|
2777
|
+
/**
|
2778
|
+
* Pickup items from an entity (item request proxy).
|
2779
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.robot_order_type.pickup_items Online documentation}
|
2780
|
+
*/
|
2781
|
+
"pickup_items",
|
2782
|
+
}
|
2275
2783
|
/**
|
2276
2784
|
* The various parts of the launch sequence of the rocket silo.
|
2277
|
-
* @see {@link https://lua-api.factorio.com/
|
2785
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.rocket_silo_status Online documentation}
|
2278
2786
|
*/
|
2279
2787
|
enum rocket_silo_status {
|
2280
2788
|
/**
|
2281
2789
|
* The rocket silo is crafting rocket parts. When there are enough rocket parts, the silo will switch into the `create_rocket` state.
|
2282
|
-
* @see {@link https://lua-api.factorio.com/
|
2790
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.rocket_silo_status.building_rocket Online documentation}
|
2283
2791
|
*/
|
2284
2792
|
"building_rocket",
|
2285
2793
|
/**
|
2286
2794
|
* The next state is `lights_blinking_open`. The rocket silo rocket entity gets created.
|
2287
|
-
* @see {@link https://lua-api.factorio.com/
|
2795
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.rocket_silo_status.create_rocket Online documentation}
|
2288
2796
|
*/
|
2289
2797
|
"create_rocket",
|
2290
2798
|
/**
|
2291
2799
|
* The next state is `doors_opening`. The rocket is getting prepared for launch.
|
2292
|
-
* @see {@link https://lua-api.factorio.com/
|
2800
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.rocket_silo_status.lights_blinking_open Online documentation}
|
2293
2801
|
*/
|
2294
2802
|
"lights_blinking_open",
|
2295
2803
|
/**
|
2296
2804
|
* The next state is `doors_opened`. The rocket is getting prepared for launch.
|
2297
|
-
* @see {@link https://lua-api.factorio.com/
|
2805
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.rocket_silo_status.doors_opening Online documentation}
|
2298
2806
|
*/
|
2299
2807
|
"doors_opening",
|
2300
2808
|
/**
|
2301
2809
|
* 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.
|
2302
|
-
* @see {@link https://lua-api.factorio.com/
|
2810
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.rocket_silo_status.doors_opened Online documentation}
|
2303
2811
|
*/
|
2304
2812
|
"doors_opened",
|
2305
2813
|
/**
|
2306
2814
|
* 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.
|
2307
|
-
* @see {@link https://lua-api.factorio.com/
|
2815
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.rocket_silo_status.rocket_rising Online documentation}
|
2308
2816
|
*/
|
2309
2817
|
"rocket_rising",
|
2310
2818
|
/**
|
2311
2819
|
* 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.
|
2312
|
-
* @see {@link https://lua-api.factorio.com/
|
2820
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.rocket_silo_status.arms_advance Online documentation}
|
2313
2821
|
*/
|
2314
2822
|
"arms_advance",
|
2315
2823
|
/**
|
2316
2824
|
* The rocket launch can be started by the player. When the launch is started, the silo switches into the `launch_starting` state.
|
2317
|
-
* @see {@link https://lua-api.factorio.com/
|
2825
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.rocket_silo_status.rocket_ready Online documentation}
|
2318
2826
|
*/
|
2319
2827
|
"rocket_ready",
|
2320
2828
|
/**
|
2321
2829
|
* The next state is `launch_started`.
|
2322
|
-
* @see {@link https://lua-api.factorio.com/
|
2830
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.rocket_silo_status.launch_starting Online documentation}
|
2323
2831
|
*/
|
2324
2832
|
"launch_starting",
|
2325
2833
|
/**
|
2326
2834
|
* 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.
|
2327
|
-
* @see {@link https://lua-api.factorio.com/
|
2835
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.rocket_silo_status.engine_starting Online documentation}
|
2328
2836
|
*/
|
2329
2837
|
"engine_starting",
|
2330
2838
|
/**
|
2331
2839
|
* 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.
|
2332
|
-
* @see {@link https://lua-api.factorio.com/
|
2840
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.rocket_silo_status.arms_retract Online documentation}
|
2333
2841
|
*/
|
2334
2842
|
"arms_retract",
|
2335
2843
|
/**
|
2336
2844
|
* The next state is `lights_blinking_close`. The rocket is getting launched.
|
2337
|
-
* @see {@link https://lua-api.factorio.com/
|
2845
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.rocket_silo_status.rocket_flying Online documentation}
|
2338
2846
|
*/
|
2339
2847
|
"rocket_flying",
|
2340
2848
|
/**
|
2341
2849
|
* The next state is `doors_closing`.
|
2342
|
-
* @see {@link https://lua-api.factorio.com/
|
2850
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.rocket_silo_status.lights_blinking_close Online documentation}
|
2343
2851
|
*/
|
2344
2852
|
"lights_blinking_close",
|
2345
2853
|
/**
|
2346
2854
|
* The next state is `building_rocket`.
|
2347
|
-
* @see {@link https://lua-api.factorio.com/
|
2855
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.rocket_silo_status.doors_closing Online documentation}
|
2348
2856
|
*/
|
2349
2857
|
"doors_closing",
|
2350
2858
|
/**
|
2351
2859
|
* 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.
|
2352
|
-
* @see {@link https://lua-api.factorio.com/
|
2860
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.rocket_silo_status.launch_started Online documentation}
|
2353
2861
|
*/
|
2354
2862
|
"launch_started",
|
2355
2863
|
}
|
2864
|
+
enum selection_mode {
|
2865
|
+
"select",
|
2866
|
+
"alt_select",
|
2867
|
+
"reverse_select",
|
2868
|
+
"alt_reverse_select",
|
2869
|
+
}
|
2356
2870
|
enum shooting {
|
2357
2871
|
"not_shooting",
|
2358
2872
|
"shooting_enemies",
|
@@ -2360,84 +2874,141 @@ declare global {
|
|
2360
2874
|
}
|
2361
2875
|
/**
|
2362
2876
|
* State of an ordinary rail signal.
|
2363
|
-
* @see {@link https://lua-api.factorio.com/
|
2877
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.signal_state Online documentation}
|
2364
2878
|
*/
|
2365
2879
|
enum signal_state {
|
2366
2880
|
/**
|
2367
2881
|
* Green.
|
2368
|
-
* @see {@link https://lua-api.factorio.com/
|
2882
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.signal_state.open Online documentation}
|
2369
2883
|
*/
|
2370
2884
|
"open",
|
2371
2885
|
/**
|
2372
2886
|
* Red.
|
2373
|
-
* @see {@link https://lua-api.factorio.com/
|
2887
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.signal_state.closed Online documentation}
|
2374
2888
|
*/
|
2375
2889
|
"closed",
|
2376
2890
|
/**
|
2377
2891
|
* Orange.
|
2378
|
-
* @see {@link https://lua-api.factorio.com/
|
2892
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.signal_state.reserved Online documentation}
|
2379
2893
|
*/
|
2380
2894
|
"reserved",
|
2381
2895
|
/**
|
2382
2896
|
* Red - From circuit network.
|
2383
|
-
* @see {@link https://lua-api.factorio.com/
|
2897
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.signal_state.reserved_by_circuit_network Online documentation}
|
2384
2898
|
*/
|
2385
2899
|
"reserved_by_circuit_network",
|
2386
2900
|
}
|
2387
|
-
enum
|
2901
|
+
enum space_platform_state {
|
2388
2902
|
/**
|
2389
|
-
*
|
2390
|
-
* @see {@link https://lua-api.factorio.com/
|
2903
|
+
* Waiting for a starter pack.
|
2904
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.space_platform_state.waiting_for_starter_pack Online documentation}
|
2905
|
+
*/
|
2906
|
+
"waiting_for_starter_pack",
|
2907
|
+
/**
|
2908
|
+
* Starter pack was requested from the logistics system.
|
2909
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.space_platform_state.starter_pack_requested Online documentation}
|
2910
|
+
*/
|
2911
|
+
"starter_pack_requested",
|
2912
|
+
/**
|
2913
|
+
* Starter pack is on the way.
|
2914
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.space_platform_state.starter_pack_on_the_way Online documentation}
|
2915
|
+
*/
|
2916
|
+
"starter_pack_on_the_way",
|
2917
|
+
/**
|
2918
|
+
* Following the path.
|
2919
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.space_platform_state.on_the_path Online documentation}
|
2391
2920
|
*/
|
2392
2921
|
"on_the_path",
|
2393
2922
|
/**
|
2394
|
-
*
|
2395
|
-
* @see {@link https://lua-api.factorio.com/
|
2923
|
+
* Platform is ready to leave this planet and does not accept deliveries.
|
2924
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.space_platform_state.waiting_for_departure Online documentation}
|
2925
|
+
*/
|
2926
|
+
"waiting_for_departure",
|
2927
|
+
/**
|
2928
|
+
* Waiting for a starter pack
|
2929
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.space_platform_state.no_schedule Online documentation}
|
2396
2930
|
*/
|
2397
|
-
"
|
2931
|
+
"no_schedule",
|
2932
|
+
/**
|
2933
|
+
* Doesn't have anywhere to go.
|
2934
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.space_platform_state.no_path Online documentation}
|
2935
|
+
*/
|
2936
|
+
"no_path",
|
2937
|
+
/**
|
2938
|
+
* Waiting at a station.
|
2939
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.space_platform_state.waiting_at_station Online documentation}
|
2940
|
+
*/
|
2941
|
+
"waiting_at_station",
|
2942
|
+
}
|
2943
|
+
enum target_type {
|
2944
|
+
"entity",
|
2945
|
+
"equipment",
|
2946
|
+
"equipment_grid",
|
2947
|
+
"item",
|
2948
|
+
"logistic_cell",
|
2949
|
+
"logistic_network",
|
2950
|
+
"logistic_section",
|
2951
|
+
"permission_group",
|
2952
|
+
"planet",
|
2953
|
+
"player",
|
2954
|
+
"rail_path",
|
2955
|
+
"render_object",
|
2956
|
+
"space_platform",
|
2957
|
+
"surface",
|
2958
|
+
"train",
|
2959
|
+
"commandable",
|
2960
|
+
"custom_chart_tag",
|
2961
|
+
"gui_element",
|
2962
|
+
}
|
2963
|
+
enum train_state {
|
2964
|
+
/**
|
2965
|
+
* Normal state -- following the path.
|
2966
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.train_state.on_the_path Online documentation}
|
2967
|
+
*/
|
2968
|
+
"on_the_path",
|
2398
2969
|
/**
|
2399
2970
|
* Doesn't have anywhere to go.
|
2400
|
-
* @see {@link https://lua-api.factorio.com/
|
2971
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.train_state.no_schedule Online documentation}
|
2401
2972
|
*/
|
2402
2973
|
"no_schedule",
|
2403
2974
|
/**
|
2404
2975
|
* Has no path and is stopped.
|
2405
|
-
* @see {@link https://lua-api.factorio.com/
|
2976
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.train_state.no_path Online documentation}
|
2406
2977
|
*/
|
2407
2978
|
"no_path",
|
2408
2979
|
/**
|
2409
2980
|
* Braking before a rail signal.
|
2410
|
-
* @see {@link https://lua-api.factorio.com/
|
2981
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.train_state.arrive_signal Online documentation}
|
2411
2982
|
*/
|
2412
2983
|
"arrive_signal",
|
2413
2984
|
/**
|
2414
2985
|
* Waiting at a signal.
|
2415
|
-
* @see {@link https://lua-api.factorio.com/
|
2986
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.train_state.wait_signal Online documentation}
|
2416
2987
|
*/
|
2417
2988
|
"wait_signal",
|
2418
2989
|
/**
|
2419
2990
|
* Braking before a station.
|
2420
|
-
* @see {@link https://lua-api.factorio.com/
|
2991
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.train_state.arrive_station Online documentation}
|
2421
2992
|
*/
|
2422
2993
|
"arrive_station",
|
2423
|
-
/**
|
2424
|
-
* Waiting at a station.
|
2425
|
-
* @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.train_state.wait_station Online documentation}
|
2426
|
-
*/
|
2427
|
-
"wait_station",
|
2428
2994
|
/**
|
2429
2995
|
* Switched to manual control and has to stop.
|
2430
|
-
* @see {@link https://lua-api.factorio.com/
|
2996
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.train_state.manual_control_stop Online documentation}
|
2431
2997
|
*/
|
2432
2998
|
"manual_control_stop",
|
2433
2999
|
/**
|
2434
3000
|
* Can move if user explicitly sits in and rides the train.
|
2435
|
-
* @see {@link https://lua-api.factorio.com/
|
3001
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.train_state.manual_control Online documentation}
|
2436
3002
|
*/
|
2437
3003
|
"manual_control",
|
3004
|
+
/**
|
3005
|
+
* Waiting at a station.
|
3006
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.train_state.wait_station Online documentation}
|
3007
|
+
*/
|
3008
|
+
"wait_station",
|
2438
3009
|
/**
|
2439
3010
|
* Same as no_path but all candidate train stops are full
|
2440
|
-
* @see {@link https://lua-api.factorio.com/
|
3011
|
+
* @see {@link https://lua-api.factorio.com/2.0.12/defines.html#defines.train_state.destination_full Online documentation}
|
2441
3012
|
*/
|
2442
3013
|
"destination_full",
|
2443
3014
|
}
|
@@ -2453,10 +3024,21 @@ declare global {
|
|
2453
3024
|
"secondary_left_split_line",
|
2454
3025
|
"secondary_right_split_line",
|
2455
3026
|
}
|
2456
|
-
enum
|
2457
|
-
"
|
2458
|
-
"
|
2459
|
-
"
|
3027
|
+
enum wire_connector_id {
|
3028
|
+
"circuit_red",
|
3029
|
+
"circuit_green",
|
3030
|
+
"combinator_input_red",
|
3031
|
+
"combinator_input_green",
|
3032
|
+
"combinator_output_red",
|
3033
|
+
"combinator_output_green",
|
3034
|
+
"pole_copper",
|
3035
|
+
"power_switch_left_copper",
|
3036
|
+
"power_switch_right_copper",
|
3037
|
+
}
|
3038
|
+
enum wire_origin {
|
3039
|
+
"player",
|
3040
|
+
"script",
|
3041
|
+
"radars",
|
2460
3042
|
}
|
2461
3043
|
enum wire_type {
|
2462
3044
|
"red",
|