typed-factorio 2.12.0 → 2.14.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -190,581 +190,579 @@ import type {
190
190
  ScriptRaisedTeleportedEvent,
191
191
  } from "factorio:runtime"
192
192
 
193
- import type { PrototypeSubclassMap } from "factorio:prototype"
194
-
195
193
  declare global {
196
194
  namespace defines {
197
195
  enum alert_type {
198
- custom,
199
- entity_destroyed,
200
- entity_under_attack,
201
- no_material_for_construction,
202
- no_storage,
203
- not_enough_construction_robots,
204
- not_enough_repair_packs,
205
- train_out_of_fuel,
206
- turret_fire,
196
+ "custom",
197
+ "entity_destroyed",
198
+ "entity_under_attack",
199
+ "no_material_for_construction",
200
+ "no_storage",
201
+ "not_enough_construction_robots",
202
+ "not_enough_repair_packs",
203
+ "train_out_of_fuel",
204
+ "turret_fire",
207
205
  }
208
206
  /**
209
207
  * AI command exit status. See {@link LuaEntity#set_command LuaEntity::set_command}
210
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.behavior_result Online documentation}
208
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.behavior_result Online documentation}
211
209
  */
212
210
  enum behavior_result {
213
- in_progress,
214
- fail,
215
- success,
216
- deleted,
211
+ "in_progress",
212
+ "fail",
213
+ "success",
214
+ "deleted",
217
215
  }
218
216
  enum build_check_type {
219
- script,
220
- manual,
221
- manual_ghost,
222
- script_ghost,
223
- blueprint_ghost,
224
- ghost_revive,
217
+ "script",
218
+ "manual",
219
+ "manual_ghost",
220
+ "script_ghost",
221
+ "blueprint_ghost",
222
+ "ghost_revive",
225
223
  }
226
224
  /**
227
225
  * State of a chain signal.
228
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.chain_signal_state Online documentation}
226
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.chain_signal_state Online documentation}
229
227
  */
230
228
  enum chain_signal_state {
231
- none,
232
- all_open,
233
- partially_open,
234
- none_open,
229
+ "none",
230
+ "all_open",
231
+ "partially_open",
232
+ "none_open",
235
233
  }
236
234
  enum chunk_generated_status {
237
- nothing,
238
- custom_tiles,
239
- basic_tiles,
240
- corrected_tiles,
241
- tiles,
242
- entities,
235
+ "nothing",
236
+ "custom_tiles",
237
+ "basic_tiles",
238
+ "corrected_tiles",
239
+ "tiles",
240
+ "entities",
243
241
  }
244
242
  enum circuit_condition_index {
245
- inserter_circuit,
246
- inserter_logistic,
247
- lamp,
248
- arithmetic_combinator,
249
- decider_combinator,
250
- constant_combinator,
251
- offshore_pump,
252
- pump,
243
+ "inserter_circuit",
244
+ "inserter_logistic",
245
+ "lamp",
246
+ "arithmetic_combinator",
247
+ "decider_combinator",
248
+ "constant_combinator",
249
+ "offshore_pump",
250
+ "pump",
253
251
  }
254
252
  enum circuit_connector_id {
255
- accumulator,
256
- constant_combinator,
257
- container,
258
- linked_container,
259
- programmable_speaker,
260
- rail_signal,
261
- rail_chain_signal,
262
- roboport,
263
- storage_tank,
264
- wall,
265
- electric_pole,
266
- inserter,
267
- lamp,
268
- combinator_input,
269
- combinator_output,
270
- offshore_pump,
271
- pump,
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",
272
270
  }
273
271
  /**
274
272
  * Command given to units describing what they should do.
275
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.command Online documentation}
273
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.command Online documentation}
276
274
  */
277
275
  enum command {
278
276
  /**
279
277
  * Attack another entity.
280
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.command.attack Online documentation}
278
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.command.attack Online documentation}
281
279
  */
282
- attack = 0,
280
+ "attack" = 0,
283
281
  /**
284
282
  * Go to a specific position.
285
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.command.go_to_location Online documentation}
283
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.command.go_to_location Online documentation}
286
284
  */
287
- go_to_location = 1,
285
+ "go_to_location" = 1,
288
286
  /**
289
287
  * Chain commands together, see {@link defines.compound_command}.
290
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.command.compound Online documentation}
288
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.command.compound Online documentation}
291
289
  */
292
- compound = 2,
290
+ "compound" = 2,
293
291
  /**
294
292
  * Do what your group wants you to do.
295
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.command.group Online documentation}
293
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.command.group Online documentation}
296
294
  */
297
- group = 3,
295
+ "group" = 3,
298
296
  /**
299
297
  * Go to a place and attack what you see.
300
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.command.attack_area Online documentation}
298
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.command.attack_area Online documentation}
301
299
  */
302
- attack_area = 4,
300
+ "attack_area" = 4,
303
301
  /**
304
302
  * Chill.
305
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.command.wander Online documentation}
303
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.command.wander Online documentation}
306
304
  */
307
- wander = 5,
305
+ "wander" = 5,
308
306
  /**
309
307
  * Flee from another entity.
310
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.command.flee Online documentation}
308
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.command.flee Online documentation}
311
309
  */
312
- flee = 6,
310
+ "flee" = 6,
313
311
  /**
314
312
  * Stop moving and stay where you are.
315
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.command.stop Online documentation}
313
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.command.stop Online documentation}
316
314
  */
317
- stop = 7,
315
+ "stop" = 7,
318
316
  /**
319
317
  * Go to a position and build a base there.
320
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.command.build_base Online documentation}
318
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.command.build_base Online documentation}
321
319
  */
322
- build_base = 8,
320
+ "build_base" = 8,
323
321
  }
324
322
  /**
325
323
  * How commands are joined together in a compound command (see {@link defines.command.compound}).
326
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.compound_command Online documentation}
324
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.compound_command Online documentation}
327
325
  */
328
326
  enum compound_command {
329
327
  /**
330
328
  * Fail on first failure. Only succeeds if all commands (executed one after another) succeed.
331
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.compound_command.logical_and Online documentation}
329
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.compound_command.logical_and Online documentation}
332
330
  */
333
- logical_and,
331
+ "logical_and",
334
332
  /**
335
333
  * Succeed on first success. Only fails if all commands (executed one after another) fail.
336
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.compound_command.logical_or Online documentation}
334
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.compound_command.logical_or Online documentation}
337
335
  */
338
- logical_or,
336
+ "logical_or",
339
337
  /**
340
338
  * Execute all commands in sequence and fail or succeed depending on the return status of the last command.
341
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.compound_command.return_last Online documentation}
339
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.compound_command.return_last Online documentation}
342
340
  */
343
- return_last,
341
+ "return_last",
344
342
  }
345
343
  namespace control_behavior {
346
344
  namespace inserter {
347
345
  enum circuit_mode_of_operation {
348
- none,
349
- enable_disable,
350
- set_filters,
351
- read_hand_contents,
352
- set_stack_size,
346
+ "none",
347
+ "enable_disable",
348
+ "set_filters",
349
+ "read_hand_contents",
350
+ "set_stack_size",
353
351
  }
354
352
  enum hand_read_mode {
355
- hold,
356
- pulse,
353
+ "hold",
354
+ "pulse",
357
355
  }
358
356
  }
359
357
  namespace logistic_container {
360
358
  enum circuit_mode_of_operation {
361
- send_contents,
362
- set_requests,
359
+ "send_contents",
360
+ "set_requests",
363
361
  }
364
362
  }
365
363
  namespace lamp {
366
364
  enum circuit_mode_of_operation {
367
- use_colors,
365
+ "use_colors",
368
366
  }
369
367
  }
370
368
  namespace mining_drill {
371
369
  enum resource_read_mode {
372
- this_miner,
373
- entire_patch,
370
+ "this_miner",
371
+ "entire_patch",
374
372
  }
375
373
  }
376
374
  namespace transport_belt {
377
375
  enum content_read_mode {
378
- pulse,
379
- hold,
376
+ "pulse",
377
+ "hold",
380
378
  }
381
379
  }
382
380
  enum type {
383
381
  /**
384
382
  * {@link LuaContainerControlBehavior}
385
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.control_behavior.type.container Online documentation}
383
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.control_behavior.type.container Online documentation}
386
384
  */
387
- container,
385
+ "container",
388
386
  /**
389
387
  * {@link LuaGenericOnOffControlBehavior}
390
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.control_behavior.type.generic_on_off Online documentation}
388
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.control_behavior.type.generic_on_off Online documentation}
391
389
  */
392
- generic_on_off,
390
+ "generic_on_off",
393
391
  /**
394
392
  * {@link LuaInserterControlBehavior}
395
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.control_behavior.type.inserter Online documentation}
393
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.control_behavior.type.inserter Online documentation}
396
394
  */
397
- inserter,
395
+ "inserter",
398
396
  /**
399
397
  * {@link LuaLampControlBehavior}
400
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.control_behavior.type.lamp Online documentation}
398
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.control_behavior.type.lamp Online documentation}
401
399
  */
402
- lamp,
400
+ "lamp",
403
401
  /**
404
402
  * {@link LuaLogisticContainerControlBehavior}
405
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.control_behavior.type.logistic_container Online documentation}
403
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.control_behavior.type.logistic_container Online documentation}
406
404
  */
407
- logistic_container,
405
+ "logistic_container",
408
406
  /**
409
407
  * {@link LuaRoboportControlBehavior}
410
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.control_behavior.type.roboport Online documentation}
408
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.control_behavior.type.roboport Online documentation}
411
409
  */
412
- roboport,
410
+ "roboport",
413
411
  /**
414
412
  * {@link LuaStorageTankControlBehavior}
415
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.control_behavior.type.storage_tank Online documentation}
413
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.control_behavior.type.storage_tank Online documentation}
416
414
  */
417
- storage_tank,
415
+ "storage_tank",
418
416
  /**
419
417
  * {@link LuaTrainStopControlBehavior}
420
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.control_behavior.type.train_stop Online documentation}
418
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.control_behavior.type.train_stop Online documentation}
421
419
  */
422
- train_stop,
420
+ "train_stop",
423
421
  /**
424
422
  * {@link LuaDeciderCombinatorControlBehavior}
425
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.control_behavior.type.decider_combinator Online documentation}
423
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.control_behavior.type.decider_combinator Online documentation}
426
424
  */
427
- decider_combinator,
425
+ "decider_combinator",
428
426
  /**
429
427
  * {@link LuaArithmeticCombinatorControlBehavior}
430
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.control_behavior.type.arithmetic_combinator Online documentation}
428
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.control_behavior.type.arithmetic_combinator Online documentation}
431
429
  */
432
- arithmetic_combinator,
430
+ "arithmetic_combinator",
433
431
  /**
434
432
  * {@link LuaConstantCombinatorControlBehavior}
435
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.control_behavior.type.constant_combinator Online documentation}
433
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.control_behavior.type.constant_combinator Online documentation}
436
434
  */
437
- constant_combinator,
435
+ "constant_combinator",
438
436
  /**
439
437
  * {@link LuaTransportBeltControlBehavior}
440
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.control_behavior.type.transport_belt Online documentation}
438
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.control_behavior.type.transport_belt Online documentation}
441
439
  */
442
- transport_belt,
440
+ "transport_belt",
443
441
  /**
444
442
  * {@link LuaAccumulatorControlBehavior}
445
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.control_behavior.type.accumulator Online documentation}
443
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.control_behavior.type.accumulator Online documentation}
446
444
  */
447
- accumulator,
445
+ "accumulator",
448
446
  /**
449
447
  * {@link LuaRailSignalControlBehavior}
450
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.control_behavior.type.rail_signal Online documentation}
448
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.control_behavior.type.rail_signal Online documentation}
451
449
  */
452
- rail_signal,
450
+ "rail_signal",
453
451
  /**
454
452
  * {@link LuaRailChainSignalControlBehavior}
455
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.control_behavior.type.rail_chain_signal Online documentation}
453
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.control_behavior.type.rail_chain_signal Online documentation}
456
454
  */
457
- rail_chain_signal,
455
+ "rail_chain_signal",
458
456
  /**
459
457
  * {@link LuaWallControlBehavior}
460
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.control_behavior.type.wall Online documentation}
458
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.control_behavior.type.wall Online documentation}
461
459
  */
462
- wall,
460
+ "wall",
463
461
  /**
464
462
  * {@link LuaMiningDrillControlBehavior}
465
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.control_behavior.type.mining_drill Online documentation}
463
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.control_behavior.type.mining_drill Online documentation}
466
464
  */
467
- mining_drill,
465
+ "mining_drill",
468
466
  /**
469
467
  * {@link LuaProgrammableSpeakerControlBehavior}
470
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.control_behavior.type.programmable_speaker Online documentation}
468
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.control_behavior.type.programmable_speaker Online documentation}
471
469
  */
472
- programmable_speaker,
470
+ "programmable_speaker",
473
471
  }
474
472
  }
475
473
  enum controllers {
476
474
  /**
477
475
  * Can't interact with the world, can only observe. Used in the multiplayer waiting-to-respawn screen.
478
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.controllers.ghost Online documentation}
476
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.controllers.ghost Online documentation}
479
477
  */
480
- ghost,
478
+ "ghost",
481
479
  /**
482
480
  * The controller controls a character. This is the default controller in freeplay.
483
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.controllers.character Online documentation}
481
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.controllers.character Online documentation}
484
482
  */
485
- character,
483
+ "character",
486
484
  /**
487
485
  * The controller isn't tied to a character. This is the default controller in sandbox.
488
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.controllers.god Online documentation}
486
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.controllers.god Online documentation}
489
487
  */
490
- god,
488
+ "god",
491
489
  /**
492
490
  * The Editor Controller near ultimate power to do almost anything in the game.
493
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.controllers.editor Online documentation}
491
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.controllers.editor Online documentation}
494
492
  */
495
- editor,
493
+ "editor",
496
494
  /**
497
495
  * The player can't interact with the world, and the camera pans around in a predefined manner.
498
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.controllers.cutscene Online documentation}
496
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.controllers.cutscene Online documentation}
499
497
  */
500
- cutscene,
498
+ "cutscene",
501
499
  /**
502
500
  * Can't change anything in the world but can view anything.
503
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.controllers.spectator Online documentation}
501
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.controllers.spectator Online documentation}
504
502
  */
505
- spectator,
503
+ "spectator",
506
504
  }
507
505
  namespace deconstruction_item {
508
506
  enum entity_filter_mode {
509
- whitelist,
510
- blacklist,
507
+ "whitelist",
508
+ "blacklist",
511
509
  }
512
510
  enum tile_filter_mode {
513
- whitelist,
514
- blacklist,
511
+ "whitelist",
512
+ "blacklist",
515
513
  }
516
514
  enum tile_selection_mode {
517
- normal,
518
- always,
519
- never,
520
- only,
515
+ "normal",
516
+ "always",
517
+ "never",
518
+ "only",
521
519
  }
522
520
  }
523
521
  enum difficulty {
524
- easy,
525
- normal,
526
- hard,
522
+ "easy",
523
+ "normal",
524
+ "hard",
527
525
  }
528
526
  namespace difficulty_settings {
529
527
  enum recipe_difficulty {
530
- normal,
531
- expensive,
528
+ "normal",
529
+ "expensive",
532
530
  }
533
531
  enum technology_difficulty {
534
- normal,
535
- expensive,
532
+ "normal",
533
+ "expensive",
536
534
  }
537
535
  }
538
536
  enum direction {
539
- north = 0,
540
- northeast = 1,
541
- east = 2,
542
- southeast = 3,
543
- south = 4,
544
- southwest = 5,
545
- west = 6,
546
- northwest = 7,
537
+ "north" = 0,
538
+ "northeast" = 1,
539
+ "east" = 2,
540
+ "southeast" = 3,
541
+ "south" = 4,
542
+ "southwest" = 5,
543
+ "west" = 6,
544
+ "northwest" = 7,
547
545
  }
548
546
  enum disconnect_reason {
549
- quit,
550
- dropped,
551
- reconnect,
552
- wrong_input,
553
- desync_limit_reached,
554
- cannot_keep_up,
555
- afk,
556
- kicked,
557
- kicked_and_deleted,
558
- banned,
559
- switching_servers,
547
+ "quit",
548
+ "dropped",
549
+ "reconnect",
550
+ "wrong_input",
551
+ "desync_limit_reached",
552
+ "cannot_keep_up",
553
+ "afk",
554
+ "kicked",
555
+ "kicked_and_deleted",
556
+ "banned",
557
+ "switching_servers",
560
558
  }
561
559
  enum distraction {
562
560
  /**
563
561
  * Perform command even if someone attacks the unit.
564
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.distraction.none Online documentation}
562
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.distraction.none Online documentation}
565
563
  */
566
- none,
564
+ "none",
567
565
  /**
568
566
  * Attack closer enemy entities with force.
569
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.distraction.by_enemy Online documentation}
567
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.distraction.by_enemy Online documentation}
570
568
  */
571
- by_enemy,
569
+ "by_enemy",
572
570
  /**
573
571
  * Attack closer enemy entities, including entities "built" by player (belts, inserters, chests).
574
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.distraction.by_anything Online documentation}
572
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.distraction.by_anything Online documentation}
575
573
  */
576
- by_anything,
574
+ "by_anything",
577
575
  /**
578
576
  * Attack when attacked.
579
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.distraction.by_damage Online documentation}
577
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.distraction.by_damage Online documentation}
580
578
  */
581
- by_damage,
579
+ "by_damage",
582
580
  }
583
581
  enum entity_status {
584
- working,
585
- normal,
586
- no_power,
587
- low_power,
588
- no_fuel,
589
- disabled_by_control_behavior,
590
- opened_by_circuit_network,
591
- closed_by_circuit_network,
592
- disabled_by_script,
593
- marked_for_deconstruction,
582
+ "working",
583
+ "normal",
584
+ "no_power",
585
+ "low_power",
586
+ "no_fuel",
587
+ "disabled_by_control_behavior",
588
+ "opened_by_circuit_network",
589
+ "closed_by_circuit_network",
590
+ "disabled_by_script",
591
+ "marked_for_deconstruction",
594
592
  /**
595
593
  * Used by generators and solar panels.
596
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.entity_status.not_plugged_in_electric_network Online documentation}
594
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.entity_status.not_plugged_in_electric_network Online documentation}
597
595
  */
598
- not_plugged_in_electric_network,
596
+ "not_plugged_in_electric_network",
599
597
  /**
600
598
  * Used by power switches.
601
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.entity_status.networks_connected Online documentation}
599
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.entity_status.networks_connected Online documentation}
602
600
  */
603
- networks_connected,
601
+ "networks_connected",
604
602
  /**
605
603
  * Used by power switches.
606
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.entity_status.networks_disconnected Online documentation}
604
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.entity_status.networks_disconnected Online documentation}
607
605
  */
608
- networks_disconnected,
606
+ "networks_disconnected",
609
607
  /**
610
608
  * Used by accumulators.
611
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.entity_status.charging Online documentation}
609
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.entity_status.charging Online documentation}
612
610
  */
613
- charging,
611
+ "charging",
614
612
  /**
615
613
  * Used by accumulators.
616
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.entity_status.discharging Online documentation}
614
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.entity_status.discharging Online documentation}
617
615
  */
618
- discharging,
616
+ "discharging",
619
617
  /**
620
618
  * Used by accumulators.
621
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.entity_status.fully_charged Online documentation}
619
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.entity_status.fully_charged Online documentation}
622
620
  */
623
- fully_charged,
621
+ "fully_charged",
624
622
  /**
625
623
  * Used by logistic containers.
626
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.entity_status.out_of_logistic_network Online documentation}
624
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.entity_status.out_of_logistic_network Online documentation}
627
625
  */
628
- out_of_logistic_network,
626
+ "out_of_logistic_network",
629
627
  /**
630
628
  * Used by assembling machines.
631
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.entity_status.no_recipe Online documentation}
629
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.entity_status.no_recipe Online documentation}
632
630
  */
633
- no_recipe,
631
+ "no_recipe",
634
632
  /**
635
633
  * Used by furnaces.
636
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.entity_status.no_ingredients Online documentation}
634
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.entity_status.no_ingredients Online documentation}
637
635
  */
638
- no_ingredients,
636
+ "no_ingredients",
639
637
  /**
640
638
  * Used by boilers, fluid turrets and fluid energy sources: Boiler has no fluid to work with.
641
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.entity_status.no_input_fluid Online documentation}
639
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.entity_status.no_input_fluid Online documentation}
642
640
  */
643
- no_input_fluid,
641
+ "no_input_fluid",
644
642
  /**
645
643
  * Used by labs.
646
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.entity_status.no_research_in_progress Online documentation}
644
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.entity_status.no_research_in_progress Online documentation}
647
645
  */
648
- no_research_in_progress,
646
+ "no_research_in_progress",
649
647
  /**
650
648
  * Used by mining drills.
651
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.entity_status.no_minable_resources Online documentation}
649
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.entity_status.no_minable_resources Online documentation}
652
650
  */
653
- no_minable_resources,
651
+ "no_minable_resources",
654
652
  /**
655
653
  * Used by boilers and fluid turrets: Boiler still has some fluid but is about to run out.
656
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.entity_status.low_input_fluid Online documentation}
654
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.entity_status.low_input_fluid Online documentation}
657
655
  */
658
- low_input_fluid,
656
+ "low_input_fluid",
659
657
  /**
660
658
  * Used by crafting machines.
661
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.entity_status.fluid_ingredient_shortage Online documentation}
659
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.entity_status.fluid_ingredient_shortage Online documentation}
662
660
  */
663
- fluid_ingredient_shortage,
661
+ "fluid_ingredient_shortage",
664
662
  /**
665
663
  * Used by crafting machines, boilers, burner energy sources and reactors: Reactor/burner has full burnt result inventory, boiler has full output fluidbox.
666
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.entity_status.full_output Online documentation}
664
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.entity_status.full_output Online documentation}
667
665
  */
668
- full_output,
666
+ "full_output",
669
667
  /**
670
668
  * Used by burner energy sources.
671
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.entity_status.full_burnt_result_output Online documentation}
669
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.entity_status.full_burnt_result_output Online documentation}
672
670
  */
673
- full_burnt_result_output,
671
+ "full_burnt_result_output",
674
672
  /**
675
673
  * Used by crafting machines.
676
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.entity_status.item_ingredient_shortage Online documentation}
674
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.entity_status.item_ingredient_shortage Online documentation}
677
675
  */
678
- item_ingredient_shortage,
676
+ "item_ingredient_shortage",
679
677
  /**
680
678
  * Used by mining drills when the mining fluid is missing.
681
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.entity_status.missing_required_fluid Online documentation}
679
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.entity_status.missing_required_fluid Online documentation}
682
680
  */
683
- missing_required_fluid,
681
+ "missing_required_fluid",
684
682
  /**
685
683
  * Used by labs.
686
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.entity_status.missing_science_packs Online documentation}
684
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.entity_status.missing_science_packs Online documentation}
687
685
  */
688
- missing_science_packs,
686
+ "missing_science_packs",
689
687
  /**
690
688
  * Used by inserters.
691
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.entity_status.waiting_for_source_items Online documentation}
689
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.entity_status.waiting_for_source_items Online documentation}
692
690
  */
693
- waiting_for_source_items,
691
+ "waiting_for_source_items",
694
692
  /**
695
693
  * Used by inserters and mining drills.
696
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.entity_status.waiting_for_space_in_destination Online documentation}
694
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.entity_status.waiting_for_space_in_destination Online documentation}
697
695
  */
698
- waiting_for_space_in_destination,
696
+ "waiting_for_space_in_destination",
699
697
  /**
700
698
  * Used by the rocket silo.
701
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.entity_status.preparing_rocket_for_launch Online documentation}
699
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.entity_status.preparing_rocket_for_launch Online documentation}
702
700
  */
703
- preparing_rocket_for_launch,
701
+ "preparing_rocket_for_launch",
704
702
  /**
705
703
  * Used by the rocket silo.
706
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.entity_status.waiting_to_launch_rocket Online documentation}
704
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.entity_status.waiting_to_launch_rocket Online documentation}
707
705
  */
708
- waiting_to_launch_rocket,
706
+ "waiting_to_launch_rocket",
709
707
  /**
710
708
  * Used by the rocket silo.
711
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.entity_status.launching_rocket Online documentation}
709
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.entity_status.launching_rocket Online documentation}
712
710
  */
713
- launching_rocket,
711
+ "launching_rocket",
714
712
  /**
715
713
  * Used by beacons.
716
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.entity_status.no_modules_to_transmit Online documentation}
714
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.entity_status.no_modules_to_transmit Online documentation}
717
715
  */
718
- no_modules_to_transmit,
716
+ "no_modules_to_transmit",
719
717
  /**
720
718
  * Used by roboports.
721
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.entity_status.recharging_after_power_outage Online documentation}
719
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.entity_status.recharging_after_power_outage Online documentation}
722
720
  */
723
- recharging_after_power_outage,
721
+ "recharging_after_power_outage",
724
722
  /**
725
723
  * Used by inserters targeting entity ghosts.
726
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.entity_status.waiting_for_target_to_be_built Online documentation}
724
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.entity_status.waiting_for_target_to_be_built Online documentation}
727
725
  */
728
- waiting_for_target_to_be_built,
726
+ "waiting_for_target_to_be_built",
729
727
  /**
730
728
  * Used by inserters targeting rails.
731
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.entity_status.waiting_for_train Online documentation}
729
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.entity_status.waiting_for_train Online documentation}
732
730
  */
733
- waiting_for_train,
731
+ "waiting_for_train",
734
732
  /**
735
733
  * Used by ammo turrets.
736
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.entity_status.no_ammo Online documentation}
734
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.entity_status.no_ammo Online documentation}
737
735
  */
738
- no_ammo,
736
+ "no_ammo",
739
737
  /**
740
738
  * Used by heat energy sources.
741
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.entity_status.low_temperature Online documentation}
739
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.entity_status.low_temperature Online documentation}
742
740
  */
743
- low_temperature,
741
+ "low_temperature",
744
742
  /**
745
743
  * Used by constant combinators: Combinator is turned off via switch in GUI.
746
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.entity_status.disabled Online documentation}
744
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.entity_status.disabled Online documentation}
747
745
  */
748
- disabled,
746
+ "disabled",
749
747
  /**
750
748
  * Used by lamps.
751
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.entity_status.turned_off_during_daytime Online documentation}
749
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.entity_status.turned_off_during_daytime Online documentation}
752
750
  */
753
- turned_off_during_daytime,
751
+ "turned_off_during_daytime",
754
752
  /**
755
753
  * Used by rail signals.
756
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.entity_status.not_connected_to_rail Online documentation}
754
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.entity_status.not_connected_to_rail Online documentation}
757
755
  */
758
- not_connected_to_rail,
756
+ "not_connected_to_rail",
759
757
  /**
760
758
  * Used by rail signals.
761
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.entity_status.cant_divide_segments Online documentation}
759
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.entity_status.cant_divide_segments Online documentation}
762
760
  */
763
- cant_divide_segments,
761
+ "cant_divide_segments",
764
762
  }
765
763
  /**
766
- * See the {@linkplain https://lua-api.factorio.com/1.1.109/events.html events page} for more info on what events contain and when they get raised.
767
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.events Online documentation}
764
+ * See the {@linkplain https://lua-api.factorio.com/1.1.110/events.html events page} for more info on what events contain and when they get raised.
765
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.events Online documentation}
768
766
  */
769
767
  namespace events {
770
768
  /**
@@ -1505,672 +1503,965 @@ declare global {
1505
1503
  const script_raised_teleported: EventId<ScriptRaisedTeleportedEvent>
1506
1504
  }
1507
1505
  /**
1508
- * See the {@linkplain https://lua-api.factorio.com/1.1.109/events.html events page} for more info on what events contain and when they get raised.
1509
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.events Online documentation}
1506
+ * See the {@linkplain https://lua-api.factorio.com/1.1.110/events.html events page} for more info on what events contain and when they get raised.
1507
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.events Online documentation}
1510
1508
  */
1511
1509
  type events = (typeof events)[keyof typeof events]
1512
1510
  enum flow_precision_index {
1513
- five_seconds,
1514
- one_minute,
1515
- ten_minutes,
1516
- one_hour,
1517
- ten_hours,
1518
- fifty_hours,
1519
- two_hundred_fifty_hours,
1520
- one_thousand_hours,
1511
+ "five_seconds",
1512
+ "one_minute",
1513
+ "ten_minutes",
1514
+ "one_hour",
1515
+ "ten_hours",
1516
+ "fifty_hours",
1517
+ "two_hundred_fifty_hours",
1518
+ "one_thousand_hours",
1521
1519
  }
1522
1520
  enum game_controller_interaction {
1523
1521
  /**
1524
1522
  * Game controller will always hover this element regardless of type or state.
1525
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.game_controller_interaction.always Online documentation}
1523
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.game_controller_interaction.always Online documentation}
1526
1524
  */
1527
- always,
1525
+ "always",
1528
1526
  /**
1529
1527
  * Never hover this element with a game controller.
1530
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.game_controller_interaction.never Online documentation}
1528
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.game_controller_interaction.never Online documentation}
1531
1529
  */
1532
- never,
1530
+ "never",
1533
1531
  /**
1534
1532
  * Hover according to the element type and implementation.
1535
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.game_controller_interaction.normal Online documentation}
1533
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.game_controller_interaction.normal Online documentation}
1536
1534
  */
1537
- normal,
1535
+ "normal",
1538
1536
  }
1539
1537
  enum group_state {
1540
- gathering,
1541
- moving,
1542
- attacking_distraction,
1543
- attacking_target,
1544
- finished,
1545
- pathfinding,
1546
- wander_in_group,
1538
+ "gathering",
1539
+ "moving",
1540
+ "attacking_distraction",
1541
+ "attacking_target",
1542
+ "finished",
1543
+ "pathfinding",
1544
+ "wander_in_group",
1547
1545
  }
1548
1546
  enum gui_type {
1549
- achievement,
1550
- blueprint_library,
1551
- bonus,
1552
- controller,
1553
- custom,
1554
- entity,
1555
- equipment,
1556
- item,
1557
- logistic,
1558
- none,
1559
- other_player,
1560
- permissions,
1561
- player_management,
1562
- production,
1563
- research,
1564
- script_inventory,
1565
- server_management,
1566
- tile,
1567
- trains,
1568
- tutorials,
1547
+ "achievement",
1548
+ "blueprint_library",
1549
+ "bonus",
1550
+ "controller",
1551
+ "custom",
1552
+ "entity",
1553
+ "equipment",
1554
+ "item",
1555
+ "logistic",
1556
+ "none",
1557
+ "other_player",
1558
+ "permissions",
1559
+ "player_management",
1560
+ "production",
1561
+ "research",
1562
+ "script_inventory",
1563
+ "server_management",
1564
+ "tile",
1565
+ "trains",
1566
+ "tutorials",
1569
1567
  }
1570
1568
  enum input_action {
1571
- activate_copy,
1572
- activate_cut,
1573
- activate_paste,
1574
- add_permission_group,
1575
- add_train_station,
1576
- admin_action,
1577
- alt_reverse_select_area,
1578
- alt_select_area,
1579
- alt_select_blueprint_entities,
1580
- alternative_copy,
1581
- begin_mining,
1582
- begin_mining_terrain,
1583
- build,
1584
- build_rail,
1585
- build_terrain,
1586
- cancel_craft,
1587
- cancel_deconstruct,
1588
- cancel_new_blueprint,
1589
- cancel_research,
1590
- cancel_upgrade,
1591
- change_active_character_tab,
1592
- change_active_item_group_for_crafting,
1593
- change_active_item_group_for_filters,
1594
- change_active_quick_bar,
1595
- change_arithmetic_combinator_parameters,
1596
- change_decider_combinator_parameters,
1597
- change_entity_label,
1598
- change_item_description,
1599
- change_item_label,
1600
- change_multiplayer_config,
1601
- change_picking_state,
1602
- change_programmable_speaker_alert_parameters,
1603
- change_programmable_speaker_circuit_parameters,
1604
- change_programmable_speaker_parameters,
1605
- change_riding_state,
1606
- change_shooting_state,
1607
- change_train_stop_station,
1608
- change_train_wait_condition,
1609
- change_train_wait_condition_data,
1610
- clear_cursor,
1611
- connect_rolling_stock,
1612
- copy,
1613
- copy_entity_settings,
1614
- copy_opened_blueprint,
1615
- copy_opened_item,
1616
- craft,
1617
- cursor_split,
1618
- cursor_transfer,
1619
- custom_input,
1620
- cycle_blueprint_book_backwards,
1621
- cycle_blueprint_book_forwards,
1622
- deconstruct,
1623
- delete_blueprint_library,
1624
- delete_blueprint_record,
1625
- delete_custom_tag,
1626
- delete_permission_group,
1627
- destroy_item,
1628
- destroy_opened_item,
1629
- disconnect_rolling_stock,
1630
- drag_train_schedule,
1631
- drag_train_wait_condition,
1632
- drop_blueprint_record,
1633
- drop_item,
1634
- edit_blueprint_tool_preview,
1635
- edit_custom_tag,
1636
- edit_permission_group,
1637
- export_blueprint,
1638
- fast_entity_split,
1639
- fast_entity_transfer,
1640
- flush_opened_entity_fluid,
1641
- flush_opened_entity_specific_fluid,
1642
- go_to_train_station,
1643
- grab_blueprint_record,
1644
- gui_checked_state_changed,
1645
- gui_click,
1646
- gui_confirmed,
1647
- gui_elem_changed,
1648
- gui_hover,
1649
- gui_leave,
1650
- gui_location_changed,
1651
- gui_selected_tab_changed,
1652
- gui_selection_state_changed,
1653
- gui_switch_state_changed,
1654
- gui_text_changed,
1655
- gui_value_changed,
1656
- import_blueprint,
1657
- import_blueprint_string,
1658
- import_blueprints_filtered,
1659
- import_permissions_string,
1660
- inventory_split,
1661
- inventory_transfer,
1662
- launch_rocket,
1663
- lua_shortcut,
1664
- map_editor_action,
1665
- market_offer,
1666
- mod_settings_changed,
1667
- open_achievements_gui,
1668
- open_blueprint_library_gui,
1669
- open_blueprint_record,
1670
- open_bonus_gui,
1671
- open_character_gui,
1672
- open_current_vehicle_gui,
1673
- open_equipment,
1674
- open_gui,
1675
- open_item,
1676
- open_logistic_gui,
1677
- open_mod_item,
1678
- open_parent_of_opened_item,
1679
- open_production_gui,
1680
- open_technology_gui,
1681
- open_tips_and_tricks_gui,
1682
- open_train_gui,
1683
- open_train_station_gui,
1684
- open_trains_gui,
1685
- paste_entity_settings,
1686
- place_equipment,
1687
- quick_bar_pick_slot,
1688
- quick_bar_set_selected_page,
1689
- quick_bar_set_slot,
1690
- reassign_blueprint,
1691
- remove_cables,
1692
- remove_train_station,
1693
- reset_assembling_machine,
1694
- reset_item,
1695
- reverse_select_area,
1696
- rotate_entity,
1697
- select_area,
1698
- select_blueprint_entities,
1699
- select_entity_slot,
1700
- select_item,
1701
- select_mapper_slot,
1702
- select_next_valid_gun,
1703
- select_tile_slot,
1704
- send_spidertron,
1705
- set_auto_launch_rocket,
1706
- set_autosort_inventory,
1707
- set_behavior_mode,
1708
- set_car_weapons_control,
1709
- set_circuit_condition,
1710
- set_circuit_mode_of_operation,
1711
- set_controller_logistic_trash_filter_item,
1712
- set_deconstruction_item_tile_selection_mode,
1713
- set_deconstruction_item_trees_and_rocks_only,
1714
- set_entity_color,
1715
- set_entity_energy_property,
1716
- set_entity_logistic_trash_filter_item,
1717
- set_filter,
1718
- set_flat_controller_gui,
1719
- set_heat_interface_mode,
1720
- set_heat_interface_temperature,
1721
- set_infinity_container_filter_item,
1722
- set_infinity_container_remove_unfiltered_items,
1723
- set_infinity_pipe_filter,
1724
- set_inserter_max_stack_size,
1725
- set_inventory_bar,
1726
- set_linked_container_link_i_d,
1727
- set_logistic_filter_item,
1728
- set_logistic_filter_signal,
1729
- set_player_color,
1730
- set_recipe_notifications,
1731
- set_request_from_buffers,
1732
- set_research_finished_stops_game,
1733
- set_signal,
1734
- set_splitter_priority,
1735
- set_train_stopped,
1736
- set_trains_limit,
1737
- set_vehicle_automatic_targeting_parameters,
1738
- setup_assembling_machine,
1739
- setup_blueprint,
1740
- setup_single_blueprint_record,
1741
- smart_pipette,
1742
- spawn_item,
1743
- stack_split,
1744
- stack_transfer,
1745
- start_repair,
1746
- start_research,
1747
- start_walking,
1748
- stop_building_by_moving,
1749
- switch_connect_to_logistic_network,
1750
- switch_constant_combinator_state,
1751
- switch_inserter_filter_mode_state,
1752
- switch_power_switch_state,
1753
- switch_to_rename_stop_gui,
1754
- take_equipment,
1755
- toggle_deconstruction_item_entity_filter_mode,
1756
- toggle_deconstruction_item_tile_filter_mode,
1757
- toggle_driving,
1758
- toggle_enable_vehicle_logistics_while_moving,
1759
- toggle_entity_logistic_requests,
1760
- toggle_equipment_movement_bonus,
1761
- toggle_map_editor,
1762
- toggle_personal_logistic_requests,
1763
- toggle_personal_roboport,
1764
- toggle_show_entity_info,
1765
- translate_string,
1766
- undo,
1767
- upgrade,
1768
- upgrade_opened_blueprint_by_item,
1769
- upgrade_opened_blueprint_by_record,
1770
- use_artillery_remote,
1771
- use_item,
1772
- wire_dragging,
1773
- write_to_console,
1569
+ "activate_copy",
1570
+ "activate_cut",
1571
+ "activate_paste",
1572
+ "add_permission_group",
1573
+ "add_train_station",
1574
+ "admin_action",
1575
+ "alt_reverse_select_area",
1576
+ "alt_select_area",
1577
+ "alt_select_blueprint_entities",
1578
+ "alternative_copy",
1579
+ "begin_mining",
1580
+ "begin_mining_terrain",
1581
+ "build",
1582
+ "build_rail",
1583
+ "build_terrain",
1584
+ "cancel_craft",
1585
+ "cancel_deconstruct",
1586
+ "cancel_new_blueprint",
1587
+ "cancel_research",
1588
+ "cancel_upgrade",
1589
+ "change_active_character_tab",
1590
+ "change_active_item_group_for_crafting",
1591
+ "change_active_item_group_for_filters",
1592
+ "change_active_quick_bar",
1593
+ "change_arithmetic_combinator_parameters",
1594
+ "change_decider_combinator_parameters",
1595
+ "change_entity_label",
1596
+ "change_item_description",
1597
+ "change_item_label",
1598
+ "change_multiplayer_config",
1599
+ "change_picking_state",
1600
+ "change_programmable_speaker_alert_parameters",
1601
+ "change_programmable_speaker_circuit_parameters",
1602
+ "change_programmable_speaker_parameters",
1603
+ "change_riding_state",
1604
+ "change_shooting_state",
1605
+ "change_train_stop_station",
1606
+ "change_train_wait_condition",
1607
+ "change_train_wait_condition_data",
1608
+ "clear_cursor",
1609
+ "connect_rolling_stock",
1610
+ "copy",
1611
+ "copy_entity_settings",
1612
+ "copy_opened_blueprint",
1613
+ "copy_opened_item",
1614
+ "craft",
1615
+ "cursor_split",
1616
+ "cursor_transfer",
1617
+ "custom_input",
1618
+ "cycle_blueprint_book_backwards",
1619
+ "cycle_blueprint_book_forwards",
1620
+ "deconstruct",
1621
+ "delete_blueprint_library",
1622
+ "delete_blueprint_record",
1623
+ "delete_custom_tag",
1624
+ "delete_permission_group",
1625
+ "destroy_item",
1626
+ "destroy_opened_item",
1627
+ "disconnect_rolling_stock",
1628
+ "drag_train_schedule",
1629
+ "drag_train_wait_condition",
1630
+ "drop_blueprint_record",
1631
+ "drop_item",
1632
+ "edit_blueprint_tool_preview",
1633
+ "edit_custom_tag",
1634
+ "edit_permission_group",
1635
+ "export_blueprint",
1636
+ "fast_entity_split",
1637
+ "fast_entity_transfer",
1638
+ "flush_opened_entity_fluid",
1639
+ "flush_opened_entity_specific_fluid",
1640
+ "go_to_train_station",
1641
+ "grab_blueprint_record",
1642
+ "gui_checked_state_changed",
1643
+ "gui_click",
1644
+ "gui_confirmed",
1645
+ "gui_elem_changed",
1646
+ "gui_hover",
1647
+ "gui_leave",
1648
+ "gui_location_changed",
1649
+ "gui_selected_tab_changed",
1650
+ "gui_selection_state_changed",
1651
+ "gui_switch_state_changed",
1652
+ "gui_text_changed",
1653
+ "gui_value_changed",
1654
+ "import_blueprint",
1655
+ "import_blueprint_string",
1656
+ "import_blueprints_filtered",
1657
+ "import_permissions_string",
1658
+ "inventory_split",
1659
+ "inventory_transfer",
1660
+ "launch_rocket",
1661
+ "lua_shortcut",
1662
+ "map_editor_action",
1663
+ "market_offer",
1664
+ "mod_settings_changed",
1665
+ "open_achievements_gui",
1666
+ "open_blueprint_library_gui",
1667
+ "open_blueprint_record",
1668
+ "open_bonus_gui",
1669
+ "open_character_gui",
1670
+ "open_current_vehicle_gui",
1671
+ "open_equipment",
1672
+ "open_gui",
1673
+ "open_item",
1674
+ "open_logistic_gui",
1675
+ "open_mod_item",
1676
+ "open_parent_of_opened_item",
1677
+ "open_production_gui",
1678
+ "open_technology_gui",
1679
+ "open_tips_and_tricks_gui",
1680
+ "open_train_gui",
1681
+ "open_train_station_gui",
1682
+ "open_trains_gui",
1683
+ "paste_entity_settings",
1684
+ "place_equipment",
1685
+ "quick_bar_pick_slot",
1686
+ "quick_bar_set_selected_page",
1687
+ "quick_bar_set_slot",
1688
+ "reassign_blueprint",
1689
+ "remove_cables",
1690
+ "remove_train_station",
1691
+ "reset_assembling_machine",
1692
+ "reset_item",
1693
+ "reverse_select_area",
1694
+ "rotate_entity",
1695
+ "select_area",
1696
+ "select_blueprint_entities",
1697
+ "select_entity_slot",
1698
+ "select_item",
1699
+ "select_mapper_slot",
1700
+ "select_next_valid_gun",
1701
+ "select_tile_slot",
1702
+ "send_spidertron",
1703
+ "set_auto_launch_rocket",
1704
+ "set_autosort_inventory",
1705
+ "set_behavior_mode",
1706
+ "set_car_weapons_control",
1707
+ "set_circuit_condition",
1708
+ "set_circuit_mode_of_operation",
1709
+ "set_controller_logistic_trash_filter_item",
1710
+ "set_deconstruction_item_tile_selection_mode",
1711
+ "set_deconstruction_item_trees_and_rocks_only",
1712
+ "set_entity_color",
1713
+ "set_entity_energy_property",
1714
+ "set_entity_logistic_trash_filter_item",
1715
+ "set_filter",
1716
+ "set_flat_controller_gui",
1717
+ "set_heat_interface_mode",
1718
+ "set_heat_interface_temperature",
1719
+ "set_infinity_container_filter_item",
1720
+ "set_infinity_container_remove_unfiltered_items",
1721
+ "set_infinity_pipe_filter",
1722
+ "set_inserter_max_stack_size",
1723
+ "set_inventory_bar",
1724
+ "set_linked_container_link_i_d",
1725
+ "set_logistic_filter_item",
1726
+ "set_logistic_filter_signal",
1727
+ "set_player_color",
1728
+ "set_recipe_notifications",
1729
+ "set_request_from_buffers",
1730
+ "set_research_finished_stops_game",
1731
+ "set_signal",
1732
+ "set_splitter_priority",
1733
+ "set_train_stopped",
1734
+ "set_trains_limit",
1735
+ "set_vehicle_automatic_targeting_parameters",
1736
+ "setup_assembling_machine",
1737
+ "setup_blueprint",
1738
+ "setup_single_blueprint_record",
1739
+ "smart_pipette",
1740
+ "spawn_item",
1741
+ "stack_split",
1742
+ "stack_transfer",
1743
+ "start_repair",
1744
+ "start_research",
1745
+ "start_walking",
1746
+ "stop_building_by_moving",
1747
+ "switch_connect_to_logistic_network",
1748
+ "switch_constant_combinator_state",
1749
+ "switch_inserter_filter_mode_state",
1750
+ "switch_power_switch_state",
1751
+ "switch_to_rename_stop_gui",
1752
+ "take_equipment",
1753
+ "toggle_deconstruction_item_entity_filter_mode",
1754
+ "toggle_deconstruction_item_tile_filter_mode",
1755
+ "toggle_driving",
1756
+ "toggle_enable_vehicle_logistics_while_moving",
1757
+ "toggle_entity_logistic_requests",
1758
+ "toggle_equipment_movement_bonus",
1759
+ "toggle_map_editor",
1760
+ "toggle_personal_logistic_requests",
1761
+ "toggle_personal_roboport",
1762
+ "toggle_show_entity_info",
1763
+ "translate_string",
1764
+ "undo",
1765
+ "upgrade",
1766
+ "upgrade_opened_blueprint_by_item",
1767
+ "upgrade_opened_blueprint_by_record",
1768
+ "use_artillery_remote",
1769
+ "use_item",
1770
+ "wire_dragging",
1771
+ "write_to_console",
1774
1772
  }
1775
1773
  enum input_method {
1776
- keyboard_and_mouse,
1777
- game_controller,
1774
+ "keyboard_and_mouse",
1775
+ "game_controller",
1778
1776
  }
1779
1777
  enum inventory {
1780
- fuel,
1781
- burnt_result,
1782
- chest,
1783
- furnace_source,
1784
- furnace_result,
1785
- furnace_modules,
1786
- character_main,
1787
- character_guns,
1788
- character_ammo,
1789
- character_armor,
1790
- character_vehicle,
1791
- character_trash,
1792
- god_main,
1793
- editor_main,
1794
- editor_guns,
1795
- editor_ammo,
1796
- editor_armor,
1797
- roboport_robot,
1798
- roboport_material,
1799
- robot_cargo,
1800
- robot_repair,
1801
- assembling_machine_input,
1802
- assembling_machine_output,
1803
- assembling_machine_modules,
1804
- lab_input,
1805
- lab_modules,
1806
- mining_drill_modules,
1807
- item_main,
1808
- rocket_silo_rocket,
1809
- rocket_silo_result,
1810
- rocket_silo_input,
1811
- rocket_silo_output,
1812
- rocket_silo_modules,
1813
- rocket,
1814
- car_trunk,
1815
- car_ammo,
1816
- cargo_wagon,
1817
- turret_ammo,
1818
- beacon_modules,
1819
- character_corpse,
1820
- artillery_turret_ammo,
1821
- artillery_wagon_ammo,
1822
- spider_trunk,
1823
- spider_ammo,
1824
- spider_trash,
1778
+ "fuel",
1779
+ "burnt_result",
1780
+ "chest",
1781
+ "furnace_source",
1782
+ "furnace_result",
1783
+ "furnace_modules",
1784
+ "character_main",
1785
+ "character_guns",
1786
+ "character_ammo",
1787
+ "character_armor",
1788
+ "character_vehicle",
1789
+ "character_trash",
1790
+ "god_main",
1791
+ "editor_main",
1792
+ "editor_guns",
1793
+ "editor_ammo",
1794
+ "editor_armor",
1795
+ "roboport_robot",
1796
+ "roboport_material",
1797
+ "robot_cargo",
1798
+ "robot_repair",
1799
+ "assembling_machine_input",
1800
+ "assembling_machine_output",
1801
+ "assembling_machine_modules",
1802
+ "lab_input",
1803
+ "lab_modules",
1804
+ "mining_drill_modules",
1805
+ "item_main",
1806
+ "rocket_silo_rocket",
1807
+ "rocket_silo_result",
1808
+ "rocket_silo_input",
1809
+ "rocket_silo_output",
1810
+ "rocket_silo_modules",
1811
+ "rocket",
1812
+ "car_trunk",
1813
+ "car_ammo",
1814
+ "cargo_wagon",
1815
+ "turret_ammo",
1816
+ "beacon_modules",
1817
+ "character_corpse",
1818
+ "artillery_turret_ammo",
1819
+ "artillery_wagon_ammo",
1820
+ "spider_trunk",
1821
+ "spider_ammo",
1822
+ "spider_trash",
1825
1823
  }
1826
1824
  enum logistic_member_index {
1827
- logistic_container,
1828
- vehicle_storage,
1829
- character_requester,
1830
- character_storage,
1831
- character_provider,
1832
- generic_on_off_behavior,
1825
+ "logistic_container",
1826
+ "vehicle_storage",
1827
+ "character_requester",
1828
+ "character_storage",
1829
+ "character_provider",
1830
+ "generic_on_off_behavior",
1833
1831
  }
1834
1832
  enum logistic_mode {
1835
- none,
1836
- active_provider,
1837
- storage,
1838
- requester,
1839
- passive_provider,
1840
- buffer,
1833
+ "none",
1834
+ "active_provider",
1835
+ "storage",
1836
+ "requester",
1837
+ "passive_provider",
1838
+ "buffer",
1841
1839
  }
1842
1840
  enum mouse_button_type {
1843
- none,
1844
- left,
1845
- right,
1846
- middle,
1841
+ "none",
1842
+ "left",
1843
+ "right",
1844
+ "middle",
1847
1845
  }
1848
1846
  enum print_skip {
1849
1847
  /**
1850
1848
  * Print will not be skipped.
1851
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.print_skip.never Online documentation}
1849
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.print_skip.never Online documentation}
1852
1850
  */
1853
- never,
1851
+ "never",
1854
1852
  /**
1855
1853
  * Print will be skipped if same text was recently printed (within last 60 ticks). Used by most game messages.
1856
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.print_skip.if_redundant Online documentation}
1854
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.print_skip.if_redundant Online documentation}
1857
1855
  */
1858
- if_redundant,
1856
+ "if_redundant",
1859
1857
  /**
1860
1858
  * Print will be skipped if same text is still visible (printed within last 1152 ticks). Used by some notifications.
1861
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.print_skip.if_visible Online documentation}
1859
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.print_skip.if_visible Online documentation}
1862
1860
  */
1863
- if_visible,
1861
+ "if_visible",
1864
1862
  }
1865
1863
  enum print_sound {
1866
- always,
1867
- never,
1868
- use_player_settings,
1864
+ "always",
1865
+ "never",
1866
+ "use_player_settings",
1869
1867
  }
1870
1868
  /**
1871
- * A dictionary mapping all top-level prototypes by name to a list of their associated subtypes. This list is organized as a lookup table, meaning it maps the sub-prototype names to `0`. As an example, `defines.prototypes['entity']` looks like this: `{furnace=0, inserter=0, container=0, ...}`.
1872
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.prototypes Online documentation}
1869
+ * 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/1.1.110/defines.html#defines.prototypes Online documentation}
1873
1871
  */
1874
- const prototypes: {
1875
- [Type in keyof PrototypeSubclassMap]: {
1876
- [Subtype in keyof PrototypeSubclassMap[Type]]: 0
1872
+ interface prototypes {
1873
+ achievement: {
1874
+ achievement: 0
1875
+ "build-entity-achievement": 0
1876
+ "combat-robot-count": 0
1877
+ "construct-with-robots-achievement": 0
1878
+ "deconstruct-with-robots-achievement": 0
1879
+ "deliver-by-robots-achievement": 0
1880
+ "dont-build-entity-achievement": 0
1881
+ "dont-craft-manually-achievement": 0
1882
+ "dont-use-entity-in-energy-production-achievement": 0
1883
+ "finish-the-game-achievement": 0
1884
+ "group-attack-achievement": 0
1885
+ "kill-achievement": 0
1886
+ "player-damaged-achievement": 0
1887
+ "produce-achievement": 0
1888
+ "produce-per-hour-achievement": 0
1889
+ "research-achievement": 0
1890
+ "train-path-achievement": 0
1891
+ }
1892
+ "ambient-sound": {
1893
+ "ambient-sound": 0
1894
+ }
1895
+ "ammo-category": {
1896
+ "ammo-category": 0
1897
+ }
1898
+ animation: {
1899
+ animation: 0
1900
+ }
1901
+ "autoplace-control": {
1902
+ "autoplace-control": 0
1903
+ }
1904
+ "custom-input": {
1905
+ "custom-input": 0
1906
+ }
1907
+ "damage-type": {
1908
+ "damage-type": 0
1909
+ }
1910
+ decorative: {
1911
+ "optimized-decorative": 0
1912
+ }
1913
+ "editor-controller": {
1914
+ "editor-controller": 0
1915
+ }
1916
+ entity: {
1917
+ accumulator: 0
1918
+ "ammo-turret": 0
1919
+ "arithmetic-combinator": 0
1920
+ arrow: 0
1921
+ "artillery-flare": 0
1922
+ "artillery-projectile": 0
1923
+ "artillery-turret": 0
1924
+ "artillery-wagon": 0
1925
+ "assembling-machine": 0
1926
+ beacon: 0
1927
+ beam: 0
1928
+ boiler: 0
1929
+ "burner-generator": 0
1930
+ car: 0
1931
+ "cargo-wagon": 0
1932
+ character: 0
1933
+ "character-corpse": 0
1934
+ cliff: 0
1935
+ "combat-robot": 0
1936
+ "constant-combinator": 0
1937
+ "construction-robot": 0
1938
+ container: 0
1939
+ corpse: 0
1940
+ "curved-rail": 0
1941
+ "decider-combinator": 0
1942
+ "deconstructible-tile-proxy": 0
1943
+ "electric-energy-interface": 0
1944
+ "electric-pole": 0
1945
+ "electric-turret": 0
1946
+ "entity-ghost": 0
1947
+ explosion: 0
1948
+ fire: 0
1949
+ fish: 0
1950
+ "flame-thrower-explosion": 0
1951
+ "fluid-turret": 0
1952
+ "fluid-wagon": 0
1953
+ "flying-text": 0
1954
+ furnace: 0
1955
+ gate: 0
1956
+ generator: 0
1957
+ "heat-interface": 0
1958
+ "heat-pipe": 0
1959
+ "highlight-box": 0
1960
+ "infinity-container": 0
1961
+ "infinity-pipe": 0
1962
+ inserter: 0
1963
+ "item-entity": 0
1964
+ "item-request-proxy": 0
1965
+ lab: 0
1966
+ lamp: 0
1967
+ "land-mine": 0
1968
+ "leaf-particle": 0
1969
+ "linked-belt": 0
1970
+ "linked-container": 0
1971
+ loader: 0
1972
+ "loader-1x1": 0
1973
+ locomotive: 0
1974
+ "logistic-container": 0
1975
+ "logistic-robot": 0
1976
+ market: 0
1977
+ "mining-drill": 0
1978
+ "offshore-pump": 0
1979
+ particle: 0
1980
+ "particle-source": 0
1981
+ pipe: 0
1982
+ "pipe-to-ground": 0
1983
+ "player-port": 0
1984
+ "power-switch": 0
1985
+ "programmable-speaker": 0
1986
+ projectile: 0
1987
+ pump: 0
1988
+ radar: 0
1989
+ "rail-chain-signal": 0
1990
+ "rail-remnants": 0
1991
+ "rail-signal": 0
1992
+ reactor: 0
1993
+ resource: 0
1994
+ roboport: 0
1995
+ "rocket-silo": 0
1996
+ "rocket-silo-rocket": 0
1997
+ "rocket-silo-rocket-shadow": 0
1998
+ "simple-entity": 0
1999
+ "simple-entity-with-force": 0
2000
+ "simple-entity-with-owner": 0
2001
+ smoke: 0
2002
+ "smoke-with-trigger": 0
2003
+ "solar-panel": 0
2004
+ "speech-bubble": 0
2005
+ "spider-leg": 0
2006
+ "spider-vehicle": 0
2007
+ splitter: 0
2008
+ sticker: 0
2009
+ "storage-tank": 0
2010
+ "straight-rail": 0
2011
+ stream: 0
2012
+ "tile-ghost": 0
2013
+ "train-stop": 0
2014
+ "transport-belt": 0
2015
+ tree: 0
2016
+ turret: 0
2017
+ "underground-belt": 0
2018
+ unit: 0
2019
+ "unit-spawner": 0
2020
+ wall: 0
2021
+ }
2022
+ equipment: {
2023
+ "active-defense-equipment": 0
2024
+ "battery-equipment": 0
2025
+ "belt-immunity-equipment": 0
2026
+ "energy-shield-equipment": 0
2027
+ "generator-equipment": 0
2028
+ "movement-bonus-equipment": 0
2029
+ "night-vision-equipment": 0
2030
+ "roboport-equipment": 0
2031
+ "solar-panel-equipment": 0
2032
+ }
2033
+ "equipment-category": {
2034
+ "equipment-category": 0
2035
+ }
2036
+ "equipment-grid": {
2037
+ "equipment-grid": 0
2038
+ }
2039
+ fluid: {
2040
+ fluid: 0
2041
+ }
2042
+ font: {
2043
+ font: 0
2044
+ }
2045
+ "fuel-category": {
2046
+ "fuel-category": 0
2047
+ }
2048
+ "god-controller": {
2049
+ "god-controller": 0
2050
+ }
2051
+ "gui-style": {
2052
+ "gui-style": 0
2053
+ }
2054
+ item: {
2055
+ ammo: 0
2056
+ armor: 0
2057
+ blueprint: 0
2058
+ "blueprint-book": 0
2059
+ capsule: 0
2060
+ "copy-paste-tool": 0
2061
+ "deconstruction-item": 0
2062
+ gun: 0
2063
+ item: 0
2064
+ "item-with-entity-data": 0
2065
+ "item-with-inventory": 0
2066
+ "item-with-label": 0
2067
+ "item-with-tags": 0
2068
+ "mining-tool": 0
2069
+ module: 0
2070
+ "rail-planner": 0
2071
+ "repair-tool": 0
2072
+ "selection-tool": 0
2073
+ "spidertron-remote": 0
2074
+ tool: 0
2075
+ "upgrade-item": 0
2076
+ }
2077
+ "item-group": {
2078
+ "item-group": 0
2079
+ }
2080
+ "item-subgroup": {
2081
+ "item-subgroup": 0
2082
+ }
2083
+ "map-gen-presets": {
2084
+ "map-gen-presets": 0
2085
+ }
2086
+ "map-settings": {
2087
+ "map-settings": 0
2088
+ }
2089
+ "module-category": {
2090
+ "module-category": 0
2091
+ }
2092
+ "mouse-cursor": {
2093
+ "mouse-cursor": 0
2094
+ }
2095
+ "noise-expression": {
2096
+ "noise-expression": 0
2097
+ }
2098
+ "noise-layer": {
2099
+ "noise-layer": 0
2100
+ }
2101
+ particle: {
2102
+ "optimized-particle": 0
2103
+ }
2104
+ recipe: {
2105
+ recipe: 0
2106
+ }
2107
+ "recipe-category": {
2108
+ "recipe-category": 0
2109
+ }
2110
+ "resource-category": {
2111
+ "resource-category": 0
2112
+ }
2113
+ shortcut: {
2114
+ shortcut: 0
2115
+ }
2116
+ sound: {
2117
+ sound: 0
2118
+ }
2119
+ "spectator-controller": {
2120
+ "spectator-controller": 0
2121
+ }
2122
+ sprite: {
2123
+ sprite: 0
2124
+ }
2125
+ technology: {
2126
+ technology: 0
2127
+ }
2128
+ tile: {
2129
+ tile: 0
2130
+ }
2131
+ "tile-effect": {
2132
+ "tile-effect": 0
2133
+ }
2134
+ "tips-and-tricks-item": {
2135
+ "tips-and-tricks-item": 0
2136
+ }
2137
+ "tips-and-tricks-item-category": {
2138
+ "tips-and-tricks-item-category": 0
2139
+ }
2140
+ "trigger-target-type": {
2141
+ "trigger-target-type": 0
2142
+ }
2143
+ "trivial-smoke": {
2144
+ "trivial-smoke": 0
2145
+ }
2146
+ tutorial: {
2147
+ tutorial: 0
2148
+ }
2149
+ "utility-constants": {
2150
+ "utility-constants": 0
2151
+ }
2152
+ "utility-sounds": {
2153
+ "utility-sounds": 0
2154
+ }
2155
+ "utility-sprites": {
2156
+ "utility-sprites": 0
2157
+ }
2158
+ "virtual-signal": {
2159
+ "virtual-signal": 0
2160
+ }
2161
+ "wind-sound": {
2162
+ "wind-sound": 0
1877
2163
  }
1878
2164
  }
2165
+ /**
2166
+ * 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/1.1.110/defines.html#defines.prototypes Online documentation}
2168
+ */
2169
+ const prototypes: prototypes
1879
2170
  enum rail_connection_direction {
1880
- left,
1881
- straight,
1882
- right,
1883
- none,
2171
+ "left",
2172
+ "straight",
2173
+ "right",
2174
+ "none",
1884
2175
  }
1885
2176
  enum rail_direction {
1886
- front,
1887
- back,
2177
+ "front",
2178
+ "back",
1888
2179
  }
1889
2180
  enum relative_gui_position {
1890
- top,
1891
- bottom,
1892
- left,
1893
- right,
2181
+ "top",
2182
+ "bottom",
2183
+ "left",
2184
+ "right",
1894
2185
  }
1895
2186
  enum relative_gui_type {
1896
- accumulator_gui,
1897
- achievement_gui,
1898
- additional_entity_info_gui,
1899
- admin_gui,
1900
- arithmetic_combinator_gui,
1901
- armor_gui,
1902
- assembling_machine_gui,
1903
- assembling_machine_select_recipe_gui,
1904
- beacon_gui,
1905
- blueprint_book_gui,
1906
- blueprint_library_gui,
1907
- blueprint_setup_gui,
1908
- bonus_gui,
1909
- burner_equipment_gui,
1910
- car_gui,
1911
- constant_combinator_gui,
1912
- container_gui,
1913
- controller_gui,
1914
- decider_combinator_gui,
1915
- deconstruction_item_gui,
1916
- electric_energy_interface_gui,
1917
- electric_network_gui,
1918
- entity_variations_gui,
1919
- entity_with_energy_source_gui,
1920
- equipment_grid_gui,
1921
- furnace_gui,
1922
- generic_on_off_entity_gui,
1923
- heat_interface_gui,
1924
- infinity_pipe_gui,
1925
- inserter_gui,
1926
- item_with_inventory_gui,
1927
- lab_gui,
1928
- lamp_gui,
1929
- linked_container_gui,
1930
- loader_gui,
1931
- logistic_gui,
1932
- market_gui,
1933
- mining_drill_gui,
1934
- other_player_gui,
1935
- permissions_gui,
1936
- pipe_gui,
1937
- power_switch_gui,
1938
- production_gui,
1939
- programmable_speaker_gui,
1940
- rail_chain_signal_gui,
1941
- rail_signal_gui,
1942
- reactor_gui,
1943
- rename_stop_gui,
1944
- resource_entity_gui,
1945
- roboport_gui,
1946
- rocket_silo_gui,
1947
- script_inventory_gui,
1948
- server_config_gui,
1949
- spider_vehicle_gui,
1950
- splitter_gui,
1951
- standalone_character_gui,
1952
- storage_tank_gui,
1953
- tile_variations_gui,
1954
- train_gui,
1955
- train_stop_gui,
1956
- trains_gui,
1957
- transport_belt_gui,
1958
- upgrade_item_gui,
1959
- wall_gui,
2187
+ "accumulator_gui",
2188
+ "achievement_gui",
2189
+ "additional_entity_info_gui",
2190
+ "admin_gui",
2191
+ "arithmetic_combinator_gui",
2192
+ "armor_gui",
2193
+ "assembling_machine_gui",
2194
+ "assembling_machine_select_recipe_gui",
2195
+ "beacon_gui",
2196
+ "blueprint_book_gui",
2197
+ "blueprint_library_gui",
2198
+ "blueprint_setup_gui",
2199
+ "bonus_gui",
2200
+ "burner_equipment_gui",
2201
+ "car_gui",
2202
+ "constant_combinator_gui",
2203
+ "container_gui",
2204
+ "controller_gui",
2205
+ "decider_combinator_gui",
2206
+ "deconstruction_item_gui",
2207
+ "electric_energy_interface_gui",
2208
+ "electric_network_gui",
2209
+ "entity_variations_gui",
2210
+ "entity_with_energy_source_gui",
2211
+ "equipment_grid_gui",
2212
+ "furnace_gui",
2213
+ "generic_on_off_entity_gui",
2214
+ "heat_interface_gui",
2215
+ "infinity_pipe_gui",
2216
+ "inserter_gui",
2217
+ "item_with_inventory_gui",
2218
+ "lab_gui",
2219
+ "lamp_gui",
2220
+ "linked_container_gui",
2221
+ "loader_gui",
2222
+ "logistic_gui",
2223
+ "market_gui",
2224
+ "mining_drill_gui",
2225
+ "other_player_gui",
2226
+ "permissions_gui",
2227
+ "pipe_gui",
2228
+ "power_switch_gui",
2229
+ "production_gui",
2230
+ "programmable_speaker_gui",
2231
+ "rail_chain_signal_gui",
2232
+ "rail_signal_gui",
2233
+ "reactor_gui",
2234
+ "rename_stop_gui",
2235
+ "resource_entity_gui",
2236
+ "roboport_gui",
2237
+ "rocket_silo_gui",
2238
+ "script_inventory_gui",
2239
+ "server_config_gui",
2240
+ "spider_vehicle_gui",
2241
+ "splitter_gui",
2242
+ "standalone_character_gui",
2243
+ "storage_tank_gui",
2244
+ "tile_variations_gui",
2245
+ "train_gui",
2246
+ "train_stop_gui",
2247
+ "trains_gui",
2248
+ "transport_belt_gui",
2249
+ "upgrade_item_gui",
2250
+ "wall_gui",
1960
2251
  }
1961
2252
  enum render_mode {
1962
- game,
1963
- chart,
1964
- chart_zoomed_in,
2253
+ "game",
2254
+ "chart",
2255
+ "chart_zoomed_in",
1965
2256
  }
1966
2257
  enum rich_text_setting {
1967
- enabled,
1968
- disabled,
1969
- highlight,
2258
+ "enabled",
2259
+ "disabled",
2260
+ "highlight",
1970
2261
  }
1971
2262
  namespace riding {
1972
2263
  enum acceleration {
1973
- nothing,
1974
- accelerating,
1975
- braking,
1976
- reversing,
2264
+ "nothing",
2265
+ "accelerating",
2266
+ "braking",
2267
+ "reversing",
1977
2268
  }
1978
2269
  enum direction {
1979
- left,
1980
- straight,
1981
- right,
2270
+ "left",
2271
+ "straight",
2272
+ "right",
1982
2273
  }
1983
2274
  }
1984
2275
  /**
1985
2276
  * The various parts of the launch sequence of the rocket silo.
1986
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.rocket_silo_status Online documentation}
2277
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.rocket_silo_status Online documentation}
1987
2278
  */
1988
2279
  enum rocket_silo_status {
1989
2280
  /**
1990
2281
  * The rocket silo is crafting rocket parts. When there are enough rocket parts, the silo will switch into the `create_rocket` state.
1991
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.rocket_silo_status.building_rocket Online documentation}
2282
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.rocket_silo_status.building_rocket Online documentation}
1992
2283
  */
1993
- building_rocket,
2284
+ "building_rocket",
1994
2285
  /**
1995
2286
  * The next state is `lights_blinking_open`. The rocket silo rocket entity gets created.
1996
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.rocket_silo_status.create_rocket Online documentation}
2287
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.rocket_silo_status.create_rocket Online documentation}
1997
2288
  */
1998
- create_rocket,
2289
+ "create_rocket",
1999
2290
  /**
2000
2291
  * The next state is `doors_opening`. The rocket is getting prepared for launch.
2001
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.rocket_silo_status.lights_blinking_open Online documentation}
2292
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.rocket_silo_status.lights_blinking_open Online documentation}
2002
2293
  */
2003
- lights_blinking_open,
2294
+ "lights_blinking_open",
2004
2295
  /**
2005
2296
  * The next state is `doors_opened`. The rocket is getting prepared for launch.
2006
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.rocket_silo_status.doors_opening Online documentation}
2297
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.rocket_silo_status.doors_opening Online documentation}
2007
2298
  */
2008
- doors_opening,
2299
+ "doors_opening",
2009
2300
  /**
2010
2301
  * 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.
2011
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.rocket_silo_status.doors_opened Online documentation}
2302
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.rocket_silo_status.doors_opened Online documentation}
2012
2303
  */
2013
- doors_opened,
2304
+ "doors_opened",
2014
2305
  /**
2015
2306
  * 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.
2016
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.rocket_silo_status.rocket_rising Online documentation}
2307
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.rocket_silo_status.rocket_rising Online documentation}
2017
2308
  */
2018
- rocket_rising,
2309
+ "rocket_rising",
2019
2310
  /**
2020
2311
  * 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.
2021
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.rocket_silo_status.arms_advance Online documentation}
2312
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.rocket_silo_status.arms_advance Online documentation}
2022
2313
  */
2023
- arms_advance,
2314
+ "arms_advance",
2024
2315
  /**
2025
2316
  * The rocket launch can be started by the player. When the launch is started, the silo switches into the `launch_starting` state.
2026
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.rocket_silo_status.rocket_ready Online documentation}
2317
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.rocket_silo_status.rocket_ready Online documentation}
2027
2318
  */
2028
- rocket_ready,
2319
+ "rocket_ready",
2029
2320
  /**
2030
2321
  * The next state is `launch_started`.
2031
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.rocket_silo_status.launch_starting Online documentation}
2322
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.rocket_silo_status.launch_starting Online documentation}
2032
2323
  */
2033
- launch_starting,
2324
+ "launch_starting",
2034
2325
  /**
2035
2326
  * 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.
2036
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.rocket_silo_status.engine_starting Online documentation}
2327
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.rocket_silo_status.engine_starting Online documentation}
2037
2328
  */
2038
- engine_starting,
2329
+ "engine_starting",
2039
2330
  /**
2040
2331
  * 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.
2041
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.rocket_silo_status.arms_retract Online documentation}
2332
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.rocket_silo_status.arms_retract Online documentation}
2042
2333
  */
2043
- arms_retract,
2334
+ "arms_retract",
2044
2335
  /**
2045
2336
  * The next state is `lights_blinking_close`. The rocket is getting launched.
2046
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.rocket_silo_status.rocket_flying Online documentation}
2337
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.rocket_silo_status.rocket_flying Online documentation}
2047
2338
  */
2048
- rocket_flying,
2339
+ "rocket_flying",
2049
2340
  /**
2050
2341
  * The next state is `doors_closing`.
2051
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.rocket_silo_status.lights_blinking_close Online documentation}
2342
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.rocket_silo_status.lights_blinking_close Online documentation}
2052
2343
  */
2053
- lights_blinking_close,
2344
+ "lights_blinking_close",
2054
2345
  /**
2055
2346
  * The next state is `building_rocket`.
2056
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.rocket_silo_status.doors_closing Online documentation}
2347
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.rocket_silo_status.doors_closing Online documentation}
2057
2348
  */
2058
- doors_closing,
2349
+ "doors_closing",
2059
2350
  /**
2060
2351
  * 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.
2061
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.rocket_silo_status.launch_started Online documentation}
2352
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.rocket_silo_status.launch_started Online documentation}
2062
2353
  */
2063
- launch_started,
2354
+ "launch_started",
2064
2355
  }
2065
2356
  enum shooting {
2066
- not_shooting,
2067
- shooting_enemies,
2068
- shooting_selected,
2357
+ "not_shooting",
2358
+ "shooting_enemies",
2359
+ "shooting_selected",
2069
2360
  }
2070
2361
  /**
2071
2362
  * State of an ordinary rail signal.
2072
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.signal_state Online documentation}
2363
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.signal_state Online documentation}
2073
2364
  */
2074
2365
  enum signal_state {
2075
2366
  /**
2076
2367
  * Green.
2077
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.signal_state.open Online documentation}
2368
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.signal_state.open Online documentation}
2078
2369
  */
2079
- open,
2370
+ "open",
2080
2371
  /**
2081
2372
  * Red.
2082
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.signal_state.closed Online documentation}
2373
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.signal_state.closed Online documentation}
2083
2374
  */
2084
- closed,
2375
+ "closed",
2085
2376
  /**
2086
2377
  * Orange.
2087
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.signal_state.reserved Online documentation}
2378
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.signal_state.reserved Online documentation}
2088
2379
  */
2089
- reserved,
2380
+ "reserved",
2090
2381
  /**
2091
2382
  * Red - From circuit network.
2092
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.signal_state.reserved_by_circuit_network Online documentation}
2383
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.signal_state.reserved_by_circuit_network Online documentation}
2093
2384
  */
2094
- reserved_by_circuit_network,
2385
+ "reserved_by_circuit_network",
2095
2386
  }
2096
2387
  enum train_state {
2097
2388
  /**
2098
2389
  * Normal state -- following the path.
2099
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.train_state.on_the_path Online documentation}
2390
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.train_state.on_the_path Online documentation}
2100
2391
  */
2101
- on_the_path,
2392
+ "on_the_path",
2102
2393
  /**
2103
2394
  * Had path and lost it -- must stop.
2104
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.train_state.path_lost Online documentation}
2395
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.train_state.path_lost Online documentation}
2105
2396
  */
2106
- path_lost,
2397
+ "path_lost",
2107
2398
  /**
2108
2399
  * Doesn't have anywhere to go.
2109
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.train_state.no_schedule Online documentation}
2400
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.train_state.no_schedule Online documentation}
2110
2401
  */
2111
- no_schedule,
2402
+ "no_schedule",
2112
2403
  /**
2113
2404
  * Has no path and is stopped.
2114
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.train_state.no_path Online documentation}
2405
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.train_state.no_path Online documentation}
2115
2406
  */
2116
- no_path,
2407
+ "no_path",
2117
2408
  /**
2118
2409
  * Braking before a rail signal.
2119
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.train_state.arrive_signal Online documentation}
2410
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.train_state.arrive_signal Online documentation}
2120
2411
  */
2121
- arrive_signal,
2412
+ "arrive_signal",
2122
2413
  /**
2123
2414
  * Waiting at a signal.
2124
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.train_state.wait_signal Online documentation}
2415
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.train_state.wait_signal Online documentation}
2125
2416
  */
2126
- wait_signal,
2417
+ "wait_signal",
2127
2418
  /**
2128
2419
  * Braking before a station.
2129
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.train_state.arrive_station Online documentation}
2420
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.train_state.arrive_station Online documentation}
2130
2421
  */
2131
- arrive_station,
2422
+ "arrive_station",
2132
2423
  /**
2133
2424
  * Waiting at a station.
2134
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.train_state.wait_station Online documentation}
2425
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.train_state.wait_station Online documentation}
2135
2426
  */
2136
- wait_station,
2427
+ "wait_station",
2137
2428
  /**
2138
2429
  * Switched to manual control and has to stop.
2139
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.train_state.manual_control_stop Online documentation}
2430
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.train_state.manual_control_stop Online documentation}
2140
2431
  */
2141
- manual_control_stop,
2432
+ "manual_control_stop",
2142
2433
  /**
2143
2434
  * Can move if user explicitly sits in and rides the train.
2144
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.train_state.manual_control Online documentation}
2435
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.train_state.manual_control Online documentation}
2145
2436
  */
2146
- manual_control,
2437
+ "manual_control",
2147
2438
  /**
2148
2439
  * Same as no_path but all candidate train stops are full
2149
- * @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.train_state.destination_full Online documentation}
2440
+ * @see {@link https://lua-api.factorio.com/1.1.110/defines.html#defines.train_state.destination_full Online documentation}
2150
2441
  */
2151
- destination_full,
2442
+ "destination_full",
2152
2443
  }
2153
2444
  enum transport_line {
2154
- left_line,
2155
- right_line,
2156
- left_underground_line,
2157
- right_underground_line,
2158
- secondary_left_line,
2159
- secondary_right_line,
2160
- left_split_line,
2161
- right_split_line,
2162
- secondary_left_split_line,
2163
- secondary_right_split_line,
2445
+ "left_line",
2446
+ "right_line",
2447
+ "left_underground_line",
2448
+ "right_underground_line",
2449
+ "secondary_left_line",
2450
+ "secondary_right_line",
2451
+ "left_split_line",
2452
+ "right_split_line",
2453
+ "secondary_left_split_line",
2454
+ "secondary_right_split_line",
2164
2455
  }
2165
2456
  enum wire_connection_id {
2166
- electric_pole,
2167
- power_switch_left,
2168
- power_switch_right,
2457
+ "electric_pole",
2458
+ "power_switch_left",
2459
+ "power_switch_right",
2169
2460
  }
2170
2461
  enum wire_type {
2171
- red,
2172
- green,
2173
- copper,
2462
+ "red",
2463
+ "green",
2464
+ "copper",
2174
2465
  }
2175
2466
  }
2176
2467
  }