typed-factorio 2.7.4 → 2.8.0
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +9 -0
- package/common/types.d.ts +3 -3
- package/package.json +11 -11
- package/prototype/generated/prototypes.d.ts +2417 -1790
- package/prototype/generated/types.d.ts +1437 -1437
- package/runtime/generated/builtin-types.d.ts +12 -12
- package/runtime/generated/classes.d.ts +3350 -3346
- package/runtime/generated/concepts.d.ts +234 -232
- package/runtime/generated/defines.d.ts +124 -124
- package/runtime/generated/events.d.ts +185 -185
- package/runtime/generated/global-functions.d.ts +3 -3
- package/runtime/generated/global-objects.d.ts +6 -6
- package/settings/types.d.ts +2 -0
@@ -2,6 +2,8 @@
|
|
2
2
|
|
3
3
|
/** @noSelfInFile */
|
4
4
|
|
5
|
+
import type { EntityType } from "factorio:prototype"
|
6
|
+
|
5
7
|
import type { VersionString } from "factorio:common"
|
6
8
|
|
7
9
|
/**
|
@@ -32,7 +34,7 @@ declare module "factorio:runtime" {
|
|
32
34
|
* - `"invoke-tile-trigger"`
|
33
35
|
* - `"destroy-decoratives"`
|
34
36
|
* - `"camera-effect"`
|
35
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
37
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#TriggerEffectItemType Online documentation}
|
36
38
|
*/
|
37
39
|
export type TriggerEffectItemType =
|
38
40
|
| "damage"
|
@@ -108,7 +110,7 @@ declare module "factorio:runtime" {
|
|
108
110
|
* - `"left"`
|
109
111
|
* - `"right"`
|
110
112
|
* - `"center"`
|
111
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
113
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#TextAlign Online documentation}
|
112
114
|
*/
|
113
115
|
export type TextAlign = "left" | "right" | "center"
|
114
116
|
/**
|
@@ -121,7 +123,7 @@ declare module "factorio:runtime" {
|
|
121
123
|
* - `"middle"`
|
122
124
|
* - `"baseline"`
|
123
125
|
* - `"bottom"`
|
124
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
126
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#VerticalTextAlign Online documentation}
|
125
127
|
*/
|
126
128
|
export type VerticalTextAlign = "top" | "middle" | "baseline" | "bottom"
|
127
129
|
/**
|
@@ -189,7 +191,7 @@ declare module "factorio:runtime" {
|
|
189
191
|
* - `"position"`: {@link PositionGuiArrowSpecification}
|
190
192
|
* - `"crafting_queue"`: {@link CraftingQueueGuiArrowSpecification}
|
191
193
|
* - `"item_stack"`: {@link ItemStackGuiArrowSpecification}
|
192
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
194
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#GuiArrowSpecification Online documentation}
|
193
195
|
*/
|
194
196
|
export type GuiArrowSpecification =
|
195
197
|
| EntityGuiArrowSpecification
|
@@ -230,7 +232,7 @@ declare module "factorio:runtime" {
|
|
230
232
|
* - `"none"`
|
231
233
|
* - `"whitelist"`
|
232
234
|
* - `"blacklist"`
|
233
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
235
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#PrototypeFilterMode Online documentation}
|
234
236
|
*/
|
235
237
|
export type PrototypeFilterMode = "none" | "whitelist" | "blacklist"
|
236
238
|
export interface RailEnd {
|
@@ -251,7 +253,7 @@ declare module "factorio:runtime" {
|
|
251
253
|
* - `"any-goal-accessible"`: The method will return {@link TrainPathAnyGoalResult}.
|
252
254
|
* - `"all-goals-accessible"`: The method will return {@link TrainPathAllGoalsResult}.
|
253
255
|
* - `"all-goals-penalties"`: The method will return {@link TrainPathAllGoalsResult} with `penalties`.
|
254
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
256
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#TrainPathRequestType Online documentation}
|
255
257
|
*/
|
256
258
|
export type TrainPathRequestType = "path" | "any-goal-accessible" | "all-goals-accessible" | "all-goals-penalties"
|
257
259
|
export interface TrainPathFinderPathResult {
|
@@ -334,7 +336,7 @@ declare module "factorio:runtime" {
|
|
334
336
|
* - `"left"`
|
335
337
|
* - `"right"`
|
336
338
|
* - `"none"`
|
337
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
339
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#SwitchState Online documentation}
|
338
340
|
*/
|
339
341
|
export type SwitchState = "left" | "right" | "none"
|
340
342
|
/**
|
@@ -352,7 +354,7 @@ declare module "factorio:runtime" {
|
|
352
354
|
* - `"signal"`
|
353
355
|
* - `"technology"`
|
354
356
|
* - `"tile"`
|
355
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
357
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#ElemType Online documentation}
|
356
358
|
*/
|
357
359
|
export type ElemType =
|
358
360
|
| "achievement"
|
@@ -378,7 +380,7 @@ declare module "factorio:runtime" {
|
|
378
380
|
* - `"logistics"`: Light blue by default.
|
379
381
|
* - `"train-visualization"`: White by default.
|
380
382
|
* - `"blueprint-snap-rectangle"`: Green by default.
|
381
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
383
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#CursorBoxRenderType Online documentation}
|
382
384
|
*/
|
383
385
|
export type CursorBoxRenderType =
|
384
386
|
| "entity"
|
@@ -417,7 +419,7 @@ declare module "factorio:runtime" {
|
|
417
419
|
* - `"none-to-south"`
|
418
420
|
* - `"south-to-none"`
|
419
421
|
* - `"none-to-north"`
|
420
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
422
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#CliffOrientation Online documentation}
|
421
423
|
*/
|
422
424
|
export type CliffOrientation =
|
423
425
|
| "west-to-east"
|
@@ -485,7 +487,7 @@ declare module "factorio:runtime" {
|
|
485
487
|
* - `"artillery-range"`
|
486
488
|
* - `"nothing"`
|
487
489
|
* - `"character-logistic-requests"`
|
488
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
490
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#ModifierType Online documentation}
|
489
491
|
*/
|
490
492
|
export type ModifierType =
|
491
493
|
| "inserter-stack-size-bonus"
|
@@ -551,7 +553,7 @@ declare module "factorio:runtime" {
|
|
551
553
|
* game.print({"", {"item-name.iron-plate"}, ": ", 60})
|
552
554
|
* @example As an example of a localised string with fallback, consider this:
|
553
555
|
* {"?", {"", {"entity-description.furnace"}, "\n"}, {"item-description.furnace"}, "optional fallback"}
|
554
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
556
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#LocalisedString Online documentation}
|
555
557
|
*/
|
556
558
|
export type LocalisedString = string | number | boolean | LuaObject | nil | [string, ...LocalisedString[]]
|
557
559
|
export interface DisplayResolution {
|
@@ -576,7 +578,7 @@ declare module "factorio:runtime" {
|
|
576
578
|
* The smooth orientation. It is a {@link float} in the range `[0, 1)` that covers a full circle, starting at the top and going clockwise. This means a value of `0` indicates "north", a value of `0.5` indicates "south".
|
577
579
|
*
|
578
580
|
* For example then, a value of `0.625` would indicate "south-west", and a value of `0.875` would indicate "north-west".
|
579
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
581
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#RealOrientation Online documentation}
|
580
582
|
*/
|
581
583
|
export type RealOrientation = float
|
582
584
|
/**
|
@@ -589,7 +591,7 @@ declare module "factorio:runtime" {
|
|
589
591
|
* {y = 2.25, x = 5.125}
|
590
592
|
* @example Shorthand:
|
591
593
|
* {1.625, 2.375}
|
592
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
594
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#MapPosition Online documentation}
|
593
595
|
*/
|
594
596
|
export interface MapPosition {
|
595
597
|
readonly x: double
|
@@ -598,13 +600,13 @@ declare module "factorio:runtime" {
|
|
598
600
|
/**
|
599
601
|
* Array form of {@link MapPosition}.
|
600
602
|
* @see MapPosition
|
601
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
603
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#MapPosition Online documentation}
|
602
604
|
*/
|
603
605
|
export type MapPositionArray = readonly [x: double, y: double]
|
604
606
|
/**
|
605
607
|
* Coordinates of a chunk in a {@link LuaSurface} where each integer `x`/`y` represents a different chunk. This uses the same format as {@link MapPosition}, meaning it can be specified either with or without explicit keys. A {@link MapPosition} can be translated to a ChunkPosition by dividing the `x`/`y` values by 32.
|
606
608
|
* @see ChunkPositionArray
|
607
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
609
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#ChunkPosition Online documentation}
|
608
610
|
*/
|
609
611
|
export interface ChunkPosition {
|
610
612
|
readonly x: int
|
@@ -613,13 +615,13 @@ declare module "factorio:runtime" {
|
|
613
615
|
/**
|
614
616
|
* Array form of {@link ChunkPosition}.
|
615
617
|
* @see ChunkPosition
|
616
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
618
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#ChunkPosition Online documentation}
|
617
619
|
*/
|
618
620
|
export type ChunkPositionArray = readonly [x: int, y: int]
|
619
621
|
/**
|
620
622
|
* Coordinates of a tile on a {@link LuaSurface} where each integer `x`/`y` represents a different tile. This uses the same format as {@link MapPosition}, except it rounds any non-integer `x`/`y` down to whole numbers. It can be specified either with or without explicit keys.
|
621
623
|
* @see TilePositionArray
|
622
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
624
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#TilePosition Online documentation}
|
623
625
|
*/
|
624
626
|
export interface TilePosition {
|
625
627
|
readonly x: int
|
@@ -628,7 +630,7 @@ declare module "factorio:runtime" {
|
|
628
630
|
/**
|
629
631
|
* Array form of {@link TilePosition}.
|
630
632
|
* @see TilePosition
|
631
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
633
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#TilePosition Online documentation}
|
632
634
|
*/
|
633
635
|
export type TilePositionArray = readonly [x: int, y: int]
|
634
636
|
/**
|
@@ -639,7 +641,7 @@ declare module "factorio:runtime" {
|
|
639
641
|
* {y = 2, x = 5}
|
640
642
|
* @example Shorthand:
|
641
643
|
* {1, 2}
|
642
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
644
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#EquipmentPosition Online documentation}
|
643
645
|
*/
|
644
646
|
export interface EquipmentPosition {
|
645
647
|
readonly x: int
|
@@ -648,13 +650,13 @@ declare module "factorio:runtime" {
|
|
648
650
|
/**
|
649
651
|
* Array form of {@link EquipmentPosition}.
|
650
652
|
* @see EquipmentPosition
|
651
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
653
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#EquipmentPosition Online documentation}
|
652
654
|
*/
|
653
655
|
export type EquipmentPositionArray = readonly [x: int, y: int]
|
654
656
|
/**
|
655
657
|
* Screen coordinates of a GUI element in a {@link LuaGui}. This uses the same format as {@link TilePosition}, meaning it can be specified either with or without explicit keys.
|
656
658
|
* @see GuiLocationArray
|
657
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
659
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#GuiLocation Online documentation}
|
658
660
|
*/
|
659
661
|
export interface GuiLocation {
|
660
662
|
readonly x: int
|
@@ -663,12 +665,12 @@ declare module "factorio:runtime" {
|
|
663
665
|
/**
|
664
666
|
* Array form of {@link GuiLocation}.
|
665
667
|
* @see GuiLocation
|
666
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
668
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#GuiLocation Online documentation}
|
667
669
|
*/
|
668
670
|
export type GuiLocationArray = readonly [x: int, y: int]
|
669
671
|
/**
|
670
672
|
* A {@link ChunkPosition} with an added bounding box for the area of the chunk.
|
671
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
673
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#ChunkPositionAndArea Online documentation}
|
672
674
|
*/
|
673
675
|
export interface ChunkPositionAndArea {
|
674
676
|
readonly x: int
|
@@ -677,7 +679,7 @@ declare module "factorio:runtime" {
|
|
677
679
|
}
|
678
680
|
/**
|
679
681
|
* A table used to define a manual shape for a piece of equipment.
|
680
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
682
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#EquipmentPoint Online documentation}
|
681
683
|
*/
|
682
684
|
export interface EquipmentPoint {
|
683
685
|
readonly x: uint
|
@@ -713,12 +715,12 @@ declare module "factorio:runtime" {
|
|
713
715
|
* Note that the API returns tags as a simple table, meaning any modifications to it will not propagate back to the game. Thus, to modify a set of tags, the whole table needs to be written back to the respective property.
|
714
716
|
* @example
|
715
717
|
* {a = 1, b = true, c = "three", d = {e = "f"}}
|
716
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
718
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#Tags Online documentation}
|
717
719
|
*/
|
718
720
|
export type Tags = Record<string, AnyBasic>
|
719
721
|
/**
|
720
722
|
* @remarks The vectors for all 5 position attributes are a table with `x` and `y` keys instead of an array.
|
721
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
723
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#SmokeSource Online documentation}
|
722
724
|
*/
|
723
725
|
export interface SmokeSource {
|
724
726
|
readonly name: string
|
@@ -745,7 +747,7 @@ declare module "factorio:runtime" {
|
|
745
747
|
* A vector is a two-element array containing the `x` and `y` components. In some specific cases, the vector is a table with `x` and `y` keys instead, which the documentation will point out.
|
746
748
|
* @example
|
747
749
|
* right = {1.0, 0.0}
|
748
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
750
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#Vector Online documentation}
|
749
751
|
*/
|
750
752
|
export type Vector = MapPositionArray
|
751
753
|
/**
|
@@ -755,7 +757,7 @@ declare module "factorio:runtime" {
|
|
755
757
|
* {left_top = {x = -2, y = -3}, right_bottom = {x = 5, y = 8}}
|
756
758
|
* @example Shorthand:
|
757
759
|
* {{-2, -3}, {5, 8}}
|
758
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
760
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#BoundingBox Online documentation}
|
759
761
|
*/
|
760
762
|
export interface BoundingBox {
|
761
763
|
readonly left_top: MapPosition
|
@@ -773,7 +775,7 @@ declare module "factorio:runtime" {
|
|
773
775
|
/**
|
774
776
|
* Array form of {@link BoundingBox}.
|
775
777
|
* @see BoundingBox
|
776
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
778
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#BoundingBox Online documentation}
|
777
779
|
*/
|
778
780
|
export type BoundingBoxArray = readonly [
|
779
781
|
left_top: MapPosition | MapPositionArray,
|
@@ -783,7 +785,7 @@ declare module "factorio:runtime" {
|
|
783
785
|
/**
|
784
786
|
* An area defined using the map editor.
|
785
787
|
* @see ScriptAreaWrite
|
786
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
788
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#ScriptArea Online documentation}
|
787
789
|
*/
|
788
790
|
export interface ScriptArea {
|
789
791
|
readonly area: BoundingBox
|
@@ -793,7 +795,7 @@ declare module "factorio:runtime" {
|
|
793
795
|
}
|
794
796
|
/**
|
795
797
|
* Write form of {@link ScriptArea}, where table-or-array concepts are allowed to take an array form.
|
796
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
798
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#ScriptArea Online documentation}
|
797
799
|
*/
|
798
800
|
export interface ScriptAreaWrite {
|
799
801
|
readonly area: BoundingBoxWrite | BoundingBoxArray
|
@@ -804,7 +806,7 @@ declare module "factorio:runtime" {
|
|
804
806
|
/**
|
805
807
|
* A position defined using the map editor.
|
806
808
|
* @see ScriptPositionWrite
|
807
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
809
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#ScriptPosition Online documentation}
|
808
810
|
*/
|
809
811
|
export interface ScriptPosition {
|
810
812
|
readonly position: MapPosition
|
@@ -814,7 +816,7 @@ declare module "factorio:runtime" {
|
|
814
816
|
}
|
815
817
|
/**
|
816
818
|
* Write form of {@link ScriptPosition}, where table-or-array concepts are allowed to take an array form.
|
817
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
819
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#ScriptPosition Online documentation}
|
818
820
|
*/
|
819
821
|
export interface ScriptPositionWrite {
|
820
822
|
readonly position: MapPosition | MapPositionArray
|
@@ -832,7 +834,7 @@ declare module "factorio:runtime" {
|
|
832
834
|
* red2 = {r = 0.5, a = 0.5} -- Same color as red1
|
833
835
|
* black = {} -- All channels omitted: black
|
834
836
|
* red1_short = {0.5, 0, 0, 0.5} -- Same color as red1 in short-hand notation
|
835
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
837
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#Color Online documentation}
|
836
838
|
*/
|
837
839
|
export interface Color {
|
838
840
|
readonly r?: float
|
@@ -843,13 +845,13 @@ declare module "factorio:runtime" {
|
|
843
845
|
/**
|
844
846
|
* Array form of {@link Color}.
|
845
847
|
* @see Color
|
846
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
848
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#Color Online documentation}
|
847
849
|
*/
|
848
850
|
export type ColorArray = readonly [r: double, g: double, b: double, a?: double]
|
849
851
|
/**
|
850
852
|
* Same as {@link Color}, but red, green, blue and alpha values can be any floating point number, without any special handling of the range [1, 255].
|
851
853
|
* @see ColorModifierArray
|
852
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
854
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#ColorModifier Online documentation}
|
853
855
|
*/
|
854
856
|
export interface ColorModifier {
|
855
857
|
readonly r?: float
|
@@ -860,7 +862,7 @@ declare module "factorio:runtime" {
|
|
860
862
|
/**
|
861
863
|
* Array form of {@link ColorModifier}.
|
862
864
|
* @see ColorModifier
|
863
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
865
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#ColorModifier Online documentation}
|
864
866
|
*/
|
865
867
|
export type ColorModifierArray = readonly [r: double, g: double, b: double, a?: double]
|
866
868
|
export interface CraftingQueueItem {
|
@@ -900,7 +902,7 @@ declare module "factorio:runtime" {
|
|
900
902
|
}
|
901
903
|
/**
|
902
904
|
* One vertex of a ScriptRenderPolygon.
|
903
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
905
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#ScriptRenderVertexTarget Online documentation}
|
904
906
|
*/
|
905
907
|
export interface ScriptRenderVertexTarget {
|
906
908
|
readonly target: (MapPosition | MapPositionArray) | LuaEntity
|
@@ -966,7 +968,7 @@ declare module "factorio:runtime" {
|
|
966
968
|
}
|
967
969
|
/**
|
968
970
|
* @remarks Either `icon`, `text`, or both must be provided.
|
969
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
971
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#ChartTagSpec Online documentation}
|
970
972
|
*/
|
971
973
|
export interface ChartTagSpec {
|
972
974
|
readonly position: MapPosition | MapPositionArray
|
@@ -976,88 +978,88 @@ declare module "factorio:runtime" {
|
|
976
978
|
}
|
977
979
|
/**
|
978
980
|
* Parameters that affect the look and control of the game. Updating any of the member attributes here will immediately take effect in the game engine.
|
979
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
981
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#GameViewSettings Online documentation}
|
980
982
|
*/
|
981
983
|
export interface GameViewSettings {
|
982
984
|
/**
|
983
985
|
* Show the controller GUI elements. This includes the toolbar, the selected tool slot, the armour slot, and the gun and ammunition slots.
|
984
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
986
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#GameViewSettings.show_controller_gui Online documentation}
|
985
987
|
*/
|
986
988
|
show_controller_gui: boolean
|
987
989
|
/**
|
988
990
|
* Show the chart in the upper right-hand corner of the screen.
|
989
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
991
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#GameViewSettings.show_minimap Online documentation}
|
990
992
|
*/
|
991
993
|
show_minimap: boolean
|
992
994
|
/**
|
993
995
|
* Show research progress and name in the upper right-hand corner of the screen.
|
994
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
996
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#GameViewSettings.show_research_info Online documentation}
|
995
997
|
*/
|
996
998
|
show_research_info: boolean
|
997
999
|
/**
|
998
1000
|
* Show overlay icons on entities. Also known as "alt-mode".
|
999
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1001
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#GameViewSettings.show_entity_info Online documentation}
|
1000
1002
|
*/
|
1001
1003
|
show_entity_info: boolean
|
1002
1004
|
/**
|
1003
1005
|
* Show the flashing alert icons next to the player's toolbar.
|
1004
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1006
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#GameViewSettings.show_alert_gui Online documentation}
|
1005
1007
|
*/
|
1006
1008
|
show_alert_gui: boolean
|
1007
1009
|
/**
|
1008
1010
|
* When `true` (the default), mousing over an entity will select it. Otherwise, moving the mouse won't update entity selection.
|
1009
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1011
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#GameViewSettings.update_entity_selection Online documentation}
|
1010
1012
|
*/
|
1011
1013
|
update_entity_selection: boolean
|
1012
1014
|
/**
|
1013
1015
|
* When `true` (`false` is default), the rails will always show the rail block visualisation.
|
1014
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1016
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#GameViewSettings.show_rail_block_visualisation Online documentation}
|
1015
1017
|
*/
|
1016
1018
|
show_rail_block_visualisation: boolean
|
1017
1019
|
/**
|
1018
1020
|
* Shows or hides the buttons row.
|
1019
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1021
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#GameViewSettings.show_side_menu Online documentation}
|
1020
1022
|
*/
|
1021
1023
|
show_side_menu: boolean
|
1022
1024
|
/**
|
1023
1025
|
* Shows or hides the view options when map is opened.
|
1024
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1026
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#GameViewSettings.show_map_view_options Online documentation}
|
1025
1027
|
*/
|
1026
1028
|
show_map_view_options: boolean
|
1027
1029
|
/**
|
1028
1030
|
* Shows or hides the tooltip that is displayed when selecting an entity.
|
1029
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1031
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#GameViewSettings.show_entity_tooltip Online documentation}
|
1030
1032
|
*/
|
1031
1033
|
show_entity_tooltip: boolean
|
1032
1034
|
/**
|
1033
1035
|
* Shows or hides quickbar of shortcuts.
|
1034
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1036
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#GameViewSettings.show_quickbar Online documentation}
|
1035
1037
|
*/
|
1036
1038
|
show_quickbar: boolean
|
1037
1039
|
/**
|
1038
1040
|
* Shows or hides the shortcut bar.
|
1039
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1041
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#GameViewSettings.show_shortcut_bar Online documentation}
|
1040
1042
|
*/
|
1041
1043
|
show_shortcut_bar: boolean
|
1042
1044
|
/**
|
1043
1045
|
* Shows or hides the crafting queue.
|
1044
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1046
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#GameViewSettings.show_crafting_queue Online documentation}
|
1045
1047
|
*/
|
1046
1048
|
show_crafting_queue: boolean
|
1047
1049
|
/**
|
1048
1050
|
* Shows or hides the tool window with the weapons and armor.
|
1049
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1051
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#GameViewSettings.show_tool_bar Online documentation}
|
1050
1052
|
*/
|
1051
1053
|
show_tool_bar: boolean
|
1052
1054
|
/**
|
1053
1055
|
* Shows or hides the mouse and keyboard/controller button hints in the bottom left corner if they are enabled in the interface settings.
|
1054
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1056
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#GameViewSettings.show_hotkey_suggestions Online documentation}
|
1055
1057
|
*/
|
1056
1058
|
show_hotkey_suggestions: boolean
|
1057
1059
|
}
|
1058
1060
|
/**
|
1059
1061
|
* What is shown in the map view. If a field is not given, that setting will not be changed.
|
1060
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1062
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#MapViewSettings Online documentation}
|
1061
1063
|
*/
|
1062
1064
|
export interface MapViewSettings {
|
1063
1065
|
readonly "show-logistic-network"?: boolean
|
@@ -1071,7 +1073,7 @@ declare module "factorio:runtime" {
|
|
1071
1073
|
}
|
1072
1074
|
/**
|
1073
1075
|
* These values are for the time frame of one second (60 ticks).
|
1074
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1076
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#PollutionMapSettings Online documentation}
|
1075
1077
|
*/
|
1076
1078
|
export interface PollutionMapSettings {
|
1077
1079
|
/**
|
@@ -1125,7 +1127,7 @@ declare module "factorio:runtime" {
|
|
1125
1127
|
}
|
1126
1128
|
/**
|
1127
1129
|
* These values represent a percentual increase in evolution. This means a value of `0.1` would increase evolution by 10%.
|
1128
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1130
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#EnemyEvolutionMapSettings Online documentation}
|
1129
1131
|
*/
|
1130
1132
|
export interface EnemyEvolutionMapSettings {
|
1131
1133
|
/**
|
@@ -1165,7 +1167,7 @@ declare module "factorio:runtime" {
|
|
1165
1167
|
*
|
1166
1168
|
* score(chunk) = 1 / (1 + player + base)
|
1167
1169
|
* ```
|
1168
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1170
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#EnemyExpansionMapSettings Online documentation}
|
1169
1171
|
*/
|
1170
1172
|
export interface EnemyExpansionMapSettings {
|
1171
1173
|
/**
|
@@ -1426,7 +1428,7 @@ declare module "factorio:runtime" {
|
|
1426
1428
|
* Various game-related settings. Updating any of the attributes will immediately take effect in the game engine.
|
1427
1429
|
* @example Increase the number of short paths the pathfinder can cache.
|
1428
1430
|
* game.map_settings.path_finder.short_cache_size = 15
|
1429
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1431
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#MapSettings Online documentation}
|
1430
1432
|
*/
|
1431
1433
|
export interface MapSettings {
|
1432
1434
|
pollution: PollutionMapSettings
|
@@ -1437,31 +1439,31 @@ declare module "factorio:runtime" {
|
|
1437
1439
|
path_finder: PathFinderMapSettings
|
1438
1440
|
/**
|
1439
1441
|
* If a behavior fails this many times, the enemy (or enemy group) is destroyed. This solves biters getting stuck within their own base.
|
1440
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1442
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#MapSettings.max_failed_behavior_count Online documentation}
|
1441
1443
|
*/
|
1442
1444
|
max_failed_behavior_count: uint
|
1443
1445
|
}
|
1444
1446
|
/**
|
1445
1447
|
* Technology and recipe difficulty settings. Updating any of the attributes will immediately take effect in the game engine.
|
1446
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1448
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#DifficultySettings Online documentation}
|
1447
1449
|
*/
|
1448
1450
|
export interface DifficultySettings {
|
1449
1451
|
recipe_difficulty: defines.difficulty_settings.recipe_difficulty
|
1450
1452
|
technology_difficulty: defines.difficulty_settings.technology_difficulty
|
1451
1453
|
/**
|
1452
1454
|
* A value in range [0.001, 1000].
|
1453
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1455
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#DifficultySettings.technology_price_multiplier Online documentation}
|
1454
1456
|
*/
|
1455
1457
|
technology_price_multiplier: double
|
1456
1458
|
/**
|
1457
1459
|
* Changing this to `"always"` or `"after-victory"` does not automatically unlock the research queue. See {@link LuaForce#research_queue_enabled LuaForce::research_queue_enabled} for that.
|
1458
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1460
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#DifficultySettings.research_queue_setting Online documentation}
|
1459
1461
|
*/
|
1460
1462
|
research_queue_setting: "after-victory" | "always" | "never"
|
1461
1463
|
}
|
1462
1464
|
/**
|
1463
1465
|
* A standard table containing all {@link MapSettings} attributes plus an additional table that contains all {@link DifficultySettings} properties.
|
1464
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1466
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#MapAndDifficultySettings Online documentation}
|
1465
1467
|
*/
|
1466
1468
|
export interface MapAndDifficultySettings {
|
1467
1469
|
readonly pollution: PollutionMapSettings
|
@@ -1490,7 +1492,7 @@ declare module "factorio:runtime" {
|
|
1490
1492
|
}
|
1491
1493
|
/**
|
1492
1494
|
* The data that can be extracted from a map exchange string, as a plain table.
|
1493
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1495
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#MapExchangeStringData Online documentation}
|
1494
1496
|
*/
|
1495
1497
|
export interface MapExchangeStringData {
|
1496
1498
|
readonly map_settings: MapAndDifficultySettings
|
@@ -1509,7 +1511,7 @@ declare module "factorio:runtime" {
|
|
1509
1511
|
/**
|
1510
1512
|
* The representation of an entity inside of a blueprint. It has at least these fields, but can contain additional ones depending on the kind of entity.
|
1511
1513
|
* @see BlueprintEntityWrite
|
1512
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1514
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#BlueprintEntity Online documentation}
|
1513
1515
|
*/
|
1514
1516
|
export interface BlueprintEntity {
|
1515
1517
|
/**
|
@@ -1688,7 +1690,7 @@ declare module "factorio:runtime" {
|
|
1688
1690
|
}
|
1689
1691
|
/**
|
1690
1692
|
* Write form of {@link BlueprintEntity}, where table-or-array concepts are allowed to take an array form.
|
1691
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1693
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#BlueprintEntity Online documentation}
|
1692
1694
|
*/
|
1693
1695
|
export interface BlueprintEntityWrite {
|
1694
1696
|
/**
|
@@ -1776,7 +1778,7 @@ declare module "factorio:runtime" {
|
|
1776
1778
|
}
|
1777
1779
|
/**
|
1778
1780
|
* @see TileWrite
|
1779
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1781
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#Tile Online documentation}
|
1780
1782
|
*/
|
1781
1783
|
export interface Tile {
|
1782
1784
|
/**
|
@@ -1790,7 +1792,7 @@ declare module "factorio:runtime" {
|
|
1790
1792
|
}
|
1791
1793
|
/**
|
1792
1794
|
* Write form of {@link Tile}, where table-or-array concepts are allowed to take an array form.
|
1793
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1795
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#Tile Online documentation}
|
1794
1796
|
*/
|
1795
1797
|
export interface TileWrite {
|
1796
1798
|
/**
|
@@ -1859,7 +1861,7 @@ declare module "factorio:runtime" {
|
|
1859
1861
|
*
|
1860
1862
|
* Other attributes may be specified depending on `type`:
|
1861
1863
|
* - `"fluid"`: {@link FluidIngredient}
|
1862
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1864
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#Ingredient Online documentation}
|
1863
1865
|
*/
|
1864
1866
|
export type Ingredient = FluidIngredient | OtherIngredient
|
1865
1867
|
/**
|
@@ -1921,7 +1923,7 @@ declare module "factorio:runtime" {
|
|
1921
1923
|
* {type="fluid", name="petroleum-gas", amount=5.5}}
|
1922
1924
|
* @example What a custom recipe would look like that had a probability of 0.5 to return a minimum amount of 1 and a maximum amount of 5:
|
1923
1925
|
* {{type="item", name="custom-item", probability=0.5, amount_min=1, amount_max=5}}
|
1924
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1926
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#Product Online documentation}
|
1925
1927
|
*/
|
1926
1928
|
export type Product = FluidProduct | OtherProduct
|
1927
1929
|
export interface Loot {
|
@@ -2080,7 +2082,7 @@ declare module "factorio:runtime" {
|
|
2080
2082
|
* - `"unlock-recipe"`: {@link UnlockRecipeTechnologyModifier}
|
2081
2083
|
* - `"nothing"`: {@link NothingTechnologyModifier}
|
2082
2084
|
* - Other types: {@link OtherTechnologyModifier}
|
2083
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2085
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#TechnologyModifier Online documentation}
|
2084
2086
|
*/
|
2085
2087
|
export type TechnologyModifier =
|
2086
2088
|
| GunSpeedTechnologyModifier
|
@@ -2092,7 +2094,7 @@ declare module "factorio:runtime" {
|
|
2092
2094
|
| OtherTechnologyModifier
|
2093
2095
|
/**
|
2094
2096
|
* A single offer on a market entity.
|
2095
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2097
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#Offer Online documentation}
|
2096
2098
|
*/
|
2097
2099
|
export interface Offer {
|
2098
2100
|
/**
|
@@ -2106,7 +2108,7 @@ declare module "factorio:runtime" {
|
|
2106
2108
|
}
|
2107
2109
|
/**
|
2108
2110
|
* Specifies how probability and richness are calculated when placing something on the map. Can be specified either using `probability_expression` and `richness_expression` or by using all the other fields.
|
2109
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2111
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#AutoplaceSpecification Online documentation}
|
2110
2112
|
*/
|
2111
2113
|
export interface AutoplaceSpecification {
|
2112
2114
|
readonly probability_expression: NoiseExpression
|
@@ -2132,7 +2134,7 @@ declare module "factorio:runtime" {
|
|
2132
2134
|
}
|
2133
2135
|
/**
|
2134
2136
|
* A fragment of a functional program used to generate coherent noise, probably for purposes related to terrain generation. These can only be meaningfully written/modified during the data load phase. More detailed information is found on the {@link import("factorio:prototype").NamedNoiseExpression prototype docs}.
|
2135
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2137
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#NoiseExpression Online documentation}
|
2136
2138
|
*/
|
2137
2139
|
export interface NoiseExpression {
|
2138
2140
|
/**
|
@@ -2224,7 +2226,7 @@ declare module "factorio:runtime" {
|
|
2224
2226
|
* - `"very-big"`: equivalent to `2`.
|
2225
2227
|
* - `"very-good"`: equivalent to `2`.
|
2226
2228
|
* @remarks The map generation algorithm officially supports the range of values the in-game map generation screen shows (specifically `0` and values from `1/6` to `6`). Values outside this range are not guaranteed to work as expected.
|
2227
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2229
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#MapGenSize Online documentation}
|
2228
2230
|
*/
|
2229
2231
|
export type MapGenSize =
|
2230
2232
|
| float
|
@@ -2246,7 +2248,7 @@ declare module "factorio:runtime" {
|
|
2246
2248
|
| "very-good"
|
2247
2249
|
/**
|
2248
2250
|
* @see AutoplaceControlWrite
|
2249
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2251
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#AutoplaceControl Online documentation}
|
2250
2252
|
*/
|
2251
2253
|
export interface AutoplaceControl {
|
2252
2254
|
/**
|
@@ -2264,7 +2266,7 @@ declare module "factorio:runtime" {
|
|
2264
2266
|
}
|
2265
2267
|
/**
|
2266
2268
|
* Write form of {@link AutoplaceControl}, where table-or-array concepts are allowed to take an array form.
|
2267
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2269
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#AutoplaceControl Online documentation}
|
2268
2270
|
*/
|
2269
2271
|
export interface AutoplaceControlWrite {
|
2270
2272
|
/**
|
@@ -2282,7 +2284,7 @@ declare module "factorio:runtime" {
|
|
2282
2284
|
}
|
2283
2285
|
/**
|
2284
2286
|
* @see AutoplaceSettingsWrite
|
2285
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2287
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#AutoplaceSettings Online documentation}
|
2286
2288
|
*/
|
2287
2289
|
export interface AutoplaceSettings {
|
2288
2290
|
/**
|
@@ -2293,7 +2295,7 @@ declare module "factorio:runtime" {
|
|
2293
2295
|
}
|
2294
2296
|
/**
|
2295
2297
|
* Write form of {@link AutoplaceSettings}, where table-or-array concepts are allowed to take an array form.
|
2296
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2298
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#AutoplaceSettings Online documentation}
|
2297
2299
|
*/
|
2298
2300
|
export interface AutoplaceSettingsWrite {
|
2299
2301
|
/**
|
@@ -2304,7 +2306,7 @@ declare module "factorio:runtime" {
|
|
2304
2306
|
}
|
2305
2307
|
/**
|
2306
2308
|
* @see CliffPlacementSettingsWrite
|
2307
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2309
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#CliffPlacementSettings Online documentation}
|
2308
2310
|
*/
|
2309
2311
|
export interface CliffPlacementSettings {
|
2310
2312
|
/**
|
@@ -2326,7 +2328,7 @@ declare module "factorio:runtime" {
|
|
2326
2328
|
}
|
2327
2329
|
/**
|
2328
2330
|
* Write form of {@link CliffPlacementSettings}, where table-or-array concepts are allowed to take an array form.
|
2329
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2331
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#CliffPlacementSettings Online documentation}
|
2330
2332
|
*/
|
2331
2333
|
export interface CliffPlacementSettingsWrite {
|
2332
2334
|
/**
|
@@ -2359,7 +2361,7 @@ declare module "factorio:runtime" {
|
|
2359
2361
|
* local mgs = surface.map_gen_settings
|
2360
2362
|
* mgs.property_expression_names["tile:deepwater:probability"] = -1000
|
2361
2363
|
* surface.map_gen_settings = mgs
|
2362
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2364
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#MapGenSettings Online documentation}
|
2363
2365
|
*/
|
2364
2366
|
export interface MapGenSettings {
|
2365
2367
|
/**
|
@@ -2429,7 +2431,7 @@ declare module "factorio:runtime" {
|
|
2429
2431
|
}
|
2430
2432
|
/**
|
2431
2433
|
* Write form of {@link MapGenSettings}, where table-or-array concepts are allowed to take an array form.
|
2432
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2434
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#MapGenSettings Online documentation}
|
2433
2435
|
*/
|
2434
2436
|
export interface MapGenSettingsWrite {
|
2435
2437
|
/**
|
@@ -2524,7 +2526,7 @@ declare module "factorio:runtime" {
|
|
2524
2526
|
}
|
2525
2527
|
/**
|
2526
2528
|
* An actual signal transmitted by the network.
|
2527
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2529
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#Signal Online documentation}
|
2528
2530
|
*/
|
2529
2531
|
export interface Signal {
|
2530
2532
|
/**
|
@@ -2545,7 +2547,7 @@ declare module "factorio:runtime" {
|
|
2545
2547
|
}
|
2546
2548
|
/**
|
2547
2549
|
* A single filter used by an infinity-filters instance.
|
2548
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2550
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#InfinityInventoryFilter Online documentation}
|
2549
2551
|
*/
|
2550
2552
|
export interface InfinityInventoryFilter {
|
2551
2553
|
/**
|
@@ -2567,7 +2569,7 @@ declare module "factorio:runtime" {
|
|
2567
2569
|
}
|
2568
2570
|
/**
|
2569
2571
|
* A single filter used by an infinity-pipe type entity.
|
2570
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2572
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#InfinityPipeFilter Online documentation}
|
2571
2573
|
*/
|
2572
2574
|
export interface InfinityPipeFilter {
|
2573
2575
|
/**
|
@@ -2621,7 +2623,7 @@ declare module "factorio:runtime" {
|
|
2621
2623
|
}
|
2622
2624
|
/**
|
2623
2625
|
* The settings used by a heat-interface type entity.
|
2624
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2626
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#HeatSetting Online documentation}
|
2625
2627
|
*/
|
2626
2628
|
export interface HeatSetting {
|
2627
2629
|
/**
|
@@ -2639,7 +2641,7 @@ declare module "factorio:runtime" {
|
|
2639
2641
|
}
|
2640
2642
|
/**
|
2641
2643
|
* A definition of a fluidbox connection point.
|
2642
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2644
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#FluidBoxConnection Online documentation}
|
2643
2645
|
*/
|
2644
2646
|
export interface FluidBoxConnection {
|
2645
2647
|
readonly type: "input" | "output" | "input-output"
|
@@ -2654,7 +2656,7 @@ declare module "factorio:runtime" {
|
|
2654
2656
|
}
|
2655
2657
|
/**
|
2656
2658
|
* A single pipe connection for a given fluidbox.
|
2657
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2659
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#PipeConnection Online documentation}
|
2658
2660
|
*/
|
2659
2661
|
export interface PipeConnection {
|
2660
2662
|
readonly flow_direction: "input" | "output" | "input-output"
|
@@ -2734,14 +2736,14 @@ declare module "factorio:runtime" {
|
|
2734
2736
|
* - `"≠"`: "not equal to"
|
2735
2737
|
* - `"!="`: "not equal to"
|
2736
2738
|
* @remarks While the API accepts both versions for `"less/greater than or equal to"` and `"not equal"`, it'll always return `"≥"`, `"≤"` or `"≠"` respectively when reading them back.
|
2737
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2739
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#ComparatorString Online documentation}
|
2738
2740
|
*/
|
2739
2741
|
export type ComparatorString = "=" | ">" | "<" | "≥" | ">=" | "≤" | "<=" | "≠" | "!="
|
2740
2742
|
/** @see ComparatorString */
|
2741
2743
|
export type ComparatorStringRead = "=" | ">" | "<" | "≥" | "≤" | "≠"
|
2742
2744
|
/**
|
2743
2745
|
* @see DeciderCombinatorParametersWrite
|
2744
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2746
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#DeciderCombinatorParameters Online documentation}
|
2745
2747
|
*/
|
2746
2748
|
export interface DeciderCombinatorParameters {
|
2747
2749
|
/**
|
@@ -2771,7 +2773,7 @@ declare module "factorio:runtime" {
|
|
2771
2773
|
}
|
2772
2774
|
/**
|
2773
2775
|
* Write form of {@link DeciderCombinatorParameters}, where table-or-array concepts are allowed to take an array form.
|
2774
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2776
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#DeciderCombinatorParameters Online documentation}
|
2775
2777
|
*/
|
2776
2778
|
export interface DeciderCombinatorParametersWrite {
|
2777
2779
|
/**
|
@@ -2805,7 +2807,7 @@ declare module "factorio:runtime" {
|
|
2805
2807
|
}
|
2806
2808
|
/**
|
2807
2809
|
* @see CircuitConditionWrite
|
2808
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2810
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#CircuitCondition Online documentation}
|
2809
2811
|
*/
|
2810
2812
|
export interface CircuitCondition {
|
2811
2813
|
/**
|
@@ -2827,7 +2829,7 @@ declare module "factorio:runtime" {
|
|
2827
2829
|
}
|
2828
2830
|
/**
|
2829
2831
|
* Write form of {@link CircuitCondition}, where table-or-array concepts are allowed to take an array form.
|
2830
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2832
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#CircuitCondition Online documentation}
|
2831
2833
|
*/
|
2832
2834
|
export interface CircuitConditionWrite {
|
2833
2835
|
/**
|
@@ -2849,7 +2851,7 @@ declare module "factorio:runtime" {
|
|
2849
2851
|
}
|
2850
2852
|
/**
|
2851
2853
|
* @see CircuitConditionDefinitionWrite
|
2852
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2854
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#CircuitConditionDefinition Online documentation}
|
2853
2855
|
*/
|
2854
2856
|
export interface CircuitConditionDefinition {
|
2855
2857
|
readonly condition: CircuitCondition
|
@@ -2860,7 +2862,7 @@ declare module "factorio:runtime" {
|
|
2860
2862
|
}
|
2861
2863
|
/**
|
2862
2864
|
* Write form of {@link CircuitConditionDefinition}, where table-or-array concepts are allowed to take an array form.
|
2863
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2865
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#CircuitConditionDefinition Online documentation}
|
2864
2866
|
*/
|
2865
2867
|
export interface CircuitConditionDefinitionWrite {
|
2866
2868
|
readonly condition: CircuitConditionWrite
|
@@ -3176,7 +3178,7 @@ declare module "factorio:runtime" {
|
|
3176
3178
|
* - {@link defines.command.stop}: {@link StopCommand}
|
3177
3179
|
* - {@link defines.command.flee}: {@link FleeCommand}
|
3178
3180
|
* - {@link defines.command.build_base}: {@link BuildBaseCommand}
|
3179
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3181
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#Command Online documentation}
|
3180
3182
|
*/
|
3181
3183
|
export type Command =
|
3182
3184
|
| AttackCommand
|
@@ -3190,7 +3192,7 @@ declare module "factorio:runtime" {
|
|
3190
3192
|
| BuildBaseCommand
|
3191
3193
|
/**
|
3192
3194
|
* Write form of {@link Command}, where table-or-array concepts are allowed to take an array form.
|
3193
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3195
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#Command Online documentation}
|
3194
3196
|
*/
|
3195
3197
|
export type CommandWrite =
|
3196
3198
|
| AttackCommand
|
@@ -3286,7 +3288,7 @@ declare module "factorio:runtime" {
|
|
3286
3288
|
* {name="copper-plate", count=47}
|
3287
3289
|
* @example These are both full stacks of iron plates (for iron-plate, a full stack is 100 plates):
|
3288
3290
|
* "iron-plate"
|
3289
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3291
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#SimpleItemStack Online documentation}
|
3290
3292
|
*/
|
3291
3293
|
export type SimpleItemStack = string | ItemStackDefinition
|
3292
3294
|
/**
|
@@ -3296,7 +3298,7 @@ declare module "factorio:runtime" {
|
|
3296
3298
|
* - `string`: The fluid name.
|
3297
3299
|
* - {@link LuaFluidPrototype}: The fluid prototype.
|
3298
3300
|
* - {@link Fluid}: The fluid.
|
3299
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3301
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#FluidIdentification Online documentation}
|
3300
3302
|
*/
|
3301
3303
|
export type FluidIdentification = string | LuaFluidPrototype | Fluid
|
3302
3304
|
/**
|
@@ -3306,7 +3308,7 @@ declare module "factorio:runtime" {
|
|
3306
3308
|
* - ForceIndex: The force index.
|
3307
3309
|
* - `string`: The force name.
|
3308
3310
|
* - {@link LuaForce}: A reference to {@link LuaForce} may be passed directly.
|
3309
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3311
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#ForceIdentification Online documentation}
|
3310
3312
|
*/
|
3311
3313
|
export type ForceIdentification = ForceIndex | string | LuaForce
|
3312
3314
|
/**
|
@@ -3316,7 +3318,7 @@ declare module "factorio:runtime" {
|
|
3316
3318
|
* - `string`: The technology name.
|
3317
3319
|
* - {@link LuaTechnology}: A reference to {@link LuaTechnology} may be passed directly.
|
3318
3320
|
* - {@link LuaTechnologyPrototype}: A reference to {@link LuaTechnologyPrototype} may be passed directly.
|
3319
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3321
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#TechnologyIdentification Online documentation}
|
3320
3322
|
*/
|
3321
3323
|
export type TechnologyIdentification = string | LuaTechnology | LuaTechnologyPrototype
|
3322
3324
|
/**
|
@@ -3326,7 +3328,7 @@ declare module "factorio:runtime" {
|
|
3326
3328
|
* - SurfaceIndex: It will be the index of the surface. `nauvis` has index `1`, the first surface-created surface will have index `2` and so on.
|
3327
3329
|
* - `string`: It will be the surface name. E.g. `"nauvis"`.
|
3328
3330
|
* - {@link LuaSurface}: A reference to {@link LuaSurface} may be passed directly.
|
3329
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3331
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#SurfaceIdentification Online documentation}
|
3330
3332
|
*/
|
3331
3333
|
export type SurfaceIdentification = SurfaceIndex | string | LuaSurface
|
3332
3334
|
/**
|
@@ -3336,7 +3338,7 @@ declare module "factorio:runtime" {
|
|
3336
3338
|
* - PlayerIndex: The player index.
|
3337
3339
|
* - `string`: The player name.
|
3338
3340
|
* - {@link LuaPlayer}: A reference to {@link LuaPlayer} may be passed directly.
|
3339
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3341
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#PlayerIdentification Online documentation}
|
3340
3342
|
*/
|
3341
3343
|
export type PlayerIdentification = PlayerIndex | string | LuaPlayer
|
3342
3344
|
/**
|
@@ -3345,7 +3347,7 @@ declare module "factorio:runtime" {
|
|
3345
3347
|
* ## Union members
|
3346
3348
|
* - {@link SimpleItemStack}
|
3347
3349
|
* - {@link LuaItemStack}
|
3348
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3350
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#ItemStackIdentification Online documentation}
|
3349
3351
|
*/
|
3350
3352
|
export type ItemStackIdentification = SimpleItemStack | LuaItemStack
|
3351
3353
|
/**
|
@@ -3355,7 +3357,7 @@ declare module "factorio:runtime" {
|
|
3355
3357
|
* - {@link LuaEntity}: The entity.
|
3356
3358
|
* - {@link LuaEntityPrototype}: The entity prototype.
|
3357
3359
|
* - `string`: The prototype name.
|
3358
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3360
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#EntityPrototypeIdentification Online documentation}
|
3359
3361
|
*/
|
3360
3362
|
export type EntityPrototypeIdentification = LuaEntity | LuaEntityPrototype | string
|
3361
3363
|
/**
|
@@ -3365,7 +3367,7 @@ declare module "factorio:runtime" {
|
|
3365
3367
|
* - {@link LuaItemStack}: The item.
|
3366
3368
|
* - {@link LuaItemPrototype}: The item prototype.
|
3367
3369
|
* - `string`: The prototype name.
|
3368
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3370
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#ItemPrototypeIdentification Online documentation}
|
3369
3371
|
*/
|
3370
3372
|
export type ItemPrototypeIdentification = LuaItemStack | LuaItemPrototype | string
|
3371
3373
|
/**
|
@@ -3382,7 +3384,7 @@ declare module "factorio:runtime" {
|
|
3382
3384
|
* - `"fluid_count"`
|
3383
3385
|
* - `"passenger_present"`
|
3384
3386
|
* - `"passenger_not_present"`
|
3385
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3387
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#WaitConditionType Online documentation}
|
3386
3388
|
*/
|
3387
3389
|
export type WaitConditionType =
|
3388
3390
|
| "time"
|
@@ -3397,7 +3399,7 @@ declare module "factorio:runtime" {
|
|
3397
3399
|
| "passenger_not_present"
|
3398
3400
|
/**
|
3399
3401
|
* @see WaitConditionWrite
|
3400
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3402
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#WaitCondition Online documentation}
|
3401
3403
|
*/
|
3402
3404
|
export interface WaitCondition {
|
3403
3405
|
readonly type: WaitConditionType
|
@@ -3416,7 +3418,7 @@ declare module "factorio:runtime" {
|
|
3416
3418
|
}
|
3417
3419
|
/**
|
3418
3420
|
* Write form of {@link WaitCondition}, where table-or-array concepts are allowed to take an array form.
|
3419
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3421
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#WaitCondition Online documentation}
|
3420
3422
|
*/
|
3421
3423
|
export interface WaitConditionWrite {
|
3422
3424
|
readonly type: WaitConditionType
|
@@ -3435,7 +3437,7 @@ declare module "factorio:runtime" {
|
|
3435
3437
|
}
|
3436
3438
|
/**
|
3437
3439
|
* @see TrainScheduleRecordWrite
|
3438
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3440
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#TrainScheduleRecord Online documentation}
|
3439
3441
|
*/
|
3440
3442
|
export interface TrainScheduleRecord {
|
3441
3443
|
/**
|
@@ -3458,7 +3460,7 @@ declare module "factorio:runtime" {
|
|
3458
3460
|
}
|
3459
3461
|
/**
|
3460
3462
|
* Write form of {@link TrainScheduleRecord}, where table-or-array concepts are allowed to take an array form.
|
3461
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3463
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#TrainScheduleRecord Online documentation}
|
3462
3464
|
*/
|
3463
3465
|
export interface TrainScheduleRecordWrite {
|
3464
3466
|
/**
|
@@ -3481,7 +3483,7 @@ declare module "factorio:runtime" {
|
|
3481
3483
|
}
|
3482
3484
|
/**
|
3483
3485
|
* @see TrainScheduleWrite
|
3484
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3486
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#TrainSchedule Online documentation}
|
3485
3487
|
*/
|
3486
3488
|
export interface TrainSchedule {
|
3487
3489
|
/**
|
@@ -3492,7 +3494,7 @@ declare module "factorio:runtime" {
|
|
3492
3494
|
}
|
3493
3495
|
/**
|
3494
3496
|
* Write form of {@link TrainSchedule}, where table-or-array concepts are allowed to take an array form.
|
3495
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3497
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#TrainSchedule Online documentation}
|
3496
3498
|
*/
|
3497
3499
|
export interface TrainScheduleWrite {
|
3498
3500
|
/**
|
@@ -3508,7 +3510,7 @@ declare module "factorio:runtime" {
|
|
3508
3510
|
* - `"entity"`: Fires at an entity.
|
3509
3511
|
* - `"position"`: Fires directly at a position.
|
3510
3512
|
* - `"direction"`: Fires in a direction.
|
3511
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3513
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#TargetType Online documentation}
|
3512
3514
|
*/
|
3513
3515
|
export type TargetType = "entity" | "position" | "direction"
|
3514
3516
|
export interface AmmoType {
|
@@ -3575,7 +3577,7 @@ declare module "factorio:runtime" {
|
|
3575
3577
|
* - `"equipment"`
|
3576
3578
|
* - `"file"` - path to an image file located inside the current scenario. This file is not preloaded so it will be slower; for frequently used sprites, it is better to define sprite prototype and use it instead.
|
3577
3579
|
* - `"utility"` - sprite defined in the utility-sprites object, these are the pictures used by the game internally for the UI.
|
3578
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3580
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#SpritePath Online documentation}
|
3579
3581
|
*/
|
3580
3582
|
export type SpritePath =
|
3581
3583
|
| (string & {
|
@@ -3625,7 +3627,7 @@ declare module "factorio:runtime" {
|
|
3625
3627
|
* - `"entity-rotated"` - Uses {@link import("factorio:prototype").EntityPrototype#rotated_sound EntityPrototype::rotated_sound}
|
3626
3628
|
* - `"entity-open"` - Uses {@link import("factorio:prototype").EntityPrototype#open_sound Entity::open_sound}
|
3627
3629
|
* - `"entity-close"` - Uses {@link import("factorio:prototype").EntityPrototype#close_sound Entity::close_sound}
|
3628
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3630
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#SoundPath Online documentation}
|
3629
3631
|
*/
|
3630
3632
|
export type SoundPath =
|
3631
3633
|
| (string & {
|
@@ -3644,7 +3646,7 @@ declare module "factorio:runtime" {
|
|
3644
3646
|
* speed={bonus=-0.15},
|
3645
3647
|
* productivity={bonus=0.06},
|
3646
3648
|
* pollution={bonus=0.075}}
|
3647
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3649
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#ModuleEffects Online documentation}
|
3648
3650
|
*/
|
3649
3651
|
export interface ModuleEffects {
|
3650
3652
|
readonly consumption?: ModuleEffectValue
|
@@ -3656,7 +3658,7 @@ declare module "factorio:runtime" {
|
|
3656
3658
|
* A set of flags. Active flags are in the dictionary as `true`, while inactive flags aren't present at all.
|
3657
3659
|
*
|
3658
3660
|
* By default, none of these flags are set.
|
3659
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3661
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#EntityPrototypeFlags Online documentation}
|
3660
3662
|
*/
|
3661
3663
|
export type EntityPrototypeFlags = {
|
3662
3664
|
readonly [T in EntityPrototypeFlag]?: true
|
@@ -3691,7 +3693,7 @@ declare module "factorio:runtime" {
|
|
3691
3693
|
* - `"not-upgradable"`: Prevents the entity from being selected by the upgrade planner.
|
3692
3694
|
* - `"not-in-kill-statistics"`: Prevents the entity from being shown in the kill statistics.
|
3693
3695
|
* - `"not-in-made-in"`: Prevents the entity from being shown in the "made in" list in recipe tooltips.
|
3694
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3696
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#EntityPrototypeFlag Online documentation}
|
3695
3697
|
*/
|
3696
3698
|
export type EntityPrototypeFlag =
|
3697
3699
|
| "not-rotatable"
|
@@ -3724,7 +3726,7 @@ declare module "factorio:runtime" {
|
|
3724
3726
|
* A set of flags. Active flags are in the dictionary as `true`, while inactive flags aren't present at all.
|
3725
3727
|
*
|
3726
3728
|
* By default, none of these flags are set.
|
3727
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3729
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#ItemPrototypeFlags Online documentation}
|
3728
3730
|
*/
|
3729
3731
|
export type ItemPrototypeFlags = {
|
3730
3732
|
readonly [T in ItemPrototypeFlag]?: true
|
@@ -3744,7 +3746,7 @@ declare module "factorio:runtime" {
|
|
3744
3746
|
* - `"mod-openable"`: Allows the item to be opened by the player, firing the `on_mod_item_opened` event. Only has an effect for selection tool items.
|
3745
3747
|
* - `"only-in-cursor"`: Makes it so the item is deleted when clearing the cursor, instead of being put into the player's inventory. The copy-paste tools use this by default, for example.
|
3746
3748
|
* - `"spawnable"`: Allows the item to be spawned by a quickbar shortcut or custom input.
|
3747
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3749
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#ItemPrototypeFlag Online documentation}
|
3748
3750
|
*/
|
3749
3751
|
export type ItemPrototypeFlag =
|
3750
3752
|
| "draw-logistic-overlay"
|
@@ -3777,7 +3779,7 @@ declare module "factorio:runtime" {
|
|
3777
3779
|
* - `"rail-layer"`
|
3778
3780
|
* - `"transport-belt-layer"`
|
3779
3781
|
* - `"not-setup"`
|
3780
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3782
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#CollisionMaskLayer Online documentation}
|
3781
3783
|
*/
|
3782
3784
|
export type CollisionMaskLayer =
|
3783
3785
|
| "ground-tile"
|
@@ -3796,7 +3798,7 @@ declare module "factorio:runtime" {
|
|
3796
3798
|
| `layer-${bigint}`
|
3797
3799
|
/**
|
3798
3800
|
* A set of flags. Active flags are in the dictionary as `true`, while inactive flags aren't present at all.
|
3799
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3801
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#CollisionMask Online documentation}
|
3800
3802
|
*/
|
3801
3803
|
export type CollisionMask = {
|
3802
3804
|
readonly [T in CollisionMaskLayer]?: true
|
@@ -3809,7 +3811,7 @@ declare module "factorio:runtime" {
|
|
3809
3811
|
* - `"not-colliding-with-itself"`: Any two entities that both have this option enabled on their prototype and have an identical collision mask layers list will not collide. Other collision mask options are not included in the identical layer list check. This does mean that two different prototypes with the same collision mask layers and this option enabled will not collide.
|
3810
3812
|
* - `"consider-tile-transitions"`: Uses the prototypes position rather than its collision box when doing collision checks with tile prototypes. Allows the prototype to overlap colliding tiles up until its center point. This is only respected for character movement and cars driven by players.
|
3811
3813
|
* - `"colliding-with-tiles-only"`: Any prototype with this collision option will only be checked for collision with other prototype's collision masks if they are a tile.
|
3812
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3814
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#CollisionMaskWithFlags Online documentation}
|
3813
3815
|
*/
|
3814
3816
|
export type CollisionMaskWithFlags = {
|
3815
3817
|
/**
|
@@ -3829,7 +3831,7 @@ declare module "factorio:runtime" {
|
|
3829
3831
|
}
|
3830
3832
|
/**
|
3831
3833
|
* A set of trigger target masks.
|
3832
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3834
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#TriggerTargetMask Online documentation}
|
3833
3835
|
*/
|
3834
3836
|
export type TriggerTargetMask = Record<string, boolean>
|
3835
3837
|
export interface CircularParticleCreationSpecification {
|
@@ -3964,7 +3966,7 @@ declare module "factorio:runtime" {
|
|
3964
3966
|
* Other attributes may be specified depending on `type`:
|
3965
3967
|
* - `"projectile"`: {@link ProjectileAttackParameters}
|
3966
3968
|
* - `"stream"`: {@link StreamAttackParameters}
|
3967
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3969
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#AttackParameters Online documentation}
|
3968
3970
|
*/
|
3969
3971
|
export type AttackParameters = ProjectileAttackParameters | StreamAttackParameters | OtherAttackParameters
|
3970
3972
|
export interface GunShift4Way {
|
@@ -4030,7 +4032,7 @@ declare module "factorio:runtime" {
|
|
4030
4032
|
* - `"use-on-self"`: {@link UseOnSelfCapsuleAction}
|
4031
4033
|
* - `"artillery-remote"`: {@link ArtilleryRemoteCapsuleAction}
|
4032
4034
|
* - `"destroy-cliffs"`: {@link DestroyCliffsCapsuleAction}
|
4033
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4035
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#CapsuleAction Online documentation}
|
4034
4036
|
*/
|
4035
4037
|
export type CapsuleAction =
|
4036
4038
|
| ThrowCapsuleAction
|
@@ -4066,7 +4068,7 @@ declare module "factorio:runtime" {
|
|
4066
4068
|
* - `"avoid-rolling-stock"`: Selects entities that are not `rolling-stock`s.
|
4067
4069
|
* - `"entity-ghost"`: Selects entities that are `entity-ghost`s.
|
4068
4070
|
* - `"tile-ghost"`: Selects entities that are `tile-ghost`s.
|
4069
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4071
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#SelectionModeFlags Online documentation}
|
4070
4072
|
*/
|
4071
4073
|
export interface SelectionModeFlags {
|
4072
4074
|
/**
|
@@ -4215,12 +4217,12 @@ declare module "factorio:runtime" {
|
|
4215
4217
|
}
|
4216
4218
|
/**
|
4217
4219
|
* Any basic type (string, number, boolean) or table.
|
4218
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4220
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#AnyBasic Online documentation}
|
4219
4221
|
*/
|
4220
4222
|
export type AnyBasic = string | boolean | number | table
|
4221
4223
|
/**
|
4222
4224
|
* Any basic type (string, number, boolean), table, or LuaObject.
|
4223
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4225
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#Any Online documentation}
|
4224
4226
|
*/
|
4225
4227
|
export type Any = string | boolean | number | table | LuaObject
|
4226
4228
|
export interface ProgrammableSpeakerParameters {
|
@@ -4258,7 +4260,7 @@ declare module "factorio:runtime" {
|
|
4258
4260
|
* - `"top-right"`
|
4259
4261
|
* - `"right"`: The same as `"middle-right"`
|
4260
4262
|
* - `"bottom-right"`
|
4261
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4263
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#Alignment Online documentation}
|
4262
4264
|
*/
|
4263
4265
|
export type Alignment =
|
4264
4266
|
| "top-left"
|
@@ -4273,8 +4275,8 @@ declare module "factorio:runtime" {
|
|
4273
4275
|
| "right"
|
4274
4276
|
| "bottom-right"
|
4275
4277
|
/**
|
4276
|
-
* Information about the event that has been raised. The table can also contain other fields depending on the type of event. See {@linkplain https://lua-api.factorio.com/1.1.
|
4277
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4278
|
+
* 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.104/events.html the list of Factorio events} for more information on these.
|
4279
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#EventData Online documentation}
|
4278
4280
|
*/
|
4279
4281
|
export interface EventData {
|
4280
4282
|
/**
|
@@ -4384,7 +4386,7 @@ declare module "factorio:runtime" {
|
|
4384
4386
|
* - `"button-7"`
|
4385
4387
|
* - `"button-8"`
|
4386
4388
|
* - `"button-9"`
|
4387
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4389
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#MouseButtonFlags Online documentation}
|
4388
4390
|
*/
|
4389
4391
|
export interface MouseButtonFlags {
|
4390
4392
|
readonly left?: true
|
@@ -4408,7 +4410,7 @@ declare module "factorio:runtime" {
|
|
4408
4410
|
* - `"not-friend"`: Forces which are not friends pass.
|
4409
4411
|
* - `"same"`: The same force pass.
|
4410
4412
|
* - `"not-same"`: The non-same forces pass.
|
4411
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4413
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#ForceCondition Online documentation}
|
4412
4414
|
*/
|
4413
4415
|
export type ForceCondition = "all" | "enemy" | "ally" | "friend" | "not-friend" | "same" | "not-same"
|
4414
4416
|
/**
|
@@ -4459,7 +4461,7 @@ declare module "factorio:runtime" {
|
|
4459
4461
|
* - `"collision-selection-box"`: 189
|
4460
4462
|
* - `"arrow"`: 190
|
4461
4463
|
* - `"cursor"`: 210
|
4462
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4464
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#RenderLayer Online documentation}
|
4463
4465
|
*/
|
4464
4466
|
export type RenderLayer =
|
4465
4467
|
| `${bigint}`
|
@@ -4525,7 +4527,7 @@ declare module "factorio:runtime" {
|
|
4525
4527
|
* - `"walking"`
|
4526
4528
|
* - `"alert"`
|
4527
4529
|
* - `"wind"`
|
4528
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4530
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#SoundType Online documentation}
|
4529
4531
|
*/
|
4530
4532
|
export type SoundType = "game-effect" | "gui-effect" | "ambient" | "environment" | "walking" | "alert" | "wind"
|
4531
4533
|
/**
|
@@ -4555,7 +4557,7 @@ declare module "factorio:runtime" {
|
|
4555
4557
|
* - `"tabbed-pane"`: A collection of `tab`s and their contents. Relevant event: {@link OnGuiSelectedTabChangedEvent on_gui_selected_tab_changed}
|
4556
4558
|
* - `"tab"`: A tab for use in a `tabbed-pane`.
|
4557
4559
|
* - `"switch"`: A switch with three possible states. Can have labels attached to either side. Relevant event: {@link OnGuiSwitchStateChangedEvent on_gui_switch_state_changed}
|
4558
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4560
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#GuiElementType Online documentation}
|
4559
4561
|
*/
|
4560
4562
|
export type GuiElementType =
|
4561
4563
|
| "button"
|
@@ -4595,7 +4597,7 @@ declare module "factorio:runtime" {
|
|
4595
4597
|
* - `"position"`
|
4596
4598
|
* - `"crafting_queue"`
|
4597
4599
|
* - `"item_stack"`: Will point to a given item stack in an inventory.
|
4598
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4600
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#GuiArrowType Online documentation}
|
4599
4601
|
*/
|
4600
4602
|
export type GuiArrowType =
|
4601
4603
|
| "nowhere"
|
@@ -4616,7 +4618,7 @@ declare module "factorio:runtime" {
|
|
4616
4618
|
* ## Union members
|
4617
4619
|
* - `"horizontal"`
|
4618
4620
|
* - `"vertical"`
|
4619
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4621
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#GuiDirection Online documentation}
|
4620
4622
|
*/
|
4621
4623
|
export type GuiDirection = "horizontal" | "vertical"
|
4622
4624
|
/**
|
@@ -4628,7 +4630,7 @@ declare module "factorio:runtime" {
|
|
4628
4630
|
* - `"always"`
|
4629
4631
|
* - `"auto"`
|
4630
4632
|
* - `"auto-and-reserve-space"`
|
4631
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4633
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#ScrollPolicy Online documentation}
|
4632
4634
|
*/
|
4633
4635
|
export type ScrollPolicy = "never" | "dont-show-but-allow-scrolling" | "always" | "auto" | "auto-and-reserve-space"
|
4634
4636
|
/**
|
@@ -4646,7 +4648,7 @@ declare module "factorio:runtime" {
|
|
4646
4648
|
* - TechnologyPrototypeFilter: for type `"technology"`
|
4647
4649
|
* @see PrototypeFilterWrite
|
4648
4650
|
* @remarks Filters are always used as an array of filters of a specific type. Every filter can only be used with its corresponding event, and different types of event filters can not be mixed.
|
4649
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4651
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#PrototypeFilter Online documentation}
|
4650
4652
|
*/
|
4651
4653
|
export type PrototypeFilter = (
|
4652
4654
|
| ItemPrototypeFilter
|
@@ -4661,7 +4663,7 @@ declare module "factorio:runtime" {
|
|
4661
4663
|
)[]
|
4662
4664
|
/**
|
4663
4665
|
* Write form of {@link PrototypeFilter}, where table-or-array concepts are allowed to take an array form.
|
4664
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4666
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#PrototypeFilter Online documentation}
|
4665
4667
|
*/
|
4666
4668
|
export type PrototypeFilterWrite = readonly (
|
4667
4669
|
| ItemPrototypeFilterWrite
|
@@ -5004,7 +5006,7 @@ declare module "factorio:runtime" {
|
|
5004
5006
|
* - `"fuel-acceleration-multiplier"`: {@link FuelAccelerationMultiplierItemPrototypeFilter}
|
5005
5007
|
* - `"fuel-top-speed-multiplier"`: {@link FuelTopSpeedMultiplierItemPrototypeFilter}
|
5006
5008
|
* - `"fuel-emissions-multiplier"`: {@link FuelEmissionsMultiplierItemPrototypeFilter}
|
5007
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
5009
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#ItemPrototypeFilter Online documentation}
|
5008
5010
|
*/
|
5009
5011
|
export type ItemPrototypeFilter =
|
5010
5012
|
| PlaceResultItemPrototypeFilter
|
@@ -5026,7 +5028,7 @@ declare module "factorio:runtime" {
|
|
5026
5028
|
| OtherItemPrototypeFilter
|
5027
5029
|
/**
|
5028
5030
|
* Write form of {@link ItemPrototypeFilter}, where table-or-array concepts are allowed to take an array form.
|
5029
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
5031
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#ItemPrototypeFilter Online documentation}
|
5030
5032
|
*/
|
5031
5033
|
export type ItemPrototypeFilterWrite =
|
5032
5034
|
| PlaceResultItemPrototypeFilterWrite
|
@@ -5102,7 +5104,7 @@ declare module "factorio:runtime" {
|
|
5102
5104
|
* - `"type"`: {@link TypeModSettingPrototypeFilter}
|
5103
5105
|
* - `"mod"`: {@link ModModSettingPrototypeFilter}
|
5104
5106
|
* - `"setting-type"`: {@link SettingTypeModSettingPrototypeFilter}
|
5105
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
5107
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#ModSettingPrototypeFilter Online documentation}
|
5106
5108
|
*/
|
5107
5109
|
export type ModSettingPrototypeFilter =
|
5108
5110
|
| TypeModSettingPrototypeFilter
|
@@ -5230,7 +5232,7 @@ declare module "factorio:runtime" {
|
|
5230
5232
|
* - `"level"`: {@link LevelTechnologyPrototypeFilter}
|
5231
5233
|
* - `"max-level"`: {@link MaxLevelTechnologyPrototypeFilter}
|
5232
5234
|
* - `"time"`: {@link TimeTechnologyPrototypeFilter}
|
5233
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
5235
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#TechnologyPrototypeFilter Online documentation}
|
5234
5236
|
*/
|
5235
5237
|
export type TechnologyPrototypeFilter =
|
5236
5238
|
| ResearchUnitIngredientTechnologyPrototypeFilter
|
@@ -5241,7 +5243,7 @@ declare module "factorio:runtime" {
|
|
5241
5243
|
| OtherTechnologyPrototypeFilter
|
5242
5244
|
/**
|
5243
5245
|
* Write form of {@link TechnologyPrototypeFilter}, where table-or-array concepts are allowed to take an array form.
|
5244
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
5246
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#TechnologyPrototypeFilter Online documentation}
|
5245
5247
|
*/
|
5246
5248
|
export type TechnologyPrototypeFilterWrite =
|
5247
5249
|
| ResearchUnitIngredientTechnologyPrototypeFilter
|
@@ -5291,7 +5293,7 @@ declare module "factorio:runtime" {
|
|
5291
5293
|
*
|
5292
5294
|
* Other attributes may be specified depending on `filter`:
|
5293
5295
|
* - `"collision-mask"`: {@link CollisionMaskDecorativePrototypeFilter}
|
5294
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
5296
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#DecorativePrototypeFilter Online documentation}
|
5295
5297
|
*/
|
5296
5298
|
export type DecorativePrototypeFilter = CollisionMaskDecorativePrototypeFilter | OtherDecorativePrototypeFilter
|
5297
5299
|
/**
|
@@ -5334,7 +5336,7 @@ declare module "factorio:runtime" {
|
|
5334
5336
|
*
|
5335
5337
|
* Other attributes may be specified depending on `filter`:
|
5336
5338
|
* - `"type"`: {@link TypeAchievementPrototypeFilter}
|
5337
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
5339
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#AchievementPrototypeFilter Online documentation}
|
5338
5340
|
*/
|
5339
5341
|
export type AchievementPrototypeFilter = TypeAchievementPrototypeFilter | OtherAchievementPrototypeFilter
|
5340
5342
|
/**
|
@@ -5519,7 +5521,7 @@ declare module "factorio:runtime" {
|
|
5519
5521
|
* - `"fuel-value"`: {@link FuelValueFluidPrototypeFilter}
|
5520
5522
|
* - `"emissions-multiplier"`: {@link EmissionsMultiplierFluidPrototypeFilter}
|
5521
5523
|
* - `"gas-temperature"`: {@link GasTemperatureFluidPrototypeFilter}
|
5522
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
5524
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#FluidPrototypeFilter Online documentation}
|
5523
5525
|
*/
|
5524
5526
|
export type FluidPrototypeFilter =
|
5525
5527
|
| NameFluidPrototypeFilter
|
@@ -5533,7 +5535,7 @@ declare module "factorio:runtime" {
|
|
5533
5535
|
| OtherFluidPrototypeFilter
|
5534
5536
|
/**
|
5535
5537
|
* Write form of {@link FluidPrototypeFilter}, where table-or-array concepts are allowed to take an array form.
|
5536
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
5538
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#FluidPrototypeFilter Online documentation}
|
5537
5539
|
*/
|
5538
5540
|
export type FluidPrototypeFilterWrite =
|
5539
5541
|
| NameFluidPrototypeFilter
|
@@ -5585,7 +5587,7 @@ declare module "factorio:runtime" {
|
|
5585
5587
|
*
|
5586
5588
|
* Other attributes may be specified depending on `filter`:
|
5587
5589
|
* - `"type"`: {@link TypeEquipmentPrototypeFilter}
|
5588
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
5590
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#EquipmentPrototypeFilter Online documentation}
|
5589
5591
|
*/
|
5590
5592
|
export type EquipmentPrototypeFilter = TypeEquipmentPrototypeFilter | OtherEquipmentPrototypeFilter
|
5591
5593
|
/**
|
@@ -5718,7 +5720,7 @@ declare module "factorio:runtime" {
|
|
5718
5720
|
* - `"vehicle-friction-modifier"`: {@link VehicleFrictionModifierTilePrototypeFilter}
|
5719
5721
|
* - `"decorative-removal-probability"`: {@link DecorativeRemovalProbabilityTilePrototypeFilter}
|
5720
5722
|
* - `"emissions"`: {@link EmissionsTilePrototypeFilter}
|
5721
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
5723
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#TilePrototypeFilter Online documentation}
|
5722
5724
|
*/
|
5723
5725
|
export type TilePrototypeFilter =
|
5724
5726
|
| CollisionMaskTilePrototypeFilter
|
@@ -5729,7 +5731,7 @@ declare module "factorio:runtime" {
|
|
5729
5731
|
| OtherTilePrototypeFilter
|
5730
5732
|
/**
|
5731
5733
|
* Write form of {@link TilePrototypeFilter}, where table-or-array concepts are allowed to take an array form.
|
5732
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
5734
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#TilePrototypeFilter Online documentation}
|
5733
5735
|
*/
|
5734
5736
|
export type TilePrototypeFilterWrite =
|
5735
5737
|
| CollisionMaskTilePrototypeFilter
|
@@ -5993,7 +5995,7 @@ declare module "factorio:runtime" {
|
|
5993
5995
|
* - `"emissions-multiplier"`: {@link EmissionsMultiplierRecipePrototypeFilter}
|
5994
5996
|
* - `"request-paste-multiplier"`: {@link RequestPasteMultiplierRecipePrototypeFilter}
|
5995
5997
|
* - `"overload-multiplier"`: {@link OverloadMultiplierRecipePrototypeFilter}
|
5996
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
5998
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#RecipePrototypeFilter Online documentation}
|
5997
5999
|
*/
|
5998
6000
|
export type RecipePrototypeFilter =
|
5999
6001
|
| HasIngredientItemRecipePrototypeFilter
|
@@ -6009,7 +6011,7 @@ declare module "factorio:runtime" {
|
|
6009
6011
|
| OtherRecipePrototypeFilter
|
6010
6012
|
/**
|
6011
6013
|
* Write form of {@link RecipePrototypeFilter}, where table-or-array concepts are allowed to take an array form.
|
6012
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
6014
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#RecipePrototypeFilter Online documentation}
|
6013
6015
|
*/
|
6014
6016
|
export type RecipePrototypeFilterWrite =
|
6015
6017
|
| HasIngredientItemRecipePrototypeFilterWrite
|
@@ -6240,7 +6242,7 @@ declare module "factorio:runtime" {
|
|
6240
6242
|
* - `"selection-priority"`: {@link SelectionPriorityEntityPrototypeFilter}
|
6241
6243
|
* - `"emissions"`: {@link EmissionsEntityPrototypeFilter}
|
6242
6244
|
* - `"crafting-category"`: {@link CraftingCategoryEntityPrototypeFilter}
|
6243
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
6245
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#EntityPrototypeFilter Online documentation}
|
6244
6246
|
*/
|
6245
6247
|
export type EntityPrototypeFilter =
|
6246
6248
|
| NameEntityPrototypeFilter
|
@@ -6254,7 +6256,7 @@ declare module "factorio:runtime" {
|
|
6254
6256
|
| OtherEntityPrototypeFilter
|
6255
6257
|
/**
|
6256
6258
|
* Write form of {@link EntityPrototypeFilter}, where table-or-array concepts are allowed to take an array form.
|
6257
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
6259
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#EntityPrototypeFilter Online documentation}
|
6258
6260
|
*/
|
6259
6261
|
export type EntityPrototypeFilterWrite =
|
6260
6262
|
| NameEntityPrototypeFilter
|
@@ -6293,7 +6295,7 @@ declare module "factorio:runtime" {
|
|
6293
6295
|
* - {@link LuaPlayerRepairedEntityEventFilter}
|
6294
6296
|
* @see EventFilterWrite
|
6295
6297
|
* @remarks Filters are always used as an array of filters of a specific type. Every filter can only be used with its corresponding event, and different types of event filters can not be mixed.
|
6296
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
6298
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#EventFilter Online documentation}
|
6297
6299
|
*/
|
6298
6300
|
export type EventFilter = (
|
6299
6301
|
| LuaEntityClonedEventFilter
|
@@ -6320,7 +6322,7 @@ declare module "factorio:runtime" {
|
|
6320
6322
|
)[]
|
6321
6323
|
/**
|
6322
6324
|
* Write form of {@link EventFilter}, where table-or-array concepts are allowed to take an array form.
|
6323
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
6325
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#EventFilter Online documentation}
|
6324
6326
|
*/
|
6325
6327
|
export type EventFilterWrite = readonly (
|
6326
6328
|
| LuaEntityClonedEventFilter
|
@@ -6385,7 +6387,7 @@ declare module "factorio:runtime" {
|
|
6385
6387
|
/**
|
6386
6388
|
* The prototype type
|
6387
6389
|
*/
|
6388
|
-
readonly type:
|
6390
|
+
readonly type: EntityType
|
6389
6391
|
}
|
6390
6392
|
/**
|
6391
6393
|
* `"name"` variant of {@link LuaScriptRaisedReviveEventFilter}.
|
@@ -6405,7 +6407,7 @@ declare module "factorio:runtime" {
|
|
6405
6407
|
/**
|
6406
6408
|
* The ghost prototype type
|
6407
6409
|
*/
|
6408
|
-
readonly type:
|
6410
|
+
readonly type: EntityType
|
6409
6411
|
}
|
6410
6412
|
/**
|
6411
6413
|
* `"ghost_name"` variant of {@link LuaScriptRaisedReviveEventFilter}.
|
@@ -6444,7 +6446,7 @@ declare module "factorio:runtime" {
|
|
6444
6446
|
* - `"name"`: {@link NameScriptRaisedReviveEventFilter}
|
6445
6447
|
* - `"ghost_type"`: {@link GhostTypeScriptRaisedReviveEventFilter}
|
6446
6448
|
* - `"ghost_name"`: {@link GhostNameScriptRaisedReviveEventFilter}
|
6447
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
6449
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#LuaScriptRaisedReviveEventFilter Online documentation}
|
6448
6450
|
*/
|
6449
6451
|
export type LuaScriptRaisedReviveEventFilter =
|
6450
6452
|
| TypeScriptRaisedReviveEventFilter
|
@@ -6492,7 +6494,7 @@ declare module "factorio:runtime" {
|
|
6492
6494
|
/**
|
6493
6495
|
* The prototype type
|
6494
6496
|
*/
|
6495
|
-
readonly type:
|
6497
|
+
readonly type: EntityType
|
6496
6498
|
}
|
6497
6499
|
/**
|
6498
6500
|
* `"name"` variant of {@link LuaEntityDiedEventFilter}.
|
@@ -6512,7 +6514,7 @@ declare module "factorio:runtime" {
|
|
6512
6514
|
/**
|
6513
6515
|
* The ghost prototype type
|
6514
6516
|
*/
|
6515
|
-
readonly type:
|
6517
|
+
readonly type: EntityType
|
6516
6518
|
}
|
6517
6519
|
/**
|
6518
6520
|
* `"ghost_name"` variant of {@link LuaEntityDiedEventFilter}.
|
@@ -6551,7 +6553,7 @@ declare module "factorio:runtime" {
|
|
6551
6553
|
* - `"name"`: {@link NameEntityDiedEventFilter}
|
6552
6554
|
* - `"ghost_type"`: {@link GhostTypeEntityDiedEventFilter}
|
6553
6555
|
* - `"ghost_name"`: {@link GhostNameEntityDiedEventFilter}
|
6554
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
6556
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#LuaEntityDiedEventFilter Online documentation}
|
6555
6557
|
*/
|
6556
6558
|
export type LuaEntityDiedEventFilter =
|
6557
6559
|
| TypeEntityDiedEventFilter
|
@@ -6599,7 +6601,7 @@ declare module "factorio:runtime" {
|
|
6599
6601
|
/**
|
6600
6602
|
* The prototype type
|
6601
6603
|
*/
|
6602
|
-
readonly type:
|
6604
|
+
readonly type: EntityType
|
6603
6605
|
}
|
6604
6606
|
/**
|
6605
6607
|
* `"name"` variant of {@link LuaEntityMarkedForDeconstructionEventFilter}.
|
@@ -6620,7 +6622,7 @@ declare module "factorio:runtime" {
|
|
6620
6622
|
/**
|
6621
6623
|
* The ghost prototype type
|
6622
6624
|
*/
|
6623
|
-
readonly type:
|
6625
|
+
readonly type: EntityType
|
6624
6626
|
}
|
6625
6627
|
/**
|
6626
6628
|
* `"ghost_name"` variant of {@link LuaEntityMarkedForDeconstructionEventFilter}.
|
@@ -6660,7 +6662,7 @@ declare module "factorio:runtime" {
|
|
6660
6662
|
* - `"name"`: {@link NameEntityMarkedForDeconstructionEventFilter}
|
6661
6663
|
* - `"ghost_type"`: {@link GhostTypeEntityMarkedForDeconstructionEventFilter}
|
6662
6664
|
* - `"ghost_name"`: {@link GhostNameEntityMarkedForDeconstructionEventFilter}
|
6663
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
6665
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#LuaEntityMarkedForDeconstructionEventFilter Online documentation}
|
6664
6666
|
*/
|
6665
6667
|
export type LuaEntityMarkedForDeconstructionEventFilter =
|
6666
6668
|
| TypeEntityMarkedForDeconstructionEventFilter
|
@@ -6708,7 +6710,7 @@ declare module "factorio:runtime" {
|
|
6708
6710
|
/**
|
6709
6711
|
* The prototype type
|
6710
6712
|
*/
|
6711
|
-
readonly type:
|
6713
|
+
readonly type: EntityType
|
6712
6714
|
}
|
6713
6715
|
/**
|
6714
6716
|
* `"name"` variant of {@link LuaPreGhostDeconstructedEventFilter}.
|
@@ -6728,7 +6730,7 @@ declare module "factorio:runtime" {
|
|
6728
6730
|
/**
|
6729
6731
|
* The ghost prototype type
|
6730
6732
|
*/
|
6731
|
-
readonly type:
|
6733
|
+
readonly type: EntityType
|
6732
6734
|
}
|
6733
6735
|
/**
|
6734
6736
|
* `"ghost_name"` variant of {@link LuaPreGhostDeconstructedEventFilter}.
|
@@ -6767,7 +6769,7 @@ declare module "factorio:runtime" {
|
|
6767
6769
|
* - `"name"`: {@link NamePreGhostDeconstructedEventFilter}
|
6768
6770
|
* - `"ghost_type"`: {@link GhostTypePreGhostDeconstructedEventFilter}
|
6769
6771
|
* - `"ghost_name"`: {@link GhostNamePreGhostDeconstructedEventFilter}
|
6770
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
6772
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#LuaPreGhostDeconstructedEventFilter Online documentation}
|
6771
6773
|
*/
|
6772
6774
|
export type LuaPreGhostDeconstructedEventFilter =
|
6773
6775
|
| TypePreGhostDeconstructedEventFilter
|
@@ -6815,7 +6817,7 @@ declare module "factorio:runtime" {
|
|
6815
6817
|
/**
|
6816
6818
|
* The prototype type
|
6817
6819
|
*/
|
6818
|
-
readonly type:
|
6820
|
+
readonly type: EntityType
|
6819
6821
|
}
|
6820
6822
|
/**
|
6821
6823
|
* `"name"` variant of {@link LuaScriptRaisedDestroyEventFilter}.
|
@@ -6835,7 +6837,7 @@ declare module "factorio:runtime" {
|
|
6835
6837
|
/**
|
6836
6838
|
* The ghost prototype type
|
6837
6839
|
*/
|
6838
|
-
readonly type:
|
6840
|
+
readonly type: EntityType
|
6839
6841
|
}
|
6840
6842
|
/**
|
6841
6843
|
* `"ghost_name"` variant of {@link LuaScriptRaisedDestroyEventFilter}.
|
@@ -6874,7 +6876,7 @@ declare module "factorio:runtime" {
|
|
6874
6876
|
* - `"name"`: {@link NameScriptRaisedDestroyEventFilter}
|
6875
6877
|
* - `"ghost_type"`: {@link GhostTypeScriptRaisedDestroyEventFilter}
|
6876
6878
|
* - `"ghost_name"`: {@link GhostNameScriptRaisedDestroyEventFilter}
|
6877
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
6879
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#LuaScriptRaisedDestroyEventFilter Online documentation}
|
6878
6880
|
*/
|
6879
6881
|
export type LuaScriptRaisedDestroyEventFilter =
|
6880
6882
|
| TypeScriptRaisedDestroyEventFilter
|
@@ -6922,7 +6924,7 @@ declare module "factorio:runtime" {
|
|
6922
6924
|
/**
|
6923
6925
|
* The prototype type
|
6924
6926
|
*/
|
6925
|
-
readonly type:
|
6927
|
+
readonly type: EntityType
|
6926
6928
|
}
|
6927
6929
|
/**
|
6928
6930
|
* `"name"` variant of {@link LuaUpgradeCancelledEventFilter}.
|
@@ -6942,7 +6944,7 @@ declare module "factorio:runtime" {
|
|
6942
6944
|
/**
|
6943
6945
|
* The ghost prototype type
|
6944
6946
|
*/
|
6945
|
-
readonly type:
|
6947
|
+
readonly type: EntityType
|
6946
6948
|
}
|
6947
6949
|
/**
|
6948
6950
|
* `"ghost_name"` variant of {@link LuaUpgradeCancelledEventFilter}.
|
@@ -6981,7 +6983,7 @@ declare module "factorio:runtime" {
|
|
6981
6983
|
* - `"name"`: {@link NameUpgradeCancelledEventFilter}
|
6982
6984
|
* - `"ghost_type"`: {@link GhostTypeUpgradeCancelledEventFilter}
|
6983
6985
|
* - `"ghost_name"`: {@link GhostNameUpgradeCancelledEventFilter}
|
6984
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
6986
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#LuaUpgradeCancelledEventFilter Online documentation}
|
6985
6987
|
*/
|
6986
6988
|
export type LuaUpgradeCancelledEventFilter =
|
6987
6989
|
| TypeUpgradeCancelledEventFilter
|
@@ -7029,7 +7031,7 @@ declare module "factorio:runtime" {
|
|
7029
7031
|
/**
|
7030
7032
|
* The prototype type
|
7031
7033
|
*/
|
7032
|
-
readonly type:
|
7034
|
+
readonly type: EntityType
|
7033
7035
|
}
|
7034
7036
|
/**
|
7035
7037
|
* `"name"` variant of {@link LuaPlayerRepairedEntityEventFilter}.
|
@@ -7049,7 +7051,7 @@ declare module "factorio:runtime" {
|
|
7049
7051
|
/**
|
7050
7052
|
* The ghost prototype type
|
7051
7053
|
*/
|
7052
|
-
readonly type:
|
7054
|
+
readonly type: EntityType
|
7053
7055
|
}
|
7054
7056
|
/**
|
7055
7057
|
* `"ghost_name"` variant of {@link LuaPlayerRepairedEntityEventFilter}.
|
@@ -7088,7 +7090,7 @@ declare module "factorio:runtime" {
|
|
7088
7090
|
* - `"name"`: {@link NamePlayerRepairedEntityEventFilter}
|
7089
7091
|
* - `"ghost_type"`: {@link GhostTypePlayerRepairedEntityEventFilter}
|
7090
7092
|
* - `"ghost_name"`: {@link GhostNamePlayerRepairedEntityEventFilter}
|
7091
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
7093
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#LuaPlayerRepairedEntityEventFilter Online documentation}
|
7092
7094
|
*/
|
7093
7095
|
export type LuaPlayerRepairedEntityEventFilter =
|
7094
7096
|
| TypePlayerRepairedEntityEventFilter
|
@@ -7136,7 +7138,7 @@ declare module "factorio:runtime" {
|
|
7136
7138
|
/**
|
7137
7139
|
* The prototype type
|
7138
7140
|
*/
|
7139
|
-
readonly type:
|
7141
|
+
readonly type: EntityType
|
7140
7142
|
}
|
7141
7143
|
/**
|
7142
7144
|
* `"name"` variant of {@link LuaScriptRaisedTeleportedEventFilter}.
|
@@ -7156,7 +7158,7 @@ declare module "factorio:runtime" {
|
|
7156
7158
|
/**
|
7157
7159
|
* The ghost prototype type
|
7158
7160
|
*/
|
7159
|
-
readonly type:
|
7161
|
+
readonly type: EntityType
|
7160
7162
|
}
|
7161
7163
|
/**
|
7162
7164
|
* `"ghost_name"` variant of {@link LuaScriptRaisedTeleportedEventFilter}.
|
@@ -7195,7 +7197,7 @@ declare module "factorio:runtime" {
|
|
7195
7197
|
* - `"name"`: {@link NameScriptRaisedTeleportedEventFilter}
|
7196
7198
|
* - `"ghost_type"`: {@link GhostTypeScriptRaisedTeleportedEventFilter}
|
7197
7199
|
* - `"ghost_name"`: {@link GhostNameScriptRaisedTeleportedEventFilter}
|
7198
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
7200
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#LuaScriptRaisedTeleportedEventFilter Online documentation}
|
7199
7201
|
*/
|
7200
7202
|
export type LuaScriptRaisedTeleportedEventFilter =
|
7201
7203
|
| TypeScriptRaisedTeleportedEventFilter
|
@@ -7243,7 +7245,7 @@ declare module "factorio:runtime" {
|
|
7243
7245
|
/**
|
7244
7246
|
* The prototype type
|
7245
7247
|
*/
|
7246
|
-
readonly type:
|
7248
|
+
readonly type: EntityType
|
7247
7249
|
}
|
7248
7250
|
/**
|
7249
7251
|
* `"name"` variant of {@link LuaEntityMarkedForUpgradeEventFilter}.
|
@@ -7263,7 +7265,7 @@ declare module "factorio:runtime" {
|
|
7263
7265
|
/**
|
7264
7266
|
* The ghost prototype type
|
7265
7267
|
*/
|
7266
|
-
readonly type:
|
7268
|
+
readonly type: EntityType
|
7267
7269
|
}
|
7268
7270
|
/**
|
7269
7271
|
* `"ghost_name"` variant of {@link LuaEntityMarkedForUpgradeEventFilter}.
|
@@ -7302,7 +7304,7 @@ declare module "factorio:runtime" {
|
|
7302
7304
|
* - `"name"`: {@link NameEntityMarkedForUpgradeEventFilter}
|
7303
7305
|
* - `"ghost_type"`: {@link GhostTypeEntityMarkedForUpgradeEventFilter}
|
7304
7306
|
* - `"ghost_name"`: {@link GhostNameEntityMarkedForUpgradeEventFilter}
|
7305
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
7307
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#LuaEntityMarkedForUpgradeEventFilter Online documentation}
|
7306
7308
|
*/
|
7307
7309
|
export type LuaEntityMarkedForUpgradeEventFilter =
|
7308
7310
|
| TypeEntityMarkedForUpgradeEventFilter
|
@@ -7335,7 +7337,7 @@ declare module "factorio:runtime" {
|
|
7335
7337
|
/**
|
7336
7338
|
* The prototype type
|
7337
7339
|
*/
|
7338
|
-
readonly type:
|
7340
|
+
readonly type: EntityType
|
7339
7341
|
}
|
7340
7342
|
/**
|
7341
7343
|
* Depending on the value of `filter`, the table may take additional fields. `filter` may be one of the following:
|
@@ -7344,7 +7346,7 @@ declare module "factorio:runtime" {
|
|
7344
7346
|
*
|
7345
7347
|
* Other attributes may be specified depending on `filter`:
|
7346
7348
|
* - `"type"`: {@link TypePostEntityDiedEventFilter}
|
7347
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
7349
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#LuaPostEntityDiedEventFilter Online documentation}
|
7348
7350
|
*/
|
7349
7351
|
export type LuaPostEntityDiedEventFilter = TypePostEntityDiedEventFilter
|
7350
7352
|
/**
|
@@ -7387,7 +7389,7 @@ declare module "factorio:runtime" {
|
|
7387
7389
|
/**
|
7388
7390
|
* The prototype type
|
7389
7391
|
*/
|
7390
|
-
readonly type:
|
7392
|
+
readonly type: EntityType
|
7391
7393
|
}
|
7392
7394
|
/**
|
7393
7395
|
* `"name"` variant of {@link LuaPreRobotMinedEntityEventFilter}.
|
@@ -7407,7 +7409,7 @@ declare module "factorio:runtime" {
|
|
7407
7409
|
/**
|
7408
7410
|
* The ghost prototype type
|
7409
7411
|
*/
|
7410
|
-
readonly type:
|
7412
|
+
readonly type: EntityType
|
7411
7413
|
}
|
7412
7414
|
/**
|
7413
7415
|
* `"ghost_name"` variant of {@link LuaPreRobotMinedEntityEventFilter}.
|
@@ -7446,7 +7448,7 @@ declare module "factorio:runtime" {
|
|
7446
7448
|
* - `"name"`: {@link NamePreRobotMinedEntityEventFilter}
|
7447
7449
|
* - `"ghost_type"`: {@link GhostTypePreRobotMinedEntityEventFilter}
|
7448
7450
|
* - `"ghost_name"`: {@link GhostNamePreRobotMinedEntityEventFilter}
|
7449
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
7451
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#LuaPreRobotMinedEntityEventFilter Online documentation}
|
7450
7452
|
*/
|
7451
7453
|
export type LuaPreRobotMinedEntityEventFilter =
|
7452
7454
|
| TypePreRobotMinedEntityEventFilter
|
@@ -7494,7 +7496,7 @@ declare module "factorio:runtime" {
|
|
7494
7496
|
/**
|
7495
7497
|
* The prototype type
|
7496
7498
|
*/
|
7497
|
-
readonly type:
|
7499
|
+
readonly type: EntityType
|
7498
7500
|
}
|
7499
7501
|
/**
|
7500
7502
|
* `"name"` variant of {@link LuaEntityClonedEventFilter}.
|
@@ -7514,7 +7516,7 @@ declare module "factorio:runtime" {
|
|
7514
7516
|
/**
|
7515
7517
|
* The ghost prototype type
|
7516
7518
|
*/
|
7517
|
-
readonly type:
|
7519
|
+
readonly type: EntityType
|
7518
7520
|
}
|
7519
7521
|
/**
|
7520
7522
|
* `"ghost_name"` variant of {@link LuaEntityClonedEventFilter}.
|
@@ -7553,7 +7555,7 @@ declare module "factorio:runtime" {
|
|
7553
7555
|
* - `"name"`: {@link NameEntityClonedEventFilter}
|
7554
7556
|
* - `"ghost_type"`: {@link GhostTypeEntityClonedEventFilter}
|
7555
7557
|
* - `"ghost_name"`: {@link GhostNameEntityClonedEventFilter}
|
7556
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
7558
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#LuaEntityClonedEventFilter Online documentation}
|
7557
7559
|
*/
|
7558
7560
|
export type LuaEntityClonedEventFilter =
|
7559
7561
|
| TypeEntityClonedEventFilter
|
@@ -7601,7 +7603,7 @@ declare module "factorio:runtime" {
|
|
7601
7603
|
/**
|
7602
7604
|
* The prototype type
|
7603
7605
|
*/
|
7604
|
-
readonly type:
|
7606
|
+
readonly type: EntityType
|
7605
7607
|
}
|
7606
7608
|
/**
|
7607
7609
|
* `"name"` variant of {@link LuaScriptRaisedBuiltEventFilter}.
|
@@ -7621,7 +7623,7 @@ declare module "factorio:runtime" {
|
|
7621
7623
|
/**
|
7622
7624
|
* The ghost prototype type
|
7623
7625
|
*/
|
7624
|
-
readonly type:
|
7626
|
+
readonly type: EntityType
|
7625
7627
|
}
|
7626
7628
|
/**
|
7627
7629
|
* `"ghost_name"` variant of {@link LuaScriptRaisedBuiltEventFilter}.
|
@@ -7660,7 +7662,7 @@ declare module "factorio:runtime" {
|
|
7660
7662
|
* - `"name"`: {@link NameScriptRaisedBuiltEventFilter}
|
7661
7663
|
* - `"ghost_type"`: {@link GhostTypeScriptRaisedBuiltEventFilter}
|
7662
7664
|
* - `"ghost_name"`: {@link GhostNameScriptRaisedBuiltEventFilter}
|
7663
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
7665
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#LuaScriptRaisedBuiltEventFilter Online documentation}
|
7664
7666
|
*/
|
7665
7667
|
export type LuaScriptRaisedBuiltEventFilter =
|
7666
7668
|
| TypeScriptRaisedBuiltEventFilter
|
@@ -7708,7 +7710,7 @@ declare module "factorio:runtime" {
|
|
7708
7710
|
/**
|
7709
7711
|
* The prototype type
|
7710
7712
|
*/
|
7711
|
-
readonly type:
|
7713
|
+
readonly type: EntityType
|
7712
7714
|
}
|
7713
7715
|
/**
|
7714
7716
|
* `"name"` variant of {@link LuaRobotMinedEntityEventFilter}.
|
@@ -7728,7 +7730,7 @@ declare module "factorio:runtime" {
|
|
7728
7730
|
/**
|
7729
7731
|
* The ghost prototype type
|
7730
7732
|
*/
|
7731
|
-
readonly type:
|
7733
|
+
readonly type: EntityType
|
7732
7734
|
}
|
7733
7735
|
/**
|
7734
7736
|
* `"ghost_name"` variant of {@link LuaRobotMinedEntityEventFilter}.
|
@@ -7767,7 +7769,7 @@ declare module "factorio:runtime" {
|
|
7767
7769
|
* - `"name"`: {@link NameRobotMinedEntityEventFilter}
|
7768
7770
|
* - `"ghost_type"`: {@link GhostTypeRobotMinedEntityEventFilter}
|
7769
7771
|
* - `"ghost_name"`: {@link GhostNameRobotMinedEntityEventFilter}
|
7770
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
7772
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#LuaRobotMinedEntityEventFilter Online documentation}
|
7771
7773
|
*/
|
7772
7774
|
export type LuaRobotMinedEntityEventFilter =
|
7773
7775
|
| TypeRobotMinedEntityEventFilter
|
@@ -7815,7 +7817,7 @@ declare module "factorio:runtime" {
|
|
7815
7817
|
/**
|
7816
7818
|
* The prototype type
|
7817
7819
|
*/
|
7818
|
-
readonly type:
|
7820
|
+
readonly type: EntityType
|
7819
7821
|
}
|
7820
7822
|
/**
|
7821
7823
|
* `"name"` variant of {@link LuaPrePlayerMinedEntityEventFilter}.
|
@@ -7835,7 +7837,7 @@ declare module "factorio:runtime" {
|
|
7835
7837
|
/**
|
7836
7838
|
* The ghost prototype type
|
7837
7839
|
*/
|
7838
|
-
readonly type:
|
7840
|
+
readonly type: EntityType
|
7839
7841
|
}
|
7840
7842
|
/**
|
7841
7843
|
* `"ghost_name"` variant of {@link LuaPrePlayerMinedEntityEventFilter}.
|
@@ -7874,7 +7876,7 @@ declare module "factorio:runtime" {
|
|
7874
7876
|
* - `"name"`: {@link NamePrePlayerMinedEntityEventFilter}
|
7875
7877
|
* - `"ghost_type"`: {@link GhostTypePrePlayerMinedEntityEventFilter}
|
7876
7878
|
* - `"ghost_name"`: {@link GhostNamePrePlayerMinedEntityEventFilter}
|
7877
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
7879
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#LuaPrePlayerMinedEntityEventFilter Online documentation}
|
7878
7880
|
*/
|
7879
7881
|
export type LuaPrePlayerMinedEntityEventFilter =
|
7880
7882
|
| TypePrePlayerMinedEntityEventFilter
|
@@ -7923,7 +7925,7 @@ declare module "factorio:runtime" {
|
|
7923
7925
|
/**
|
7924
7926
|
* The prototype type
|
7925
7927
|
*/
|
7926
|
-
readonly type:
|
7928
|
+
readonly type: EntityType
|
7927
7929
|
}
|
7928
7930
|
/**
|
7929
7931
|
* `"name"` variant of {@link LuaRobotBuiltEntityEventFilter}.
|
@@ -7943,7 +7945,7 @@ declare module "factorio:runtime" {
|
|
7943
7945
|
/**
|
7944
7946
|
* The ghost prototype type
|
7945
7947
|
*/
|
7946
|
-
readonly type:
|
7948
|
+
readonly type: EntityType
|
7947
7949
|
}
|
7948
7950
|
/**
|
7949
7951
|
* `"ghost_name"` variant of {@link LuaRobotBuiltEntityEventFilter}.
|
@@ -7993,7 +7995,7 @@ declare module "factorio:runtime" {
|
|
7993
7995
|
* - `"ghost_type"`: {@link GhostTypeRobotBuiltEntityEventFilter}
|
7994
7996
|
* - `"ghost_name"`: {@link GhostNameRobotBuiltEntityEventFilter}
|
7995
7997
|
* - `"force"`: {@link ForceRobotBuiltEntityEventFilter}
|
7996
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
7998
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#LuaRobotBuiltEntityEventFilter Online documentation}
|
7997
7999
|
*/
|
7998
8000
|
export type LuaRobotBuiltEntityEventFilter =
|
7999
8001
|
| TypeRobotBuiltEntityEventFilter
|
@@ -8042,7 +8044,7 @@ declare module "factorio:runtime" {
|
|
8042
8044
|
/**
|
8043
8045
|
* The prototype type
|
8044
8046
|
*/
|
8045
|
-
readonly type:
|
8047
|
+
readonly type: EntityType
|
8046
8048
|
}
|
8047
8049
|
/**
|
8048
8050
|
* `"name"` variant of {@link LuaPreGhostUpgradedEventFilter}.
|
@@ -8062,7 +8064,7 @@ declare module "factorio:runtime" {
|
|
8062
8064
|
/**
|
8063
8065
|
* The ghost prototype type
|
8064
8066
|
*/
|
8065
|
-
readonly type:
|
8067
|
+
readonly type: EntityType
|
8066
8068
|
}
|
8067
8069
|
/**
|
8068
8070
|
* `"ghost_name"` variant of {@link LuaPreGhostUpgradedEventFilter}.
|
@@ -8101,7 +8103,7 @@ declare module "factorio:runtime" {
|
|
8101
8103
|
* - `"name"`: {@link NamePreGhostUpgradedEventFilter}
|
8102
8104
|
* - `"ghost_type"`: {@link GhostTypePreGhostUpgradedEventFilter}
|
8103
8105
|
* - `"ghost_name"`: {@link GhostNamePreGhostUpgradedEventFilter}
|
8104
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
8106
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#LuaPreGhostUpgradedEventFilter Online documentation}
|
8105
8107
|
*/
|
8106
8108
|
export type LuaPreGhostUpgradedEventFilter =
|
8107
8109
|
| TypePreGhostUpgradedEventFilter
|
@@ -8149,7 +8151,7 @@ declare module "factorio:runtime" {
|
|
8149
8151
|
/**
|
8150
8152
|
* The prototype type
|
8151
8153
|
*/
|
8152
|
-
readonly type:
|
8154
|
+
readonly type: EntityType
|
8153
8155
|
}
|
8154
8156
|
/**
|
8155
8157
|
* `"name"` variant of {@link LuaEntityDeconstructionCancelledEventFilter}.
|
@@ -8170,7 +8172,7 @@ declare module "factorio:runtime" {
|
|
8170
8172
|
/**
|
8171
8173
|
* The ghost prototype type
|
8172
8174
|
*/
|
8173
|
-
readonly type:
|
8175
|
+
readonly type: EntityType
|
8174
8176
|
}
|
8175
8177
|
/**
|
8176
8178
|
* `"ghost_name"` variant of {@link LuaEntityDeconstructionCancelledEventFilter}.
|
@@ -8210,7 +8212,7 @@ declare module "factorio:runtime" {
|
|
8210
8212
|
* - `"name"`: {@link NameEntityDeconstructionCancelledEventFilter}
|
8211
8213
|
* - `"ghost_type"`: {@link GhostTypeEntityDeconstructionCancelledEventFilter}
|
8212
8214
|
* - `"ghost_name"`: {@link GhostNameEntityDeconstructionCancelledEventFilter}
|
8213
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
8215
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#LuaEntityDeconstructionCancelledEventFilter Online documentation}
|
8214
8216
|
*/
|
8215
8217
|
export type LuaEntityDeconstructionCancelledEventFilter =
|
8216
8218
|
| TypeEntityDeconstructionCancelledEventFilter
|
@@ -8259,7 +8261,7 @@ declare module "factorio:runtime" {
|
|
8259
8261
|
/**
|
8260
8262
|
* The prototype type
|
8261
8263
|
*/
|
8262
|
-
readonly type:
|
8264
|
+
readonly type: EntityType
|
8263
8265
|
}
|
8264
8266
|
/**
|
8265
8267
|
* `"name"` variant of {@link LuaPlayerBuiltEntityEventFilter}.
|
@@ -8279,7 +8281,7 @@ declare module "factorio:runtime" {
|
|
8279
8281
|
/**
|
8280
8282
|
* The ghost prototype type
|
8281
8283
|
*/
|
8282
|
-
readonly type:
|
8284
|
+
readonly type: EntityType
|
8283
8285
|
}
|
8284
8286
|
/**
|
8285
8287
|
* `"ghost_name"` variant of {@link LuaPlayerBuiltEntityEventFilter}.
|
@@ -8329,7 +8331,7 @@ declare module "factorio:runtime" {
|
|
8329
8331
|
* - `"ghost_type"`: {@link GhostTypePlayerBuiltEntityEventFilter}
|
8330
8332
|
* - `"ghost_name"`: {@link GhostNamePlayerBuiltEntityEventFilter}
|
8331
8333
|
* - `"force"`: {@link ForcePlayerBuiltEntityEventFilter}
|
8332
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
8334
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#LuaPlayerBuiltEntityEventFilter Online documentation}
|
8333
8335
|
*/
|
8334
8336
|
export type LuaPlayerBuiltEntityEventFilter =
|
8335
8337
|
| TypePlayerBuiltEntityEventFilter
|
@@ -8378,7 +8380,7 @@ declare module "factorio:runtime" {
|
|
8378
8380
|
/**
|
8379
8381
|
* The prototype type
|
8380
8382
|
*/
|
8381
|
-
readonly type:
|
8383
|
+
readonly type: EntityType
|
8382
8384
|
}
|
8383
8385
|
/**
|
8384
8386
|
* `"name"` variant of {@link LuaPlayerMinedEntityEventFilter}.
|
@@ -8398,7 +8400,7 @@ declare module "factorio:runtime" {
|
|
8398
8400
|
/**
|
8399
8401
|
* The ghost prototype type
|
8400
8402
|
*/
|
8401
|
-
readonly type:
|
8403
|
+
readonly type: EntityType
|
8402
8404
|
}
|
8403
8405
|
/**
|
8404
8406
|
* `"ghost_name"` variant of {@link LuaPlayerMinedEntityEventFilter}.
|
@@ -8437,7 +8439,7 @@ declare module "factorio:runtime" {
|
|
8437
8439
|
* - `"name"`: {@link NamePlayerMinedEntityEventFilter}
|
8438
8440
|
* - `"ghost_type"`: {@link GhostTypePlayerMinedEntityEventFilter}
|
8439
8441
|
* - `"ghost_name"`: {@link GhostNamePlayerMinedEntityEventFilter}
|
8440
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
8442
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#LuaPlayerMinedEntityEventFilter Online documentation}
|
8441
8443
|
*/
|
8442
8444
|
export type LuaPlayerMinedEntityEventFilter =
|
8443
8445
|
| TypePlayerMinedEntityEventFilter
|
@@ -8489,7 +8491,7 @@ declare module "factorio:runtime" {
|
|
8489
8491
|
/**
|
8490
8492
|
* The prototype type
|
8491
8493
|
*/
|
8492
|
-
readonly type:
|
8494
|
+
readonly type: EntityType
|
8493
8495
|
}
|
8494
8496
|
/**
|
8495
8497
|
* `"name"` variant of {@link LuaEntityDamagedEventFilter}.
|
@@ -8509,7 +8511,7 @@ declare module "factorio:runtime" {
|
|
8509
8511
|
/**
|
8510
8512
|
* The ghost prototype type
|
8511
8513
|
*/
|
8512
|
-
readonly type:
|
8514
|
+
readonly type: EntityType
|
8513
8515
|
}
|
8514
8516
|
/**
|
8515
8517
|
* `"ghost_name"` variant of {@link LuaEntityDamagedEventFilter}.
|
@@ -8567,7 +8569,7 @@ declare module "factorio:runtime" {
|
|
8567
8569
|
/**
|
8568
8570
|
* A {@link LuaDamagePrototype} name
|
8569
8571
|
*/
|
8570
|
-
readonly type:
|
8572
|
+
readonly type: EntityType
|
8571
8573
|
}
|
8572
8574
|
/**
|
8573
8575
|
* `"final-health"` variant of {@link LuaEntityDamagedEventFilter}.
|
@@ -8619,7 +8621,7 @@ declare module "factorio:runtime" {
|
|
8619
8621
|
* - `"final-damage-amount"`: {@link FinalDamageAmountEntityDamagedEventFilter}
|
8620
8622
|
* - `"damage-type"`: {@link DamageTypeEntityDamagedEventFilter}
|
8621
8623
|
* - `"final-health"`: {@link FinalHealthEntityDamagedEventFilter}
|
8622
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
8624
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#LuaEntityDamagedEventFilter Online documentation}
|
8623
8625
|
*/
|
8624
8626
|
export type LuaEntityDamagedEventFilter =
|
8625
8627
|
| TypeEntityDamagedEventFilter
|
@@ -8633,7 +8635,7 @@ declare module "factorio:runtime" {
|
|
8633
8635
|
| OtherEntityDamagedEventFilter
|
8634
8636
|
/**
|
8635
8637
|
* Write form of {@link LuaEntityDamagedEventFilter}, where table-or-array concepts are allowed to take an array form.
|
8636
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
8638
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#LuaEntityDamagedEventFilter Online documentation}
|
8637
8639
|
*/
|
8638
8640
|
export type LuaEntityDamagedEventFilterWrite =
|
8639
8641
|
| TypeEntityDamagedEventFilter
|
@@ -8685,7 +8687,7 @@ declare module "factorio:runtime" {
|
|
8685
8687
|
/**
|
8686
8688
|
* The prototype type
|
8687
8689
|
*/
|
8688
|
-
readonly type:
|
8690
|
+
readonly type: EntityType
|
8689
8691
|
}
|
8690
8692
|
/**
|
8691
8693
|
* `"name"` variant of {@link LuaSectorScannedEventFilter}.
|
@@ -8705,7 +8707,7 @@ declare module "factorio:runtime" {
|
|
8705
8707
|
/**
|
8706
8708
|
* The ghost prototype type
|
8707
8709
|
*/
|
8708
|
-
readonly type:
|
8710
|
+
readonly type: EntityType
|
8709
8711
|
}
|
8710
8712
|
/**
|
8711
8713
|
* `"ghost_name"` variant of {@link LuaSectorScannedEventFilter}.
|
@@ -8744,7 +8746,7 @@ declare module "factorio:runtime" {
|
|
8744
8746
|
* - `"name"`: {@link NameSectorScannedEventFilter}
|
8745
8747
|
* - `"ghost_type"`: {@link GhostTypeSectorScannedEventFilter}
|
8746
8748
|
* - `"ghost_name"`: {@link GhostNameSectorScannedEventFilter}
|
8747
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
8749
|
+
* @see {@link https://lua-api.factorio.com/1.1.104/concepts.html#LuaSectorScannedEventFilter Online documentation}
|
8748
8750
|
*/
|
8749
8751
|
export type LuaSectorScannedEventFilter =
|
8750
8752
|
| TypeSectorScannedEventFilter
|