typed-factorio 2.7.4 → 2.9.0
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +9 -0
- package/common/types.d.ts +3 -3
- package/package.json +11 -11
- package/prototype/generated/prototypes.d.ts +2468 -1828
- package/prototype/generated/types.d.ts +1553 -1495
- package/runtime/generated/builtin-types.d.ts +12 -12
- package/runtime/generated/classes.d.ts +3818 -3610
- package/runtime/generated/concepts.d.ts +253 -247
- package/runtime/generated/defines.d.ts +126 -126
- package/runtime/generated/events.d.ts +185 -185
- package/runtime/generated/global-functions.d.ts +3 -3
- package/runtime/generated/global-objects.d.ts +6 -6
- package/settings/types.d.ts +2 -0
@@ -2,6 +2,8 @@
|
|
2
2
|
|
3
3
|
/** @noSelfInFile */
|
4
4
|
|
5
|
+
import type { EntityType } from "factorio:prototype"
|
6
|
+
|
5
7
|
import type { VersionString } from "factorio:common"
|
6
8
|
|
7
9
|
/**
|
@@ -32,7 +34,7 @@ declare module "factorio:runtime" {
|
|
32
34
|
* - `"invoke-tile-trigger"`
|
33
35
|
* - `"destroy-decoratives"`
|
34
36
|
* - `"camera-effect"`
|
35
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
37
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#TriggerEffectItemType Online documentation}
|
36
38
|
*/
|
37
39
|
export type TriggerEffectItemType =
|
38
40
|
| "damage"
|
@@ -108,7 +110,7 @@ declare module "factorio:runtime" {
|
|
108
110
|
* - `"left"`
|
109
111
|
* - `"right"`
|
110
112
|
* - `"center"`
|
111
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
113
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#TextAlign Online documentation}
|
112
114
|
*/
|
113
115
|
export type TextAlign = "left" | "right" | "center"
|
114
116
|
/**
|
@@ -121,7 +123,7 @@ declare module "factorio:runtime" {
|
|
121
123
|
* - `"middle"`
|
122
124
|
* - `"baseline"`
|
123
125
|
* - `"bottom"`
|
124
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
126
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#VerticalTextAlign Online documentation}
|
125
127
|
*/
|
126
128
|
export type VerticalTextAlign = "top" | "middle" | "baseline" | "bottom"
|
127
129
|
/**
|
@@ -189,7 +191,7 @@ declare module "factorio:runtime" {
|
|
189
191
|
* - `"position"`: {@link PositionGuiArrowSpecification}
|
190
192
|
* - `"crafting_queue"`: {@link CraftingQueueGuiArrowSpecification}
|
191
193
|
* - `"item_stack"`: {@link ItemStackGuiArrowSpecification}
|
192
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
194
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#GuiArrowSpecification Online documentation}
|
193
195
|
*/
|
194
196
|
export type GuiArrowSpecification =
|
195
197
|
| EntityGuiArrowSpecification
|
@@ -230,7 +232,7 @@ declare module "factorio:runtime" {
|
|
230
232
|
* - `"none"`
|
231
233
|
* - `"whitelist"`
|
232
234
|
* - `"blacklist"`
|
233
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
235
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#PrototypeFilterMode Online documentation}
|
234
236
|
*/
|
235
237
|
export type PrototypeFilterMode = "none" | "whitelist" | "blacklist"
|
236
238
|
export interface RailEnd {
|
@@ -251,7 +253,7 @@ declare module "factorio:runtime" {
|
|
251
253
|
* - `"any-goal-accessible"`: The method will return {@link TrainPathAnyGoalResult}.
|
252
254
|
* - `"all-goals-accessible"`: The method will return {@link TrainPathAllGoalsResult}.
|
253
255
|
* - `"all-goals-penalties"`: The method will return {@link TrainPathAllGoalsResult} with `penalties`.
|
254
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
256
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#TrainPathRequestType Online documentation}
|
255
257
|
*/
|
256
258
|
export type TrainPathRequestType = "path" | "any-goal-accessible" | "all-goals-accessible" | "all-goals-penalties"
|
257
259
|
export interface TrainPathFinderPathResult {
|
@@ -334,7 +336,7 @@ declare module "factorio:runtime" {
|
|
334
336
|
* - `"left"`
|
335
337
|
* - `"right"`
|
336
338
|
* - `"none"`
|
337
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
339
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#SwitchState Online documentation}
|
338
340
|
*/
|
339
341
|
export type SwitchState = "left" | "right" | "none"
|
340
342
|
/**
|
@@ -352,7 +354,7 @@ declare module "factorio:runtime" {
|
|
352
354
|
* - `"signal"`
|
353
355
|
* - `"technology"`
|
354
356
|
* - `"tile"`
|
355
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
357
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#ElemType Online documentation}
|
356
358
|
*/
|
357
359
|
export type ElemType =
|
358
360
|
| "achievement"
|
@@ -378,7 +380,7 @@ declare module "factorio:runtime" {
|
|
378
380
|
* - `"logistics"`: Light blue by default.
|
379
381
|
* - `"train-visualization"`: White by default.
|
380
382
|
* - `"blueprint-snap-rectangle"`: Green by default.
|
381
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
383
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#CursorBoxRenderType Online documentation}
|
382
384
|
*/
|
383
385
|
export type CursorBoxRenderType =
|
384
386
|
| "entity"
|
@@ -389,6 +391,24 @@ declare module "factorio:runtime" {
|
|
389
391
|
| "logistics"
|
390
392
|
| "train-visualization"
|
391
393
|
| "blueprint-snap-rectangle"
|
394
|
+
/**
|
395
|
+
* What is shown in the map view. If a field is not given, that setting will not be changed.
|
396
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#MapViewSettings Online documentation}
|
397
|
+
*/
|
398
|
+
export interface MapViewSettings {
|
399
|
+
readonly "show-logistic-network"?: boolean
|
400
|
+
readonly "show-electric-network"?: boolean
|
401
|
+
readonly "show-turret-range"?: boolean
|
402
|
+
readonly "show-pollution"?: boolean
|
403
|
+
readonly "show-networkless-logistic-members"?: boolean
|
404
|
+
readonly "show-train-station-names"?: boolean
|
405
|
+
readonly "show-player-names"?: boolean
|
406
|
+
readonly "show-tags"?: boolean
|
407
|
+
readonly "show-worker-robots"?: boolean
|
408
|
+
readonly "show-rail-signal-states"?: boolean
|
409
|
+
readonly "show-recipe-icons"?: boolean
|
410
|
+
readonly "show-non-standard-map-info"?: boolean
|
411
|
+
}
|
392
412
|
export interface RadiusVisualisationSpecification {
|
393
413
|
readonly distance: double
|
394
414
|
readonly offset: Vector
|
@@ -417,7 +437,7 @@ declare module "factorio:runtime" {
|
|
417
437
|
* - `"none-to-south"`
|
418
438
|
* - `"south-to-none"`
|
419
439
|
* - `"none-to-north"`
|
420
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
440
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#CliffOrientation Online documentation}
|
421
441
|
*/
|
422
442
|
export type CliffOrientation =
|
423
443
|
| "west-to-east"
|
@@ -485,7 +505,7 @@ declare module "factorio:runtime" {
|
|
485
505
|
* - `"artillery-range"`
|
486
506
|
* - `"nothing"`
|
487
507
|
* - `"character-logistic-requests"`
|
488
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
508
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#ModifierType Online documentation}
|
489
509
|
*/
|
490
510
|
export type ModifierType =
|
491
511
|
| "inserter-stack-size-bonus"
|
@@ -551,7 +571,7 @@ declare module "factorio:runtime" {
|
|
551
571
|
* game.print({"", {"item-name.iron-plate"}, ": ", 60})
|
552
572
|
* @example As an example of a localised string with fallback, consider this:
|
553
573
|
* {"?", {"", {"entity-description.furnace"}, "\n"}, {"item-description.furnace"}, "optional fallback"}
|
554
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
574
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#LocalisedString Online documentation}
|
555
575
|
*/
|
556
576
|
export type LocalisedString = string | number | boolean | LuaObject | nil | [string, ...LocalisedString[]]
|
557
577
|
export interface DisplayResolution {
|
@@ -576,7 +596,7 @@ declare module "factorio:runtime" {
|
|
576
596
|
* The smooth orientation. It is a {@link float} in the range `[0, 1)` that covers a full circle, starting at the top and going clockwise. This means a value of `0` indicates "north", a value of `0.5` indicates "south".
|
577
597
|
*
|
578
598
|
* For example then, a value of `0.625` would indicate "south-west", and a value of `0.875` would indicate "north-west".
|
579
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
599
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#RealOrientation Online documentation}
|
580
600
|
*/
|
581
601
|
export type RealOrientation = float
|
582
602
|
/**
|
@@ -589,7 +609,7 @@ declare module "factorio:runtime" {
|
|
589
609
|
* {y = 2.25, x = 5.125}
|
590
610
|
* @example Shorthand:
|
591
611
|
* {1.625, 2.375}
|
592
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
612
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#MapPosition Online documentation}
|
593
613
|
*/
|
594
614
|
export interface MapPosition {
|
595
615
|
readonly x: double
|
@@ -598,13 +618,13 @@ declare module "factorio:runtime" {
|
|
598
618
|
/**
|
599
619
|
* Array form of {@link MapPosition}.
|
600
620
|
* @see MapPosition
|
601
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
621
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#MapPosition Online documentation}
|
602
622
|
*/
|
603
623
|
export type MapPositionArray = readonly [x: double, y: double]
|
604
624
|
/**
|
605
625
|
* Coordinates of a chunk in a {@link LuaSurface} where each integer `x`/`y` represents a different chunk. This uses the same format as {@link MapPosition}, meaning it can be specified either with or without explicit keys. A {@link MapPosition} can be translated to a ChunkPosition by dividing the `x`/`y` values by 32.
|
606
626
|
* @see ChunkPositionArray
|
607
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
627
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#ChunkPosition Online documentation}
|
608
628
|
*/
|
609
629
|
export interface ChunkPosition {
|
610
630
|
readonly x: int
|
@@ -613,13 +633,13 @@ declare module "factorio:runtime" {
|
|
613
633
|
/**
|
614
634
|
* Array form of {@link ChunkPosition}.
|
615
635
|
* @see ChunkPosition
|
616
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
636
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#ChunkPosition Online documentation}
|
617
637
|
*/
|
618
638
|
export type ChunkPositionArray = readonly [x: int, y: int]
|
619
639
|
/**
|
620
640
|
* Coordinates of a tile on a {@link LuaSurface} where each integer `x`/`y` represents a different tile. This uses the same format as {@link MapPosition}, except it rounds any non-integer `x`/`y` down to whole numbers. It can be specified either with or without explicit keys.
|
621
641
|
* @see TilePositionArray
|
622
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
642
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#TilePosition Online documentation}
|
623
643
|
*/
|
624
644
|
export interface TilePosition {
|
625
645
|
readonly x: int
|
@@ -628,7 +648,7 @@ declare module "factorio:runtime" {
|
|
628
648
|
/**
|
629
649
|
* Array form of {@link TilePosition}.
|
630
650
|
* @see TilePosition
|
631
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
651
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#TilePosition Online documentation}
|
632
652
|
*/
|
633
653
|
export type TilePositionArray = readonly [x: int, y: int]
|
634
654
|
/**
|
@@ -639,7 +659,7 @@ declare module "factorio:runtime" {
|
|
639
659
|
* {y = 2, x = 5}
|
640
660
|
* @example Shorthand:
|
641
661
|
* {1, 2}
|
642
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
662
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#EquipmentPosition Online documentation}
|
643
663
|
*/
|
644
664
|
export interface EquipmentPosition {
|
645
665
|
readonly x: int
|
@@ -648,13 +668,13 @@ declare module "factorio:runtime" {
|
|
648
668
|
/**
|
649
669
|
* Array form of {@link EquipmentPosition}.
|
650
670
|
* @see EquipmentPosition
|
651
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
671
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#EquipmentPosition Online documentation}
|
652
672
|
*/
|
653
673
|
export type EquipmentPositionArray = readonly [x: int, y: int]
|
654
674
|
/**
|
655
675
|
* Screen coordinates of a GUI element in a {@link LuaGui}. This uses the same format as {@link TilePosition}, meaning it can be specified either with or without explicit keys.
|
656
676
|
* @see GuiLocationArray
|
657
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
677
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#GuiLocation Online documentation}
|
658
678
|
*/
|
659
679
|
export interface GuiLocation {
|
660
680
|
readonly x: int
|
@@ -663,12 +683,12 @@ declare module "factorio:runtime" {
|
|
663
683
|
/**
|
664
684
|
* Array form of {@link GuiLocation}.
|
665
685
|
* @see GuiLocation
|
666
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
686
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#GuiLocation Online documentation}
|
667
687
|
*/
|
668
688
|
export type GuiLocationArray = readonly [x: int, y: int]
|
669
689
|
/**
|
670
690
|
* A {@link ChunkPosition} with an added bounding box for the area of the chunk.
|
671
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
691
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#ChunkPositionAndArea Online documentation}
|
672
692
|
*/
|
673
693
|
export interface ChunkPositionAndArea {
|
674
694
|
readonly x: int
|
@@ -677,7 +697,7 @@ declare module "factorio:runtime" {
|
|
677
697
|
}
|
678
698
|
/**
|
679
699
|
* A table used to define a manual shape for a piece of equipment.
|
680
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
700
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#EquipmentPoint Online documentation}
|
681
701
|
*/
|
682
702
|
export interface EquipmentPoint {
|
683
703
|
readonly x: uint
|
@@ -713,12 +733,12 @@ declare module "factorio:runtime" {
|
|
713
733
|
* Note that the API returns tags as a simple table, meaning any modifications to it will not propagate back to the game. Thus, to modify a set of tags, the whole table needs to be written back to the respective property.
|
714
734
|
* @example
|
715
735
|
* {a = 1, b = true, c = "three", d = {e = "f"}}
|
716
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
736
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#Tags Online documentation}
|
717
737
|
*/
|
718
738
|
export type Tags = Record<string, AnyBasic>
|
719
739
|
/**
|
720
740
|
* @remarks The vectors for all 5 position attributes are a table with `x` and `y` keys instead of an array.
|
721
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
741
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#SmokeSource Online documentation}
|
722
742
|
*/
|
723
743
|
export interface SmokeSource {
|
724
744
|
readonly name: string
|
@@ -745,7 +765,7 @@ declare module "factorio:runtime" {
|
|
745
765
|
* A vector is a two-element array containing the `x` and `y` components. In some specific cases, the vector is a table with `x` and `y` keys instead, which the documentation will point out.
|
746
766
|
* @example
|
747
767
|
* right = {1.0, 0.0}
|
748
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
768
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#Vector Online documentation}
|
749
769
|
*/
|
750
770
|
export type Vector = MapPositionArray
|
751
771
|
/**
|
@@ -755,7 +775,7 @@ declare module "factorio:runtime" {
|
|
755
775
|
* {left_top = {x = -2, y = -3}, right_bottom = {x = 5, y = 8}}
|
756
776
|
* @example Shorthand:
|
757
777
|
* {{-2, -3}, {5, 8}}
|
758
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
778
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#BoundingBox Online documentation}
|
759
779
|
*/
|
760
780
|
export interface BoundingBox {
|
761
781
|
readonly left_top: MapPosition
|
@@ -773,7 +793,7 @@ declare module "factorio:runtime" {
|
|
773
793
|
/**
|
774
794
|
* Array form of {@link BoundingBox}.
|
775
795
|
* @see BoundingBox
|
776
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
796
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#BoundingBox Online documentation}
|
777
797
|
*/
|
778
798
|
export type BoundingBoxArray = readonly [
|
779
799
|
left_top: MapPosition | MapPositionArray,
|
@@ -783,7 +803,7 @@ declare module "factorio:runtime" {
|
|
783
803
|
/**
|
784
804
|
* An area defined using the map editor.
|
785
805
|
* @see ScriptAreaWrite
|
786
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
806
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#ScriptArea Online documentation}
|
787
807
|
*/
|
788
808
|
export interface ScriptArea {
|
789
809
|
readonly area: BoundingBox
|
@@ -793,7 +813,7 @@ declare module "factorio:runtime" {
|
|
793
813
|
}
|
794
814
|
/**
|
795
815
|
* Write form of {@link ScriptArea}, where table-or-array concepts are allowed to take an array form.
|
796
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
816
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#ScriptArea Online documentation}
|
797
817
|
*/
|
798
818
|
export interface ScriptAreaWrite {
|
799
819
|
readonly area: BoundingBoxWrite | BoundingBoxArray
|
@@ -804,7 +824,7 @@ declare module "factorio:runtime" {
|
|
804
824
|
/**
|
805
825
|
* A position defined using the map editor.
|
806
826
|
* @see ScriptPositionWrite
|
807
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
827
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#ScriptPosition Online documentation}
|
808
828
|
*/
|
809
829
|
export interface ScriptPosition {
|
810
830
|
readonly position: MapPosition
|
@@ -814,7 +834,7 @@ declare module "factorio:runtime" {
|
|
814
834
|
}
|
815
835
|
/**
|
816
836
|
* Write form of {@link ScriptPosition}, where table-or-array concepts are allowed to take an array form.
|
817
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
837
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#ScriptPosition Online documentation}
|
818
838
|
*/
|
819
839
|
export interface ScriptPositionWrite {
|
820
840
|
readonly position: MapPosition | MapPositionArray
|
@@ -832,7 +852,7 @@ declare module "factorio:runtime" {
|
|
832
852
|
* red2 = {r = 0.5, a = 0.5} -- Same color as red1
|
833
853
|
* black = {} -- All channels omitted: black
|
834
854
|
* red1_short = {0.5, 0, 0, 0.5} -- Same color as red1 in short-hand notation
|
835
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
855
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#Color Online documentation}
|
836
856
|
*/
|
837
857
|
export interface Color {
|
838
858
|
readonly r?: float
|
@@ -843,13 +863,13 @@ declare module "factorio:runtime" {
|
|
843
863
|
/**
|
844
864
|
* Array form of {@link Color}.
|
845
865
|
* @see Color
|
846
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
866
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#Color Online documentation}
|
847
867
|
*/
|
848
868
|
export type ColorArray = readonly [r: double, g: double, b: double, a?: double]
|
849
869
|
/**
|
850
870
|
* Same as {@link Color}, but red, green, blue and alpha values can be any floating point number, without any special handling of the range [1, 255].
|
851
871
|
* @see ColorModifierArray
|
852
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
872
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#ColorModifier Online documentation}
|
853
873
|
*/
|
854
874
|
export interface ColorModifier {
|
855
875
|
readonly r?: float
|
@@ -860,7 +880,7 @@ declare module "factorio:runtime" {
|
|
860
880
|
/**
|
861
881
|
* Array form of {@link ColorModifier}.
|
862
882
|
* @see ColorModifier
|
863
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
883
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#ColorModifier Online documentation}
|
864
884
|
*/
|
865
885
|
export type ColorModifierArray = readonly [r: double, g: double, b: double, a?: double]
|
866
886
|
export interface CraftingQueueItem {
|
@@ -900,7 +920,7 @@ declare module "factorio:runtime" {
|
|
900
920
|
}
|
901
921
|
/**
|
902
922
|
* One vertex of a ScriptRenderPolygon.
|
903
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
923
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#ScriptRenderVertexTarget Online documentation}
|
904
924
|
*/
|
905
925
|
export interface ScriptRenderVertexTarget {
|
906
926
|
readonly target: (MapPosition | MapPositionArray) | LuaEntity
|
@@ -966,7 +986,7 @@ declare module "factorio:runtime" {
|
|
966
986
|
}
|
967
987
|
/**
|
968
988
|
* @remarks Either `icon`, `text`, or both must be provided.
|
969
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
989
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#ChartTagSpec Online documentation}
|
970
990
|
*/
|
971
991
|
export interface ChartTagSpec {
|
972
992
|
readonly position: MapPosition | MapPositionArray
|
@@ -976,102 +996,88 @@ declare module "factorio:runtime" {
|
|
976
996
|
}
|
977
997
|
/**
|
978
998
|
* Parameters that affect the look and control of the game. Updating any of the member attributes here will immediately take effect in the game engine.
|
979
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
999
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#GameViewSettings Online documentation}
|
980
1000
|
*/
|
981
1001
|
export interface GameViewSettings {
|
982
1002
|
/**
|
983
1003
|
* Show the controller GUI elements. This includes the toolbar, the selected tool slot, the armour slot, and the gun and ammunition slots.
|
984
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1004
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#GameViewSettings.show_controller_gui Online documentation}
|
985
1005
|
*/
|
986
1006
|
show_controller_gui: boolean
|
987
1007
|
/**
|
988
1008
|
* Show the chart in the upper right-hand corner of the screen.
|
989
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1009
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#GameViewSettings.show_minimap Online documentation}
|
990
1010
|
*/
|
991
1011
|
show_minimap: boolean
|
992
1012
|
/**
|
993
1013
|
* Show research progress and name in the upper right-hand corner of the screen.
|
994
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1014
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#GameViewSettings.show_research_info Online documentation}
|
995
1015
|
*/
|
996
1016
|
show_research_info: boolean
|
997
1017
|
/**
|
998
1018
|
* Show overlay icons on entities. Also known as "alt-mode".
|
999
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1019
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#GameViewSettings.show_entity_info Online documentation}
|
1000
1020
|
*/
|
1001
1021
|
show_entity_info: boolean
|
1002
1022
|
/**
|
1003
1023
|
* Show the flashing alert icons next to the player's toolbar.
|
1004
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1024
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#GameViewSettings.show_alert_gui Online documentation}
|
1005
1025
|
*/
|
1006
1026
|
show_alert_gui: boolean
|
1007
1027
|
/**
|
1008
1028
|
* When `true` (the default), mousing over an entity will select it. Otherwise, moving the mouse won't update entity selection.
|
1009
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1029
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#GameViewSettings.update_entity_selection Online documentation}
|
1010
1030
|
*/
|
1011
1031
|
update_entity_selection: boolean
|
1012
1032
|
/**
|
1013
1033
|
* When `true` (`false` is default), the rails will always show the rail block visualisation.
|
1014
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1034
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#GameViewSettings.show_rail_block_visualisation Online documentation}
|
1015
1035
|
*/
|
1016
1036
|
show_rail_block_visualisation: boolean
|
1017
1037
|
/**
|
1018
1038
|
* Shows or hides the buttons row.
|
1019
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1039
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#GameViewSettings.show_side_menu Online documentation}
|
1020
1040
|
*/
|
1021
1041
|
show_side_menu: boolean
|
1022
1042
|
/**
|
1023
1043
|
* Shows or hides the view options when map is opened.
|
1024
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1044
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#GameViewSettings.show_map_view_options Online documentation}
|
1025
1045
|
*/
|
1026
1046
|
show_map_view_options: boolean
|
1027
1047
|
/**
|
1028
1048
|
* Shows or hides the tooltip that is displayed when selecting an entity.
|
1029
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1049
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#GameViewSettings.show_entity_tooltip Online documentation}
|
1030
1050
|
*/
|
1031
1051
|
show_entity_tooltip: boolean
|
1032
1052
|
/**
|
1033
1053
|
* Shows or hides quickbar of shortcuts.
|
1034
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1054
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#GameViewSettings.show_quickbar Online documentation}
|
1035
1055
|
*/
|
1036
1056
|
show_quickbar: boolean
|
1037
1057
|
/**
|
1038
1058
|
* Shows or hides the shortcut bar.
|
1039
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1059
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#GameViewSettings.show_shortcut_bar Online documentation}
|
1040
1060
|
*/
|
1041
1061
|
show_shortcut_bar: boolean
|
1042
1062
|
/**
|
1043
1063
|
* Shows or hides the crafting queue.
|
1044
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1064
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#GameViewSettings.show_crafting_queue Online documentation}
|
1045
1065
|
*/
|
1046
1066
|
show_crafting_queue: boolean
|
1047
1067
|
/**
|
1048
1068
|
* Shows or hides the tool window with the weapons and armor.
|
1049
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1069
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#GameViewSettings.show_tool_bar Online documentation}
|
1050
1070
|
*/
|
1051
1071
|
show_tool_bar: boolean
|
1052
1072
|
/**
|
1053
1073
|
* Shows or hides the mouse and keyboard/controller button hints in the bottom left corner if they are enabled in the interface settings.
|
1054
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1074
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#GameViewSettings.show_hotkey_suggestions Online documentation}
|
1055
1075
|
*/
|
1056
1076
|
show_hotkey_suggestions: boolean
|
1057
1077
|
}
|
1058
|
-
/**
|
1059
|
-
* What is shown in the map view. If a field is not given, that setting will not be changed.
|
1060
|
-
* @see {@link https://lua-api.factorio.com/1.1.103/concepts.html#MapViewSettings Online documentation}
|
1061
|
-
*/
|
1062
|
-
export interface MapViewSettings {
|
1063
|
-
readonly "show-logistic-network"?: boolean
|
1064
|
-
readonly "show-electric-network"?: boolean
|
1065
|
-
readonly "show-turret-range"?: boolean
|
1066
|
-
readonly "show-pollution"?: boolean
|
1067
|
-
readonly "show-train-station-names"?: boolean
|
1068
|
-
readonly "show-player-names"?: boolean
|
1069
|
-
readonly "show-networkless-logistic-members"?: boolean
|
1070
|
-
readonly "show-non-standard-map-info"?: boolean
|
1071
|
-
}
|
1072
1078
|
/**
|
1073
1079
|
* These values are for the time frame of one second (60 ticks).
|
1074
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1080
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#PollutionMapSettings Online documentation}
|
1075
1081
|
*/
|
1076
1082
|
export interface PollutionMapSettings {
|
1077
1083
|
/**
|
@@ -1087,7 +1093,7 @@ declare module "factorio:runtime" {
|
|
1087
1093
|
*/
|
1088
1094
|
readonly min_to_diffuse: double
|
1089
1095
|
/**
|
1090
|
-
* The amount of pollution eaten by a chunk's tiles as a percentage of 1. Defaults to `1`.
|
1096
|
+
* The amount of pollution eaten by a chunk's tiles as a percentage of 1. Also known as absorption modifier. Defaults to `1`.
|
1091
1097
|
*/
|
1092
1098
|
readonly ageing: double
|
1093
1099
|
/**
|
@@ -1125,7 +1131,7 @@ declare module "factorio:runtime" {
|
|
1125
1131
|
}
|
1126
1132
|
/**
|
1127
1133
|
* These values represent a percentual increase in evolution. This means a value of `0.1` would increase evolution by 10%.
|
1128
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1134
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#EnemyEvolutionMapSettings Online documentation}
|
1129
1135
|
*/
|
1130
1136
|
export interface EnemyEvolutionMapSettings {
|
1131
1137
|
/**
|
@@ -1165,7 +1171,7 @@ declare module "factorio:runtime" {
|
|
1165
1171
|
*
|
1166
1172
|
* score(chunk) = 1 / (1 + player + base)
|
1167
1173
|
* ```
|
1168
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1174
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#EnemyExpansionMapSettings Online documentation}
|
1169
1175
|
*/
|
1170
1176
|
export interface EnemyExpansionMapSettings {
|
1171
1177
|
/**
|
@@ -1426,7 +1432,7 @@ declare module "factorio:runtime" {
|
|
1426
1432
|
* Various game-related settings. Updating any of the attributes will immediately take effect in the game engine.
|
1427
1433
|
* @example Increase the number of short paths the pathfinder can cache.
|
1428
1434
|
* game.map_settings.path_finder.short_cache_size = 15
|
1429
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1435
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#MapSettings Online documentation}
|
1430
1436
|
*/
|
1431
1437
|
export interface MapSettings {
|
1432
1438
|
pollution: PollutionMapSettings
|
@@ -1437,31 +1443,31 @@ declare module "factorio:runtime" {
|
|
1437
1443
|
path_finder: PathFinderMapSettings
|
1438
1444
|
/**
|
1439
1445
|
* If a behavior fails this many times, the enemy (or enemy group) is destroyed. This solves biters getting stuck within their own base.
|
1440
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1446
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#MapSettings.max_failed_behavior_count Online documentation}
|
1441
1447
|
*/
|
1442
1448
|
max_failed_behavior_count: uint
|
1443
1449
|
}
|
1444
1450
|
/**
|
1445
1451
|
* Technology and recipe difficulty settings. Updating any of the attributes will immediately take effect in the game engine.
|
1446
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1452
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#DifficultySettings Online documentation}
|
1447
1453
|
*/
|
1448
1454
|
export interface DifficultySettings {
|
1449
1455
|
recipe_difficulty: defines.difficulty_settings.recipe_difficulty
|
1450
1456
|
technology_difficulty: defines.difficulty_settings.technology_difficulty
|
1451
1457
|
/**
|
1452
1458
|
* A value in range [0.001, 1000].
|
1453
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1459
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#DifficultySettings.technology_price_multiplier Online documentation}
|
1454
1460
|
*/
|
1455
1461
|
technology_price_multiplier: double
|
1456
1462
|
/**
|
1457
1463
|
* Changing this to `"always"` or `"after-victory"` does not automatically unlock the research queue. See {@link LuaForce#research_queue_enabled LuaForce::research_queue_enabled} for that.
|
1458
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1464
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#DifficultySettings.research_queue_setting Online documentation}
|
1459
1465
|
*/
|
1460
1466
|
research_queue_setting: "after-victory" | "always" | "never"
|
1461
1467
|
}
|
1462
1468
|
/**
|
1463
1469
|
* A standard table containing all {@link MapSettings} attributes plus an additional table that contains all {@link DifficultySettings} properties.
|
1464
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1470
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#MapAndDifficultySettings Online documentation}
|
1465
1471
|
*/
|
1466
1472
|
export interface MapAndDifficultySettings {
|
1467
1473
|
readonly pollution: PollutionMapSettings
|
@@ -1490,7 +1496,7 @@ declare module "factorio:runtime" {
|
|
1490
1496
|
}
|
1491
1497
|
/**
|
1492
1498
|
* The data that can be extracted from a map exchange string, as a plain table.
|
1493
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1499
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#MapExchangeStringData Online documentation}
|
1494
1500
|
*/
|
1495
1501
|
export interface MapExchangeStringData {
|
1496
1502
|
readonly map_settings: MapAndDifficultySettings
|
@@ -1509,7 +1515,7 @@ declare module "factorio:runtime" {
|
|
1509
1515
|
/**
|
1510
1516
|
* The representation of an entity inside of a blueprint. It has at least these fields, but can contain additional ones depending on the kind of entity.
|
1511
1517
|
* @see BlueprintEntityWrite
|
1512
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1518
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#BlueprintEntity Online documentation}
|
1513
1519
|
*/
|
1514
1520
|
export interface BlueprintEntity {
|
1515
1521
|
/**
|
@@ -1688,7 +1694,7 @@ declare module "factorio:runtime" {
|
|
1688
1694
|
}
|
1689
1695
|
/**
|
1690
1696
|
* Write form of {@link BlueprintEntity}, where table-or-array concepts are allowed to take an array form.
|
1691
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1697
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#BlueprintEntity Online documentation}
|
1692
1698
|
*/
|
1693
1699
|
export interface BlueprintEntityWrite {
|
1694
1700
|
/**
|
@@ -1776,7 +1782,7 @@ declare module "factorio:runtime" {
|
|
1776
1782
|
}
|
1777
1783
|
/**
|
1778
1784
|
* @see TileWrite
|
1779
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1785
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#Tile Online documentation}
|
1780
1786
|
*/
|
1781
1787
|
export interface Tile {
|
1782
1788
|
/**
|
@@ -1790,7 +1796,7 @@ declare module "factorio:runtime" {
|
|
1790
1796
|
}
|
1791
1797
|
/**
|
1792
1798
|
* Write form of {@link Tile}, where table-or-array concepts are allowed to take an array form.
|
1793
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1799
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#Tile Online documentation}
|
1794
1800
|
*/
|
1795
1801
|
export interface TileWrite {
|
1796
1802
|
/**
|
@@ -1859,7 +1865,7 @@ declare module "factorio:runtime" {
|
|
1859
1865
|
*
|
1860
1866
|
* Other attributes may be specified depending on `type`:
|
1861
1867
|
* - `"fluid"`: {@link FluidIngredient}
|
1862
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1868
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#Ingredient Online documentation}
|
1863
1869
|
*/
|
1864
1870
|
export type Ingredient = FluidIngredient | OtherIngredient
|
1865
1871
|
/**
|
@@ -1921,7 +1927,7 @@ declare module "factorio:runtime" {
|
|
1921
1927
|
* {type="fluid", name="petroleum-gas", amount=5.5}}
|
1922
1928
|
* @example What a custom recipe would look like that had a probability of 0.5 to return a minimum amount of 1 and a maximum amount of 5:
|
1923
1929
|
* {{type="item", name="custom-item", probability=0.5, amount_min=1, amount_max=5}}
|
1924
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1930
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#Product Online documentation}
|
1925
1931
|
*/
|
1926
1932
|
export type Product = FluidProduct | OtherProduct
|
1927
1933
|
export interface Loot {
|
@@ -2080,7 +2086,7 @@ declare module "factorio:runtime" {
|
|
2080
2086
|
* - `"unlock-recipe"`: {@link UnlockRecipeTechnologyModifier}
|
2081
2087
|
* - `"nothing"`: {@link NothingTechnologyModifier}
|
2082
2088
|
* - Other types: {@link OtherTechnologyModifier}
|
2083
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2089
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#TechnologyModifier Online documentation}
|
2084
2090
|
*/
|
2085
2091
|
export type TechnologyModifier =
|
2086
2092
|
| GunSpeedTechnologyModifier
|
@@ -2092,7 +2098,7 @@ declare module "factorio:runtime" {
|
|
2092
2098
|
| OtherTechnologyModifier
|
2093
2099
|
/**
|
2094
2100
|
* A single offer on a market entity.
|
2095
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2101
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#Offer Online documentation}
|
2096
2102
|
*/
|
2097
2103
|
export interface Offer {
|
2098
2104
|
/**
|
@@ -2106,7 +2112,7 @@ declare module "factorio:runtime" {
|
|
2106
2112
|
}
|
2107
2113
|
/**
|
2108
2114
|
* Specifies how probability and richness are calculated when placing something on the map. Can be specified either using `probability_expression` and `richness_expression` or by using all the other fields.
|
2109
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2115
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#AutoplaceSpecification Online documentation}
|
2110
2116
|
*/
|
2111
2117
|
export interface AutoplaceSpecification {
|
2112
2118
|
readonly probability_expression: NoiseExpression
|
@@ -2132,7 +2138,7 @@ declare module "factorio:runtime" {
|
|
2132
2138
|
}
|
2133
2139
|
/**
|
2134
2140
|
* A fragment of a functional program used to generate coherent noise, probably for purposes related to terrain generation. These can only be meaningfully written/modified during the data load phase. More detailed information is found on the {@link import("factorio:prototype").NamedNoiseExpression prototype docs}.
|
2135
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2141
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#NoiseExpression Online documentation}
|
2136
2142
|
*/
|
2137
2143
|
export interface NoiseExpression {
|
2138
2144
|
/**
|
@@ -2224,7 +2230,7 @@ declare module "factorio:runtime" {
|
|
2224
2230
|
* - `"very-big"`: equivalent to `2`.
|
2225
2231
|
* - `"very-good"`: equivalent to `2`.
|
2226
2232
|
* @remarks The map generation algorithm officially supports the range of values the in-game map generation screen shows (specifically `0` and values from `1/6` to `6`). Values outside this range are not guaranteed to work as expected.
|
2227
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2233
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#MapGenSize Online documentation}
|
2228
2234
|
*/
|
2229
2235
|
export type MapGenSize =
|
2230
2236
|
| float
|
@@ -2246,7 +2252,7 @@ declare module "factorio:runtime" {
|
|
2246
2252
|
| "very-good"
|
2247
2253
|
/**
|
2248
2254
|
* @see AutoplaceControlWrite
|
2249
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2255
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#AutoplaceControl Online documentation}
|
2250
2256
|
*/
|
2251
2257
|
export interface AutoplaceControl {
|
2252
2258
|
/**
|
@@ -2264,7 +2270,7 @@ declare module "factorio:runtime" {
|
|
2264
2270
|
}
|
2265
2271
|
/**
|
2266
2272
|
* Write form of {@link AutoplaceControl}, where table-or-array concepts are allowed to take an array form.
|
2267
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2273
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#AutoplaceControl Online documentation}
|
2268
2274
|
*/
|
2269
2275
|
export interface AutoplaceControlWrite {
|
2270
2276
|
/**
|
@@ -2282,7 +2288,7 @@ declare module "factorio:runtime" {
|
|
2282
2288
|
}
|
2283
2289
|
/**
|
2284
2290
|
* @see AutoplaceSettingsWrite
|
2285
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2291
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#AutoplaceSettings Online documentation}
|
2286
2292
|
*/
|
2287
2293
|
export interface AutoplaceSettings {
|
2288
2294
|
/**
|
@@ -2293,7 +2299,7 @@ declare module "factorio:runtime" {
|
|
2293
2299
|
}
|
2294
2300
|
/**
|
2295
2301
|
* Write form of {@link AutoplaceSettings}, where table-or-array concepts are allowed to take an array form.
|
2296
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2302
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#AutoplaceSettings Online documentation}
|
2297
2303
|
*/
|
2298
2304
|
export interface AutoplaceSettingsWrite {
|
2299
2305
|
/**
|
@@ -2304,7 +2310,7 @@ declare module "factorio:runtime" {
|
|
2304
2310
|
}
|
2305
2311
|
/**
|
2306
2312
|
* @see CliffPlacementSettingsWrite
|
2307
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2313
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#CliffPlacementSettings Online documentation}
|
2308
2314
|
*/
|
2309
2315
|
export interface CliffPlacementSettings {
|
2310
2316
|
/**
|
@@ -2326,7 +2332,7 @@ declare module "factorio:runtime" {
|
|
2326
2332
|
}
|
2327
2333
|
/**
|
2328
2334
|
* Write form of {@link CliffPlacementSettings}, where table-or-array concepts are allowed to take an array form.
|
2329
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2335
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#CliffPlacementSettings Online documentation}
|
2330
2336
|
*/
|
2331
2337
|
export interface CliffPlacementSettingsWrite {
|
2332
2338
|
/**
|
@@ -2359,7 +2365,7 @@ declare module "factorio:runtime" {
|
|
2359
2365
|
* local mgs = surface.map_gen_settings
|
2360
2366
|
* mgs.property_expression_names["tile:deepwater:probability"] = -1000
|
2361
2367
|
* surface.map_gen_settings = mgs
|
2362
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2368
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#MapGenSettings Online documentation}
|
2363
2369
|
*/
|
2364
2370
|
export interface MapGenSettings {
|
2365
2371
|
/**
|
@@ -2429,7 +2435,7 @@ declare module "factorio:runtime" {
|
|
2429
2435
|
}
|
2430
2436
|
/**
|
2431
2437
|
* Write form of {@link MapGenSettings}, where table-or-array concepts are allowed to take an array form.
|
2432
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2438
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#MapGenSettings Online documentation}
|
2433
2439
|
*/
|
2434
2440
|
export interface MapGenSettingsWrite {
|
2435
2441
|
/**
|
@@ -2524,7 +2530,7 @@ declare module "factorio:runtime" {
|
|
2524
2530
|
}
|
2525
2531
|
/**
|
2526
2532
|
* An actual signal transmitted by the network.
|
2527
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2533
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#Signal Online documentation}
|
2528
2534
|
*/
|
2529
2535
|
export interface Signal {
|
2530
2536
|
/**
|
@@ -2545,7 +2551,7 @@ declare module "factorio:runtime" {
|
|
2545
2551
|
}
|
2546
2552
|
/**
|
2547
2553
|
* A single filter used by an infinity-filters instance.
|
2548
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2554
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#InfinityInventoryFilter Online documentation}
|
2549
2555
|
*/
|
2550
2556
|
export interface InfinityInventoryFilter {
|
2551
2557
|
/**
|
@@ -2567,7 +2573,7 @@ declare module "factorio:runtime" {
|
|
2567
2573
|
}
|
2568
2574
|
/**
|
2569
2575
|
* A single filter used by an infinity-pipe type entity.
|
2570
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2576
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#InfinityPipeFilter Online documentation}
|
2571
2577
|
*/
|
2572
2578
|
export interface InfinityPipeFilter {
|
2573
2579
|
/**
|
@@ -2575,7 +2581,7 @@ declare module "factorio:runtime" {
|
|
2575
2581
|
*/
|
2576
2582
|
readonly name: string
|
2577
2583
|
/**
|
2578
|
-
* The fill percentage the pipe (`0.5` for 50%). Can't be negative.
|
2584
|
+
* The fill percentage the pipe (for example `0.5` for 50%). Can't be negative.
|
2579
2585
|
*/
|
2580
2586
|
readonly percentage?: double
|
2581
2587
|
/**
|
@@ -2621,7 +2627,7 @@ declare module "factorio:runtime" {
|
|
2621
2627
|
}
|
2622
2628
|
/**
|
2623
2629
|
* The settings used by a heat-interface type entity.
|
2624
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2630
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#HeatSetting Online documentation}
|
2625
2631
|
*/
|
2626
2632
|
export interface HeatSetting {
|
2627
2633
|
/**
|
@@ -2639,7 +2645,7 @@ declare module "factorio:runtime" {
|
|
2639
2645
|
}
|
2640
2646
|
/**
|
2641
2647
|
* A definition of a fluidbox connection point.
|
2642
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2648
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#FluidBoxConnection Online documentation}
|
2643
2649
|
*/
|
2644
2650
|
export interface FluidBoxConnection {
|
2645
2651
|
readonly type: "input" | "output" | "input-output"
|
@@ -2654,7 +2660,7 @@ declare module "factorio:runtime" {
|
|
2654
2660
|
}
|
2655
2661
|
/**
|
2656
2662
|
* A single pipe connection for a given fluidbox.
|
2657
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2663
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#PipeConnection Online documentation}
|
2658
2664
|
*/
|
2659
2665
|
export interface PipeConnection {
|
2660
2666
|
readonly flow_direction: "input" | "output" | "input-output"
|
@@ -2734,14 +2740,14 @@ declare module "factorio:runtime" {
|
|
2734
2740
|
* - `"≠"`: "not equal to"
|
2735
2741
|
* - `"!="`: "not equal to"
|
2736
2742
|
* @remarks While the API accepts both versions for `"less/greater than or equal to"` and `"not equal"`, it'll always return `"≥"`, `"≤"` or `"≠"` respectively when reading them back.
|
2737
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2743
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#ComparatorString Online documentation}
|
2738
2744
|
*/
|
2739
2745
|
export type ComparatorString = "=" | ">" | "<" | "≥" | ">=" | "≤" | "<=" | "≠" | "!="
|
2740
2746
|
/** @see ComparatorString */
|
2741
2747
|
export type ComparatorStringRead = "=" | ">" | "<" | "≥" | "≤" | "≠"
|
2742
2748
|
/**
|
2743
2749
|
* @see DeciderCombinatorParametersWrite
|
2744
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2750
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#DeciderCombinatorParameters Online documentation}
|
2745
2751
|
*/
|
2746
2752
|
export interface DeciderCombinatorParameters {
|
2747
2753
|
/**
|
@@ -2771,7 +2777,7 @@ declare module "factorio:runtime" {
|
|
2771
2777
|
}
|
2772
2778
|
/**
|
2773
2779
|
* Write form of {@link DeciderCombinatorParameters}, where table-or-array concepts are allowed to take an array form.
|
2774
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2780
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#DeciderCombinatorParameters Online documentation}
|
2775
2781
|
*/
|
2776
2782
|
export interface DeciderCombinatorParametersWrite {
|
2777
2783
|
/**
|
@@ -2805,7 +2811,7 @@ declare module "factorio:runtime" {
|
|
2805
2811
|
}
|
2806
2812
|
/**
|
2807
2813
|
* @see CircuitConditionWrite
|
2808
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2814
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#CircuitCondition Online documentation}
|
2809
2815
|
*/
|
2810
2816
|
export interface CircuitCondition {
|
2811
2817
|
/**
|
@@ -2827,7 +2833,7 @@ declare module "factorio:runtime" {
|
|
2827
2833
|
}
|
2828
2834
|
/**
|
2829
2835
|
* Write form of {@link CircuitCondition}, where table-or-array concepts are allowed to take an array form.
|
2830
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2836
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#CircuitCondition Online documentation}
|
2831
2837
|
*/
|
2832
2838
|
export interface CircuitConditionWrite {
|
2833
2839
|
/**
|
@@ -2849,7 +2855,7 @@ declare module "factorio:runtime" {
|
|
2849
2855
|
}
|
2850
2856
|
/**
|
2851
2857
|
* @see CircuitConditionDefinitionWrite
|
2852
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2858
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#CircuitConditionDefinition Online documentation}
|
2853
2859
|
*/
|
2854
2860
|
export interface CircuitConditionDefinition {
|
2855
2861
|
readonly condition: CircuitCondition
|
@@ -2860,7 +2866,7 @@ declare module "factorio:runtime" {
|
|
2860
2866
|
}
|
2861
2867
|
/**
|
2862
2868
|
* Write form of {@link CircuitConditionDefinition}, where table-or-array concepts are allowed to take an array form.
|
2863
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2869
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#CircuitConditionDefinition Online documentation}
|
2864
2870
|
*/
|
2865
2871
|
export interface CircuitConditionDefinitionWrite {
|
2866
2872
|
readonly condition: CircuitConditionWrite
|
@@ -3176,7 +3182,7 @@ declare module "factorio:runtime" {
|
|
3176
3182
|
* - {@link defines.command.stop}: {@link StopCommand}
|
3177
3183
|
* - {@link defines.command.flee}: {@link FleeCommand}
|
3178
3184
|
* - {@link defines.command.build_base}: {@link BuildBaseCommand}
|
3179
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3185
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#Command Online documentation}
|
3180
3186
|
*/
|
3181
3187
|
export type Command =
|
3182
3188
|
| AttackCommand
|
@@ -3190,7 +3196,7 @@ declare module "factorio:runtime" {
|
|
3190
3196
|
| BuildBaseCommand
|
3191
3197
|
/**
|
3192
3198
|
* Write form of {@link Command}, where table-or-array concepts are allowed to take an array form.
|
3193
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3199
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#Command Online documentation}
|
3194
3200
|
*/
|
3195
3201
|
export type CommandWrite =
|
3196
3202
|
| AttackCommand
|
@@ -3286,7 +3292,7 @@ declare module "factorio:runtime" {
|
|
3286
3292
|
* {name="copper-plate", count=47}
|
3287
3293
|
* @example These are both full stacks of iron plates (for iron-plate, a full stack is 100 plates):
|
3288
3294
|
* "iron-plate"
|
3289
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3295
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#SimpleItemStack Online documentation}
|
3290
3296
|
*/
|
3291
3297
|
export type SimpleItemStack = string | ItemStackDefinition
|
3292
3298
|
/**
|
@@ -3296,7 +3302,7 @@ declare module "factorio:runtime" {
|
|
3296
3302
|
* - `string`: The fluid name.
|
3297
3303
|
* - {@link LuaFluidPrototype}: The fluid prototype.
|
3298
3304
|
* - {@link Fluid}: The fluid.
|
3299
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3305
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#FluidIdentification Online documentation}
|
3300
3306
|
*/
|
3301
3307
|
export type FluidIdentification = string | LuaFluidPrototype | Fluid
|
3302
3308
|
/**
|
@@ -3306,7 +3312,7 @@ declare module "factorio:runtime" {
|
|
3306
3312
|
* - ForceIndex: The force index.
|
3307
3313
|
* - `string`: The force name.
|
3308
3314
|
* - {@link LuaForce}: A reference to {@link LuaForce} may be passed directly.
|
3309
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3315
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#ForceIdentification Online documentation}
|
3310
3316
|
*/
|
3311
3317
|
export type ForceIdentification = ForceIndex | string | LuaForce
|
3312
3318
|
/**
|
@@ -3316,7 +3322,7 @@ declare module "factorio:runtime" {
|
|
3316
3322
|
* - `string`: The technology name.
|
3317
3323
|
* - {@link LuaTechnology}: A reference to {@link LuaTechnology} may be passed directly.
|
3318
3324
|
* - {@link LuaTechnologyPrototype}: A reference to {@link LuaTechnologyPrototype} may be passed directly.
|
3319
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3325
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#TechnologyIdentification Online documentation}
|
3320
3326
|
*/
|
3321
3327
|
export type TechnologyIdentification = string | LuaTechnology | LuaTechnologyPrototype
|
3322
3328
|
/**
|
@@ -3326,7 +3332,7 @@ declare module "factorio:runtime" {
|
|
3326
3332
|
* - SurfaceIndex: It will be the index of the surface. `nauvis` has index `1`, the first surface-created surface will have index `2` and so on.
|
3327
3333
|
* - `string`: It will be the surface name. E.g. `"nauvis"`.
|
3328
3334
|
* - {@link LuaSurface}: A reference to {@link LuaSurface} may be passed directly.
|
3329
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3335
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#SurfaceIdentification Online documentation}
|
3330
3336
|
*/
|
3331
3337
|
export type SurfaceIdentification = SurfaceIndex | string | LuaSurface
|
3332
3338
|
/**
|
@@ -3336,7 +3342,7 @@ declare module "factorio:runtime" {
|
|
3336
3342
|
* - PlayerIndex: The player index.
|
3337
3343
|
* - `string`: The player name.
|
3338
3344
|
* - {@link LuaPlayer}: A reference to {@link LuaPlayer} may be passed directly.
|
3339
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3345
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#PlayerIdentification Online documentation}
|
3340
3346
|
*/
|
3341
3347
|
export type PlayerIdentification = PlayerIndex | string | LuaPlayer
|
3342
3348
|
/**
|
@@ -3345,7 +3351,7 @@ declare module "factorio:runtime" {
|
|
3345
3351
|
* ## Union members
|
3346
3352
|
* - {@link SimpleItemStack}
|
3347
3353
|
* - {@link LuaItemStack}
|
3348
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3354
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#ItemStackIdentification Online documentation}
|
3349
3355
|
*/
|
3350
3356
|
export type ItemStackIdentification = SimpleItemStack | LuaItemStack
|
3351
3357
|
/**
|
@@ -3355,7 +3361,7 @@ declare module "factorio:runtime" {
|
|
3355
3361
|
* - {@link LuaEntity}: The entity.
|
3356
3362
|
* - {@link LuaEntityPrototype}: The entity prototype.
|
3357
3363
|
* - `string`: The prototype name.
|
3358
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3364
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#EntityPrototypeIdentification Online documentation}
|
3359
3365
|
*/
|
3360
3366
|
export type EntityPrototypeIdentification = LuaEntity | LuaEntityPrototype | string
|
3361
3367
|
/**
|
@@ -3365,7 +3371,7 @@ declare module "factorio:runtime" {
|
|
3365
3371
|
* - {@link LuaItemStack}: The item.
|
3366
3372
|
* - {@link LuaItemPrototype}: The item prototype.
|
3367
3373
|
* - `string`: The prototype name.
|
3368
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3374
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#ItemPrototypeIdentification Online documentation}
|
3369
3375
|
*/
|
3370
3376
|
export type ItemPrototypeIdentification = LuaItemStack | LuaItemPrototype | string
|
3371
3377
|
/**
|
@@ -3382,7 +3388,7 @@ declare module "factorio:runtime" {
|
|
3382
3388
|
* - `"fluid_count"`
|
3383
3389
|
* - `"passenger_present"`
|
3384
3390
|
* - `"passenger_not_present"`
|
3385
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3391
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#WaitConditionType Online documentation}
|
3386
3392
|
*/
|
3387
3393
|
export type WaitConditionType =
|
3388
3394
|
| "time"
|
@@ -3397,7 +3403,7 @@ declare module "factorio:runtime" {
|
|
3397
3403
|
| "passenger_not_present"
|
3398
3404
|
/**
|
3399
3405
|
* @see WaitConditionWrite
|
3400
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3406
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#WaitCondition Online documentation}
|
3401
3407
|
*/
|
3402
3408
|
export interface WaitCondition {
|
3403
3409
|
readonly type: WaitConditionType
|
@@ -3416,7 +3422,7 @@ declare module "factorio:runtime" {
|
|
3416
3422
|
}
|
3417
3423
|
/**
|
3418
3424
|
* Write form of {@link WaitCondition}, where table-or-array concepts are allowed to take an array form.
|
3419
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3425
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#WaitCondition Online documentation}
|
3420
3426
|
*/
|
3421
3427
|
export interface WaitConditionWrite {
|
3422
3428
|
readonly type: WaitConditionType
|
@@ -3435,7 +3441,7 @@ declare module "factorio:runtime" {
|
|
3435
3441
|
}
|
3436
3442
|
/**
|
3437
3443
|
* @see TrainScheduleRecordWrite
|
3438
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3444
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#TrainScheduleRecord Online documentation}
|
3439
3445
|
*/
|
3440
3446
|
export interface TrainScheduleRecord {
|
3441
3447
|
/**
|
@@ -3458,7 +3464,7 @@ declare module "factorio:runtime" {
|
|
3458
3464
|
}
|
3459
3465
|
/**
|
3460
3466
|
* Write form of {@link TrainScheduleRecord}, where table-or-array concepts are allowed to take an array form.
|
3461
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3467
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#TrainScheduleRecord Online documentation}
|
3462
3468
|
*/
|
3463
3469
|
export interface TrainScheduleRecordWrite {
|
3464
3470
|
/**
|
@@ -3481,7 +3487,7 @@ declare module "factorio:runtime" {
|
|
3481
3487
|
}
|
3482
3488
|
/**
|
3483
3489
|
* @see TrainScheduleWrite
|
3484
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3490
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#TrainSchedule Online documentation}
|
3485
3491
|
*/
|
3486
3492
|
export interface TrainSchedule {
|
3487
3493
|
/**
|
@@ -3492,7 +3498,7 @@ declare module "factorio:runtime" {
|
|
3492
3498
|
}
|
3493
3499
|
/**
|
3494
3500
|
* Write form of {@link TrainSchedule}, where table-or-array concepts are allowed to take an array form.
|
3495
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3501
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#TrainSchedule Online documentation}
|
3496
3502
|
*/
|
3497
3503
|
export interface TrainScheduleWrite {
|
3498
3504
|
/**
|
@@ -3508,7 +3514,7 @@ declare module "factorio:runtime" {
|
|
3508
3514
|
* - `"entity"`: Fires at an entity.
|
3509
3515
|
* - `"position"`: Fires directly at a position.
|
3510
3516
|
* - `"direction"`: Fires in a direction.
|
3511
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3517
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#TargetType Online documentation}
|
3512
3518
|
*/
|
3513
3519
|
export type TargetType = "entity" | "position" | "direction"
|
3514
3520
|
export interface AmmoType {
|
@@ -3575,7 +3581,7 @@ declare module "factorio:runtime" {
|
|
3575
3581
|
* - `"equipment"`
|
3576
3582
|
* - `"file"` - path to an image file located inside the current scenario. This file is not preloaded so it will be slower; for frequently used sprites, it is better to define sprite prototype and use it instead.
|
3577
3583
|
* - `"utility"` - sprite defined in the utility-sprites object, these are the pictures used by the game internally for the UI.
|
3578
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3584
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#SpritePath Online documentation}
|
3579
3585
|
*/
|
3580
3586
|
export type SpritePath =
|
3581
3587
|
| (string & {
|
@@ -3625,7 +3631,7 @@ declare module "factorio:runtime" {
|
|
3625
3631
|
* - `"entity-rotated"` - Uses {@link import("factorio:prototype").EntityPrototype#rotated_sound EntityPrototype::rotated_sound}
|
3626
3632
|
* - `"entity-open"` - Uses {@link import("factorio:prototype").EntityPrototype#open_sound Entity::open_sound}
|
3627
3633
|
* - `"entity-close"` - Uses {@link import("factorio:prototype").EntityPrototype#close_sound Entity::close_sound}
|
3628
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3634
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#SoundPath Online documentation}
|
3629
3635
|
*/
|
3630
3636
|
export type SoundPath =
|
3631
3637
|
| (string & {
|
@@ -3644,7 +3650,7 @@ declare module "factorio:runtime" {
|
|
3644
3650
|
* speed={bonus=-0.15},
|
3645
3651
|
* productivity={bonus=0.06},
|
3646
3652
|
* pollution={bonus=0.075}}
|
3647
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3653
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#ModuleEffects Online documentation}
|
3648
3654
|
*/
|
3649
3655
|
export interface ModuleEffects {
|
3650
3656
|
readonly consumption?: ModuleEffectValue
|
@@ -3656,7 +3662,7 @@ declare module "factorio:runtime" {
|
|
3656
3662
|
* A set of flags. Active flags are in the dictionary as `true`, while inactive flags aren't present at all.
|
3657
3663
|
*
|
3658
3664
|
* By default, none of these flags are set.
|
3659
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3665
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#EntityPrototypeFlags Online documentation}
|
3660
3666
|
*/
|
3661
3667
|
export type EntityPrototypeFlags = {
|
3662
3668
|
readonly [T in EntityPrototypeFlag]?: true
|
@@ -3691,7 +3697,7 @@ declare module "factorio:runtime" {
|
|
3691
3697
|
* - `"not-upgradable"`: Prevents the entity from being selected by the upgrade planner.
|
3692
3698
|
* - `"not-in-kill-statistics"`: Prevents the entity from being shown in the kill statistics.
|
3693
3699
|
* - `"not-in-made-in"`: Prevents the entity from being shown in the "made in" list in recipe tooltips.
|
3694
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3700
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#EntityPrototypeFlag Online documentation}
|
3695
3701
|
*/
|
3696
3702
|
export type EntityPrototypeFlag =
|
3697
3703
|
| "not-rotatable"
|
@@ -3724,7 +3730,7 @@ declare module "factorio:runtime" {
|
|
3724
3730
|
* A set of flags. Active flags are in the dictionary as `true`, while inactive flags aren't present at all.
|
3725
3731
|
*
|
3726
3732
|
* By default, none of these flags are set.
|
3727
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3733
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#ItemPrototypeFlags Online documentation}
|
3728
3734
|
*/
|
3729
3735
|
export type ItemPrototypeFlags = {
|
3730
3736
|
readonly [T in ItemPrototypeFlag]?: true
|
@@ -3744,7 +3750,7 @@ declare module "factorio:runtime" {
|
|
3744
3750
|
* - `"mod-openable"`: Allows the item to be opened by the player, firing the `on_mod_item_opened` event. Only has an effect for selection tool items.
|
3745
3751
|
* - `"only-in-cursor"`: Makes it so the item is deleted when clearing the cursor, instead of being put into the player's inventory. The copy-paste tools use this by default, for example.
|
3746
3752
|
* - `"spawnable"`: Allows the item to be spawned by a quickbar shortcut or custom input.
|
3747
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3753
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#ItemPrototypeFlag Online documentation}
|
3748
3754
|
*/
|
3749
3755
|
export type ItemPrototypeFlag =
|
3750
3756
|
| "draw-logistic-overlay"
|
@@ -3777,7 +3783,7 @@ declare module "factorio:runtime" {
|
|
3777
3783
|
* - `"rail-layer"`
|
3778
3784
|
* - `"transport-belt-layer"`
|
3779
3785
|
* - `"not-setup"`
|
3780
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3786
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#CollisionMaskLayer Online documentation}
|
3781
3787
|
*/
|
3782
3788
|
export type CollisionMaskLayer =
|
3783
3789
|
| "ground-tile"
|
@@ -3796,7 +3802,7 @@ declare module "factorio:runtime" {
|
|
3796
3802
|
| `layer-${bigint}`
|
3797
3803
|
/**
|
3798
3804
|
* A set of flags. Active flags are in the dictionary as `true`, while inactive flags aren't present at all.
|
3799
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3805
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#CollisionMask Online documentation}
|
3800
3806
|
*/
|
3801
3807
|
export type CollisionMask = {
|
3802
3808
|
readonly [T in CollisionMaskLayer]?: true
|
@@ -3809,7 +3815,7 @@ declare module "factorio:runtime" {
|
|
3809
3815
|
* - `"not-colliding-with-itself"`: Any two entities that both have this option enabled on their prototype and have an identical collision mask layers list will not collide. Other collision mask options are not included in the identical layer list check. This does mean that two different prototypes with the same collision mask layers and this option enabled will not collide.
|
3810
3816
|
* - `"consider-tile-transitions"`: Uses the prototypes position rather than its collision box when doing collision checks with tile prototypes. Allows the prototype to overlap colliding tiles up until its center point. This is only respected for character movement and cars driven by players.
|
3811
3817
|
* - `"colliding-with-tiles-only"`: Any prototype with this collision option will only be checked for collision with other prototype's collision masks if they are a tile.
|
3812
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3818
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#CollisionMaskWithFlags Online documentation}
|
3813
3819
|
*/
|
3814
3820
|
export type CollisionMaskWithFlags = {
|
3815
3821
|
/**
|
@@ -3829,7 +3835,7 @@ declare module "factorio:runtime" {
|
|
3829
3835
|
}
|
3830
3836
|
/**
|
3831
3837
|
* A set of trigger target masks.
|
3832
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3838
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#TriggerTargetMask Online documentation}
|
3833
3839
|
*/
|
3834
3840
|
export type TriggerTargetMask = Record<string, boolean>
|
3835
3841
|
export interface CircularParticleCreationSpecification {
|
@@ -3964,7 +3970,7 @@ declare module "factorio:runtime" {
|
|
3964
3970
|
* Other attributes may be specified depending on `type`:
|
3965
3971
|
* - `"projectile"`: {@link ProjectileAttackParameters}
|
3966
3972
|
* - `"stream"`: {@link StreamAttackParameters}
|
3967
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3973
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#AttackParameters Online documentation}
|
3968
3974
|
*/
|
3969
3975
|
export type AttackParameters = ProjectileAttackParameters | StreamAttackParameters | OtherAttackParameters
|
3970
3976
|
export interface GunShift4Way {
|
@@ -4030,7 +4036,7 @@ declare module "factorio:runtime" {
|
|
4030
4036
|
* - `"use-on-self"`: {@link UseOnSelfCapsuleAction}
|
4031
4037
|
* - `"artillery-remote"`: {@link ArtilleryRemoteCapsuleAction}
|
4032
4038
|
* - `"destroy-cliffs"`: {@link DestroyCliffsCapsuleAction}
|
4033
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4039
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#CapsuleAction Online documentation}
|
4034
4040
|
*/
|
4035
4041
|
export type CapsuleAction =
|
4036
4042
|
| ThrowCapsuleAction
|
@@ -4066,7 +4072,7 @@ declare module "factorio:runtime" {
|
|
4066
4072
|
* - `"avoid-rolling-stock"`: Selects entities that are not `rolling-stock`s.
|
4067
4073
|
* - `"entity-ghost"`: Selects entities that are `entity-ghost`s.
|
4068
4074
|
* - `"tile-ghost"`: Selects entities that are `tile-ghost`s.
|
4069
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4075
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#SelectionModeFlags Online documentation}
|
4070
4076
|
*/
|
4071
4077
|
export interface SelectionModeFlags {
|
4072
4078
|
/**
|
@@ -4215,12 +4221,12 @@ declare module "factorio:runtime" {
|
|
4215
4221
|
}
|
4216
4222
|
/**
|
4217
4223
|
* Any basic type (string, number, boolean) or table.
|
4218
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4224
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#AnyBasic Online documentation}
|
4219
4225
|
*/
|
4220
4226
|
export type AnyBasic = string | boolean | number | table
|
4221
4227
|
/**
|
4222
4228
|
* Any basic type (string, number, boolean), table, or LuaObject.
|
4223
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4229
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#Any Online documentation}
|
4224
4230
|
*/
|
4225
4231
|
export type Any = string | boolean | number | table | LuaObject
|
4226
4232
|
export interface ProgrammableSpeakerParameters {
|
@@ -4258,7 +4264,7 @@ declare module "factorio:runtime" {
|
|
4258
4264
|
* - `"top-right"`
|
4259
4265
|
* - `"right"`: The same as `"middle-right"`
|
4260
4266
|
* - `"bottom-right"`
|
4261
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4267
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#Alignment Online documentation}
|
4262
4268
|
*/
|
4263
4269
|
export type Alignment =
|
4264
4270
|
| "top-left"
|
@@ -4273,8 +4279,8 @@ declare module "factorio:runtime" {
|
|
4273
4279
|
| "right"
|
4274
4280
|
| "bottom-right"
|
4275
4281
|
/**
|
4276
|
-
* Information about the event that has been raised. The table can also contain other fields depending on the type of event. See {@linkplain https://lua-api.factorio.com/1.1.
|
4277
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4282
|
+
* Information about the event that has been raised. The table can also contain other fields depending on the type of event. See {@linkplain https://lua-api.factorio.com/1.1.105/events.html the list of Factorio events} for more information on these.
|
4283
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#EventData Online documentation}
|
4278
4284
|
*/
|
4279
4285
|
export interface EventData {
|
4280
4286
|
/**
|
@@ -4384,7 +4390,7 @@ declare module "factorio:runtime" {
|
|
4384
4390
|
* - `"button-7"`
|
4385
4391
|
* - `"button-8"`
|
4386
4392
|
* - `"button-9"`
|
4387
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4393
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#MouseButtonFlags Online documentation}
|
4388
4394
|
*/
|
4389
4395
|
export interface MouseButtonFlags {
|
4390
4396
|
readonly left?: true
|
@@ -4408,7 +4414,7 @@ declare module "factorio:runtime" {
|
|
4408
4414
|
* - `"not-friend"`: Forces which are not friends pass.
|
4409
4415
|
* - `"same"`: The same force pass.
|
4410
4416
|
* - `"not-same"`: The non-same forces pass.
|
4411
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4417
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#ForceCondition Online documentation}
|
4412
4418
|
*/
|
4413
4419
|
export type ForceCondition = "all" | "enemy" | "ally" | "friend" | "not-friend" | "same" | "not-same"
|
4414
4420
|
/**
|
@@ -4459,7 +4465,7 @@ declare module "factorio:runtime" {
|
|
4459
4465
|
* - `"collision-selection-box"`: 189
|
4460
4466
|
* - `"arrow"`: 190
|
4461
4467
|
* - `"cursor"`: 210
|
4462
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4468
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#RenderLayer Online documentation}
|
4463
4469
|
*/
|
4464
4470
|
export type RenderLayer =
|
4465
4471
|
| `${bigint}`
|
@@ -4525,7 +4531,7 @@ declare module "factorio:runtime" {
|
|
4525
4531
|
* - `"walking"`
|
4526
4532
|
* - `"alert"`
|
4527
4533
|
* - `"wind"`
|
4528
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4534
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#SoundType Online documentation}
|
4529
4535
|
*/
|
4530
4536
|
export type SoundType = "game-effect" | "gui-effect" | "ambient" | "environment" | "walking" | "alert" | "wind"
|
4531
4537
|
/**
|
@@ -4555,7 +4561,7 @@ declare module "factorio:runtime" {
|
|
4555
4561
|
* - `"tabbed-pane"`: A collection of `tab`s and their contents. Relevant event: {@link OnGuiSelectedTabChangedEvent on_gui_selected_tab_changed}
|
4556
4562
|
* - `"tab"`: A tab for use in a `tabbed-pane`.
|
4557
4563
|
* - `"switch"`: A switch with three possible states. Can have labels attached to either side. Relevant event: {@link OnGuiSwitchStateChangedEvent on_gui_switch_state_changed}
|
4558
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4564
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#GuiElementType Online documentation}
|
4559
4565
|
*/
|
4560
4566
|
export type GuiElementType =
|
4561
4567
|
| "button"
|
@@ -4595,7 +4601,7 @@ declare module "factorio:runtime" {
|
|
4595
4601
|
* - `"position"`
|
4596
4602
|
* - `"crafting_queue"`
|
4597
4603
|
* - `"item_stack"`: Will point to a given item stack in an inventory.
|
4598
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4604
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#GuiArrowType Online documentation}
|
4599
4605
|
*/
|
4600
4606
|
export type GuiArrowType =
|
4601
4607
|
| "nowhere"
|
@@ -4616,7 +4622,7 @@ declare module "factorio:runtime" {
|
|
4616
4622
|
* ## Union members
|
4617
4623
|
* - `"horizontal"`
|
4618
4624
|
* - `"vertical"`
|
4619
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4625
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#GuiDirection Online documentation}
|
4620
4626
|
*/
|
4621
4627
|
export type GuiDirection = "horizontal" | "vertical"
|
4622
4628
|
/**
|
@@ -4628,7 +4634,7 @@ declare module "factorio:runtime" {
|
|
4628
4634
|
* - `"always"`
|
4629
4635
|
* - `"auto"`
|
4630
4636
|
* - `"auto-and-reserve-space"`
|
4631
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4637
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#ScrollPolicy Online documentation}
|
4632
4638
|
*/
|
4633
4639
|
export type ScrollPolicy = "never" | "dont-show-but-allow-scrolling" | "always" | "auto" | "auto-and-reserve-space"
|
4634
4640
|
/**
|
@@ -4646,7 +4652,7 @@ declare module "factorio:runtime" {
|
|
4646
4652
|
* - TechnologyPrototypeFilter: for type `"technology"`
|
4647
4653
|
* @see PrototypeFilterWrite
|
4648
4654
|
* @remarks Filters are always used as an array of filters of a specific type. Every filter can only be used with its corresponding event, and different types of event filters can not be mixed.
|
4649
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4655
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#PrototypeFilter Online documentation}
|
4650
4656
|
*/
|
4651
4657
|
export type PrototypeFilter = (
|
4652
4658
|
| ItemPrototypeFilter
|
@@ -4661,7 +4667,7 @@ declare module "factorio:runtime" {
|
|
4661
4667
|
)[]
|
4662
4668
|
/**
|
4663
4669
|
* Write form of {@link PrototypeFilter}, where table-or-array concepts are allowed to take an array form.
|
4664
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4670
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#PrototypeFilter Online documentation}
|
4665
4671
|
*/
|
4666
4672
|
export type PrototypeFilterWrite = readonly (
|
4667
4673
|
| ItemPrototypeFilterWrite
|
@@ -5004,7 +5010,7 @@ declare module "factorio:runtime" {
|
|
5004
5010
|
* - `"fuel-acceleration-multiplier"`: {@link FuelAccelerationMultiplierItemPrototypeFilter}
|
5005
5011
|
* - `"fuel-top-speed-multiplier"`: {@link FuelTopSpeedMultiplierItemPrototypeFilter}
|
5006
5012
|
* - `"fuel-emissions-multiplier"`: {@link FuelEmissionsMultiplierItemPrototypeFilter}
|
5007
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
5013
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#ItemPrototypeFilter Online documentation}
|
5008
5014
|
*/
|
5009
5015
|
export type ItemPrototypeFilter =
|
5010
5016
|
| PlaceResultItemPrototypeFilter
|
@@ -5026,7 +5032,7 @@ declare module "factorio:runtime" {
|
|
5026
5032
|
| OtherItemPrototypeFilter
|
5027
5033
|
/**
|
5028
5034
|
* Write form of {@link ItemPrototypeFilter}, where table-or-array concepts are allowed to take an array form.
|
5029
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
5035
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#ItemPrototypeFilter Online documentation}
|
5030
5036
|
*/
|
5031
5037
|
export type ItemPrototypeFilterWrite =
|
5032
5038
|
| PlaceResultItemPrototypeFilterWrite
|
@@ -5102,7 +5108,7 @@ declare module "factorio:runtime" {
|
|
5102
5108
|
* - `"type"`: {@link TypeModSettingPrototypeFilter}
|
5103
5109
|
* - `"mod"`: {@link ModModSettingPrototypeFilter}
|
5104
5110
|
* - `"setting-type"`: {@link SettingTypeModSettingPrototypeFilter}
|
5105
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
5111
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#ModSettingPrototypeFilter Online documentation}
|
5106
5112
|
*/
|
5107
5113
|
export type ModSettingPrototypeFilter =
|
5108
5114
|
| TypeModSettingPrototypeFilter
|
@@ -5230,7 +5236,7 @@ declare module "factorio:runtime" {
|
|
5230
5236
|
* - `"level"`: {@link LevelTechnologyPrototypeFilter}
|
5231
5237
|
* - `"max-level"`: {@link MaxLevelTechnologyPrototypeFilter}
|
5232
5238
|
* - `"time"`: {@link TimeTechnologyPrototypeFilter}
|
5233
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
5239
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#TechnologyPrototypeFilter Online documentation}
|
5234
5240
|
*/
|
5235
5241
|
export type TechnologyPrototypeFilter =
|
5236
5242
|
| ResearchUnitIngredientTechnologyPrototypeFilter
|
@@ -5241,7 +5247,7 @@ declare module "factorio:runtime" {
|
|
5241
5247
|
| OtherTechnologyPrototypeFilter
|
5242
5248
|
/**
|
5243
5249
|
* Write form of {@link TechnologyPrototypeFilter}, where table-or-array concepts are allowed to take an array form.
|
5244
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
5250
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#TechnologyPrototypeFilter Online documentation}
|
5245
5251
|
*/
|
5246
5252
|
export type TechnologyPrototypeFilterWrite =
|
5247
5253
|
| ResearchUnitIngredientTechnologyPrototypeFilter
|
@@ -5291,7 +5297,7 @@ declare module "factorio:runtime" {
|
|
5291
5297
|
*
|
5292
5298
|
* Other attributes may be specified depending on `filter`:
|
5293
5299
|
* - `"collision-mask"`: {@link CollisionMaskDecorativePrototypeFilter}
|
5294
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
5300
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#DecorativePrototypeFilter Online documentation}
|
5295
5301
|
*/
|
5296
5302
|
export type DecorativePrototypeFilter = CollisionMaskDecorativePrototypeFilter | OtherDecorativePrototypeFilter
|
5297
5303
|
/**
|
@@ -5334,7 +5340,7 @@ declare module "factorio:runtime" {
|
|
5334
5340
|
*
|
5335
5341
|
* Other attributes may be specified depending on `filter`:
|
5336
5342
|
* - `"type"`: {@link TypeAchievementPrototypeFilter}
|
5337
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
5343
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#AchievementPrototypeFilter Online documentation}
|
5338
5344
|
*/
|
5339
5345
|
export type AchievementPrototypeFilter = TypeAchievementPrototypeFilter | OtherAchievementPrototypeFilter
|
5340
5346
|
/**
|
@@ -5519,7 +5525,7 @@ declare module "factorio:runtime" {
|
|
5519
5525
|
* - `"fuel-value"`: {@link FuelValueFluidPrototypeFilter}
|
5520
5526
|
* - `"emissions-multiplier"`: {@link EmissionsMultiplierFluidPrototypeFilter}
|
5521
5527
|
* - `"gas-temperature"`: {@link GasTemperatureFluidPrototypeFilter}
|
5522
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
5528
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#FluidPrototypeFilter Online documentation}
|
5523
5529
|
*/
|
5524
5530
|
export type FluidPrototypeFilter =
|
5525
5531
|
| NameFluidPrototypeFilter
|
@@ -5533,7 +5539,7 @@ declare module "factorio:runtime" {
|
|
5533
5539
|
| OtherFluidPrototypeFilter
|
5534
5540
|
/**
|
5535
5541
|
* Write form of {@link FluidPrototypeFilter}, where table-or-array concepts are allowed to take an array form.
|
5536
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
5542
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#FluidPrototypeFilter Online documentation}
|
5537
5543
|
*/
|
5538
5544
|
export type FluidPrototypeFilterWrite =
|
5539
5545
|
| NameFluidPrototypeFilter
|
@@ -5585,7 +5591,7 @@ declare module "factorio:runtime" {
|
|
5585
5591
|
*
|
5586
5592
|
* Other attributes may be specified depending on `filter`:
|
5587
5593
|
* - `"type"`: {@link TypeEquipmentPrototypeFilter}
|
5588
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
5594
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#EquipmentPrototypeFilter Online documentation}
|
5589
5595
|
*/
|
5590
5596
|
export type EquipmentPrototypeFilter = TypeEquipmentPrototypeFilter | OtherEquipmentPrototypeFilter
|
5591
5597
|
/**
|
@@ -5718,7 +5724,7 @@ declare module "factorio:runtime" {
|
|
5718
5724
|
* - `"vehicle-friction-modifier"`: {@link VehicleFrictionModifierTilePrototypeFilter}
|
5719
5725
|
* - `"decorative-removal-probability"`: {@link DecorativeRemovalProbabilityTilePrototypeFilter}
|
5720
5726
|
* - `"emissions"`: {@link EmissionsTilePrototypeFilter}
|
5721
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
5727
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#TilePrototypeFilter Online documentation}
|
5722
5728
|
*/
|
5723
5729
|
export type TilePrototypeFilter =
|
5724
5730
|
| CollisionMaskTilePrototypeFilter
|
@@ -5729,7 +5735,7 @@ declare module "factorio:runtime" {
|
|
5729
5735
|
| OtherTilePrototypeFilter
|
5730
5736
|
/**
|
5731
5737
|
* Write form of {@link TilePrototypeFilter}, where table-or-array concepts are allowed to take an array form.
|
5732
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
5738
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#TilePrototypeFilter Online documentation}
|
5733
5739
|
*/
|
5734
5740
|
export type TilePrototypeFilterWrite =
|
5735
5741
|
| CollisionMaskTilePrototypeFilter
|
@@ -5993,7 +5999,7 @@ declare module "factorio:runtime" {
|
|
5993
5999
|
* - `"emissions-multiplier"`: {@link EmissionsMultiplierRecipePrototypeFilter}
|
5994
6000
|
* - `"request-paste-multiplier"`: {@link RequestPasteMultiplierRecipePrototypeFilter}
|
5995
6001
|
* - `"overload-multiplier"`: {@link OverloadMultiplierRecipePrototypeFilter}
|
5996
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
6002
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#RecipePrototypeFilter Online documentation}
|
5997
6003
|
*/
|
5998
6004
|
export type RecipePrototypeFilter =
|
5999
6005
|
| HasIngredientItemRecipePrototypeFilter
|
@@ -6009,7 +6015,7 @@ declare module "factorio:runtime" {
|
|
6009
6015
|
| OtherRecipePrototypeFilter
|
6010
6016
|
/**
|
6011
6017
|
* Write form of {@link RecipePrototypeFilter}, where table-or-array concepts are allowed to take an array form.
|
6012
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
6018
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#RecipePrototypeFilter Online documentation}
|
6013
6019
|
*/
|
6014
6020
|
export type RecipePrototypeFilterWrite =
|
6015
6021
|
| HasIngredientItemRecipePrototypeFilterWrite
|
@@ -6240,7 +6246,7 @@ declare module "factorio:runtime" {
|
|
6240
6246
|
* - `"selection-priority"`: {@link SelectionPriorityEntityPrototypeFilter}
|
6241
6247
|
* - `"emissions"`: {@link EmissionsEntityPrototypeFilter}
|
6242
6248
|
* - `"crafting-category"`: {@link CraftingCategoryEntityPrototypeFilter}
|
6243
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
6249
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#EntityPrototypeFilter Online documentation}
|
6244
6250
|
*/
|
6245
6251
|
export type EntityPrototypeFilter =
|
6246
6252
|
| NameEntityPrototypeFilter
|
@@ -6254,7 +6260,7 @@ declare module "factorio:runtime" {
|
|
6254
6260
|
| OtherEntityPrototypeFilter
|
6255
6261
|
/**
|
6256
6262
|
* Write form of {@link EntityPrototypeFilter}, where table-or-array concepts are allowed to take an array form.
|
6257
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
6263
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#EntityPrototypeFilter Online documentation}
|
6258
6264
|
*/
|
6259
6265
|
export type EntityPrototypeFilterWrite =
|
6260
6266
|
| NameEntityPrototypeFilter
|
@@ -6293,7 +6299,7 @@ declare module "factorio:runtime" {
|
|
6293
6299
|
* - {@link LuaPlayerRepairedEntityEventFilter}
|
6294
6300
|
* @see EventFilterWrite
|
6295
6301
|
* @remarks Filters are always used as an array of filters of a specific type. Every filter can only be used with its corresponding event, and different types of event filters can not be mixed.
|
6296
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
6302
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#EventFilter Online documentation}
|
6297
6303
|
*/
|
6298
6304
|
export type EventFilter = (
|
6299
6305
|
| LuaEntityClonedEventFilter
|
@@ -6320,7 +6326,7 @@ declare module "factorio:runtime" {
|
|
6320
6326
|
)[]
|
6321
6327
|
/**
|
6322
6328
|
* Write form of {@link EventFilter}, where table-or-array concepts are allowed to take an array form.
|
6323
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
6329
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#EventFilter Online documentation}
|
6324
6330
|
*/
|
6325
6331
|
export type EventFilterWrite = readonly (
|
6326
6332
|
| LuaEntityClonedEventFilter
|
@@ -6385,7 +6391,7 @@ declare module "factorio:runtime" {
|
|
6385
6391
|
/**
|
6386
6392
|
* The prototype type
|
6387
6393
|
*/
|
6388
|
-
readonly type:
|
6394
|
+
readonly type: EntityType
|
6389
6395
|
}
|
6390
6396
|
/**
|
6391
6397
|
* `"name"` variant of {@link LuaScriptRaisedReviveEventFilter}.
|
@@ -6405,7 +6411,7 @@ declare module "factorio:runtime" {
|
|
6405
6411
|
/**
|
6406
6412
|
* The ghost prototype type
|
6407
6413
|
*/
|
6408
|
-
readonly type:
|
6414
|
+
readonly type: EntityType
|
6409
6415
|
}
|
6410
6416
|
/**
|
6411
6417
|
* `"ghost_name"` variant of {@link LuaScriptRaisedReviveEventFilter}.
|
@@ -6444,7 +6450,7 @@ declare module "factorio:runtime" {
|
|
6444
6450
|
* - `"name"`: {@link NameScriptRaisedReviveEventFilter}
|
6445
6451
|
* - `"ghost_type"`: {@link GhostTypeScriptRaisedReviveEventFilter}
|
6446
6452
|
* - `"ghost_name"`: {@link GhostNameScriptRaisedReviveEventFilter}
|
6447
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
6453
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#LuaScriptRaisedReviveEventFilter Online documentation}
|
6448
6454
|
*/
|
6449
6455
|
export type LuaScriptRaisedReviveEventFilter =
|
6450
6456
|
| TypeScriptRaisedReviveEventFilter
|
@@ -6492,7 +6498,7 @@ declare module "factorio:runtime" {
|
|
6492
6498
|
/**
|
6493
6499
|
* The prototype type
|
6494
6500
|
*/
|
6495
|
-
readonly type:
|
6501
|
+
readonly type: EntityType
|
6496
6502
|
}
|
6497
6503
|
/**
|
6498
6504
|
* `"name"` variant of {@link LuaEntityDiedEventFilter}.
|
@@ -6512,7 +6518,7 @@ declare module "factorio:runtime" {
|
|
6512
6518
|
/**
|
6513
6519
|
* The ghost prototype type
|
6514
6520
|
*/
|
6515
|
-
readonly type:
|
6521
|
+
readonly type: EntityType
|
6516
6522
|
}
|
6517
6523
|
/**
|
6518
6524
|
* `"ghost_name"` variant of {@link LuaEntityDiedEventFilter}.
|
@@ -6551,7 +6557,7 @@ declare module "factorio:runtime" {
|
|
6551
6557
|
* - `"name"`: {@link NameEntityDiedEventFilter}
|
6552
6558
|
* - `"ghost_type"`: {@link GhostTypeEntityDiedEventFilter}
|
6553
6559
|
* - `"ghost_name"`: {@link GhostNameEntityDiedEventFilter}
|
6554
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
6560
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#LuaEntityDiedEventFilter Online documentation}
|
6555
6561
|
*/
|
6556
6562
|
export type LuaEntityDiedEventFilter =
|
6557
6563
|
| TypeEntityDiedEventFilter
|
@@ -6599,7 +6605,7 @@ declare module "factorio:runtime" {
|
|
6599
6605
|
/**
|
6600
6606
|
* The prototype type
|
6601
6607
|
*/
|
6602
|
-
readonly type:
|
6608
|
+
readonly type: EntityType
|
6603
6609
|
}
|
6604
6610
|
/**
|
6605
6611
|
* `"name"` variant of {@link LuaEntityMarkedForDeconstructionEventFilter}.
|
@@ -6620,7 +6626,7 @@ declare module "factorio:runtime" {
|
|
6620
6626
|
/**
|
6621
6627
|
* The ghost prototype type
|
6622
6628
|
*/
|
6623
|
-
readonly type:
|
6629
|
+
readonly type: EntityType
|
6624
6630
|
}
|
6625
6631
|
/**
|
6626
6632
|
* `"ghost_name"` variant of {@link LuaEntityMarkedForDeconstructionEventFilter}.
|
@@ -6660,7 +6666,7 @@ declare module "factorio:runtime" {
|
|
6660
6666
|
* - `"name"`: {@link NameEntityMarkedForDeconstructionEventFilter}
|
6661
6667
|
* - `"ghost_type"`: {@link GhostTypeEntityMarkedForDeconstructionEventFilter}
|
6662
6668
|
* - `"ghost_name"`: {@link GhostNameEntityMarkedForDeconstructionEventFilter}
|
6663
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
6669
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#LuaEntityMarkedForDeconstructionEventFilter Online documentation}
|
6664
6670
|
*/
|
6665
6671
|
export type LuaEntityMarkedForDeconstructionEventFilter =
|
6666
6672
|
| TypeEntityMarkedForDeconstructionEventFilter
|
@@ -6708,7 +6714,7 @@ declare module "factorio:runtime" {
|
|
6708
6714
|
/**
|
6709
6715
|
* The prototype type
|
6710
6716
|
*/
|
6711
|
-
readonly type:
|
6717
|
+
readonly type: EntityType
|
6712
6718
|
}
|
6713
6719
|
/**
|
6714
6720
|
* `"name"` variant of {@link LuaPreGhostDeconstructedEventFilter}.
|
@@ -6728,7 +6734,7 @@ declare module "factorio:runtime" {
|
|
6728
6734
|
/**
|
6729
6735
|
* The ghost prototype type
|
6730
6736
|
*/
|
6731
|
-
readonly type:
|
6737
|
+
readonly type: EntityType
|
6732
6738
|
}
|
6733
6739
|
/**
|
6734
6740
|
* `"ghost_name"` variant of {@link LuaPreGhostDeconstructedEventFilter}.
|
@@ -6767,7 +6773,7 @@ declare module "factorio:runtime" {
|
|
6767
6773
|
* - `"name"`: {@link NamePreGhostDeconstructedEventFilter}
|
6768
6774
|
* - `"ghost_type"`: {@link GhostTypePreGhostDeconstructedEventFilter}
|
6769
6775
|
* - `"ghost_name"`: {@link GhostNamePreGhostDeconstructedEventFilter}
|
6770
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
6776
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#LuaPreGhostDeconstructedEventFilter Online documentation}
|
6771
6777
|
*/
|
6772
6778
|
export type LuaPreGhostDeconstructedEventFilter =
|
6773
6779
|
| TypePreGhostDeconstructedEventFilter
|
@@ -6815,7 +6821,7 @@ declare module "factorio:runtime" {
|
|
6815
6821
|
/**
|
6816
6822
|
* The prototype type
|
6817
6823
|
*/
|
6818
|
-
readonly type:
|
6824
|
+
readonly type: EntityType
|
6819
6825
|
}
|
6820
6826
|
/**
|
6821
6827
|
* `"name"` variant of {@link LuaScriptRaisedDestroyEventFilter}.
|
@@ -6835,7 +6841,7 @@ declare module "factorio:runtime" {
|
|
6835
6841
|
/**
|
6836
6842
|
* The ghost prototype type
|
6837
6843
|
*/
|
6838
|
-
readonly type:
|
6844
|
+
readonly type: EntityType
|
6839
6845
|
}
|
6840
6846
|
/**
|
6841
6847
|
* `"ghost_name"` variant of {@link LuaScriptRaisedDestroyEventFilter}.
|
@@ -6874,7 +6880,7 @@ declare module "factorio:runtime" {
|
|
6874
6880
|
* - `"name"`: {@link NameScriptRaisedDestroyEventFilter}
|
6875
6881
|
* - `"ghost_type"`: {@link GhostTypeScriptRaisedDestroyEventFilter}
|
6876
6882
|
* - `"ghost_name"`: {@link GhostNameScriptRaisedDestroyEventFilter}
|
6877
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
6883
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#LuaScriptRaisedDestroyEventFilter Online documentation}
|
6878
6884
|
*/
|
6879
6885
|
export type LuaScriptRaisedDestroyEventFilter =
|
6880
6886
|
| TypeScriptRaisedDestroyEventFilter
|
@@ -6922,7 +6928,7 @@ declare module "factorio:runtime" {
|
|
6922
6928
|
/**
|
6923
6929
|
* The prototype type
|
6924
6930
|
*/
|
6925
|
-
readonly type:
|
6931
|
+
readonly type: EntityType
|
6926
6932
|
}
|
6927
6933
|
/**
|
6928
6934
|
* `"name"` variant of {@link LuaUpgradeCancelledEventFilter}.
|
@@ -6942,7 +6948,7 @@ declare module "factorio:runtime" {
|
|
6942
6948
|
/**
|
6943
6949
|
* The ghost prototype type
|
6944
6950
|
*/
|
6945
|
-
readonly type:
|
6951
|
+
readonly type: EntityType
|
6946
6952
|
}
|
6947
6953
|
/**
|
6948
6954
|
* `"ghost_name"` variant of {@link LuaUpgradeCancelledEventFilter}.
|
@@ -6981,7 +6987,7 @@ declare module "factorio:runtime" {
|
|
6981
6987
|
* - `"name"`: {@link NameUpgradeCancelledEventFilter}
|
6982
6988
|
* - `"ghost_type"`: {@link GhostTypeUpgradeCancelledEventFilter}
|
6983
6989
|
* - `"ghost_name"`: {@link GhostNameUpgradeCancelledEventFilter}
|
6984
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
6990
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#LuaUpgradeCancelledEventFilter Online documentation}
|
6985
6991
|
*/
|
6986
6992
|
export type LuaUpgradeCancelledEventFilter =
|
6987
6993
|
| TypeUpgradeCancelledEventFilter
|
@@ -7029,7 +7035,7 @@ declare module "factorio:runtime" {
|
|
7029
7035
|
/**
|
7030
7036
|
* The prototype type
|
7031
7037
|
*/
|
7032
|
-
readonly type:
|
7038
|
+
readonly type: EntityType
|
7033
7039
|
}
|
7034
7040
|
/**
|
7035
7041
|
* `"name"` variant of {@link LuaPlayerRepairedEntityEventFilter}.
|
@@ -7049,7 +7055,7 @@ declare module "factorio:runtime" {
|
|
7049
7055
|
/**
|
7050
7056
|
* The ghost prototype type
|
7051
7057
|
*/
|
7052
|
-
readonly type:
|
7058
|
+
readonly type: EntityType
|
7053
7059
|
}
|
7054
7060
|
/**
|
7055
7061
|
* `"ghost_name"` variant of {@link LuaPlayerRepairedEntityEventFilter}.
|
@@ -7088,7 +7094,7 @@ declare module "factorio:runtime" {
|
|
7088
7094
|
* - `"name"`: {@link NamePlayerRepairedEntityEventFilter}
|
7089
7095
|
* - `"ghost_type"`: {@link GhostTypePlayerRepairedEntityEventFilter}
|
7090
7096
|
* - `"ghost_name"`: {@link GhostNamePlayerRepairedEntityEventFilter}
|
7091
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
7097
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#LuaPlayerRepairedEntityEventFilter Online documentation}
|
7092
7098
|
*/
|
7093
7099
|
export type LuaPlayerRepairedEntityEventFilter =
|
7094
7100
|
| TypePlayerRepairedEntityEventFilter
|
@@ -7136,7 +7142,7 @@ declare module "factorio:runtime" {
|
|
7136
7142
|
/**
|
7137
7143
|
* The prototype type
|
7138
7144
|
*/
|
7139
|
-
readonly type:
|
7145
|
+
readonly type: EntityType
|
7140
7146
|
}
|
7141
7147
|
/**
|
7142
7148
|
* `"name"` variant of {@link LuaScriptRaisedTeleportedEventFilter}.
|
@@ -7156,7 +7162,7 @@ declare module "factorio:runtime" {
|
|
7156
7162
|
/**
|
7157
7163
|
* The ghost prototype type
|
7158
7164
|
*/
|
7159
|
-
readonly type:
|
7165
|
+
readonly type: EntityType
|
7160
7166
|
}
|
7161
7167
|
/**
|
7162
7168
|
* `"ghost_name"` variant of {@link LuaScriptRaisedTeleportedEventFilter}.
|
@@ -7195,7 +7201,7 @@ declare module "factorio:runtime" {
|
|
7195
7201
|
* - `"name"`: {@link NameScriptRaisedTeleportedEventFilter}
|
7196
7202
|
* - `"ghost_type"`: {@link GhostTypeScriptRaisedTeleportedEventFilter}
|
7197
7203
|
* - `"ghost_name"`: {@link GhostNameScriptRaisedTeleportedEventFilter}
|
7198
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
7204
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#LuaScriptRaisedTeleportedEventFilter Online documentation}
|
7199
7205
|
*/
|
7200
7206
|
export type LuaScriptRaisedTeleportedEventFilter =
|
7201
7207
|
| TypeScriptRaisedTeleportedEventFilter
|
@@ -7243,7 +7249,7 @@ declare module "factorio:runtime" {
|
|
7243
7249
|
/**
|
7244
7250
|
* The prototype type
|
7245
7251
|
*/
|
7246
|
-
readonly type:
|
7252
|
+
readonly type: EntityType
|
7247
7253
|
}
|
7248
7254
|
/**
|
7249
7255
|
* `"name"` variant of {@link LuaEntityMarkedForUpgradeEventFilter}.
|
@@ -7263,7 +7269,7 @@ declare module "factorio:runtime" {
|
|
7263
7269
|
/**
|
7264
7270
|
* The ghost prototype type
|
7265
7271
|
*/
|
7266
|
-
readonly type:
|
7272
|
+
readonly type: EntityType
|
7267
7273
|
}
|
7268
7274
|
/**
|
7269
7275
|
* `"ghost_name"` variant of {@link LuaEntityMarkedForUpgradeEventFilter}.
|
@@ -7302,7 +7308,7 @@ declare module "factorio:runtime" {
|
|
7302
7308
|
* - `"name"`: {@link NameEntityMarkedForUpgradeEventFilter}
|
7303
7309
|
* - `"ghost_type"`: {@link GhostTypeEntityMarkedForUpgradeEventFilter}
|
7304
7310
|
* - `"ghost_name"`: {@link GhostNameEntityMarkedForUpgradeEventFilter}
|
7305
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
7311
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#LuaEntityMarkedForUpgradeEventFilter Online documentation}
|
7306
7312
|
*/
|
7307
7313
|
export type LuaEntityMarkedForUpgradeEventFilter =
|
7308
7314
|
| TypeEntityMarkedForUpgradeEventFilter
|
@@ -7335,7 +7341,7 @@ declare module "factorio:runtime" {
|
|
7335
7341
|
/**
|
7336
7342
|
* The prototype type
|
7337
7343
|
*/
|
7338
|
-
readonly type:
|
7344
|
+
readonly type: EntityType
|
7339
7345
|
}
|
7340
7346
|
/**
|
7341
7347
|
* Depending on the value of `filter`, the table may take additional fields. `filter` may be one of the following:
|
@@ -7344,7 +7350,7 @@ declare module "factorio:runtime" {
|
|
7344
7350
|
*
|
7345
7351
|
* Other attributes may be specified depending on `filter`:
|
7346
7352
|
* - `"type"`: {@link TypePostEntityDiedEventFilter}
|
7347
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
7353
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#LuaPostEntityDiedEventFilter Online documentation}
|
7348
7354
|
*/
|
7349
7355
|
export type LuaPostEntityDiedEventFilter = TypePostEntityDiedEventFilter
|
7350
7356
|
/**
|
@@ -7387,7 +7393,7 @@ declare module "factorio:runtime" {
|
|
7387
7393
|
/**
|
7388
7394
|
* The prototype type
|
7389
7395
|
*/
|
7390
|
-
readonly type:
|
7396
|
+
readonly type: EntityType
|
7391
7397
|
}
|
7392
7398
|
/**
|
7393
7399
|
* `"name"` variant of {@link LuaPreRobotMinedEntityEventFilter}.
|
@@ -7407,7 +7413,7 @@ declare module "factorio:runtime" {
|
|
7407
7413
|
/**
|
7408
7414
|
* The ghost prototype type
|
7409
7415
|
*/
|
7410
|
-
readonly type:
|
7416
|
+
readonly type: EntityType
|
7411
7417
|
}
|
7412
7418
|
/**
|
7413
7419
|
* `"ghost_name"` variant of {@link LuaPreRobotMinedEntityEventFilter}.
|
@@ -7446,7 +7452,7 @@ declare module "factorio:runtime" {
|
|
7446
7452
|
* - `"name"`: {@link NamePreRobotMinedEntityEventFilter}
|
7447
7453
|
* - `"ghost_type"`: {@link GhostTypePreRobotMinedEntityEventFilter}
|
7448
7454
|
* - `"ghost_name"`: {@link GhostNamePreRobotMinedEntityEventFilter}
|
7449
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
7455
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#LuaPreRobotMinedEntityEventFilter Online documentation}
|
7450
7456
|
*/
|
7451
7457
|
export type LuaPreRobotMinedEntityEventFilter =
|
7452
7458
|
| TypePreRobotMinedEntityEventFilter
|
@@ -7494,7 +7500,7 @@ declare module "factorio:runtime" {
|
|
7494
7500
|
/**
|
7495
7501
|
* The prototype type
|
7496
7502
|
*/
|
7497
|
-
readonly type:
|
7503
|
+
readonly type: EntityType
|
7498
7504
|
}
|
7499
7505
|
/**
|
7500
7506
|
* `"name"` variant of {@link LuaEntityClonedEventFilter}.
|
@@ -7514,7 +7520,7 @@ declare module "factorio:runtime" {
|
|
7514
7520
|
/**
|
7515
7521
|
* The ghost prototype type
|
7516
7522
|
*/
|
7517
|
-
readonly type:
|
7523
|
+
readonly type: EntityType
|
7518
7524
|
}
|
7519
7525
|
/**
|
7520
7526
|
* `"ghost_name"` variant of {@link LuaEntityClonedEventFilter}.
|
@@ -7553,7 +7559,7 @@ declare module "factorio:runtime" {
|
|
7553
7559
|
* - `"name"`: {@link NameEntityClonedEventFilter}
|
7554
7560
|
* - `"ghost_type"`: {@link GhostTypeEntityClonedEventFilter}
|
7555
7561
|
* - `"ghost_name"`: {@link GhostNameEntityClonedEventFilter}
|
7556
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
7562
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#LuaEntityClonedEventFilter Online documentation}
|
7557
7563
|
*/
|
7558
7564
|
export type LuaEntityClonedEventFilter =
|
7559
7565
|
| TypeEntityClonedEventFilter
|
@@ -7601,7 +7607,7 @@ declare module "factorio:runtime" {
|
|
7601
7607
|
/**
|
7602
7608
|
* The prototype type
|
7603
7609
|
*/
|
7604
|
-
readonly type:
|
7610
|
+
readonly type: EntityType
|
7605
7611
|
}
|
7606
7612
|
/**
|
7607
7613
|
* `"name"` variant of {@link LuaScriptRaisedBuiltEventFilter}.
|
@@ -7621,7 +7627,7 @@ declare module "factorio:runtime" {
|
|
7621
7627
|
/**
|
7622
7628
|
* The ghost prototype type
|
7623
7629
|
*/
|
7624
|
-
readonly type:
|
7630
|
+
readonly type: EntityType
|
7625
7631
|
}
|
7626
7632
|
/**
|
7627
7633
|
* `"ghost_name"` variant of {@link LuaScriptRaisedBuiltEventFilter}.
|
@@ -7660,7 +7666,7 @@ declare module "factorio:runtime" {
|
|
7660
7666
|
* - `"name"`: {@link NameScriptRaisedBuiltEventFilter}
|
7661
7667
|
* - `"ghost_type"`: {@link GhostTypeScriptRaisedBuiltEventFilter}
|
7662
7668
|
* - `"ghost_name"`: {@link GhostNameScriptRaisedBuiltEventFilter}
|
7663
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
7669
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#LuaScriptRaisedBuiltEventFilter Online documentation}
|
7664
7670
|
*/
|
7665
7671
|
export type LuaScriptRaisedBuiltEventFilter =
|
7666
7672
|
| TypeScriptRaisedBuiltEventFilter
|
@@ -7708,7 +7714,7 @@ declare module "factorio:runtime" {
|
|
7708
7714
|
/**
|
7709
7715
|
* The prototype type
|
7710
7716
|
*/
|
7711
|
-
readonly type:
|
7717
|
+
readonly type: EntityType
|
7712
7718
|
}
|
7713
7719
|
/**
|
7714
7720
|
* `"name"` variant of {@link LuaRobotMinedEntityEventFilter}.
|
@@ -7728,7 +7734,7 @@ declare module "factorio:runtime" {
|
|
7728
7734
|
/**
|
7729
7735
|
* The ghost prototype type
|
7730
7736
|
*/
|
7731
|
-
readonly type:
|
7737
|
+
readonly type: EntityType
|
7732
7738
|
}
|
7733
7739
|
/**
|
7734
7740
|
* `"ghost_name"` variant of {@link LuaRobotMinedEntityEventFilter}.
|
@@ -7767,7 +7773,7 @@ declare module "factorio:runtime" {
|
|
7767
7773
|
* - `"name"`: {@link NameRobotMinedEntityEventFilter}
|
7768
7774
|
* - `"ghost_type"`: {@link GhostTypeRobotMinedEntityEventFilter}
|
7769
7775
|
* - `"ghost_name"`: {@link GhostNameRobotMinedEntityEventFilter}
|
7770
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
7776
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#LuaRobotMinedEntityEventFilter Online documentation}
|
7771
7777
|
*/
|
7772
7778
|
export type LuaRobotMinedEntityEventFilter =
|
7773
7779
|
| TypeRobotMinedEntityEventFilter
|
@@ -7815,7 +7821,7 @@ declare module "factorio:runtime" {
|
|
7815
7821
|
/**
|
7816
7822
|
* The prototype type
|
7817
7823
|
*/
|
7818
|
-
readonly type:
|
7824
|
+
readonly type: EntityType
|
7819
7825
|
}
|
7820
7826
|
/**
|
7821
7827
|
* `"name"` variant of {@link LuaPrePlayerMinedEntityEventFilter}.
|
@@ -7835,7 +7841,7 @@ declare module "factorio:runtime" {
|
|
7835
7841
|
/**
|
7836
7842
|
* The ghost prototype type
|
7837
7843
|
*/
|
7838
|
-
readonly type:
|
7844
|
+
readonly type: EntityType
|
7839
7845
|
}
|
7840
7846
|
/**
|
7841
7847
|
* `"ghost_name"` variant of {@link LuaPrePlayerMinedEntityEventFilter}.
|
@@ -7874,7 +7880,7 @@ declare module "factorio:runtime" {
|
|
7874
7880
|
* - `"name"`: {@link NamePrePlayerMinedEntityEventFilter}
|
7875
7881
|
* - `"ghost_type"`: {@link GhostTypePrePlayerMinedEntityEventFilter}
|
7876
7882
|
* - `"ghost_name"`: {@link GhostNamePrePlayerMinedEntityEventFilter}
|
7877
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
7883
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#LuaPrePlayerMinedEntityEventFilter Online documentation}
|
7878
7884
|
*/
|
7879
7885
|
export type LuaPrePlayerMinedEntityEventFilter =
|
7880
7886
|
| TypePrePlayerMinedEntityEventFilter
|
@@ -7923,7 +7929,7 @@ declare module "factorio:runtime" {
|
|
7923
7929
|
/**
|
7924
7930
|
* The prototype type
|
7925
7931
|
*/
|
7926
|
-
readonly type:
|
7932
|
+
readonly type: EntityType
|
7927
7933
|
}
|
7928
7934
|
/**
|
7929
7935
|
* `"name"` variant of {@link LuaRobotBuiltEntityEventFilter}.
|
@@ -7943,7 +7949,7 @@ declare module "factorio:runtime" {
|
|
7943
7949
|
/**
|
7944
7950
|
* The ghost prototype type
|
7945
7951
|
*/
|
7946
|
-
readonly type:
|
7952
|
+
readonly type: EntityType
|
7947
7953
|
}
|
7948
7954
|
/**
|
7949
7955
|
* `"ghost_name"` variant of {@link LuaRobotBuiltEntityEventFilter}.
|
@@ -7993,7 +7999,7 @@ declare module "factorio:runtime" {
|
|
7993
7999
|
* - `"ghost_type"`: {@link GhostTypeRobotBuiltEntityEventFilter}
|
7994
8000
|
* - `"ghost_name"`: {@link GhostNameRobotBuiltEntityEventFilter}
|
7995
8001
|
* - `"force"`: {@link ForceRobotBuiltEntityEventFilter}
|
7996
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
8002
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#LuaRobotBuiltEntityEventFilter Online documentation}
|
7997
8003
|
*/
|
7998
8004
|
export type LuaRobotBuiltEntityEventFilter =
|
7999
8005
|
| TypeRobotBuiltEntityEventFilter
|
@@ -8042,7 +8048,7 @@ declare module "factorio:runtime" {
|
|
8042
8048
|
/**
|
8043
8049
|
* The prototype type
|
8044
8050
|
*/
|
8045
|
-
readonly type:
|
8051
|
+
readonly type: EntityType
|
8046
8052
|
}
|
8047
8053
|
/**
|
8048
8054
|
* `"name"` variant of {@link LuaPreGhostUpgradedEventFilter}.
|
@@ -8062,7 +8068,7 @@ declare module "factorio:runtime" {
|
|
8062
8068
|
/**
|
8063
8069
|
* The ghost prototype type
|
8064
8070
|
*/
|
8065
|
-
readonly type:
|
8071
|
+
readonly type: EntityType
|
8066
8072
|
}
|
8067
8073
|
/**
|
8068
8074
|
* `"ghost_name"` variant of {@link LuaPreGhostUpgradedEventFilter}.
|
@@ -8101,7 +8107,7 @@ declare module "factorio:runtime" {
|
|
8101
8107
|
* - `"name"`: {@link NamePreGhostUpgradedEventFilter}
|
8102
8108
|
* - `"ghost_type"`: {@link GhostTypePreGhostUpgradedEventFilter}
|
8103
8109
|
* - `"ghost_name"`: {@link GhostNamePreGhostUpgradedEventFilter}
|
8104
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
8110
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#LuaPreGhostUpgradedEventFilter Online documentation}
|
8105
8111
|
*/
|
8106
8112
|
export type LuaPreGhostUpgradedEventFilter =
|
8107
8113
|
| TypePreGhostUpgradedEventFilter
|
@@ -8149,7 +8155,7 @@ declare module "factorio:runtime" {
|
|
8149
8155
|
/**
|
8150
8156
|
* The prototype type
|
8151
8157
|
*/
|
8152
|
-
readonly type:
|
8158
|
+
readonly type: EntityType
|
8153
8159
|
}
|
8154
8160
|
/**
|
8155
8161
|
* `"name"` variant of {@link LuaEntityDeconstructionCancelledEventFilter}.
|
@@ -8170,7 +8176,7 @@ declare module "factorio:runtime" {
|
|
8170
8176
|
/**
|
8171
8177
|
* The ghost prototype type
|
8172
8178
|
*/
|
8173
|
-
readonly type:
|
8179
|
+
readonly type: EntityType
|
8174
8180
|
}
|
8175
8181
|
/**
|
8176
8182
|
* `"ghost_name"` variant of {@link LuaEntityDeconstructionCancelledEventFilter}.
|
@@ -8210,7 +8216,7 @@ declare module "factorio:runtime" {
|
|
8210
8216
|
* - `"name"`: {@link NameEntityDeconstructionCancelledEventFilter}
|
8211
8217
|
* - `"ghost_type"`: {@link GhostTypeEntityDeconstructionCancelledEventFilter}
|
8212
8218
|
* - `"ghost_name"`: {@link GhostNameEntityDeconstructionCancelledEventFilter}
|
8213
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
8219
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#LuaEntityDeconstructionCancelledEventFilter Online documentation}
|
8214
8220
|
*/
|
8215
8221
|
export type LuaEntityDeconstructionCancelledEventFilter =
|
8216
8222
|
| TypeEntityDeconstructionCancelledEventFilter
|
@@ -8259,7 +8265,7 @@ declare module "factorio:runtime" {
|
|
8259
8265
|
/**
|
8260
8266
|
* The prototype type
|
8261
8267
|
*/
|
8262
|
-
readonly type:
|
8268
|
+
readonly type: EntityType
|
8263
8269
|
}
|
8264
8270
|
/**
|
8265
8271
|
* `"name"` variant of {@link LuaPlayerBuiltEntityEventFilter}.
|
@@ -8279,7 +8285,7 @@ declare module "factorio:runtime" {
|
|
8279
8285
|
/**
|
8280
8286
|
* The ghost prototype type
|
8281
8287
|
*/
|
8282
|
-
readonly type:
|
8288
|
+
readonly type: EntityType
|
8283
8289
|
}
|
8284
8290
|
/**
|
8285
8291
|
* `"ghost_name"` variant of {@link LuaPlayerBuiltEntityEventFilter}.
|
@@ -8329,7 +8335,7 @@ declare module "factorio:runtime" {
|
|
8329
8335
|
* - `"ghost_type"`: {@link GhostTypePlayerBuiltEntityEventFilter}
|
8330
8336
|
* - `"ghost_name"`: {@link GhostNamePlayerBuiltEntityEventFilter}
|
8331
8337
|
* - `"force"`: {@link ForcePlayerBuiltEntityEventFilter}
|
8332
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
8338
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#LuaPlayerBuiltEntityEventFilter Online documentation}
|
8333
8339
|
*/
|
8334
8340
|
export type LuaPlayerBuiltEntityEventFilter =
|
8335
8341
|
| TypePlayerBuiltEntityEventFilter
|
@@ -8378,7 +8384,7 @@ declare module "factorio:runtime" {
|
|
8378
8384
|
/**
|
8379
8385
|
* The prototype type
|
8380
8386
|
*/
|
8381
|
-
readonly type:
|
8387
|
+
readonly type: EntityType
|
8382
8388
|
}
|
8383
8389
|
/**
|
8384
8390
|
* `"name"` variant of {@link LuaPlayerMinedEntityEventFilter}.
|
@@ -8398,7 +8404,7 @@ declare module "factorio:runtime" {
|
|
8398
8404
|
/**
|
8399
8405
|
* The ghost prototype type
|
8400
8406
|
*/
|
8401
|
-
readonly type:
|
8407
|
+
readonly type: EntityType
|
8402
8408
|
}
|
8403
8409
|
/**
|
8404
8410
|
* `"ghost_name"` variant of {@link LuaPlayerMinedEntityEventFilter}.
|
@@ -8437,7 +8443,7 @@ declare module "factorio:runtime" {
|
|
8437
8443
|
* - `"name"`: {@link NamePlayerMinedEntityEventFilter}
|
8438
8444
|
* - `"ghost_type"`: {@link GhostTypePlayerMinedEntityEventFilter}
|
8439
8445
|
* - `"ghost_name"`: {@link GhostNamePlayerMinedEntityEventFilter}
|
8440
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
8446
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#LuaPlayerMinedEntityEventFilter Online documentation}
|
8441
8447
|
*/
|
8442
8448
|
export type LuaPlayerMinedEntityEventFilter =
|
8443
8449
|
| TypePlayerMinedEntityEventFilter
|
@@ -8489,7 +8495,7 @@ declare module "factorio:runtime" {
|
|
8489
8495
|
/**
|
8490
8496
|
* The prototype type
|
8491
8497
|
*/
|
8492
|
-
readonly type:
|
8498
|
+
readonly type: EntityType
|
8493
8499
|
}
|
8494
8500
|
/**
|
8495
8501
|
* `"name"` variant of {@link LuaEntityDamagedEventFilter}.
|
@@ -8509,7 +8515,7 @@ declare module "factorio:runtime" {
|
|
8509
8515
|
/**
|
8510
8516
|
* The ghost prototype type
|
8511
8517
|
*/
|
8512
|
-
readonly type:
|
8518
|
+
readonly type: EntityType
|
8513
8519
|
}
|
8514
8520
|
/**
|
8515
8521
|
* `"ghost_name"` variant of {@link LuaEntityDamagedEventFilter}.
|
@@ -8567,7 +8573,7 @@ declare module "factorio:runtime" {
|
|
8567
8573
|
/**
|
8568
8574
|
* A {@link LuaDamagePrototype} name
|
8569
8575
|
*/
|
8570
|
-
readonly type:
|
8576
|
+
readonly type: EntityType
|
8571
8577
|
}
|
8572
8578
|
/**
|
8573
8579
|
* `"final-health"` variant of {@link LuaEntityDamagedEventFilter}.
|
@@ -8619,7 +8625,7 @@ declare module "factorio:runtime" {
|
|
8619
8625
|
* - `"final-damage-amount"`: {@link FinalDamageAmountEntityDamagedEventFilter}
|
8620
8626
|
* - `"damage-type"`: {@link DamageTypeEntityDamagedEventFilter}
|
8621
8627
|
* - `"final-health"`: {@link FinalHealthEntityDamagedEventFilter}
|
8622
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
8628
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#LuaEntityDamagedEventFilter Online documentation}
|
8623
8629
|
*/
|
8624
8630
|
export type LuaEntityDamagedEventFilter =
|
8625
8631
|
| TypeEntityDamagedEventFilter
|
@@ -8633,7 +8639,7 @@ declare module "factorio:runtime" {
|
|
8633
8639
|
| OtherEntityDamagedEventFilter
|
8634
8640
|
/**
|
8635
8641
|
* Write form of {@link LuaEntityDamagedEventFilter}, where table-or-array concepts are allowed to take an array form.
|
8636
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
8642
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#LuaEntityDamagedEventFilter Online documentation}
|
8637
8643
|
*/
|
8638
8644
|
export type LuaEntityDamagedEventFilterWrite =
|
8639
8645
|
| TypeEntityDamagedEventFilter
|
@@ -8685,7 +8691,7 @@ declare module "factorio:runtime" {
|
|
8685
8691
|
/**
|
8686
8692
|
* The prototype type
|
8687
8693
|
*/
|
8688
|
-
readonly type:
|
8694
|
+
readonly type: EntityType
|
8689
8695
|
}
|
8690
8696
|
/**
|
8691
8697
|
* `"name"` variant of {@link LuaSectorScannedEventFilter}.
|
@@ -8705,7 +8711,7 @@ declare module "factorio:runtime" {
|
|
8705
8711
|
/**
|
8706
8712
|
* The ghost prototype type
|
8707
8713
|
*/
|
8708
|
-
readonly type:
|
8714
|
+
readonly type: EntityType
|
8709
8715
|
}
|
8710
8716
|
/**
|
8711
8717
|
* `"ghost_name"` variant of {@link LuaSectorScannedEventFilter}.
|
@@ -8744,7 +8750,7 @@ declare module "factorio:runtime" {
|
|
8744
8750
|
* - `"name"`: {@link NameSectorScannedEventFilter}
|
8745
8751
|
* - `"ghost_type"`: {@link GhostTypeSectorScannedEventFilter}
|
8746
8752
|
* - `"ghost_name"`: {@link GhostNameSectorScannedEventFilter}
|
8747
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
8753
|
+
* @see {@link https://lua-api.factorio.com/1.1.105/concepts.html#LuaSectorScannedEventFilter Online documentation}
|
8748
8754
|
*/
|
8749
8755
|
export type LuaSectorScannedEventFilter =
|
8750
8756
|
| TypeSectorScannedEventFilter
|