typed-factorio 2.9.0 → 2.10.1
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +33 -27
- package/package.json +2 -2
- package/prototype/generated/prototypes.d.ts +1740 -1733
- package/prototype/generated/types.d.ts +1438 -1433
- package/runtime/generated/builtin-types.d.ts +12 -12
- package/runtime/generated/classes.d.ts +3380 -3340
- package/runtime/generated/concepts.d.ts +188 -188
- package/runtime/generated/defines.d.ts +121 -121
- 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 +11 -6
@@ -34,7 +34,7 @@ declare module "factorio:runtime" {
|
|
34
34
|
* - `"invoke-tile-trigger"`
|
35
35
|
* - `"destroy-decoratives"`
|
36
36
|
* - `"camera-effect"`
|
37
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
37
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#TriggerEffectItemType Online documentation}
|
38
38
|
*/
|
39
39
|
export type TriggerEffectItemType =
|
40
40
|
| "damage"
|
@@ -110,7 +110,7 @@ declare module "factorio:runtime" {
|
|
110
110
|
* - `"left"`
|
111
111
|
* - `"right"`
|
112
112
|
* - `"center"`
|
113
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
113
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#TextAlign Online documentation}
|
114
114
|
*/
|
115
115
|
export type TextAlign = "left" | "right" | "center"
|
116
116
|
/**
|
@@ -123,7 +123,7 @@ declare module "factorio:runtime" {
|
|
123
123
|
* - `"middle"`
|
124
124
|
* - `"baseline"`
|
125
125
|
* - `"bottom"`
|
126
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
126
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#VerticalTextAlign Online documentation}
|
127
127
|
*/
|
128
128
|
export type VerticalTextAlign = "top" | "middle" | "baseline" | "bottom"
|
129
129
|
/**
|
@@ -191,7 +191,7 @@ declare module "factorio:runtime" {
|
|
191
191
|
* - `"position"`: {@link PositionGuiArrowSpecification}
|
192
192
|
* - `"crafting_queue"`: {@link CraftingQueueGuiArrowSpecification}
|
193
193
|
* - `"item_stack"`: {@link ItemStackGuiArrowSpecification}
|
194
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
194
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#GuiArrowSpecification Online documentation}
|
195
195
|
*/
|
196
196
|
export type GuiArrowSpecification =
|
197
197
|
| EntityGuiArrowSpecification
|
@@ -232,7 +232,7 @@ declare module "factorio:runtime" {
|
|
232
232
|
* - `"none"`
|
233
233
|
* - `"whitelist"`
|
234
234
|
* - `"blacklist"`
|
235
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
235
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#PrototypeFilterMode Online documentation}
|
236
236
|
*/
|
237
237
|
export type PrototypeFilterMode = "none" | "whitelist" | "blacklist"
|
238
238
|
export interface RailEnd {
|
@@ -253,7 +253,7 @@ declare module "factorio:runtime" {
|
|
253
253
|
* - `"any-goal-accessible"`: The method will return {@link TrainPathAnyGoalResult}.
|
254
254
|
* - `"all-goals-accessible"`: The method will return {@link TrainPathAllGoalsResult}.
|
255
255
|
* - `"all-goals-penalties"`: The method will return {@link TrainPathAllGoalsResult} with `penalties`.
|
256
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
256
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#TrainPathRequestType Online documentation}
|
257
257
|
*/
|
258
258
|
export type TrainPathRequestType = "path" | "any-goal-accessible" | "all-goals-accessible" | "all-goals-penalties"
|
259
259
|
export interface TrainPathFinderPathResult {
|
@@ -336,7 +336,7 @@ declare module "factorio:runtime" {
|
|
336
336
|
* - `"left"`
|
337
337
|
* - `"right"`
|
338
338
|
* - `"none"`
|
339
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
339
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#SwitchState Online documentation}
|
340
340
|
*/
|
341
341
|
export type SwitchState = "left" | "right" | "none"
|
342
342
|
/**
|
@@ -354,7 +354,7 @@ declare module "factorio:runtime" {
|
|
354
354
|
* - `"signal"`
|
355
355
|
* - `"technology"`
|
356
356
|
* - `"tile"`
|
357
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
357
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#ElemType Online documentation}
|
358
358
|
*/
|
359
359
|
export type ElemType =
|
360
360
|
| "achievement"
|
@@ -380,7 +380,7 @@ declare module "factorio:runtime" {
|
|
380
380
|
* - `"logistics"`: Light blue by default.
|
381
381
|
* - `"train-visualization"`: White by default.
|
382
382
|
* - `"blueprint-snap-rectangle"`: Green by default.
|
383
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
383
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#CursorBoxRenderType Online documentation}
|
384
384
|
*/
|
385
385
|
export type CursorBoxRenderType =
|
386
386
|
| "entity"
|
@@ -393,7 +393,7 @@ declare module "factorio:runtime" {
|
|
393
393
|
| "blueprint-snap-rectangle"
|
394
394
|
/**
|
395
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.
|
396
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#MapViewSettings Online documentation}
|
397
397
|
*/
|
398
398
|
export interface MapViewSettings {
|
399
399
|
readonly "show-logistic-network"?: boolean
|
@@ -437,7 +437,7 @@ declare module "factorio:runtime" {
|
|
437
437
|
* - `"none-to-south"`
|
438
438
|
* - `"south-to-none"`
|
439
439
|
* - `"none-to-north"`
|
440
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
440
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#CliffOrientation Online documentation}
|
441
441
|
*/
|
442
442
|
export type CliffOrientation =
|
443
443
|
| "west-to-east"
|
@@ -505,7 +505,7 @@ declare module "factorio:runtime" {
|
|
505
505
|
* - `"artillery-range"`
|
506
506
|
* - `"nothing"`
|
507
507
|
* - `"character-logistic-requests"`
|
508
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
508
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#ModifierType Online documentation}
|
509
509
|
*/
|
510
510
|
export type ModifierType =
|
511
511
|
| "inserter-stack-size-bonus"
|
@@ -571,7 +571,7 @@ declare module "factorio:runtime" {
|
|
571
571
|
* game.print({"", {"item-name.iron-plate"}, ": ", 60})
|
572
572
|
* @example As an example of a localised string with fallback, consider this:
|
573
573
|
* {"?", {"", {"entity-description.furnace"}, "\n"}, {"item-description.furnace"}, "optional fallback"}
|
574
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
574
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#LocalisedString Online documentation}
|
575
575
|
*/
|
576
576
|
export type LocalisedString = string | number | boolean | LuaObject | nil | [string, ...LocalisedString[]]
|
577
577
|
export interface DisplayResolution {
|
@@ -596,7 +596,7 @@ declare module "factorio:runtime" {
|
|
596
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".
|
597
597
|
*
|
598
598
|
* For example then, a value of `0.625` would indicate "south-west", and a value of `0.875` would indicate "north-west".
|
599
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
599
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#RealOrientation Online documentation}
|
600
600
|
*/
|
601
601
|
export type RealOrientation = float
|
602
602
|
/**
|
@@ -609,7 +609,7 @@ declare module "factorio:runtime" {
|
|
609
609
|
* {y = 2.25, x = 5.125}
|
610
610
|
* @example Shorthand:
|
611
611
|
* {1.625, 2.375}
|
612
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
612
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#MapPosition Online documentation}
|
613
613
|
*/
|
614
614
|
export interface MapPosition {
|
615
615
|
readonly x: double
|
@@ -618,13 +618,13 @@ declare module "factorio:runtime" {
|
|
618
618
|
/**
|
619
619
|
* Array form of {@link MapPosition}.
|
620
620
|
* @see MapPosition
|
621
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
621
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#MapPosition Online documentation}
|
622
622
|
*/
|
623
623
|
export type MapPositionArray = readonly [x: double, y: double]
|
624
624
|
/**
|
625
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.
|
626
626
|
* @see ChunkPositionArray
|
627
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
627
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#ChunkPosition Online documentation}
|
628
628
|
*/
|
629
629
|
export interface ChunkPosition {
|
630
630
|
readonly x: int
|
@@ -633,13 +633,13 @@ declare module "factorio:runtime" {
|
|
633
633
|
/**
|
634
634
|
* Array form of {@link ChunkPosition}.
|
635
635
|
* @see ChunkPosition
|
636
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
636
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#ChunkPosition Online documentation}
|
637
637
|
*/
|
638
638
|
export type ChunkPositionArray = readonly [x: int, y: int]
|
639
639
|
/**
|
640
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.
|
641
641
|
* @see TilePositionArray
|
642
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
642
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#TilePosition Online documentation}
|
643
643
|
*/
|
644
644
|
export interface TilePosition {
|
645
645
|
readonly x: int
|
@@ -648,7 +648,7 @@ declare module "factorio:runtime" {
|
|
648
648
|
/**
|
649
649
|
* Array form of {@link TilePosition}.
|
650
650
|
* @see TilePosition
|
651
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
651
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#TilePosition Online documentation}
|
652
652
|
*/
|
653
653
|
export type TilePositionArray = readonly [x: int, y: int]
|
654
654
|
/**
|
@@ -659,7 +659,7 @@ declare module "factorio:runtime" {
|
|
659
659
|
* {y = 2, x = 5}
|
660
660
|
* @example Shorthand:
|
661
661
|
* {1, 2}
|
662
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
662
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#EquipmentPosition Online documentation}
|
663
663
|
*/
|
664
664
|
export interface EquipmentPosition {
|
665
665
|
readonly x: int
|
@@ -668,13 +668,13 @@ declare module "factorio:runtime" {
|
|
668
668
|
/**
|
669
669
|
* Array form of {@link EquipmentPosition}.
|
670
670
|
* @see EquipmentPosition
|
671
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
671
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#EquipmentPosition Online documentation}
|
672
672
|
*/
|
673
673
|
export type EquipmentPositionArray = readonly [x: int, y: int]
|
674
674
|
/**
|
675
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.
|
676
676
|
* @see GuiLocationArray
|
677
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
677
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#GuiLocation Online documentation}
|
678
678
|
*/
|
679
679
|
export interface GuiLocation {
|
680
680
|
readonly x: int
|
@@ -683,12 +683,12 @@ declare module "factorio:runtime" {
|
|
683
683
|
/**
|
684
684
|
* Array form of {@link GuiLocation}.
|
685
685
|
* @see GuiLocation
|
686
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
686
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#GuiLocation Online documentation}
|
687
687
|
*/
|
688
688
|
export type GuiLocationArray = readonly [x: int, y: int]
|
689
689
|
/**
|
690
690
|
* A {@link ChunkPosition} with an added bounding box for the area of the chunk.
|
691
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
691
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#ChunkPositionAndArea Online documentation}
|
692
692
|
*/
|
693
693
|
export interface ChunkPositionAndArea {
|
694
694
|
readonly x: int
|
@@ -697,7 +697,7 @@ declare module "factorio:runtime" {
|
|
697
697
|
}
|
698
698
|
/**
|
699
699
|
* A table used to define a manual shape for a piece of equipment.
|
700
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
700
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#EquipmentPoint Online documentation}
|
701
701
|
*/
|
702
702
|
export interface EquipmentPoint {
|
703
703
|
readonly x: uint
|
@@ -733,12 +733,12 @@ declare module "factorio:runtime" {
|
|
733
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.
|
734
734
|
* @example
|
735
735
|
* {a = 1, b = true, c = "three", d = {e = "f"}}
|
736
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
736
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#Tags Online documentation}
|
737
737
|
*/
|
738
738
|
export type Tags = Record<string, AnyBasic>
|
739
739
|
/**
|
740
740
|
* @remarks The vectors for all 5 position attributes are a table with `x` and `y` keys instead of an array.
|
741
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
741
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#SmokeSource Online documentation}
|
742
742
|
*/
|
743
743
|
export interface SmokeSource {
|
744
744
|
readonly name: string
|
@@ -765,7 +765,7 @@ declare module "factorio:runtime" {
|
|
765
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.
|
766
766
|
* @example
|
767
767
|
* right = {1.0, 0.0}
|
768
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
768
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#Vector Online documentation}
|
769
769
|
*/
|
770
770
|
export type Vector = MapPositionArray
|
771
771
|
/**
|
@@ -775,7 +775,7 @@ declare module "factorio:runtime" {
|
|
775
775
|
* {left_top = {x = -2, y = -3}, right_bottom = {x = 5, y = 8}}
|
776
776
|
* @example Shorthand:
|
777
777
|
* {{-2, -3}, {5, 8}}
|
778
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
778
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#BoundingBox Online documentation}
|
779
779
|
*/
|
780
780
|
export interface BoundingBox {
|
781
781
|
readonly left_top: MapPosition
|
@@ -793,7 +793,7 @@ declare module "factorio:runtime" {
|
|
793
793
|
/**
|
794
794
|
* Array form of {@link BoundingBox}.
|
795
795
|
* @see BoundingBox
|
796
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
796
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#BoundingBox Online documentation}
|
797
797
|
*/
|
798
798
|
export type BoundingBoxArray = readonly [
|
799
799
|
left_top: MapPosition | MapPositionArray,
|
@@ -803,7 +803,7 @@ declare module "factorio:runtime" {
|
|
803
803
|
/**
|
804
804
|
* An area defined using the map editor.
|
805
805
|
* @see ScriptAreaWrite
|
806
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
806
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#ScriptArea Online documentation}
|
807
807
|
*/
|
808
808
|
export interface ScriptArea {
|
809
809
|
readonly area: BoundingBox
|
@@ -813,7 +813,7 @@ declare module "factorio:runtime" {
|
|
813
813
|
}
|
814
814
|
/**
|
815
815
|
* Write form of {@link ScriptArea}, where table-or-array concepts are allowed to take an array form.
|
816
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
816
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#ScriptArea Online documentation}
|
817
817
|
*/
|
818
818
|
export interface ScriptAreaWrite {
|
819
819
|
readonly area: BoundingBoxWrite | BoundingBoxArray
|
@@ -824,7 +824,7 @@ declare module "factorio:runtime" {
|
|
824
824
|
/**
|
825
825
|
* A position defined using the map editor.
|
826
826
|
* @see ScriptPositionWrite
|
827
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
827
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#ScriptPosition Online documentation}
|
828
828
|
*/
|
829
829
|
export interface ScriptPosition {
|
830
830
|
readonly position: MapPosition
|
@@ -834,7 +834,7 @@ declare module "factorio:runtime" {
|
|
834
834
|
}
|
835
835
|
/**
|
836
836
|
* Write form of {@link ScriptPosition}, where table-or-array concepts are allowed to take an array form.
|
837
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
837
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#ScriptPosition Online documentation}
|
838
838
|
*/
|
839
839
|
export interface ScriptPositionWrite {
|
840
840
|
readonly position: MapPosition | MapPositionArray
|
@@ -852,7 +852,7 @@ declare module "factorio:runtime" {
|
|
852
852
|
* red2 = {r = 0.5, a = 0.5} -- Same color as red1
|
853
853
|
* black = {} -- All channels omitted: black
|
854
854
|
* red1_short = {0.5, 0, 0, 0.5} -- Same color as red1 in short-hand notation
|
855
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
855
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#Color Online documentation}
|
856
856
|
*/
|
857
857
|
export interface Color {
|
858
858
|
readonly r?: float
|
@@ -863,13 +863,13 @@ declare module "factorio:runtime" {
|
|
863
863
|
/**
|
864
864
|
* Array form of {@link Color}.
|
865
865
|
* @see Color
|
866
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
866
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#Color Online documentation}
|
867
867
|
*/
|
868
868
|
export type ColorArray = readonly [r: double, g: double, b: double, a?: double]
|
869
869
|
/**
|
870
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].
|
871
871
|
* @see ColorModifierArray
|
872
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
872
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#ColorModifier Online documentation}
|
873
873
|
*/
|
874
874
|
export interface ColorModifier {
|
875
875
|
readonly r?: float
|
@@ -880,7 +880,7 @@ declare module "factorio:runtime" {
|
|
880
880
|
/**
|
881
881
|
* Array form of {@link ColorModifier}.
|
882
882
|
* @see ColorModifier
|
883
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
883
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#ColorModifier Online documentation}
|
884
884
|
*/
|
885
885
|
export type ColorModifierArray = readonly [r: double, g: double, b: double, a?: double]
|
886
886
|
export interface CraftingQueueItem {
|
@@ -920,7 +920,7 @@ declare module "factorio:runtime" {
|
|
920
920
|
}
|
921
921
|
/**
|
922
922
|
* One vertex of a ScriptRenderPolygon.
|
923
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
923
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#ScriptRenderVertexTarget Online documentation}
|
924
924
|
*/
|
925
925
|
export interface ScriptRenderVertexTarget {
|
926
926
|
readonly target: (MapPosition | MapPositionArray) | LuaEntity
|
@@ -986,7 +986,7 @@ declare module "factorio:runtime" {
|
|
986
986
|
}
|
987
987
|
/**
|
988
988
|
* @remarks Either `icon`, `text`, or both must be provided.
|
989
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
989
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#ChartTagSpec Online documentation}
|
990
990
|
*/
|
991
991
|
export interface ChartTagSpec {
|
992
992
|
readonly position: MapPosition | MapPositionArray
|
@@ -996,88 +996,88 @@ declare module "factorio:runtime" {
|
|
996
996
|
}
|
997
997
|
/**
|
998
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.
|
999
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
999
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#GameViewSettings Online documentation}
|
1000
1000
|
*/
|
1001
1001
|
export interface GameViewSettings {
|
1002
1002
|
/**
|
1003
1003
|
* Show the controller GUI elements. This includes the toolbar, the selected tool slot, the armour slot, and the gun and ammunition slots.
|
1004
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1004
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#GameViewSettings.show_controller_gui Online documentation}
|
1005
1005
|
*/
|
1006
1006
|
show_controller_gui: boolean
|
1007
1007
|
/**
|
1008
1008
|
* Show the chart in the upper right-hand corner of the screen.
|
1009
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1009
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#GameViewSettings.show_minimap Online documentation}
|
1010
1010
|
*/
|
1011
1011
|
show_minimap: boolean
|
1012
1012
|
/**
|
1013
1013
|
* Show research progress and name in the upper right-hand corner of the screen.
|
1014
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1014
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#GameViewSettings.show_research_info Online documentation}
|
1015
1015
|
*/
|
1016
1016
|
show_research_info: boolean
|
1017
1017
|
/**
|
1018
1018
|
* Show overlay icons on entities. Also known as "alt-mode".
|
1019
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1019
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#GameViewSettings.show_entity_info Online documentation}
|
1020
1020
|
*/
|
1021
1021
|
show_entity_info: boolean
|
1022
1022
|
/**
|
1023
1023
|
* Show the flashing alert icons next to the player's toolbar.
|
1024
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1024
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#GameViewSettings.show_alert_gui Online documentation}
|
1025
1025
|
*/
|
1026
1026
|
show_alert_gui: boolean
|
1027
1027
|
/**
|
1028
1028
|
* When `true` (the default), mousing over an entity will select it. Otherwise, moving the mouse won't update entity selection.
|
1029
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1029
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#GameViewSettings.update_entity_selection Online documentation}
|
1030
1030
|
*/
|
1031
1031
|
update_entity_selection: boolean
|
1032
1032
|
/**
|
1033
1033
|
* When `true` (`false` is default), the rails will always show the rail block visualisation.
|
1034
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1034
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#GameViewSettings.show_rail_block_visualisation Online documentation}
|
1035
1035
|
*/
|
1036
1036
|
show_rail_block_visualisation: boolean
|
1037
1037
|
/**
|
1038
1038
|
* Shows or hides the buttons row.
|
1039
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1039
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#GameViewSettings.show_side_menu Online documentation}
|
1040
1040
|
*/
|
1041
1041
|
show_side_menu: boolean
|
1042
1042
|
/**
|
1043
1043
|
* Shows or hides the view options when map is opened.
|
1044
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1044
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#GameViewSettings.show_map_view_options Online documentation}
|
1045
1045
|
*/
|
1046
1046
|
show_map_view_options: boolean
|
1047
1047
|
/**
|
1048
1048
|
* Shows or hides the tooltip that is displayed when selecting an entity.
|
1049
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1049
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#GameViewSettings.show_entity_tooltip Online documentation}
|
1050
1050
|
*/
|
1051
1051
|
show_entity_tooltip: boolean
|
1052
1052
|
/**
|
1053
1053
|
* Shows or hides quickbar of shortcuts.
|
1054
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1054
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#GameViewSettings.show_quickbar Online documentation}
|
1055
1055
|
*/
|
1056
1056
|
show_quickbar: boolean
|
1057
1057
|
/**
|
1058
1058
|
* Shows or hides the shortcut bar.
|
1059
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1059
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#GameViewSettings.show_shortcut_bar Online documentation}
|
1060
1060
|
*/
|
1061
1061
|
show_shortcut_bar: boolean
|
1062
1062
|
/**
|
1063
1063
|
* Shows or hides the crafting queue.
|
1064
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1064
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#GameViewSettings.show_crafting_queue Online documentation}
|
1065
1065
|
*/
|
1066
1066
|
show_crafting_queue: boolean
|
1067
1067
|
/**
|
1068
1068
|
* Shows or hides the tool window with the weapons and armor.
|
1069
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1069
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#GameViewSettings.show_tool_bar Online documentation}
|
1070
1070
|
*/
|
1071
1071
|
show_tool_bar: boolean
|
1072
1072
|
/**
|
1073
1073
|
* Shows or hides the mouse and keyboard/controller button hints in the bottom left corner if they are enabled in the interface settings.
|
1074
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1074
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#GameViewSettings.show_hotkey_suggestions Online documentation}
|
1075
1075
|
*/
|
1076
1076
|
show_hotkey_suggestions: boolean
|
1077
1077
|
}
|
1078
1078
|
/**
|
1079
1079
|
* These values are for the time frame of one second (60 ticks).
|
1080
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1080
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#PollutionMapSettings Online documentation}
|
1081
1081
|
*/
|
1082
1082
|
export interface PollutionMapSettings {
|
1083
1083
|
/**
|
@@ -1131,7 +1131,7 @@ declare module "factorio:runtime" {
|
|
1131
1131
|
}
|
1132
1132
|
/**
|
1133
1133
|
* These values represent a percentual increase in evolution. This means a value of `0.1` would increase evolution by 10%.
|
1134
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1134
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#EnemyEvolutionMapSettings Online documentation}
|
1135
1135
|
*/
|
1136
1136
|
export interface EnemyEvolutionMapSettings {
|
1137
1137
|
/**
|
@@ -1171,7 +1171,7 @@ declare module "factorio:runtime" {
|
|
1171
1171
|
*
|
1172
1172
|
* score(chunk) = 1 / (1 + player + base)
|
1173
1173
|
* ```
|
1174
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1174
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#EnemyExpansionMapSettings Online documentation}
|
1175
1175
|
*/
|
1176
1176
|
export interface EnemyExpansionMapSettings {
|
1177
1177
|
/**
|
@@ -1432,7 +1432,7 @@ declare module "factorio:runtime" {
|
|
1432
1432
|
* Various game-related settings. Updating any of the attributes will immediately take effect in the game engine.
|
1433
1433
|
* @example Increase the number of short paths the pathfinder can cache.
|
1434
1434
|
* game.map_settings.path_finder.short_cache_size = 15
|
1435
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1435
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#MapSettings Online documentation}
|
1436
1436
|
*/
|
1437
1437
|
export interface MapSettings {
|
1438
1438
|
pollution: PollutionMapSettings
|
@@ -1443,31 +1443,31 @@ declare module "factorio:runtime" {
|
|
1443
1443
|
path_finder: PathFinderMapSettings
|
1444
1444
|
/**
|
1445
1445
|
* If a behavior fails this many times, the enemy (or enemy group) is destroyed. This solves biters getting stuck within their own base.
|
1446
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1446
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#MapSettings.max_failed_behavior_count Online documentation}
|
1447
1447
|
*/
|
1448
1448
|
max_failed_behavior_count: uint
|
1449
1449
|
}
|
1450
1450
|
/**
|
1451
1451
|
* Technology and recipe difficulty settings. Updating any of the attributes will immediately take effect in the game engine.
|
1452
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1452
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#DifficultySettings Online documentation}
|
1453
1453
|
*/
|
1454
1454
|
export interface DifficultySettings {
|
1455
1455
|
recipe_difficulty: defines.difficulty_settings.recipe_difficulty
|
1456
1456
|
technology_difficulty: defines.difficulty_settings.technology_difficulty
|
1457
1457
|
/**
|
1458
1458
|
* A value in range [0.001, 1000].
|
1459
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1459
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#DifficultySettings.technology_price_multiplier Online documentation}
|
1460
1460
|
*/
|
1461
1461
|
technology_price_multiplier: double
|
1462
1462
|
/**
|
1463
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.
|
1464
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1464
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#DifficultySettings.research_queue_setting Online documentation}
|
1465
1465
|
*/
|
1466
1466
|
research_queue_setting: "after-victory" | "always" | "never"
|
1467
1467
|
}
|
1468
1468
|
/**
|
1469
1469
|
* A standard table containing all {@link MapSettings} attributes plus an additional table that contains all {@link DifficultySettings} properties.
|
1470
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1470
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#MapAndDifficultySettings Online documentation}
|
1471
1471
|
*/
|
1472
1472
|
export interface MapAndDifficultySettings {
|
1473
1473
|
readonly pollution: PollutionMapSettings
|
@@ -1496,7 +1496,7 @@ declare module "factorio:runtime" {
|
|
1496
1496
|
}
|
1497
1497
|
/**
|
1498
1498
|
* The data that can be extracted from a map exchange string, as a plain table.
|
1499
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1499
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#MapExchangeStringData Online documentation}
|
1500
1500
|
*/
|
1501
1501
|
export interface MapExchangeStringData {
|
1502
1502
|
readonly map_settings: MapAndDifficultySettings
|
@@ -1515,7 +1515,7 @@ declare module "factorio:runtime" {
|
|
1515
1515
|
/**
|
1516
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.
|
1517
1517
|
* @see BlueprintEntityWrite
|
1518
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1518
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#BlueprintEntity Online documentation}
|
1519
1519
|
*/
|
1520
1520
|
export interface BlueprintEntity {
|
1521
1521
|
/**
|
@@ -1694,7 +1694,7 @@ declare module "factorio:runtime" {
|
|
1694
1694
|
}
|
1695
1695
|
/**
|
1696
1696
|
* Write form of {@link BlueprintEntity}, where table-or-array concepts are allowed to take an array form.
|
1697
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1697
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#BlueprintEntity Online documentation}
|
1698
1698
|
*/
|
1699
1699
|
export interface BlueprintEntityWrite {
|
1700
1700
|
/**
|
@@ -1782,7 +1782,7 @@ declare module "factorio:runtime" {
|
|
1782
1782
|
}
|
1783
1783
|
/**
|
1784
1784
|
* @see TileWrite
|
1785
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1785
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#Tile Online documentation}
|
1786
1786
|
*/
|
1787
1787
|
export interface Tile {
|
1788
1788
|
/**
|
@@ -1796,7 +1796,7 @@ declare module "factorio:runtime" {
|
|
1796
1796
|
}
|
1797
1797
|
/**
|
1798
1798
|
* Write form of {@link Tile}, where table-or-array concepts are allowed to take an array form.
|
1799
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1799
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#Tile Online documentation}
|
1800
1800
|
*/
|
1801
1801
|
export interface TileWrite {
|
1802
1802
|
/**
|
@@ -1865,7 +1865,7 @@ declare module "factorio:runtime" {
|
|
1865
1865
|
*
|
1866
1866
|
* Other attributes may be specified depending on `type`:
|
1867
1867
|
* - `"fluid"`: {@link FluidIngredient}
|
1868
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1868
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#Ingredient Online documentation}
|
1869
1869
|
*/
|
1870
1870
|
export type Ingredient = FluidIngredient | OtherIngredient
|
1871
1871
|
/**
|
@@ -1927,7 +1927,7 @@ declare module "factorio:runtime" {
|
|
1927
1927
|
* {type="fluid", name="petroleum-gas", amount=5.5}}
|
1928
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:
|
1929
1929
|
* {{type="item", name="custom-item", probability=0.5, amount_min=1, amount_max=5}}
|
1930
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1930
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#Product Online documentation}
|
1931
1931
|
*/
|
1932
1932
|
export type Product = FluidProduct | OtherProduct
|
1933
1933
|
export interface Loot {
|
@@ -2086,7 +2086,7 @@ declare module "factorio:runtime" {
|
|
2086
2086
|
* - `"unlock-recipe"`: {@link UnlockRecipeTechnologyModifier}
|
2087
2087
|
* - `"nothing"`: {@link NothingTechnologyModifier}
|
2088
2088
|
* - Other types: {@link OtherTechnologyModifier}
|
2089
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2089
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#TechnologyModifier Online documentation}
|
2090
2090
|
*/
|
2091
2091
|
export type TechnologyModifier =
|
2092
2092
|
| GunSpeedTechnologyModifier
|
@@ -2098,7 +2098,7 @@ declare module "factorio:runtime" {
|
|
2098
2098
|
| OtherTechnologyModifier
|
2099
2099
|
/**
|
2100
2100
|
* A single offer on a market entity.
|
2101
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2101
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#Offer Online documentation}
|
2102
2102
|
*/
|
2103
2103
|
export interface Offer {
|
2104
2104
|
/**
|
@@ -2112,7 +2112,7 @@ declare module "factorio:runtime" {
|
|
2112
2112
|
}
|
2113
2113
|
/**
|
2114
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.
|
2115
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2115
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#AutoplaceSpecification Online documentation}
|
2116
2116
|
*/
|
2117
2117
|
export interface AutoplaceSpecification {
|
2118
2118
|
readonly probability_expression: NoiseExpression
|
@@ -2138,7 +2138,7 @@ declare module "factorio:runtime" {
|
|
2138
2138
|
}
|
2139
2139
|
/**
|
2140
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}.
|
2141
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2141
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#NoiseExpression Online documentation}
|
2142
2142
|
*/
|
2143
2143
|
export interface NoiseExpression {
|
2144
2144
|
/**
|
@@ -2230,7 +2230,7 @@ declare module "factorio:runtime" {
|
|
2230
2230
|
* - `"very-big"`: equivalent to `2`.
|
2231
2231
|
* - `"very-good"`: equivalent to `2`.
|
2232
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.
|
2233
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2233
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#MapGenSize Online documentation}
|
2234
2234
|
*/
|
2235
2235
|
export type MapGenSize =
|
2236
2236
|
| float
|
@@ -2252,7 +2252,7 @@ declare module "factorio:runtime" {
|
|
2252
2252
|
| "very-good"
|
2253
2253
|
/**
|
2254
2254
|
* @see AutoplaceControlWrite
|
2255
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2255
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#AutoplaceControl Online documentation}
|
2256
2256
|
*/
|
2257
2257
|
export interface AutoplaceControl {
|
2258
2258
|
/**
|
@@ -2270,7 +2270,7 @@ declare module "factorio:runtime" {
|
|
2270
2270
|
}
|
2271
2271
|
/**
|
2272
2272
|
* Write form of {@link AutoplaceControl}, where table-or-array concepts are allowed to take an array form.
|
2273
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2273
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#AutoplaceControl Online documentation}
|
2274
2274
|
*/
|
2275
2275
|
export interface AutoplaceControlWrite {
|
2276
2276
|
/**
|
@@ -2288,7 +2288,7 @@ declare module "factorio:runtime" {
|
|
2288
2288
|
}
|
2289
2289
|
/**
|
2290
2290
|
* @see AutoplaceSettingsWrite
|
2291
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2291
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#AutoplaceSettings Online documentation}
|
2292
2292
|
*/
|
2293
2293
|
export interface AutoplaceSettings {
|
2294
2294
|
/**
|
@@ -2299,7 +2299,7 @@ declare module "factorio:runtime" {
|
|
2299
2299
|
}
|
2300
2300
|
/**
|
2301
2301
|
* Write form of {@link AutoplaceSettings}, where table-or-array concepts are allowed to take an array form.
|
2302
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2302
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#AutoplaceSettings Online documentation}
|
2303
2303
|
*/
|
2304
2304
|
export interface AutoplaceSettingsWrite {
|
2305
2305
|
/**
|
@@ -2310,7 +2310,7 @@ declare module "factorio:runtime" {
|
|
2310
2310
|
}
|
2311
2311
|
/**
|
2312
2312
|
* @see CliffPlacementSettingsWrite
|
2313
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2313
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#CliffPlacementSettings Online documentation}
|
2314
2314
|
*/
|
2315
2315
|
export interface CliffPlacementSettings {
|
2316
2316
|
/**
|
@@ -2332,7 +2332,7 @@ declare module "factorio:runtime" {
|
|
2332
2332
|
}
|
2333
2333
|
/**
|
2334
2334
|
* Write form of {@link CliffPlacementSettings}, where table-or-array concepts are allowed to take an array form.
|
2335
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2335
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#CliffPlacementSettings Online documentation}
|
2336
2336
|
*/
|
2337
2337
|
export interface CliffPlacementSettingsWrite {
|
2338
2338
|
/**
|
@@ -2365,7 +2365,7 @@ declare module "factorio:runtime" {
|
|
2365
2365
|
* local mgs = surface.map_gen_settings
|
2366
2366
|
* mgs.property_expression_names["tile:deepwater:probability"] = -1000
|
2367
2367
|
* surface.map_gen_settings = mgs
|
2368
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2368
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#MapGenSettings Online documentation}
|
2369
2369
|
*/
|
2370
2370
|
export interface MapGenSettings {
|
2371
2371
|
/**
|
@@ -2435,7 +2435,7 @@ declare module "factorio:runtime" {
|
|
2435
2435
|
}
|
2436
2436
|
/**
|
2437
2437
|
* Write form of {@link MapGenSettings}, where table-or-array concepts are allowed to take an array form.
|
2438
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2438
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#MapGenSettings Online documentation}
|
2439
2439
|
*/
|
2440
2440
|
export interface MapGenSettingsWrite {
|
2441
2441
|
/**
|
@@ -2530,7 +2530,7 @@ declare module "factorio:runtime" {
|
|
2530
2530
|
}
|
2531
2531
|
/**
|
2532
2532
|
* An actual signal transmitted by the network.
|
2533
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2533
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#Signal Online documentation}
|
2534
2534
|
*/
|
2535
2535
|
export interface Signal {
|
2536
2536
|
/**
|
@@ -2551,7 +2551,7 @@ declare module "factorio:runtime" {
|
|
2551
2551
|
}
|
2552
2552
|
/**
|
2553
2553
|
* A single filter used by an infinity-filters instance.
|
2554
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2554
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#InfinityInventoryFilter Online documentation}
|
2555
2555
|
*/
|
2556
2556
|
export interface InfinityInventoryFilter {
|
2557
2557
|
/**
|
@@ -2573,7 +2573,7 @@ declare module "factorio:runtime" {
|
|
2573
2573
|
}
|
2574
2574
|
/**
|
2575
2575
|
* A single filter used by an infinity-pipe type entity.
|
2576
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2576
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#InfinityPipeFilter Online documentation}
|
2577
2577
|
*/
|
2578
2578
|
export interface InfinityPipeFilter {
|
2579
2579
|
/**
|
@@ -2627,7 +2627,7 @@ declare module "factorio:runtime" {
|
|
2627
2627
|
}
|
2628
2628
|
/**
|
2629
2629
|
* The settings used by a heat-interface type entity.
|
2630
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2630
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#HeatSetting Online documentation}
|
2631
2631
|
*/
|
2632
2632
|
export interface HeatSetting {
|
2633
2633
|
/**
|
@@ -2645,7 +2645,7 @@ declare module "factorio:runtime" {
|
|
2645
2645
|
}
|
2646
2646
|
/**
|
2647
2647
|
* A definition of a fluidbox connection point.
|
2648
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2648
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#FluidBoxConnection Online documentation}
|
2649
2649
|
*/
|
2650
2650
|
export interface FluidBoxConnection {
|
2651
2651
|
readonly type: "input" | "output" | "input-output"
|
@@ -2660,7 +2660,7 @@ declare module "factorio:runtime" {
|
|
2660
2660
|
}
|
2661
2661
|
/**
|
2662
2662
|
* A single pipe connection for a given fluidbox.
|
2663
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2663
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#PipeConnection Online documentation}
|
2664
2664
|
*/
|
2665
2665
|
export interface PipeConnection {
|
2666
2666
|
readonly flow_direction: "input" | "output" | "input-output"
|
@@ -2740,14 +2740,14 @@ declare module "factorio:runtime" {
|
|
2740
2740
|
* - `"≠"`: "not equal to"
|
2741
2741
|
* - `"!="`: "not equal to"
|
2742
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.
|
2743
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2743
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#ComparatorString Online documentation}
|
2744
2744
|
*/
|
2745
2745
|
export type ComparatorString = "=" | ">" | "<" | "≥" | ">=" | "≤" | "<=" | "≠" | "!="
|
2746
2746
|
/** @see ComparatorString */
|
2747
2747
|
export type ComparatorStringRead = "=" | ">" | "<" | "≥" | "≤" | "≠"
|
2748
2748
|
/**
|
2749
2749
|
* @see DeciderCombinatorParametersWrite
|
2750
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2750
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#DeciderCombinatorParameters Online documentation}
|
2751
2751
|
*/
|
2752
2752
|
export interface DeciderCombinatorParameters {
|
2753
2753
|
/**
|
@@ -2777,7 +2777,7 @@ declare module "factorio:runtime" {
|
|
2777
2777
|
}
|
2778
2778
|
/**
|
2779
2779
|
* Write form of {@link DeciderCombinatorParameters}, where table-or-array concepts are allowed to take an array form.
|
2780
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2780
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#DeciderCombinatorParameters Online documentation}
|
2781
2781
|
*/
|
2782
2782
|
export interface DeciderCombinatorParametersWrite {
|
2783
2783
|
/**
|
@@ -2811,7 +2811,7 @@ declare module "factorio:runtime" {
|
|
2811
2811
|
}
|
2812
2812
|
/**
|
2813
2813
|
* @see CircuitConditionWrite
|
2814
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2814
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#CircuitCondition Online documentation}
|
2815
2815
|
*/
|
2816
2816
|
export interface CircuitCondition {
|
2817
2817
|
/**
|
@@ -2833,7 +2833,7 @@ declare module "factorio:runtime" {
|
|
2833
2833
|
}
|
2834
2834
|
/**
|
2835
2835
|
* Write form of {@link CircuitCondition}, where table-or-array concepts are allowed to take an array form.
|
2836
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2836
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#CircuitCondition Online documentation}
|
2837
2837
|
*/
|
2838
2838
|
export interface CircuitConditionWrite {
|
2839
2839
|
/**
|
@@ -2855,7 +2855,7 @@ declare module "factorio:runtime" {
|
|
2855
2855
|
}
|
2856
2856
|
/**
|
2857
2857
|
* @see CircuitConditionDefinitionWrite
|
2858
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2858
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#CircuitConditionDefinition Online documentation}
|
2859
2859
|
*/
|
2860
2860
|
export interface CircuitConditionDefinition {
|
2861
2861
|
readonly condition: CircuitCondition
|
@@ -2866,7 +2866,7 @@ declare module "factorio:runtime" {
|
|
2866
2866
|
}
|
2867
2867
|
/**
|
2868
2868
|
* Write form of {@link CircuitConditionDefinition}, where table-or-array concepts are allowed to take an array form.
|
2869
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2869
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#CircuitConditionDefinition Online documentation}
|
2870
2870
|
*/
|
2871
2871
|
export interface CircuitConditionDefinitionWrite {
|
2872
2872
|
readonly condition: CircuitConditionWrite
|
@@ -3182,7 +3182,7 @@ declare module "factorio:runtime" {
|
|
3182
3182
|
* - {@link defines.command.stop}: {@link StopCommand}
|
3183
3183
|
* - {@link defines.command.flee}: {@link FleeCommand}
|
3184
3184
|
* - {@link defines.command.build_base}: {@link BuildBaseCommand}
|
3185
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3185
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#Command Online documentation}
|
3186
3186
|
*/
|
3187
3187
|
export type Command =
|
3188
3188
|
| AttackCommand
|
@@ -3196,7 +3196,7 @@ declare module "factorio:runtime" {
|
|
3196
3196
|
| BuildBaseCommand
|
3197
3197
|
/**
|
3198
3198
|
* Write form of {@link Command}, where table-or-array concepts are allowed to take an array form.
|
3199
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3199
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#Command Online documentation}
|
3200
3200
|
*/
|
3201
3201
|
export type CommandWrite =
|
3202
3202
|
| AttackCommand
|
@@ -3292,7 +3292,7 @@ declare module "factorio:runtime" {
|
|
3292
3292
|
* {name="copper-plate", count=47}
|
3293
3293
|
* @example These are both full stacks of iron plates (for iron-plate, a full stack is 100 plates):
|
3294
3294
|
* "iron-plate"
|
3295
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3295
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#SimpleItemStack Online documentation}
|
3296
3296
|
*/
|
3297
3297
|
export type SimpleItemStack = string | ItemStackDefinition
|
3298
3298
|
/**
|
@@ -3302,7 +3302,7 @@ declare module "factorio:runtime" {
|
|
3302
3302
|
* - `string`: The fluid name.
|
3303
3303
|
* - {@link LuaFluidPrototype}: The fluid prototype.
|
3304
3304
|
* - {@link Fluid}: The fluid.
|
3305
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3305
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#FluidIdentification Online documentation}
|
3306
3306
|
*/
|
3307
3307
|
export type FluidIdentification = string | LuaFluidPrototype | Fluid
|
3308
3308
|
/**
|
@@ -3312,7 +3312,7 @@ declare module "factorio:runtime" {
|
|
3312
3312
|
* - ForceIndex: The force index.
|
3313
3313
|
* - `string`: The force name.
|
3314
3314
|
* - {@link LuaForce}: A reference to {@link LuaForce} may be passed directly.
|
3315
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3315
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#ForceIdentification Online documentation}
|
3316
3316
|
*/
|
3317
3317
|
export type ForceIdentification = ForceIndex | string | LuaForce
|
3318
3318
|
/**
|
@@ -3322,7 +3322,7 @@ declare module "factorio:runtime" {
|
|
3322
3322
|
* - `string`: The technology name.
|
3323
3323
|
* - {@link LuaTechnology}: A reference to {@link LuaTechnology} may be passed directly.
|
3324
3324
|
* - {@link LuaTechnologyPrototype}: A reference to {@link LuaTechnologyPrototype} may be passed directly.
|
3325
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3325
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#TechnologyIdentification Online documentation}
|
3326
3326
|
*/
|
3327
3327
|
export type TechnologyIdentification = string | LuaTechnology | LuaTechnologyPrototype
|
3328
3328
|
/**
|
@@ -3332,7 +3332,7 @@ declare module "factorio:runtime" {
|
|
3332
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.
|
3333
3333
|
* - `string`: It will be the surface name. E.g. `"nauvis"`.
|
3334
3334
|
* - {@link LuaSurface}: A reference to {@link LuaSurface} may be passed directly.
|
3335
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3335
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#SurfaceIdentification Online documentation}
|
3336
3336
|
*/
|
3337
3337
|
export type SurfaceIdentification = SurfaceIndex | string | LuaSurface
|
3338
3338
|
/**
|
@@ -3342,7 +3342,7 @@ declare module "factorio:runtime" {
|
|
3342
3342
|
* - PlayerIndex: The player index.
|
3343
3343
|
* - `string`: The player name.
|
3344
3344
|
* - {@link LuaPlayer}: A reference to {@link LuaPlayer} may be passed directly.
|
3345
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3345
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#PlayerIdentification Online documentation}
|
3346
3346
|
*/
|
3347
3347
|
export type PlayerIdentification = PlayerIndex | string | LuaPlayer
|
3348
3348
|
/**
|
@@ -3351,7 +3351,7 @@ declare module "factorio:runtime" {
|
|
3351
3351
|
* ## Union members
|
3352
3352
|
* - {@link SimpleItemStack}
|
3353
3353
|
* - {@link LuaItemStack}
|
3354
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3354
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#ItemStackIdentification Online documentation}
|
3355
3355
|
*/
|
3356
3356
|
export type ItemStackIdentification = SimpleItemStack | LuaItemStack
|
3357
3357
|
/**
|
@@ -3361,7 +3361,7 @@ declare module "factorio:runtime" {
|
|
3361
3361
|
* - {@link LuaEntity}: The entity.
|
3362
3362
|
* - {@link LuaEntityPrototype}: The entity prototype.
|
3363
3363
|
* - `string`: The prototype name.
|
3364
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3364
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#EntityPrototypeIdentification Online documentation}
|
3365
3365
|
*/
|
3366
3366
|
export type EntityPrototypeIdentification = LuaEntity | LuaEntityPrototype | string
|
3367
3367
|
/**
|
@@ -3371,7 +3371,7 @@ declare module "factorio:runtime" {
|
|
3371
3371
|
* - {@link LuaItemStack}: The item.
|
3372
3372
|
* - {@link LuaItemPrototype}: The item prototype.
|
3373
3373
|
* - `string`: The prototype name.
|
3374
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3374
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#ItemPrototypeIdentification Online documentation}
|
3375
3375
|
*/
|
3376
3376
|
export type ItemPrototypeIdentification = LuaItemStack | LuaItemPrototype | string
|
3377
3377
|
/**
|
@@ -3388,7 +3388,7 @@ declare module "factorio:runtime" {
|
|
3388
3388
|
* - `"fluid_count"`
|
3389
3389
|
* - `"passenger_present"`
|
3390
3390
|
* - `"passenger_not_present"`
|
3391
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3391
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#WaitConditionType Online documentation}
|
3392
3392
|
*/
|
3393
3393
|
export type WaitConditionType =
|
3394
3394
|
| "time"
|
@@ -3403,7 +3403,7 @@ declare module "factorio:runtime" {
|
|
3403
3403
|
| "passenger_not_present"
|
3404
3404
|
/**
|
3405
3405
|
* @see WaitConditionWrite
|
3406
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3406
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#WaitCondition Online documentation}
|
3407
3407
|
*/
|
3408
3408
|
export interface WaitCondition {
|
3409
3409
|
readonly type: WaitConditionType
|
@@ -3422,7 +3422,7 @@ declare module "factorio:runtime" {
|
|
3422
3422
|
}
|
3423
3423
|
/**
|
3424
3424
|
* Write form of {@link WaitCondition}, where table-or-array concepts are allowed to take an array form.
|
3425
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3425
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#WaitCondition Online documentation}
|
3426
3426
|
*/
|
3427
3427
|
export interface WaitConditionWrite {
|
3428
3428
|
readonly type: WaitConditionType
|
@@ -3441,7 +3441,7 @@ declare module "factorio:runtime" {
|
|
3441
3441
|
}
|
3442
3442
|
/**
|
3443
3443
|
* @see TrainScheduleRecordWrite
|
3444
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3444
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#TrainScheduleRecord Online documentation}
|
3445
3445
|
*/
|
3446
3446
|
export interface TrainScheduleRecord {
|
3447
3447
|
/**
|
@@ -3464,7 +3464,7 @@ declare module "factorio:runtime" {
|
|
3464
3464
|
}
|
3465
3465
|
/**
|
3466
3466
|
* Write form of {@link TrainScheduleRecord}, where table-or-array concepts are allowed to take an array form.
|
3467
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3467
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#TrainScheduleRecord Online documentation}
|
3468
3468
|
*/
|
3469
3469
|
export interface TrainScheduleRecordWrite {
|
3470
3470
|
/**
|
@@ -3487,7 +3487,7 @@ declare module "factorio:runtime" {
|
|
3487
3487
|
}
|
3488
3488
|
/**
|
3489
3489
|
* @see TrainScheduleWrite
|
3490
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3490
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#TrainSchedule Online documentation}
|
3491
3491
|
*/
|
3492
3492
|
export interface TrainSchedule {
|
3493
3493
|
/**
|
@@ -3498,7 +3498,7 @@ declare module "factorio:runtime" {
|
|
3498
3498
|
}
|
3499
3499
|
/**
|
3500
3500
|
* Write form of {@link TrainSchedule}, where table-or-array concepts are allowed to take an array form.
|
3501
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3501
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#TrainSchedule Online documentation}
|
3502
3502
|
*/
|
3503
3503
|
export interface TrainScheduleWrite {
|
3504
3504
|
/**
|
@@ -3514,7 +3514,7 @@ declare module "factorio:runtime" {
|
|
3514
3514
|
* - `"entity"`: Fires at an entity.
|
3515
3515
|
* - `"position"`: Fires directly at a position.
|
3516
3516
|
* - `"direction"`: Fires in a direction.
|
3517
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3517
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#TargetType Online documentation}
|
3518
3518
|
*/
|
3519
3519
|
export type TargetType = "entity" | "position" | "direction"
|
3520
3520
|
export interface AmmoType {
|
@@ -3581,7 +3581,7 @@ declare module "factorio:runtime" {
|
|
3581
3581
|
* - `"equipment"`
|
3582
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.
|
3583
3583
|
* - `"utility"` - sprite defined in the utility-sprites object, these are the pictures used by the game internally for the UI.
|
3584
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3584
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#SpritePath Online documentation}
|
3585
3585
|
*/
|
3586
3586
|
export type SpritePath =
|
3587
3587
|
| (string & {
|
@@ -3631,7 +3631,7 @@ declare module "factorio:runtime" {
|
|
3631
3631
|
* - `"entity-rotated"` - Uses {@link import("factorio:prototype").EntityPrototype#rotated_sound EntityPrototype::rotated_sound}
|
3632
3632
|
* - `"entity-open"` - Uses {@link import("factorio:prototype").EntityPrototype#open_sound Entity::open_sound}
|
3633
3633
|
* - `"entity-close"` - Uses {@link import("factorio:prototype").EntityPrototype#close_sound Entity::close_sound}
|
3634
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3634
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#SoundPath Online documentation}
|
3635
3635
|
*/
|
3636
3636
|
export type SoundPath =
|
3637
3637
|
| (string & {
|
@@ -3650,7 +3650,7 @@ declare module "factorio:runtime" {
|
|
3650
3650
|
* speed={bonus=-0.15},
|
3651
3651
|
* productivity={bonus=0.06},
|
3652
3652
|
* pollution={bonus=0.075}}
|
3653
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3653
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#ModuleEffects Online documentation}
|
3654
3654
|
*/
|
3655
3655
|
export interface ModuleEffects {
|
3656
3656
|
readonly consumption?: ModuleEffectValue
|
@@ -3662,7 +3662,7 @@ declare module "factorio:runtime" {
|
|
3662
3662
|
* A set of flags. Active flags are in the dictionary as `true`, while inactive flags aren't present at all.
|
3663
3663
|
*
|
3664
3664
|
* By default, none of these flags are set.
|
3665
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3665
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#EntityPrototypeFlags Online documentation}
|
3666
3666
|
*/
|
3667
3667
|
export type EntityPrototypeFlags = {
|
3668
3668
|
readonly [T in EntityPrototypeFlag]?: true
|
@@ -3697,7 +3697,7 @@ declare module "factorio:runtime" {
|
|
3697
3697
|
* - `"not-upgradable"`: Prevents the entity from being selected by the upgrade planner.
|
3698
3698
|
* - `"not-in-kill-statistics"`: Prevents the entity from being shown in the kill statistics.
|
3699
3699
|
* - `"not-in-made-in"`: Prevents the entity from being shown in the "made in" list in recipe tooltips.
|
3700
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3700
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#EntityPrototypeFlag Online documentation}
|
3701
3701
|
*/
|
3702
3702
|
export type EntityPrototypeFlag =
|
3703
3703
|
| "not-rotatable"
|
@@ -3730,7 +3730,7 @@ declare module "factorio:runtime" {
|
|
3730
3730
|
* A set of flags. Active flags are in the dictionary as `true`, while inactive flags aren't present at all.
|
3731
3731
|
*
|
3732
3732
|
* By default, none of these flags are set.
|
3733
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3733
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#ItemPrototypeFlags Online documentation}
|
3734
3734
|
*/
|
3735
3735
|
export type ItemPrototypeFlags = {
|
3736
3736
|
readonly [T in ItemPrototypeFlag]?: true
|
@@ -3750,7 +3750,7 @@ declare module "factorio:runtime" {
|
|
3750
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.
|
3751
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.
|
3752
3752
|
* - `"spawnable"`: Allows the item to be spawned by a quickbar shortcut or custom input.
|
3753
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3753
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#ItemPrototypeFlag Online documentation}
|
3754
3754
|
*/
|
3755
3755
|
export type ItemPrototypeFlag =
|
3756
3756
|
| "draw-logistic-overlay"
|
@@ -3783,7 +3783,7 @@ declare module "factorio:runtime" {
|
|
3783
3783
|
* - `"rail-layer"`
|
3784
3784
|
* - `"transport-belt-layer"`
|
3785
3785
|
* - `"not-setup"`
|
3786
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3786
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#CollisionMaskLayer Online documentation}
|
3787
3787
|
*/
|
3788
3788
|
export type CollisionMaskLayer =
|
3789
3789
|
| "ground-tile"
|
@@ -3802,7 +3802,7 @@ declare module "factorio:runtime" {
|
|
3802
3802
|
| `layer-${bigint}`
|
3803
3803
|
/**
|
3804
3804
|
* A set of flags. Active flags are in the dictionary as `true`, while inactive flags aren't present at all.
|
3805
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3805
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#CollisionMask Online documentation}
|
3806
3806
|
*/
|
3807
3807
|
export type CollisionMask = {
|
3808
3808
|
readonly [T in CollisionMaskLayer]?: true
|
@@ -3815,7 +3815,7 @@ declare module "factorio:runtime" {
|
|
3815
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.
|
3816
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.
|
3817
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.
|
3818
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3818
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#CollisionMaskWithFlags Online documentation}
|
3819
3819
|
*/
|
3820
3820
|
export type CollisionMaskWithFlags = {
|
3821
3821
|
/**
|
@@ -3835,7 +3835,7 @@ declare module "factorio:runtime" {
|
|
3835
3835
|
}
|
3836
3836
|
/**
|
3837
3837
|
* A set of trigger target masks.
|
3838
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3838
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#TriggerTargetMask Online documentation}
|
3839
3839
|
*/
|
3840
3840
|
export type TriggerTargetMask = Record<string, boolean>
|
3841
3841
|
export interface CircularParticleCreationSpecification {
|
@@ -3970,7 +3970,7 @@ declare module "factorio:runtime" {
|
|
3970
3970
|
* Other attributes may be specified depending on `type`:
|
3971
3971
|
* - `"projectile"`: {@link ProjectileAttackParameters}
|
3972
3972
|
* - `"stream"`: {@link StreamAttackParameters}
|
3973
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3973
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#AttackParameters Online documentation}
|
3974
3974
|
*/
|
3975
3975
|
export type AttackParameters = ProjectileAttackParameters | StreamAttackParameters | OtherAttackParameters
|
3976
3976
|
export interface GunShift4Way {
|
@@ -4036,7 +4036,7 @@ declare module "factorio:runtime" {
|
|
4036
4036
|
* - `"use-on-self"`: {@link UseOnSelfCapsuleAction}
|
4037
4037
|
* - `"artillery-remote"`: {@link ArtilleryRemoteCapsuleAction}
|
4038
4038
|
* - `"destroy-cliffs"`: {@link DestroyCliffsCapsuleAction}
|
4039
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4039
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#CapsuleAction Online documentation}
|
4040
4040
|
*/
|
4041
4041
|
export type CapsuleAction =
|
4042
4042
|
| ThrowCapsuleAction
|
@@ -4072,7 +4072,7 @@ declare module "factorio:runtime" {
|
|
4072
4072
|
* - `"avoid-rolling-stock"`: Selects entities that are not `rolling-stock`s.
|
4073
4073
|
* - `"entity-ghost"`: Selects entities that are `entity-ghost`s.
|
4074
4074
|
* - `"tile-ghost"`: Selects entities that are `tile-ghost`s.
|
4075
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4075
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#SelectionModeFlags Online documentation}
|
4076
4076
|
*/
|
4077
4077
|
export interface SelectionModeFlags {
|
4078
4078
|
/**
|
@@ -4221,12 +4221,12 @@ declare module "factorio:runtime" {
|
|
4221
4221
|
}
|
4222
4222
|
/**
|
4223
4223
|
* Any basic type (string, number, boolean) or table.
|
4224
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4224
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#AnyBasic Online documentation}
|
4225
4225
|
*/
|
4226
4226
|
export type AnyBasic = string | boolean | number | table
|
4227
4227
|
/**
|
4228
4228
|
* Any basic type (string, number, boolean), table, or LuaObject.
|
4229
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4229
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#Any Online documentation}
|
4230
4230
|
*/
|
4231
4231
|
export type Any = string | boolean | number | table | LuaObject
|
4232
4232
|
export interface ProgrammableSpeakerParameters {
|
@@ -4264,7 +4264,7 @@ declare module "factorio:runtime" {
|
|
4264
4264
|
* - `"top-right"`
|
4265
4265
|
* - `"right"`: The same as `"middle-right"`
|
4266
4266
|
* - `"bottom-right"`
|
4267
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4267
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#Alignment Online documentation}
|
4268
4268
|
*/
|
4269
4269
|
export type Alignment =
|
4270
4270
|
| "top-left"
|
@@ -4279,8 +4279,8 @@ declare module "factorio:runtime" {
|
|
4279
4279
|
| "right"
|
4280
4280
|
| "bottom-right"
|
4281
4281
|
/**
|
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.
|
4283
|
-
* @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.107/events.html the list of Factorio events} for more information on these.
|
4283
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#EventData Online documentation}
|
4284
4284
|
*/
|
4285
4285
|
export interface EventData {
|
4286
4286
|
/**
|
@@ -4390,7 +4390,7 @@ declare module "factorio:runtime" {
|
|
4390
4390
|
* - `"button-7"`
|
4391
4391
|
* - `"button-8"`
|
4392
4392
|
* - `"button-9"`
|
4393
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4393
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#MouseButtonFlags Online documentation}
|
4394
4394
|
*/
|
4395
4395
|
export interface MouseButtonFlags {
|
4396
4396
|
readonly left?: true
|
@@ -4414,7 +4414,7 @@ declare module "factorio:runtime" {
|
|
4414
4414
|
* - `"not-friend"`: Forces which are not friends pass.
|
4415
4415
|
* - `"same"`: The same force pass.
|
4416
4416
|
* - `"not-same"`: The non-same forces pass.
|
4417
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4417
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#ForceCondition Online documentation}
|
4418
4418
|
*/
|
4419
4419
|
export type ForceCondition = "all" | "enemy" | "ally" | "friend" | "not-friend" | "same" | "not-same"
|
4420
4420
|
/**
|
@@ -4465,7 +4465,7 @@ declare module "factorio:runtime" {
|
|
4465
4465
|
* - `"collision-selection-box"`: 189
|
4466
4466
|
* - `"arrow"`: 190
|
4467
4467
|
* - `"cursor"`: 210
|
4468
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4468
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#RenderLayer Online documentation}
|
4469
4469
|
*/
|
4470
4470
|
export type RenderLayer =
|
4471
4471
|
| `${bigint}`
|
@@ -4531,7 +4531,7 @@ declare module "factorio:runtime" {
|
|
4531
4531
|
* - `"walking"`
|
4532
4532
|
* - `"alert"`
|
4533
4533
|
* - `"wind"`
|
4534
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4534
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#SoundType Online documentation}
|
4535
4535
|
*/
|
4536
4536
|
export type SoundType = "game-effect" | "gui-effect" | "ambient" | "environment" | "walking" | "alert" | "wind"
|
4537
4537
|
/**
|
@@ -4561,7 +4561,7 @@ declare module "factorio:runtime" {
|
|
4561
4561
|
* - `"tabbed-pane"`: A collection of `tab`s and their contents. Relevant event: {@link OnGuiSelectedTabChangedEvent on_gui_selected_tab_changed}
|
4562
4562
|
* - `"tab"`: A tab for use in a `tabbed-pane`.
|
4563
4563
|
* - `"switch"`: A switch with three possible states. Can have labels attached to either side. Relevant event: {@link OnGuiSwitchStateChangedEvent on_gui_switch_state_changed}
|
4564
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4564
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#GuiElementType Online documentation}
|
4565
4565
|
*/
|
4566
4566
|
export type GuiElementType =
|
4567
4567
|
| "button"
|
@@ -4601,7 +4601,7 @@ declare module "factorio:runtime" {
|
|
4601
4601
|
* - `"position"`
|
4602
4602
|
* - `"crafting_queue"`
|
4603
4603
|
* - `"item_stack"`: Will point to a given item stack in an inventory.
|
4604
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4604
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#GuiArrowType Online documentation}
|
4605
4605
|
*/
|
4606
4606
|
export type GuiArrowType =
|
4607
4607
|
| "nowhere"
|
@@ -4622,7 +4622,7 @@ declare module "factorio:runtime" {
|
|
4622
4622
|
* ## Union members
|
4623
4623
|
* - `"horizontal"`
|
4624
4624
|
* - `"vertical"`
|
4625
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4625
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#GuiDirection Online documentation}
|
4626
4626
|
*/
|
4627
4627
|
export type GuiDirection = "horizontal" | "vertical"
|
4628
4628
|
/**
|
@@ -4634,7 +4634,7 @@ declare module "factorio:runtime" {
|
|
4634
4634
|
* - `"always"`
|
4635
4635
|
* - `"auto"`
|
4636
4636
|
* - `"auto-and-reserve-space"`
|
4637
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4637
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#ScrollPolicy Online documentation}
|
4638
4638
|
*/
|
4639
4639
|
export type ScrollPolicy = "never" | "dont-show-but-allow-scrolling" | "always" | "auto" | "auto-and-reserve-space"
|
4640
4640
|
/**
|
@@ -4652,7 +4652,7 @@ declare module "factorio:runtime" {
|
|
4652
4652
|
* - TechnologyPrototypeFilter: for type `"technology"`
|
4653
4653
|
* @see PrototypeFilterWrite
|
4654
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.
|
4655
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4655
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#PrototypeFilter Online documentation}
|
4656
4656
|
*/
|
4657
4657
|
export type PrototypeFilter = (
|
4658
4658
|
| ItemPrototypeFilter
|
@@ -4667,7 +4667,7 @@ declare module "factorio:runtime" {
|
|
4667
4667
|
)[]
|
4668
4668
|
/**
|
4669
4669
|
* Write form of {@link PrototypeFilter}, where table-or-array concepts are allowed to take an array form.
|
4670
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4670
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#PrototypeFilter Online documentation}
|
4671
4671
|
*/
|
4672
4672
|
export type PrototypeFilterWrite = readonly (
|
4673
4673
|
| ItemPrototypeFilterWrite
|
@@ -5010,7 +5010,7 @@ declare module "factorio:runtime" {
|
|
5010
5010
|
* - `"fuel-acceleration-multiplier"`: {@link FuelAccelerationMultiplierItemPrototypeFilter}
|
5011
5011
|
* - `"fuel-top-speed-multiplier"`: {@link FuelTopSpeedMultiplierItemPrototypeFilter}
|
5012
5012
|
* - `"fuel-emissions-multiplier"`: {@link FuelEmissionsMultiplierItemPrototypeFilter}
|
5013
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
5013
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#ItemPrototypeFilter Online documentation}
|
5014
5014
|
*/
|
5015
5015
|
export type ItemPrototypeFilter =
|
5016
5016
|
| PlaceResultItemPrototypeFilter
|
@@ -5032,7 +5032,7 @@ declare module "factorio:runtime" {
|
|
5032
5032
|
| OtherItemPrototypeFilter
|
5033
5033
|
/**
|
5034
5034
|
* Write form of {@link ItemPrototypeFilter}, where table-or-array concepts are allowed to take an array form.
|
5035
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
5035
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#ItemPrototypeFilter Online documentation}
|
5036
5036
|
*/
|
5037
5037
|
export type ItemPrototypeFilterWrite =
|
5038
5038
|
| PlaceResultItemPrototypeFilterWrite
|
@@ -5108,7 +5108,7 @@ declare module "factorio:runtime" {
|
|
5108
5108
|
* - `"type"`: {@link TypeModSettingPrototypeFilter}
|
5109
5109
|
* - `"mod"`: {@link ModModSettingPrototypeFilter}
|
5110
5110
|
* - `"setting-type"`: {@link SettingTypeModSettingPrototypeFilter}
|
5111
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
5111
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#ModSettingPrototypeFilter Online documentation}
|
5112
5112
|
*/
|
5113
5113
|
export type ModSettingPrototypeFilter =
|
5114
5114
|
| TypeModSettingPrototypeFilter
|
@@ -5236,7 +5236,7 @@ declare module "factorio:runtime" {
|
|
5236
5236
|
* - `"level"`: {@link LevelTechnologyPrototypeFilter}
|
5237
5237
|
* - `"max-level"`: {@link MaxLevelTechnologyPrototypeFilter}
|
5238
5238
|
* - `"time"`: {@link TimeTechnologyPrototypeFilter}
|
5239
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
5239
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#TechnologyPrototypeFilter Online documentation}
|
5240
5240
|
*/
|
5241
5241
|
export type TechnologyPrototypeFilter =
|
5242
5242
|
| ResearchUnitIngredientTechnologyPrototypeFilter
|
@@ -5247,7 +5247,7 @@ declare module "factorio:runtime" {
|
|
5247
5247
|
| OtherTechnologyPrototypeFilter
|
5248
5248
|
/**
|
5249
5249
|
* Write form of {@link TechnologyPrototypeFilter}, where table-or-array concepts are allowed to take an array form.
|
5250
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
5250
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#TechnologyPrototypeFilter Online documentation}
|
5251
5251
|
*/
|
5252
5252
|
export type TechnologyPrototypeFilterWrite =
|
5253
5253
|
| ResearchUnitIngredientTechnologyPrototypeFilter
|
@@ -5297,7 +5297,7 @@ declare module "factorio:runtime" {
|
|
5297
5297
|
*
|
5298
5298
|
* Other attributes may be specified depending on `filter`:
|
5299
5299
|
* - `"collision-mask"`: {@link CollisionMaskDecorativePrototypeFilter}
|
5300
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
5300
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#DecorativePrototypeFilter Online documentation}
|
5301
5301
|
*/
|
5302
5302
|
export type DecorativePrototypeFilter = CollisionMaskDecorativePrototypeFilter | OtherDecorativePrototypeFilter
|
5303
5303
|
/**
|
@@ -5340,7 +5340,7 @@ declare module "factorio:runtime" {
|
|
5340
5340
|
*
|
5341
5341
|
* Other attributes may be specified depending on `filter`:
|
5342
5342
|
* - `"type"`: {@link TypeAchievementPrototypeFilter}
|
5343
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
5343
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#AchievementPrototypeFilter Online documentation}
|
5344
5344
|
*/
|
5345
5345
|
export type AchievementPrototypeFilter = TypeAchievementPrototypeFilter | OtherAchievementPrototypeFilter
|
5346
5346
|
/**
|
@@ -5525,7 +5525,7 @@ declare module "factorio:runtime" {
|
|
5525
5525
|
* - `"fuel-value"`: {@link FuelValueFluidPrototypeFilter}
|
5526
5526
|
* - `"emissions-multiplier"`: {@link EmissionsMultiplierFluidPrototypeFilter}
|
5527
5527
|
* - `"gas-temperature"`: {@link GasTemperatureFluidPrototypeFilter}
|
5528
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
5528
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#FluidPrototypeFilter Online documentation}
|
5529
5529
|
*/
|
5530
5530
|
export type FluidPrototypeFilter =
|
5531
5531
|
| NameFluidPrototypeFilter
|
@@ -5539,7 +5539,7 @@ declare module "factorio:runtime" {
|
|
5539
5539
|
| OtherFluidPrototypeFilter
|
5540
5540
|
/**
|
5541
5541
|
* Write form of {@link FluidPrototypeFilter}, where table-or-array concepts are allowed to take an array form.
|
5542
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
5542
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#FluidPrototypeFilter Online documentation}
|
5543
5543
|
*/
|
5544
5544
|
export type FluidPrototypeFilterWrite =
|
5545
5545
|
| NameFluidPrototypeFilter
|
@@ -5591,7 +5591,7 @@ declare module "factorio:runtime" {
|
|
5591
5591
|
*
|
5592
5592
|
* Other attributes may be specified depending on `filter`:
|
5593
5593
|
* - `"type"`: {@link TypeEquipmentPrototypeFilter}
|
5594
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
5594
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#EquipmentPrototypeFilter Online documentation}
|
5595
5595
|
*/
|
5596
5596
|
export type EquipmentPrototypeFilter = TypeEquipmentPrototypeFilter | OtherEquipmentPrototypeFilter
|
5597
5597
|
/**
|
@@ -5724,7 +5724,7 @@ declare module "factorio:runtime" {
|
|
5724
5724
|
* - `"vehicle-friction-modifier"`: {@link VehicleFrictionModifierTilePrototypeFilter}
|
5725
5725
|
* - `"decorative-removal-probability"`: {@link DecorativeRemovalProbabilityTilePrototypeFilter}
|
5726
5726
|
* - `"emissions"`: {@link EmissionsTilePrototypeFilter}
|
5727
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
5727
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#TilePrototypeFilter Online documentation}
|
5728
5728
|
*/
|
5729
5729
|
export type TilePrototypeFilter =
|
5730
5730
|
| CollisionMaskTilePrototypeFilter
|
@@ -5735,7 +5735,7 @@ declare module "factorio:runtime" {
|
|
5735
5735
|
| OtherTilePrototypeFilter
|
5736
5736
|
/**
|
5737
5737
|
* Write form of {@link TilePrototypeFilter}, where table-or-array concepts are allowed to take an array form.
|
5738
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
5738
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#TilePrototypeFilter Online documentation}
|
5739
5739
|
*/
|
5740
5740
|
export type TilePrototypeFilterWrite =
|
5741
5741
|
| CollisionMaskTilePrototypeFilter
|
@@ -5999,7 +5999,7 @@ declare module "factorio:runtime" {
|
|
5999
5999
|
* - `"emissions-multiplier"`: {@link EmissionsMultiplierRecipePrototypeFilter}
|
6000
6000
|
* - `"request-paste-multiplier"`: {@link RequestPasteMultiplierRecipePrototypeFilter}
|
6001
6001
|
* - `"overload-multiplier"`: {@link OverloadMultiplierRecipePrototypeFilter}
|
6002
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
6002
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#RecipePrototypeFilter Online documentation}
|
6003
6003
|
*/
|
6004
6004
|
export type RecipePrototypeFilter =
|
6005
6005
|
| HasIngredientItemRecipePrototypeFilter
|
@@ -6015,7 +6015,7 @@ declare module "factorio:runtime" {
|
|
6015
6015
|
| OtherRecipePrototypeFilter
|
6016
6016
|
/**
|
6017
6017
|
* Write form of {@link RecipePrototypeFilter}, where table-or-array concepts are allowed to take an array form.
|
6018
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
6018
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#RecipePrototypeFilter Online documentation}
|
6019
6019
|
*/
|
6020
6020
|
export type RecipePrototypeFilterWrite =
|
6021
6021
|
| HasIngredientItemRecipePrototypeFilterWrite
|
@@ -6246,7 +6246,7 @@ declare module "factorio:runtime" {
|
|
6246
6246
|
* - `"selection-priority"`: {@link SelectionPriorityEntityPrototypeFilter}
|
6247
6247
|
* - `"emissions"`: {@link EmissionsEntityPrototypeFilter}
|
6248
6248
|
* - `"crafting-category"`: {@link CraftingCategoryEntityPrototypeFilter}
|
6249
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
6249
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#EntityPrototypeFilter Online documentation}
|
6250
6250
|
*/
|
6251
6251
|
export type EntityPrototypeFilter =
|
6252
6252
|
| NameEntityPrototypeFilter
|
@@ -6260,7 +6260,7 @@ declare module "factorio:runtime" {
|
|
6260
6260
|
| OtherEntityPrototypeFilter
|
6261
6261
|
/**
|
6262
6262
|
* Write form of {@link EntityPrototypeFilter}, where table-or-array concepts are allowed to take an array form.
|
6263
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
6263
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#EntityPrototypeFilter Online documentation}
|
6264
6264
|
*/
|
6265
6265
|
export type EntityPrototypeFilterWrite =
|
6266
6266
|
| NameEntityPrototypeFilter
|
@@ -6299,7 +6299,7 @@ declare module "factorio:runtime" {
|
|
6299
6299
|
* - {@link LuaPlayerRepairedEntityEventFilter}
|
6300
6300
|
* @see EventFilterWrite
|
6301
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.
|
6302
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
6302
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#EventFilter Online documentation}
|
6303
6303
|
*/
|
6304
6304
|
export type EventFilter = (
|
6305
6305
|
| LuaEntityClonedEventFilter
|
@@ -6326,7 +6326,7 @@ declare module "factorio:runtime" {
|
|
6326
6326
|
)[]
|
6327
6327
|
/**
|
6328
6328
|
* Write form of {@link EventFilter}, where table-or-array concepts are allowed to take an array form.
|
6329
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
6329
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#EventFilter Online documentation}
|
6330
6330
|
*/
|
6331
6331
|
export type EventFilterWrite = readonly (
|
6332
6332
|
| LuaEntityClonedEventFilter
|
@@ -6450,7 +6450,7 @@ declare module "factorio:runtime" {
|
|
6450
6450
|
* - `"name"`: {@link NameScriptRaisedReviveEventFilter}
|
6451
6451
|
* - `"ghost_type"`: {@link GhostTypeScriptRaisedReviveEventFilter}
|
6452
6452
|
* - `"ghost_name"`: {@link GhostNameScriptRaisedReviveEventFilter}
|
6453
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
6453
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#LuaScriptRaisedReviveEventFilter Online documentation}
|
6454
6454
|
*/
|
6455
6455
|
export type LuaScriptRaisedReviveEventFilter =
|
6456
6456
|
| TypeScriptRaisedReviveEventFilter
|
@@ -6557,7 +6557,7 @@ declare module "factorio:runtime" {
|
|
6557
6557
|
* - `"name"`: {@link NameEntityDiedEventFilter}
|
6558
6558
|
* - `"ghost_type"`: {@link GhostTypeEntityDiedEventFilter}
|
6559
6559
|
* - `"ghost_name"`: {@link GhostNameEntityDiedEventFilter}
|
6560
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
6560
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#LuaEntityDiedEventFilter Online documentation}
|
6561
6561
|
*/
|
6562
6562
|
export type LuaEntityDiedEventFilter =
|
6563
6563
|
| TypeEntityDiedEventFilter
|
@@ -6666,7 +6666,7 @@ declare module "factorio:runtime" {
|
|
6666
6666
|
* - `"name"`: {@link NameEntityMarkedForDeconstructionEventFilter}
|
6667
6667
|
* - `"ghost_type"`: {@link GhostTypeEntityMarkedForDeconstructionEventFilter}
|
6668
6668
|
* - `"ghost_name"`: {@link GhostNameEntityMarkedForDeconstructionEventFilter}
|
6669
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
6669
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#LuaEntityMarkedForDeconstructionEventFilter Online documentation}
|
6670
6670
|
*/
|
6671
6671
|
export type LuaEntityMarkedForDeconstructionEventFilter =
|
6672
6672
|
| TypeEntityMarkedForDeconstructionEventFilter
|
@@ -6773,7 +6773,7 @@ declare module "factorio:runtime" {
|
|
6773
6773
|
* - `"name"`: {@link NamePreGhostDeconstructedEventFilter}
|
6774
6774
|
* - `"ghost_type"`: {@link GhostTypePreGhostDeconstructedEventFilter}
|
6775
6775
|
* - `"ghost_name"`: {@link GhostNamePreGhostDeconstructedEventFilter}
|
6776
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
6776
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#LuaPreGhostDeconstructedEventFilter Online documentation}
|
6777
6777
|
*/
|
6778
6778
|
export type LuaPreGhostDeconstructedEventFilter =
|
6779
6779
|
| TypePreGhostDeconstructedEventFilter
|
@@ -6880,7 +6880,7 @@ declare module "factorio:runtime" {
|
|
6880
6880
|
* - `"name"`: {@link NameScriptRaisedDestroyEventFilter}
|
6881
6881
|
* - `"ghost_type"`: {@link GhostTypeScriptRaisedDestroyEventFilter}
|
6882
6882
|
* - `"ghost_name"`: {@link GhostNameScriptRaisedDestroyEventFilter}
|
6883
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
6883
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#LuaScriptRaisedDestroyEventFilter Online documentation}
|
6884
6884
|
*/
|
6885
6885
|
export type LuaScriptRaisedDestroyEventFilter =
|
6886
6886
|
| TypeScriptRaisedDestroyEventFilter
|
@@ -6987,7 +6987,7 @@ declare module "factorio:runtime" {
|
|
6987
6987
|
* - `"name"`: {@link NameUpgradeCancelledEventFilter}
|
6988
6988
|
* - `"ghost_type"`: {@link GhostTypeUpgradeCancelledEventFilter}
|
6989
6989
|
* - `"ghost_name"`: {@link GhostNameUpgradeCancelledEventFilter}
|
6990
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
6990
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#LuaUpgradeCancelledEventFilter Online documentation}
|
6991
6991
|
*/
|
6992
6992
|
export type LuaUpgradeCancelledEventFilter =
|
6993
6993
|
| TypeUpgradeCancelledEventFilter
|
@@ -7094,7 +7094,7 @@ declare module "factorio:runtime" {
|
|
7094
7094
|
* - `"name"`: {@link NamePlayerRepairedEntityEventFilter}
|
7095
7095
|
* - `"ghost_type"`: {@link GhostTypePlayerRepairedEntityEventFilter}
|
7096
7096
|
* - `"ghost_name"`: {@link GhostNamePlayerRepairedEntityEventFilter}
|
7097
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
7097
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#LuaPlayerRepairedEntityEventFilter Online documentation}
|
7098
7098
|
*/
|
7099
7099
|
export type LuaPlayerRepairedEntityEventFilter =
|
7100
7100
|
| TypePlayerRepairedEntityEventFilter
|
@@ -7201,7 +7201,7 @@ declare module "factorio:runtime" {
|
|
7201
7201
|
* - `"name"`: {@link NameScriptRaisedTeleportedEventFilter}
|
7202
7202
|
* - `"ghost_type"`: {@link GhostTypeScriptRaisedTeleportedEventFilter}
|
7203
7203
|
* - `"ghost_name"`: {@link GhostNameScriptRaisedTeleportedEventFilter}
|
7204
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
7204
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#LuaScriptRaisedTeleportedEventFilter Online documentation}
|
7205
7205
|
*/
|
7206
7206
|
export type LuaScriptRaisedTeleportedEventFilter =
|
7207
7207
|
| TypeScriptRaisedTeleportedEventFilter
|
@@ -7308,7 +7308,7 @@ declare module "factorio:runtime" {
|
|
7308
7308
|
* - `"name"`: {@link NameEntityMarkedForUpgradeEventFilter}
|
7309
7309
|
* - `"ghost_type"`: {@link GhostTypeEntityMarkedForUpgradeEventFilter}
|
7310
7310
|
* - `"ghost_name"`: {@link GhostNameEntityMarkedForUpgradeEventFilter}
|
7311
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
7311
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#LuaEntityMarkedForUpgradeEventFilter Online documentation}
|
7312
7312
|
*/
|
7313
7313
|
export type LuaEntityMarkedForUpgradeEventFilter =
|
7314
7314
|
| TypeEntityMarkedForUpgradeEventFilter
|
@@ -7350,7 +7350,7 @@ declare module "factorio:runtime" {
|
|
7350
7350
|
*
|
7351
7351
|
* Other attributes may be specified depending on `filter`:
|
7352
7352
|
* - `"type"`: {@link TypePostEntityDiedEventFilter}
|
7353
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
7353
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#LuaPostEntityDiedEventFilter Online documentation}
|
7354
7354
|
*/
|
7355
7355
|
export type LuaPostEntityDiedEventFilter = TypePostEntityDiedEventFilter
|
7356
7356
|
/**
|
@@ -7452,7 +7452,7 @@ declare module "factorio:runtime" {
|
|
7452
7452
|
* - `"name"`: {@link NamePreRobotMinedEntityEventFilter}
|
7453
7453
|
* - `"ghost_type"`: {@link GhostTypePreRobotMinedEntityEventFilter}
|
7454
7454
|
* - `"ghost_name"`: {@link GhostNamePreRobotMinedEntityEventFilter}
|
7455
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
7455
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#LuaPreRobotMinedEntityEventFilter Online documentation}
|
7456
7456
|
*/
|
7457
7457
|
export type LuaPreRobotMinedEntityEventFilter =
|
7458
7458
|
| TypePreRobotMinedEntityEventFilter
|
@@ -7559,7 +7559,7 @@ declare module "factorio:runtime" {
|
|
7559
7559
|
* - `"name"`: {@link NameEntityClonedEventFilter}
|
7560
7560
|
* - `"ghost_type"`: {@link GhostTypeEntityClonedEventFilter}
|
7561
7561
|
* - `"ghost_name"`: {@link GhostNameEntityClonedEventFilter}
|
7562
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
7562
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#LuaEntityClonedEventFilter Online documentation}
|
7563
7563
|
*/
|
7564
7564
|
export type LuaEntityClonedEventFilter =
|
7565
7565
|
| TypeEntityClonedEventFilter
|
@@ -7666,7 +7666,7 @@ declare module "factorio:runtime" {
|
|
7666
7666
|
* - `"name"`: {@link NameScriptRaisedBuiltEventFilter}
|
7667
7667
|
* - `"ghost_type"`: {@link GhostTypeScriptRaisedBuiltEventFilter}
|
7668
7668
|
* - `"ghost_name"`: {@link GhostNameScriptRaisedBuiltEventFilter}
|
7669
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
7669
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#LuaScriptRaisedBuiltEventFilter Online documentation}
|
7670
7670
|
*/
|
7671
7671
|
export type LuaScriptRaisedBuiltEventFilter =
|
7672
7672
|
| TypeScriptRaisedBuiltEventFilter
|
@@ -7773,7 +7773,7 @@ declare module "factorio:runtime" {
|
|
7773
7773
|
* - `"name"`: {@link NameRobotMinedEntityEventFilter}
|
7774
7774
|
* - `"ghost_type"`: {@link GhostTypeRobotMinedEntityEventFilter}
|
7775
7775
|
* - `"ghost_name"`: {@link GhostNameRobotMinedEntityEventFilter}
|
7776
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
7776
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#LuaRobotMinedEntityEventFilter Online documentation}
|
7777
7777
|
*/
|
7778
7778
|
export type LuaRobotMinedEntityEventFilter =
|
7779
7779
|
| TypeRobotMinedEntityEventFilter
|
@@ -7880,7 +7880,7 @@ declare module "factorio:runtime" {
|
|
7880
7880
|
* - `"name"`: {@link NamePrePlayerMinedEntityEventFilter}
|
7881
7881
|
* - `"ghost_type"`: {@link GhostTypePrePlayerMinedEntityEventFilter}
|
7882
7882
|
* - `"ghost_name"`: {@link GhostNamePrePlayerMinedEntityEventFilter}
|
7883
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
7883
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#LuaPrePlayerMinedEntityEventFilter Online documentation}
|
7884
7884
|
*/
|
7885
7885
|
export type LuaPrePlayerMinedEntityEventFilter =
|
7886
7886
|
| TypePrePlayerMinedEntityEventFilter
|
@@ -7999,7 +7999,7 @@ declare module "factorio:runtime" {
|
|
7999
7999
|
* - `"ghost_type"`: {@link GhostTypeRobotBuiltEntityEventFilter}
|
8000
8000
|
* - `"ghost_name"`: {@link GhostNameRobotBuiltEntityEventFilter}
|
8001
8001
|
* - `"force"`: {@link ForceRobotBuiltEntityEventFilter}
|
8002
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
8002
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#LuaRobotBuiltEntityEventFilter Online documentation}
|
8003
8003
|
*/
|
8004
8004
|
export type LuaRobotBuiltEntityEventFilter =
|
8005
8005
|
| TypeRobotBuiltEntityEventFilter
|
@@ -8107,7 +8107,7 @@ declare module "factorio:runtime" {
|
|
8107
8107
|
* - `"name"`: {@link NamePreGhostUpgradedEventFilter}
|
8108
8108
|
* - `"ghost_type"`: {@link GhostTypePreGhostUpgradedEventFilter}
|
8109
8109
|
* - `"ghost_name"`: {@link GhostNamePreGhostUpgradedEventFilter}
|
8110
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
8110
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#LuaPreGhostUpgradedEventFilter Online documentation}
|
8111
8111
|
*/
|
8112
8112
|
export type LuaPreGhostUpgradedEventFilter =
|
8113
8113
|
| TypePreGhostUpgradedEventFilter
|
@@ -8216,7 +8216,7 @@ declare module "factorio:runtime" {
|
|
8216
8216
|
* - `"name"`: {@link NameEntityDeconstructionCancelledEventFilter}
|
8217
8217
|
* - `"ghost_type"`: {@link GhostTypeEntityDeconstructionCancelledEventFilter}
|
8218
8218
|
* - `"ghost_name"`: {@link GhostNameEntityDeconstructionCancelledEventFilter}
|
8219
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
8219
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#LuaEntityDeconstructionCancelledEventFilter Online documentation}
|
8220
8220
|
*/
|
8221
8221
|
export type LuaEntityDeconstructionCancelledEventFilter =
|
8222
8222
|
| TypeEntityDeconstructionCancelledEventFilter
|
@@ -8335,7 +8335,7 @@ declare module "factorio:runtime" {
|
|
8335
8335
|
* - `"ghost_type"`: {@link GhostTypePlayerBuiltEntityEventFilter}
|
8336
8336
|
* - `"ghost_name"`: {@link GhostNamePlayerBuiltEntityEventFilter}
|
8337
8337
|
* - `"force"`: {@link ForcePlayerBuiltEntityEventFilter}
|
8338
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
8338
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#LuaPlayerBuiltEntityEventFilter Online documentation}
|
8339
8339
|
*/
|
8340
8340
|
export type LuaPlayerBuiltEntityEventFilter =
|
8341
8341
|
| TypePlayerBuiltEntityEventFilter
|
@@ -8443,7 +8443,7 @@ declare module "factorio:runtime" {
|
|
8443
8443
|
* - `"name"`: {@link NamePlayerMinedEntityEventFilter}
|
8444
8444
|
* - `"ghost_type"`: {@link GhostTypePlayerMinedEntityEventFilter}
|
8445
8445
|
* - `"ghost_name"`: {@link GhostNamePlayerMinedEntityEventFilter}
|
8446
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
8446
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#LuaPlayerMinedEntityEventFilter Online documentation}
|
8447
8447
|
*/
|
8448
8448
|
export type LuaPlayerMinedEntityEventFilter =
|
8449
8449
|
| TypePlayerMinedEntityEventFilter
|
@@ -8625,7 +8625,7 @@ declare module "factorio:runtime" {
|
|
8625
8625
|
* - `"final-damage-amount"`: {@link FinalDamageAmountEntityDamagedEventFilter}
|
8626
8626
|
* - `"damage-type"`: {@link DamageTypeEntityDamagedEventFilter}
|
8627
8627
|
* - `"final-health"`: {@link FinalHealthEntityDamagedEventFilter}
|
8628
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
8628
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#LuaEntityDamagedEventFilter Online documentation}
|
8629
8629
|
*/
|
8630
8630
|
export type LuaEntityDamagedEventFilter =
|
8631
8631
|
| TypeEntityDamagedEventFilter
|
@@ -8639,7 +8639,7 @@ declare module "factorio:runtime" {
|
|
8639
8639
|
| OtherEntityDamagedEventFilter
|
8640
8640
|
/**
|
8641
8641
|
* Write form of {@link LuaEntityDamagedEventFilter}, where table-or-array concepts are allowed to take an array form.
|
8642
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
8642
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#LuaEntityDamagedEventFilter Online documentation}
|
8643
8643
|
*/
|
8644
8644
|
export type LuaEntityDamagedEventFilterWrite =
|
8645
8645
|
| TypeEntityDamagedEventFilter
|
@@ -8750,7 +8750,7 @@ declare module "factorio:runtime" {
|
|
8750
8750
|
* - `"name"`: {@link NameSectorScannedEventFilter}
|
8751
8751
|
* - `"ghost_type"`: {@link GhostTypeSectorScannedEventFilter}
|
8752
8752
|
* - `"ghost_name"`: {@link GhostNameSectorScannedEventFilter}
|
8753
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
8753
|
+
* @see {@link https://lua-api.factorio.com/1.1.107/concepts.html#LuaSectorScannedEventFilter Online documentation}
|
8754
8754
|
*/
|
8755
8755
|
export type LuaSectorScannedEventFilter =
|
8756
8756
|
| TypeSectorScannedEventFilter
|