typed-factorio 2.11.0 → 2.12.0
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +1 -1
- package/prototype/generated/prototypes.d.ts +1727 -1727
- package/prototype/generated/types.d.ts +1434 -1434
- package/runtime/generated/classes.d.ts +3364 -3358
- package/runtime/generated/concepts.d.ts +288 -208
- package/runtime/generated/defines.d.ts +121 -121
- package/runtime/generated/events.d.ts +185 -185
- package/runtime/generated/global-functions.d.ts +3 -3
- package/runtime/generated/global-objects.d.ts +6 -6
@@ -12,7 +12,7 @@ import type { VersionString } from "factorio:common"
|
|
12
12
|
declare module "factorio:runtime" {
|
13
13
|
/**
|
14
14
|
* @see AutoplaceSettingsWrite
|
15
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
15
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#AutoplaceSettings Online documentation}
|
16
16
|
*/
|
17
17
|
export interface AutoplaceSettings {
|
18
18
|
/**
|
@@ -26,7 +26,7 @@ declare module "factorio:runtime" {
|
|
26
26
|
}
|
27
27
|
/**
|
28
28
|
* Write form of {@link AutoplaceSettings}, where table-or-array concepts are allowed to take an array form.
|
29
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
29
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#AutoplaceSettings Online documentation}
|
30
30
|
*/
|
31
31
|
export interface AutoplaceSettingsWrite {
|
32
32
|
/**
|
@@ -62,7 +62,7 @@ declare module "factorio:runtime" {
|
|
62
62
|
* - `"invoke-tile-trigger"`
|
63
63
|
* - `"destroy-decoratives"`
|
64
64
|
* - `"camera-effect"`
|
65
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
65
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#TriggerEffectItemType Online documentation}
|
66
66
|
*/
|
67
67
|
export type TriggerEffectItemType =
|
68
68
|
| "damage"
|
@@ -138,7 +138,7 @@ declare module "factorio:runtime" {
|
|
138
138
|
* - `"left"`
|
139
139
|
* - `"right"`
|
140
140
|
* - `"center"`
|
141
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
141
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#TextAlign Online documentation}
|
142
142
|
*/
|
143
143
|
export type TextAlign = "left" | "right" | "center"
|
144
144
|
/**
|
@@ -151,7 +151,7 @@ declare module "factorio:runtime" {
|
|
151
151
|
* - `"middle"`
|
152
152
|
* - `"baseline"`
|
153
153
|
* - `"bottom"`
|
154
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
154
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#VerticalTextAlign Online documentation}
|
155
155
|
*/
|
156
156
|
export type VerticalTextAlign = "top" | "middle" | "baseline" | "bottom"
|
157
157
|
/**
|
@@ -219,7 +219,7 @@ declare module "factorio:runtime" {
|
|
219
219
|
* - `"position"`: {@link PositionGuiArrowSpecification}
|
220
220
|
* - `"crafting_queue"`: {@link CraftingQueueGuiArrowSpecification}
|
221
221
|
* - `"item_stack"`: {@link ItemStackGuiArrowSpecification}
|
222
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
222
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#GuiArrowSpecification Online documentation}
|
223
223
|
*/
|
224
224
|
export type GuiArrowSpecification =
|
225
225
|
| EntityGuiArrowSpecification
|
@@ -260,7 +260,7 @@ declare module "factorio:runtime" {
|
|
260
260
|
* - `"none"`
|
261
261
|
* - `"whitelist"`
|
262
262
|
* - `"blacklist"`
|
263
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
263
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#PrototypeFilterMode Online documentation}
|
264
264
|
*/
|
265
265
|
export type PrototypeFilterMode = "none" | "whitelist" | "blacklist"
|
266
266
|
export interface RailEnd {
|
@@ -281,7 +281,7 @@ declare module "factorio:runtime" {
|
|
281
281
|
* - `"any-goal-accessible"`: The method will return {@link TrainPathAnyGoalResult}.
|
282
282
|
* - `"all-goals-accessible"`: The method will return {@link TrainPathAllGoalsResult}.
|
283
283
|
* - `"all-goals-penalties"`: The method will return {@link TrainPathAllGoalsResult} with `penalties`.
|
284
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
284
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#TrainPathRequestType Online documentation}
|
285
285
|
*/
|
286
286
|
export type TrainPathRequestType = "path" | "any-goal-accessible" | "all-goals-accessible" | "all-goals-penalties"
|
287
287
|
export interface TrainPathFinderPathResult {
|
@@ -379,7 +379,7 @@ declare module "factorio:runtime" {
|
|
379
379
|
* - LuaEntityDamagedEventFilter
|
380
380
|
* - {@link LuaSectorScannedEventFilter}
|
381
381
|
* @see EventFilterWrite
|
382
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
382
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#EventFilter Online documentation}
|
383
383
|
*/
|
384
384
|
export type EventFilter =
|
385
385
|
| LuaScriptRaisedReviveEventFilter[]
|
@@ -406,7 +406,7 @@ declare module "factorio:runtime" {
|
|
406
406
|
| LuaSectorScannedEventFilter[]
|
407
407
|
/**
|
408
408
|
* Write form of {@link EventFilter}, where table-or-array concepts are allowed to take an array form.
|
409
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
409
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#EventFilter Online documentation}
|
410
410
|
*/
|
411
411
|
export type EventFilterWrite =
|
412
412
|
| readonly LuaScriptRaisedReviveEventFilter[]
|
@@ -448,7 +448,7 @@ declare module "factorio:runtime" {
|
|
448
448
|
* - RecipePrototypeFilter
|
449
449
|
* - EntityPrototypeFilter
|
450
450
|
* @see PrototypeFilterWrite
|
451
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
451
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#PrototypeFilter Online documentation}
|
452
452
|
*/
|
453
453
|
export type PrototypeFilter =
|
454
454
|
| ItemPrototypeFilter[]
|
@@ -463,7 +463,7 @@ declare module "factorio:runtime" {
|
|
463
463
|
| EntityPrototypeFilter[]
|
464
464
|
/**
|
465
465
|
* Write form of {@link PrototypeFilter}, where table-or-array concepts are allowed to take an array form.
|
466
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
466
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#PrototypeFilter Online documentation}
|
467
467
|
*/
|
468
468
|
export type PrototypeFilterWrite =
|
469
469
|
| readonly ItemPrototypeFilterWrite[]
|
@@ -490,7 +490,7 @@ declare module "factorio:runtime" {
|
|
490
490
|
* - `"left"`
|
491
491
|
* - `"right"`
|
492
492
|
* - `"none"`
|
493
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
493
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#SwitchState Online documentation}
|
494
494
|
*/
|
495
495
|
export type SwitchState = "left" | "right" | "none"
|
496
496
|
/**
|
@@ -508,7 +508,7 @@ declare module "factorio:runtime" {
|
|
508
508
|
* - `"signal"`
|
509
509
|
* - `"technology"`
|
510
510
|
* - `"tile"`
|
511
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
511
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#ElemType Online documentation}
|
512
512
|
*/
|
513
513
|
export type ElemType =
|
514
514
|
| "achievement"
|
@@ -534,7 +534,7 @@ declare module "factorio:runtime" {
|
|
534
534
|
* - `"logistics"`: Light blue by default.
|
535
535
|
* - `"train-visualization"`: White by default.
|
536
536
|
* - `"blueprint-snap-rectangle"`: Green by default.
|
537
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
537
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#CursorBoxRenderType Online documentation}
|
538
538
|
*/
|
539
539
|
export type CursorBoxRenderType =
|
540
540
|
| "entity"
|
@@ -547,7 +547,7 @@ declare module "factorio:runtime" {
|
|
547
547
|
| "blueprint-snap-rectangle"
|
548
548
|
/**
|
549
549
|
* What is shown in the map view. If a field is not given, that setting will not be changed.
|
550
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
550
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#MapViewSettings Online documentation}
|
551
551
|
*/
|
552
552
|
export interface MapViewSettings {
|
553
553
|
readonly "show-logistic-network"?: boolean
|
@@ -591,7 +591,7 @@ declare module "factorio:runtime" {
|
|
591
591
|
* - `"none-to-south"`
|
592
592
|
* - `"south-to-none"`
|
593
593
|
* - `"none-to-north"`
|
594
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
594
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#CliffOrientation Online documentation}
|
595
595
|
*/
|
596
596
|
export type CliffOrientation =
|
597
597
|
| "west-to-east"
|
@@ -659,7 +659,7 @@ declare module "factorio:runtime" {
|
|
659
659
|
* - `"artillery-range"`
|
660
660
|
* - `"nothing"`
|
661
661
|
* - `"character-logistic-requests"`
|
662
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
662
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#ModifierType Online documentation}
|
663
663
|
*/
|
664
664
|
export type ModifierType =
|
665
665
|
| "inserter-stack-size-bonus"
|
@@ -732,7 +732,7 @@ declare module "factorio:runtime" {
|
|
732
732
|
* -- If 'entity-description.furnace' exists, it is concatenated with "\n" and returned. Otherwise, if 'item-description.furnace'
|
733
733
|
* -- exists, it is returned as-is. Otherwise, "optional fallback" is returned. If this value wasn't specified, the
|
734
734
|
* -- translation result would be "Unknown key: 'item-description.furnace'".
|
735
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
735
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#LocalisedString Online documentation}
|
736
736
|
*/
|
737
737
|
export type LocalisedString = string | number | boolean | LuaObject | nil | [string, ...LocalisedString[]]
|
738
738
|
export interface DisplayResolution {
|
@@ -757,7 +757,7 @@ declare module "factorio:runtime" {
|
|
757
757
|
* 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".
|
758
758
|
*
|
759
759
|
* For example then, a value of `0.625` would indicate "south-west", and a value of `0.875` would indicate "north-west".
|
760
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
760
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#RealOrientation Online documentation}
|
761
761
|
*/
|
762
762
|
export type RealOrientation = float
|
763
763
|
/**
|
@@ -772,7 +772,7 @@ declare module "factorio:runtime" {
|
|
772
772
|
* @example
|
773
773
|
* -- Shorthand
|
774
774
|
* {1.625, 2.375}
|
775
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
775
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#MapPosition Online documentation}
|
776
776
|
*/
|
777
777
|
export interface MapPosition {
|
778
778
|
readonly x: double
|
@@ -781,13 +781,13 @@ declare module "factorio:runtime" {
|
|
781
781
|
/**
|
782
782
|
* Array form of {@link MapPosition}.
|
783
783
|
* @see MapPosition
|
784
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
784
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#MapPosition Online documentation}
|
785
785
|
*/
|
786
786
|
export type MapPositionArray = readonly [double, double]
|
787
787
|
/**
|
788
788
|
* 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.
|
789
789
|
* @see ChunkPositionArray
|
790
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
790
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#ChunkPosition Online documentation}
|
791
791
|
*/
|
792
792
|
export interface ChunkPosition {
|
793
793
|
readonly x: int
|
@@ -796,13 +796,13 @@ declare module "factorio:runtime" {
|
|
796
796
|
/**
|
797
797
|
* Array form of {@link ChunkPosition}.
|
798
798
|
* @see ChunkPosition
|
799
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
799
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#ChunkPosition Online documentation}
|
800
800
|
*/
|
801
801
|
export type ChunkPositionArray = readonly [int, int]
|
802
802
|
/**
|
803
803
|
* 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.
|
804
804
|
* @see TilePositionArray
|
805
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
805
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#TilePosition Online documentation}
|
806
806
|
*/
|
807
807
|
export interface TilePosition {
|
808
808
|
readonly x: int
|
@@ -811,7 +811,7 @@ declare module "factorio:runtime" {
|
|
811
811
|
/**
|
812
812
|
* Array form of {@link TilePosition}.
|
813
813
|
* @see TilePosition
|
814
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
814
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#TilePosition Online documentation}
|
815
815
|
*/
|
816
816
|
export type TilePositionArray = readonly [int, int]
|
817
817
|
/**
|
@@ -824,7 +824,7 @@ declare module "factorio:runtime" {
|
|
824
824
|
* @example
|
825
825
|
* -- Shorthand
|
826
826
|
* {1, 2}
|
827
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
827
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#EquipmentPosition Online documentation}
|
828
828
|
*/
|
829
829
|
export interface EquipmentPosition {
|
830
830
|
readonly x: int
|
@@ -833,13 +833,13 @@ declare module "factorio:runtime" {
|
|
833
833
|
/**
|
834
834
|
* Array form of {@link EquipmentPosition}.
|
835
835
|
* @see EquipmentPosition
|
836
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
836
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#EquipmentPosition Online documentation}
|
837
837
|
*/
|
838
838
|
export type EquipmentPositionArray = readonly [int, int]
|
839
839
|
/**
|
840
840
|
* 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.
|
841
841
|
* @see GuiLocationArray
|
842
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
842
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#GuiLocation Online documentation}
|
843
843
|
*/
|
844
844
|
export interface GuiLocation {
|
845
845
|
readonly x: int
|
@@ -848,12 +848,12 @@ declare module "factorio:runtime" {
|
|
848
848
|
/**
|
849
849
|
* Array form of {@link GuiLocation}.
|
850
850
|
* @see GuiLocation
|
851
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
851
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#GuiLocation Online documentation}
|
852
852
|
*/
|
853
853
|
export type GuiLocationArray = readonly [int, int]
|
854
854
|
/**
|
855
855
|
* A {@link ChunkPosition} with an added bounding box for the area of the chunk.
|
856
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
856
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#ChunkPositionAndArea Online documentation}
|
857
857
|
*/
|
858
858
|
export interface ChunkPositionAndArea {
|
859
859
|
readonly x: int
|
@@ -862,7 +862,7 @@ declare module "factorio:runtime" {
|
|
862
862
|
}
|
863
863
|
/**
|
864
864
|
* A table used to define a manual shape for a piece of equipment.
|
865
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
865
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#EquipmentPoint Online documentation}
|
866
866
|
*/
|
867
867
|
export interface EquipmentPoint {
|
868
868
|
readonly x: uint
|
@@ -898,12 +898,12 @@ declare module "factorio:runtime" {
|
|
898
898
|
* 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.
|
899
899
|
* @example
|
900
900
|
* {a = 1, b = true, c = "three", d = {e = "f"}}
|
901
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
901
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#Tags Online documentation}
|
902
902
|
*/
|
903
903
|
export type Tags = Record<string, AnyBasic>
|
904
904
|
/**
|
905
905
|
* The vectors for all 5 position attributes are a table with `x` and `y` keys instead of an array.
|
906
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
906
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#SmokeSource Online documentation}
|
907
907
|
*/
|
908
908
|
export interface SmokeSource {
|
909
909
|
readonly name: string
|
@@ -930,7 +930,7 @@ declare module "factorio:runtime" {
|
|
930
930
|
* 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.
|
931
931
|
* @example
|
932
932
|
* right = {1.0, 0.0}
|
933
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
933
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#Vector Online documentation}
|
934
934
|
*/
|
935
935
|
export type Vector = MapPositionArray
|
936
936
|
/**
|
@@ -942,7 +942,7 @@ declare module "factorio:runtime" {
|
|
942
942
|
* @example
|
943
943
|
* -- Shorthand
|
944
944
|
* {{-2, -3}, {5, 8}}
|
945
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
945
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#BoundingBox Online documentation}
|
946
946
|
*/
|
947
947
|
export interface BoundingBox {
|
948
948
|
readonly left_top: MapPosition
|
@@ -960,13 +960,13 @@ declare module "factorio:runtime" {
|
|
960
960
|
/**
|
961
961
|
* Array form of {@link BoundingBox}.
|
962
962
|
* @see BoundingBox
|
963
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
963
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#BoundingBox Online documentation}
|
964
964
|
*/
|
965
965
|
export type BoundingBoxArray = readonly [MapPosition | MapPositionArray, MapPosition | MapPositionArray]
|
966
966
|
/**
|
967
967
|
* An area defined using the map editor.
|
968
968
|
* @see ScriptAreaWrite
|
969
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
969
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#ScriptArea Online documentation}
|
970
970
|
*/
|
971
971
|
export interface ScriptArea {
|
972
972
|
readonly area: BoundingBox
|
@@ -976,7 +976,7 @@ declare module "factorio:runtime" {
|
|
976
976
|
}
|
977
977
|
/**
|
978
978
|
* Write form of {@link ScriptArea}, where table-or-array concepts are allowed to take an array form.
|
979
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
979
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#ScriptArea Online documentation}
|
980
980
|
*/
|
981
981
|
export interface ScriptAreaWrite {
|
982
982
|
readonly area: BoundingBoxWrite | BoundingBoxArray
|
@@ -987,7 +987,7 @@ declare module "factorio:runtime" {
|
|
987
987
|
/**
|
988
988
|
* A position defined using the map editor.
|
989
989
|
* @see ScriptPositionWrite
|
990
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
990
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#ScriptPosition Online documentation}
|
991
991
|
*/
|
992
992
|
export interface ScriptPosition {
|
993
993
|
readonly position: MapPosition
|
@@ -997,7 +997,7 @@ declare module "factorio:runtime" {
|
|
997
997
|
}
|
998
998
|
/**
|
999
999
|
* Write form of {@link ScriptPosition}, where table-or-array concepts are allowed to take an array form.
|
1000
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1000
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#ScriptPosition Online documentation}
|
1001
1001
|
*/
|
1002
1002
|
export interface ScriptPositionWrite {
|
1003
1003
|
readonly position: MapPosition | MapPositionArray
|
@@ -1015,7 +1015,7 @@ declare module "factorio:runtime" {
|
|
1015
1015
|
* red2 = {r = 0.5, a = 0.5} -- Same color as red1
|
1016
1016
|
* black = {} -- All channels omitted: black
|
1017
1017
|
* red1_short = {0.5, 0, 0, 0.5} -- Same color as red1 in short-hand notation
|
1018
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1018
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#Color Online documentation}
|
1019
1019
|
*/
|
1020
1020
|
export interface Color {
|
1021
1021
|
readonly r?: float
|
@@ -1026,13 +1026,13 @@ declare module "factorio:runtime" {
|
|
1026
1026
|
/**
|
1027
1027
|
* Array form of {@link Color}.
|
1028
1028
|
* @see Color
|
1029
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1029
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#Color Online documentation}
|
1030
1030
|
*/
|
1031
1031
|
export type ColorArray = readonly [r: double, g: double, b: double, a?: double]
|
1032
1032
|
/**
|
1033
1033
|
* 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].
|
1034
1034
|
* @see ColorModifierArray
|
1035
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1035
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#ColorModifier Online documentation}
|
1036
1036
|
*/
|
1037
1037
|
export interface ColorModifier {
|
1038
1038
|
readonly r?: float
|
@@ -1043,7 +1043,7 @@ declare module "factorio:runtime" {
|
|
1043
1043
|
/**
|
1044
1044
|
* Array form of {@link ColorModifier}.
|
1045
1045
|
* @see ColorModifier
|
1046
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1046
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#ColorModifier Online documentation}
|
1047
1047
|
*/
|
1048
1048
|
export type ColorModifierArray = readonly [r: double, g: double, b: double, a?: double]
|
1049
1049
|
export interface CraftingQueueItem {
|
@@ -1083,7 +1083,7 @@ declare module "factorio:runtime" {
|
|
1083
1083
|
}
|
1084
1084
|
/**
|
1085
1085
|
* One vertex of a ScriptRenderPolygon.
|
1086
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1086
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#ScriptRenderVertexTarget Online documentation}
|
1087
1087
|
*/
|
1088
1088
|
export interface ScriptRenderVertexTarget {
|
1089
1089
|
readonly target: (MapPosition | MapPositionArray) | LuaEntity
|
@@ -1149,7 +1149,7 @@ declare module "factorio:runtime" {
|
|
1149
1149
|
}
|
1150
1150
|
/**
|
1151
1151
|
* Either `icon`, `text`, or both must be provided.
|
1152
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1152
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#ChartTagSpec Online documentation}
|
1153
1153
|
*/
|
1154
1154
|
export interface ChartTagSpec {
|
1155
1155
|
readonly position: MapPosition | MapPositionArray
|
@@ -1159,88 +1159,88 @@ declare module "factorio:runtime" {
|
|
1159
1159
|
}
|
1160
1160
|
/**
|
1161
1161
|
* 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.
|
1162
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1162
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#GameViewSettings Online documentation}
|
1163
1163
|
*/
|
1164
1164
|
export interface GameViewSettings {
|
1165
1165
|
/**
|
1166
1166
|
* Show the controller GUI elements. This includes the toolbar, the selected tool slot, the armour slot, and the gun and ammunition slots.
|
1167
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1167
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#GameViewSettings.show_controller_gui Online documentation}
|
1168
1168
|
*/
|
1169
1169
|
show_controller_gui: boolean
|
1170
1170
|
/**
|
1171
1171
|
* Show the chart in the upper right-hand corner of the screen.
|
1172
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1172
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#GameViewSettings.show_minimap Online documentation}
|
1173
1173
|
*/
|
1174
1174
|
show_minimap: boolean
|
1175
1175
|
/**
|
1176
1176
|
* Show research progress and name in the upper right-hand corner of the screen.
|
1177
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1177
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#GameViewSettings.show_research_info Online documentation}
|
1178
1178
|
*/
|
1179
1179
|
show_research_info: boolean
|
1180
1180
|
/**
|
1181
1181
|
* Show overlay icons on entities. Also known as "alt-mode".
|
1182
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1182
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#GameViewSettings.show_entity_info Online documentation}
|
1183
1183
|
*/
|
1184
1184
|
show_entity_info: boolean
|
1185
1185
|
/**
|
1186
1186
|
* Show the flashing alert icons next to the player's toolbar.
|
1187
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1187
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#GameViewSettings.show_alert_gui Online documentation}
|
1188
1188
|
*/
|
1189
1189
|
show_alert_gui: boolean
|
1190
1190
|
/**
|
1191
1191
|
* When `true` (the default), mousing over an entity will select it. Otherwise, moving the mouse won't update entity selection.
|
1192
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1192
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#GameViewSettings.update_entity_selection Online documentation}
|
1193
1193
|
*/
|
1194
1194
|
update_entity_selection: boolean
|
1195
1195
|
/**
|
1196
1196
|
* When `true` (`false` is default), the rails will always show the rail block visualisation.
|
1197
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1197
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#GameViewSettings.show_rail_block_visualisation Online documentation}
|
1198
1198
|
*/
|
1199
1199
|
show_rail_block_visualisation: boolean
|
1200
1200
|
/**
|
1201
1201
|
* Shows or hides the buttons row.
|
1202
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1202
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#GameViewSettings.show_side_menu Online documentation}
|
1203
1203
|
*/
|
1204
1204
|
show_side_menu: boolean
|
1205
1205
|
/**
|
1206
1206
|
* Shows or hides the view options when map is opened.
|
1207
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1207
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#GameViewSettings.show_map_view_options Online documentation}
|
1208
1208
|
*/
|
1209
1209
|
show_map_view_options: boolean
|
1210
1210
|
/**
|
1211
1211
|
* Shows or hides the tooltip that is displayed when selecting an entity.
|
1212
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1212
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#GameViewSettings.show_entity_tooltip Online documentation}
|
1213
1213
|
*/
|
1214
1214
|
show_entity_tooltip: boolean
|
1215
1215
|
/**
|
1216
1216
|
* Shows or hides quickbar of shortcuts.
|
1217
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1217
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#GameViewSettings.show_quickbar Online documentation}
|
1218
1218
|
*/
|
1219
1219
|
show_quickbar: boolean
|
1220
1220
|
/**
|
1221
1221
|
* Shows or hides the shortcut bar.
|
1222
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1222
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#GameViewSettings.show_shortcut_bar Online documentation}
|
1223
1223
|
*/
|
1224
1224
|
show_shortcut_bar: boolean
|
1225
1225
|
/**
|
1226
1226
|
* Shows or hides the crafting queue.
|
1227
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1227
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#GameViewSettings.show_crafting_queue Online documentation}
|
1228
1228
|
*/
|
1229
1229
|
show_crafting_queue: boolean
|
1230
1230
|
/**
|
1231
1231
|
* Shows or hides the tool window with the weapons and armor.
|
1232
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1232
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#GameViewSettings.show_tool_bar Online documentation}
|
1233
1233
|
*/
|
1234
1234
|
show_tool_bar: boolean
|
1235
1235
|
/**
|
1236
1236
|
* Shows or hides the mouse and keyboard/controller button hints in the bottom left corner if they are enabled in the interface settings.
|
1237
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1237
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#GameViewSettings.show_hotkey_suggestions Online documentation}
|
1238
1238
|
*/
|
1239
1239
|
show_hotkey_suggestions: boolean
|
1240
1240
|
}
|
1241
1241
|
/**
|
1242
1242
|
* These values are for the time frame of one second (60 ticks).
|
1243
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1243
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#PollutionMapSettings Online documentation}
|
1244
1244
|
*/
|
1245
1245
|
export interface PollutionMapSettings {
|
1246
1246
|
/**
|
@@ -1294,7 +1294,7 @@ declare module "factorio:runtime" {
|
|
1294
1294
|
}
|
1295
1295
|
/**
|
1296
1296
|
* These values represent a percentual increase in evolution. This means a value of `0.1` would increase evolution by 10%.
|
1297
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1297
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#EnemyEvolutionMapSettings Online documentation}
|
1298
1298
|
*/
|
1299
1299
|
export interface EnemyEvolutionMapSettings {
|
1300
1300
|
/**
|
@@ -1332,7 +1332,7 @@ declare module "factorio:runtime" {
|
|
1332
1332
|
* * neighbouring_base_chunk_coefficient^distance(chunk, neighbour)
|
1333
1333
|
* score(chunk) = 1 / (1 + player + base)
|
1334
1334
|
* ```
|
1335
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1335
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#EnemyExpansionMapSettings Online documentation}
|
1336
1336
|
*/
|
1337
1337
|
export interface EnemyExpansionMapSettings {
|
1338
1338
|
/**
|
@@ -1594,7 +1594,7 @@ declare module "factorio:runtime" {
|
|
1594
1594
|
* @example
|
1595
1595
|
* -- Increase the number of short paths the pathfinder can cache
|
1596
1596
|
* game.map_settings.path_finder.short_cache_size = 15
|
1597
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1597
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#MapSettings Online documentation}
|
1598
1598
|
*/
|
1599
1599
|
export interface MapSettings {
|
1600
1600
|
pollution: PollutionMapSettings
|
@@ -1605,31 +1605,31 @@ declare module "factorio:runtime" {
|
|
1605
1605
|
path_finder: PathFinderMapSettings
|
1606
1606
|
/**
|
1607
1607
|
* If a behavior fails this many times, the enemy (or enemy group) is destroyed. This solves biters getting stuck within their own base.
|
1608
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1608
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#MapSettings.max_failed_behavior_count Online documentation}
|
1609
1609
|
*/
|
1610
1610
|
max_failed_behavior_count: uint
|
1611
1611
|
}
|
1612
1612
|
/**
|
1613
1613
|
* Technology and recipe difficulty settings. Updating any of the attributes will immediately take effect in the game engine.
|
1614
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1614
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#DifficultySettings Online documentation}
|
1615
1615
|
*/
|
1616
1616
|
export interface DifficultySettings {
|
1617
1617
|
recipe_difficulty: defines.difficulty_settings.recipe_difficulty
|
1618
1618
|
technology_difficulty: defines.difficulty_settings.technology_difficulty
|
1619
1619
|
/**
|
1620
1620
|
* A value in range [0.001, 1000].
|
1621
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1621
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#DifficultySettings.technology_price_multiplier Online documentation}
|
1622
1622
|
*/
|
1623
1623
|
technology_price_multiplier: double
|
1624
1624
|
/**
|
1625
1625
|
* 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.
|
1626
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1626
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#DifficultySettings.research_queue_setting Online documentation}
|
1627
1627
|
*/
|
1628
1628
|
research_queue_setting: "after-victory" | "always" | "never"
|
1629
1629
|
}
|
1630
1630
|
/**
|
1631
1631
|
* A standard table containing all {@link MapSettings} attributes plus an additional table that contains all {@link DifficultySettings} properties.
|
1632
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1632
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#MapAndDifficultySettings Online documentation}
|
1633
1633
|
*/
|
1634
1634
|
export interface MapAndDifficultySettings {
|
1635
1635
|
readonly pollution: PollutionMapSettings
|
@@ -1658,7 +1658,7 @@ declare module "factorio:runtime" {
|
|
1658
1658
|
}
|
1659
1659
|
/**
|
1660
1660
|
* The data that can be extracted from a map exchange string, as a plain table.
|
1661
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1661
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#MapExchangeStringData Online documentation}
|
1662
1662
|
*/
|
1663
1663
|
export interface MapExchangeStringData {
|
1664
1664
|
readonly map_settings: MapAndDifficultySettings
|
@@ -1677,7 +1677,7 @@ declare module "factorio:runtime" {
|
|
1677
1677
|
/**
|
1678
1678
|
* 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.
|
1679
1679
|
* @see BlueprintEntityWrite
|
1680
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1680
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#BlueprintEntity Online documentation}
|
1681
1681
|
*/
|
1682
1682
|
export interface BlueprintEntity {
|
1683
1683
|
/**
|
@@ -1856,7 +1856,7 @@ declare module "factorio:runtime" {
|
|
1856
1856
|
}
|
1857
1857
|
/**
|
1858
1858
|
* Write form of {@link BlueprintEntity}, where table-or-array concepts are allowed to take an array form.
|
1859
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1859
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#BlueprintEntity Online documentation}
|
1860
1860
|
*/
|
1861
1861
|
export interface BlueprintEntityWrite {
|
1862
1862
|
/**
|
@@ -1944,7 +1944,7 @@ declare module "factorio:runtime" {
|
|
1944
1944
|
}
|
1945
1945
|
/**
|
1946
1946
|
* @see TileWrite
|
1947
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1947
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#Tile Online documentation}
|
1948
1948
|
*/
|
1949
1949
|
export interface Tile {
|
1950
1950
|
/**
|
@@ -1958,7 +1958,7 @@ declare module "factorio:runtime" {
|
|
1958
1958
|
}
|
1959
1959
|
/**
|
1960
1960
|
* Write form of {@link Tile}, where table-or-array concepts are allowed to take an array form.
|
1961
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1961
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#Tile Online documentation}
|
1962
1962
|
*/
|
1963
1963
|
export interface TileWrite {
|
1964
1964
|
/**
|
@@ -2027,7 +2027,7 @@ declare module "factorio:runtime" {
|
|
2027
2027
|
*
|
2028
2028
|
* Other attributes may be specified depending on `type`:
|
2029
2029
|
* - `"fluid"`: {@link FluidIngredient}
|
2030
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2030
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#Ingredient Online documentation}
|
2031
2031
|
*/
|
2032
2032
|
export type Ingredient = FluidIngredient | OtherIngredient
|
2033
2033
|
/**
|
@@ -2093,7 +2093,7 @@ declare module "factorio:runtime" {
|
|
2093
2093
|
* -- What a custom recipe would look like that had a probability of 0.5 to return a
|
2094
2094
|
* -- minimum amount of 1 and amaximum amount of 5
|
2095
2095
|
* {{type="item", name="custom-item", probability=0.5, amount_min=1, amount_max=5}}
|
2096
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2096
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#Product Online documentation}
|
2097
2097
|
*/
|
2098
2098
|
export type Product = FluidProduct | OtherProduct
|
2099
2099
|
export interface Loot {
|
@@ -2252,7 +2252,7 @@ declare module "factorio:runtime" {
|
|
2252
2252
|
* - `"unlock-recipe"`: {@link UnlockRecipeTechnologyModifier}
|
2253
2253
|
* - `"nothing"`: {@link NothingTechnologyModifier}
|
2254
2254
|
* - Other types: {@link OtherTechnologyModifier}
|
2255
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2255
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#TechnologyModifier Online documentation}
|
2256
2256
|
*/
|
2257
2257
|
export type TechnologyModifier =
|
2258
2258
|
| GunSpeedTechnologyModifier
|
@@ -2264,7 +2264,7 @@ declare module "factorio:runtime" {
|
|
2264
2264
|
| OtherTechnologyModifier
|
2265
2265
|
/**
|
2266
2266
|
* A single offer on a market entity.
|
2267
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2267
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#Offer Online documentation}
|
2268
2268
|
*/
|
2269
2269
|
export interface Offer {
|
2270
2270
|
/**
|
@@ -2278,7 +2278,7 @@ declare module "factorio:runtime" {
|
|
2278
2278
|
}
|
2279
2279
|
/**
|
2280
2280
|
* 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.
|
2281
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2281
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#AutoplaceSpecification Online documentation}
|
2282
2282
|
*/
|
2283
2283
|
export interface AutoplaceSpecification {
|
2284
2284
|
readonly probability_expression: NoiseExpression
|
@@ -2304,7 +2304,7 @@ declare module "factorio:runtime" {
|
|
2304
2304
|
}
|
2305
2305
|
/**
|
2306
2306
|
* 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}.
|
2307
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2307
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#NoiseExpression Online documentation}
|
2308
2308
|
*/
|
2309
2309
|
export interface NoiseExpression {
|
2310
2310
|
/**
|
@@ -2397,7 +2397,7 @@ declare module "factorio:runtime" {
|
|
2397
2397
|
* - `"very-high"`: equivalent to `2`.
|
2398
2398
|
* - `"very-big"`: equivalent to `2`.
|
2399
2399
|
* - `"very-good"`: equivalent to `2`.
|
2400
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2400
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#MapGenSize Online documentation}
|
2401
2401
|
*/
|
2402
2402
|
export type MapGenSize =
|
2403
2403
|
| float
|
@@ -2419,7 +2419,7 @@ declare module "factorio:runtime" {
|
|
2419
2419
|
| "very-good"
|
2420
2420
|
/**
|
2421
2421
|
* @see AutoplaceControlWrite
|
2422
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2422
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#AutoplaceControl Online documentation}
|
2423
2423
|
*/
|
2424
2424
|
export interface AutoplaceControl {
|
2425
2425
|
/**
|
@@ -2437,7 +2437,7 @@ declare module "factorio:runtime" {
|
|
2437
2437
|
}
|
2438
2438
|
/**
|
2439
2439
|
* Write form of {@link AutoplaceControl}, where table-or-array concepts are allowed to take an array form.
|
2440
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2440
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#AutoplaceControl Online documentation}
|
2441
2441
|
*/
|
2442
2442
|
export interface AutoplaceControlWrite {
|
2443
2443
|
/**
|
@@ -2455,7 +2455,7 @@ declare module "factorio:runtime" {
|
|
2455
2455
|
}
|
2456
2456
|
/**
|
2457
2457
|
* @see CliffPlacementSettingsWrite
|
2458
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2458
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#CliffPlacementSettings Online documentation}
|
2459
2459
|
*/
|
2460
2460
|
export interface CliffPlacementSettings {
|
2461
2461
|
/**
|
@@ -2477,7 +2477,7 @@ declare module "factorio:runtime" {
|
|
2477
2477
|
}
|
2478
2478
|
/**
|
2479
2479
|
* Write form of {@link CliffPlacementSettings}, where table-or-array concepts are allowed to take an array form.
|
2480
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2480
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#CliffPlacementSettings Online documentation}
|
2481
2481
|
*/
|
2482
2482
|
export interface CliffPlacementSettingsWrite {
|
2483
2483
|
/**
|
@@ -2515,7 +2515,7 @@ declare module "factorio:runtime" {
|
|
2515
2515
|
* surface.map_gen_settings = mgs
|
2516
2516
|
* -- This does not require a NamedNoiseExpression to be defined, since literal numbers (and strings naming literal
|
2517
2517
|
* -- numbers, e.g. `"123"`) are understood to stand for constant value expressions.
|
2518
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2518
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#MapGenSettings Online documentation}
|
2519
2519
|
*/
|
2520
2520
|
export interface MapGenSettings {
|
2521
2521
|
/**
|
@@ -2573,7 +2573,7 @@ declare module "factorio:runtime" {
|
|
2573
2573
|
}
|
2574
2574
|
/**
|
2575
2575
|
* Write form of {@link MapGenSettings}, where table-or-array concepts are allowed to take an array form.
|
2576
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2576
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#MapGenSettings Online documentation}
|
2577
2577
|
*/
|
2578
2578
|
export interface MapGenSettingsWrite {
|
2579
2579
|
/**
|
@@ -2632,10 +2632,10 @@ declare module "factorio:runtime" {
|
|
2632
2632
|
/**
|
2633
2633
|
* All other MapGenSettings feed into named noise expressions, and therefore placement can be overridden by including the name of a property in this dictionary. The probability and richness functions for placing specific tiles, entities, and decoratives can be overridden by including an entry named `{tile|entity|decorative}:(prototype name):{probability|richness}`.
|
2634
2634
|
*
|
2635
|
-
* {@link https://lua-api.factorio.com/1.1.
|
2635
|
+
* {@link https://lua-api.factorio.com/1.1.109/concepts.html#PropertyExpressionNames > Values either name a NamedNoiseExpression or can be literal numbers, stored as strings (e.g. `5`). All other controls can be overridden by a property expression names. Notable properties:}
|
2636
2636
|
*
|
2637
|
-
* {@link https://lua-api.factorio.com/1.1.
|
2638
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2637
|
+
* {@link https://lua-api.factorio.com/1.1.109/concepts.html#PropertyExpressionNames > Climate controls ('Moisture' and 'Terrain type' at the bottom of the Terrain tab in the map generator GUI) don't have their own dedicated structures in MapGenSettings. Instead, their values are stored as property expression overrides with long names:}
|
2638
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#PropertyExpressionNames Online documentation}
|
2639
2639
|
*/
|
2640
2640
|
export type PropertyExpressionNames = Record<string, string>
|
2641
2641
|
export interface AdvancedMapGenSettings {
|
@@ -2665,7 +2665,7 @@ declare module "factorio:runtime" {
|
|
2665
2665
|
}
|
2666
2666
|
/**
|
2667
2667
|
* An actual signal transmitted by the network.
|
2668
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2668
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#Signal Online documentation}
|
2669
2669
|
*/
|
2670
2670
|
export interface Signal {
|
2671
2671
|
/**
|
@@ -2686,7 +2686,7 @@ declare module "factorio:runtime" {
|
|
2686
2686
|
}
|
2687
2687
|
/**
|
2688
2688
|
* A single filter used by an infinity-filters instance.
|
2689
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2689
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#InfinityInventoryFilter Online documentation}
|
2690
2690
|
*/
|
2691
2691
|
export interface InfinityInventoryFilter {
|
2692
2692
|
/**
|
@@ -2708,7 +2708,7 @@ declare module "factorio:runtime" {
|
|
2708
2708
|
}
|
2709
2709
|
/**
|
2710
2710
|
* A single filter used by an infinity-pipe type entity.
|
2711
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2711
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#InfinityPipeFilter Online documentation}
|
2712
2712
|
*/
|
2713
2713
|
export interface InfinityPipeFilter {
|
2714
2714
|
/**
|
@@ -2762,7 +2762,7 @@ declare module "factorio:runtime" {
|
|
2762
2762
|
}
|
2763
2763
|
/**
|
2764
2764
|
* The settings used by a heat-interface type entity.
|
2765
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2765
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#HeatSetting Online documentation}
|
2766
2766
|
*/
|
2767
2767
|
export interface HeatSetting {
|
2768
2768
|
/**
|
@@ -2780,7 +2780,7 @@ declare module "factorio:runtime" {
|
|
2780
2780
|
}
|
2781
2781
|
/**
|
2782
2782
|
* A definition of a fluidbox connection point.
|
2783
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2783
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#FluidBoxConnection Online documentation}
|
2784
2784
|
*/
|
2785
2785
|
export interface FluidBoxConnection {
|
2786
2786
|
readonly type: "input" | "output" | "input-output"
|
@@ -2795,7 +2795,7 @@ declare module "factorio:runtime" {
|
|
2795
2795
|
}
|
2796
2796
|
/**
|
2797
2797
|
* A single pipe connection for a given fluidbox.
|
2798
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2798
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#PipeConnection Online documentation}
|
2799
2799
|
*/
|
2800
2800
|
export interface PipeConnection {
|
2801
2801
|
readonly flow_direction: "input" | "output" | "input-output"
|
@@ -2876,14 +2876,14 @@ declare module "factorio:runtime" {
|
|
2876
2876
|
* - `"<="`: "lesser than or equal to"
|
2877
2877
|
* - `"≠"`: "not equal to"
|
2878
2878
|
* - `"!="`: "not equal to"
|
2879
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2879
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#ComparatorString Online documentation}
|
2880
2880
|
*/
|
2881
2881
|
export type ComparatorString = "=" | ">" | "<" | "≥" | ">=" | "≤" | "<=" | "≠" | "!="
|
2882
2882
|
/** @see ComparatorString */
|
2883
2883
|
export type ComparatorStringRead = "=" | ">" | "<" | "≥" | "≤" | "≠"
|
2884
2884
|
/**
|
2885
2885
|
* @see DeciderCombinatorParametersWrite
|
2886
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2886
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#DeciderCombinatorParameters Online documentation}
|
2887
2887
|
*/
|
2888
2888
|
export interface DeciderCombinatorParameters {
|
2889
2889
|
/**
|
@@ -2913,7 +2913,7 @@ declare module "factorio:runtime" {
|
|
2913
2913
|
}
|
2914
2914
|
/**
|
2915
2915
|
* Write form of {@link DeciderCombinatorParameters}, where table-or-array concepts are allowed to take an array form.
|
2916
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2916
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#DeciderCombinatorParameters Online documentation}
|
2917
2917
|
*/
|
2918
2918
|
export interface DeciderCombinatorParametersWrite {
|
2919
2919
|
/**
|
@@ -2947,7 +2947,7 @@ declare module "factorio:runtime" {
|
|
2947
2947
|
}
|
2948
2948
|
/**
|
2949
2949
|
* @see CircuitConditionWrite
|
2950
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2950
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#CircuitCondition Online documentation}
|
2951
2951
|
*/
|
2952
2952
|
export interface CircuitCondition {
|
2953
2953
|
/**
|
@@ -2969,7 +2969,7 @@ declare module "factorio:runtime" {
|
|
2969
2969
|
}
|
2970
2970
|
/**
|
2971
2971
|
* Write form of {@link CircuitCondition}, where table-or-array concepts are allowed to take an array form.
|
2972
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2972
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#CircuitCondition Online documentation}
|
2973
2973
|
*/
|
2974
2974
|
export interface CircuitConditionWrite {
|
2975
2975
|
/**
|
@@ -2991,7 +2991,7 @@ declare module "factorio:runtime" {
|
|
2991
2991
|
}
|
2992
2992
|
/**
|
2993
2993
|
* @see CircuitConditionDefinitionWrite
|
2994
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2994
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#CircuitConditionDefinition Online documentation}
|
2995
2995
|
*/
|
2996
2996
|
export interface CircuitConditionDefinition {
|
2997
2997
|
readonly condition: CircuitCondition
|
@@ -3002,7 +3002,7 @@ declare module "factorio:runtime" {
|
|
3002
3002
|
}
|
3003
3003
|
/**
|
3004
3004
|
* Write form of {@link CircuitConditionDefinition}, where table-or-array concepts are allowed to take an array form.
|
3005
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3005
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#CircuitConditionDefinition Online documentation}
|
3006
3006
|
*/
|
3007
3007
|
export interface CircuitConditionDefinitionWrite {
|
3008
3008
|
readonly condition: CircuitConditionWrite
|
@@ -3318,7 +3318,7 @@ declare module "factorio:runtime" {
|
|
3318
3318
|
* - {@link defines.command.stop}: {@link StopCommand}
|
3319
3319
|
* - {@link defines.command.flee}: {@link FleeCommand}
|
3320
3320
|
* - {@link defines.command.build_base}: {@link BuildBaseCommand}
|
3321
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3321
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#Command Online documentation}
|
3322
3322
|
*/
|
3323
3323
|
export type Command =
|
3324
3324
|
| AttackCommand
|
@@ -3332,7 +3332,7 @@ declare module "factorio:runtime" {
|
|
3332
3332
|
| BuildBaseCommand
|
3333
3333
|
/**
|
3334
3334
|
* Write form of {@link Command}, where table-or-array concepts are allowed to take an array form.
|
3335
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3335
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#Command Online documentation}
|
3336
3336
|
*/
|
3337
3337
|
export type CommandWrite =
|
3338
3338
|
| AttackCommand
|
@@ -3433,7 +3433,7 @@ declare module "factorio:runtime" {
|
|
3433
3433
|
* These are both full stacks of iron plates (for iron-plate, a full stack is 100 plates)
|
3434
3434
|
* "iron-plate"
|
3435
3435
|
* {name="iron-plate", count=100}
|
3436
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3436
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#SimpleItemStack Online documentation}
|
3437
3437
|
*/
|
3438
3438
|
export type SimpleItemStack = string | ItemStackDefinition
|
3439
3439
|
/**
|
@@ -3443,7 +3443,7 @@ declare module "factorio:runtime" {
|
|
3443
3443
|
* - `string`: The fluid name.
|
3444
3444
|
* - {@link LuaFluidPrototype}: The fluid prototype.
|
3445
3445
|
* - {@link Fluid}: The fluid.
|
3446
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3446
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#FluidIdentification Online documentation}
|
3447
3447
|
*/
|
3448
3448
|
export type FluidIdentification = string | LuaFluidPrototype | Fluid
|
3449
3449
|
/**
|
@@ -3453,7 +3453,7 @@ declare module "factorio:runtime" {
|
|
3453
3453
|
* - ForceIndex: The force index.
|
3454
3454
|
* - `string`: The force name.
|
3455
3455
|
* - {@link LuaForce}: A reference to {@link LuaForce} may be passed directly.
|
3456
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3456
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#ForceIdentification Online documentation}
|
3457
3457
|
*/
|
3458
3458
|
export type ForceIdentification = ForceIndex | string | LuaForce
|
3459
3459
|
/**
|
@@ -3463,7 +3463,7 @@ declare module "factorio:runtime" {
|
|
3463
3463
|
* - `string`: The technology name.
|
3464
3464
|
* - {@link LuaTechnology}: A reference to {@link LuaTechnology} may be passed directly.
|
3465
3465
|
* - {@link LuaTechnologyPrototype}: A reference to {@link LuaTechnologyPrototype} may be passed directly.
|
3466
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3466
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#TechnologyIdentification Online documentation}
|
3467
3467
|
*/
|
3468
3468
|
export type TechnologyIdentification = string | LuaTechnology | LuaTechnologyPrototype
|
3469
3469
|
/**
|
@@ -3473,7 +3473,7 @@ declare module "factorio:runtime" {
|
|
3473
3473
|
* - 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.
|
3474
3474
|
* - `string`: It will be the surface name. E.g. `"nauvis"`.
|
3475
3475
|
* - {@link LuaSurface}: A reference to {@link LuaSurface} may be passed directly.
|
3476
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3476
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#SurfaceIdentification Online documentation}
|
3477
3477
|
*/
|
3478
3478
|
export type SurfaceIdentification = SurfaceIndex | string | LuaSurface
|
3479
3479
|
/**
|
@@ -3483,7 +3483,7 @@ declare module "factorio:runtime" {
|
|
3483
3483
|
* - PlayerIndex: The player index.
|
3484
3484
|
* - `string`: The player name.
|
3485
3485
|
* - {@link LuaPlayer}: A reference to {@link LuaPlayer} may be passed directly.
|
3486
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3486
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#PlayerIdentification Online documentation}
|
3487
3487
|
*/
|
3488
3488
|
export type PlayerIdentification = PlayerIndex | string | LuaPlayer
|
3489
3489
|
/**
|
@@ -3492,7 +3492,7 @@ declare module "factorio:runtime" {
|
|
3492
3492
|
* ## Union members
|
3493
3493
|
* - {@link SimpleItemStack}
|
3494
3494
|
* - {@link LuaItemStack}
|
3495
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3495
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#ItemStackIdentification Online documentation}
|
3496
3496
|
*/
|
3497
3497
|
export type ItemStackIdentification = SimpleItemStack | LuaItemStack
|
3498
3498
|
/**
|
@@ -3502,7 +3502,7 @@ declare module "factorio:runtime" {
|
|
3502
3502
|
* - {@link LuaEntity}: The entity.
|
3503
3503
|
* - {@link LuaEntityPrototype}: The entity prototype.
|
3504
3504
|
* - `string`: The prototype name.
|
3505
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3505
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#EntityPrototypeIdentification Online documentation}
|
3506
3506
|
*/
|
3507
3507
|
export type EntityPrototypeIdentification = LuaEntity | LuaEntityPrototype | string
|
3508
3508
|
/**
|
@@ -3512,7 +3512,7 @@ declare module "factorio:runtime" {
|
|
3512
3512
|
* - {@link LuaItemStack}: The item.
|
3513
3513
|
* - {@link LuaItemPrototype}: The item prototype.
|
3514
3514
|
* - `string`: The prototype name.
|
3515
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3515
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#ItemPrototypeIdentification Online documentation}
|
3516
3516
|
*/
|
3517
3517
|
export type ItemPrototypeIdentification = LuaItemStack | LuaItemPrototype | string
|
3518
3518
|
/**
|
@@ -3529,7 +3529,7 @@ declare module "factorio:runtime" {
|
|
3529
3529
|
* - `"fluid_count"`
|
3530
3530
|
* - `"passenger_present"`
|
3531
3531
|
* - `"passenger_not_present"`
|
3532
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3532
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#WaitConditionType Online documentation}
|
3533
3533
|
*/
|
3534
3534
|
export type WaitConditionType =
|
3535
3535
|
| "time"
|
@@ -3544,7 +3544,7 @@ declare module "factorio:runtime" {
|
|
3544
3544
|
| "passenger_not_present"
|
3545
3545
|
/**
|
3546
3546
|
* @see WaitConditionWrite
|
3547
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3547
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#WaitCondition Online documentation}
|
3548
3548
|
*/
|
3549
3549
|
export interface WaitCondition {
|
3550
3550
|
readonly type: WaitConditionType
|
@@ -3563,7 +3563,7 @@ declare module "factorio:runtime" {
|
|
3563
3563
|
}
|
3564
3564
|
/**
|
3565
3565
|
* Write form of {@link WaitCondition}, where table-or-array concepts are allowed to take an array form.
|
3566
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3566
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#WaitCondition Online documentation}
|
3567
3567
|
*/
|
3568
3568
|
export interface WaitConditionWrite {
|
3569
3569
|
readonly type: WaitConditionType
|
@@ -3582,7 +3582,7 @@ declare module "factorio:runtime" {
|
|
3582
3582
|
}
|
3583
3583
|
/**
|
3584
3584
|
* @see TrainScheduleRecordWrite
|
3585
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3585
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#TrainScheduleRecord Online documentation}
|
3586
3586
|
*/
|
3587
3587
|
export interface TrainScheduleRecord {
|
3588
3588
|
/**
|
@@ -3605,7 +3605,7 @@ declare module "factorio:runtime" {
|
|
3605
3605
|
}
|
3606
3606
|
/**
|
3607
3607
|
* Write form of {@link TrainScheduleRecord}, where table-or-array concepts are allowed to take an array form.
|
3608
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3608
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#TrainScheduleRecord Online documentation}
|
3609
3609
|
*/
|
3610
3610
|
export interface TrainScheduleRecordWrite {
|
3611
3611
|
/**
|
@@ -3628,7 +3628,7 @@ declare module "factorio:runtime" {
|
|
3628
3628
|
}
|
3629
3629
|
/**
|
3630
3630
|
* @see TrainScheduleWrite
|
3631
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3631
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#TrainSchedule Online documentation}
|
3632
3632
|
*/
|
3633
3633
|
export interface TrainSchedule {
|
3634
3634
|
/**
|
@@ -3639,7 +3639,7 @@ declare module "factorio:runtime" {
|
|
3639
3639
|
}
|
3640
3640
|
/**
|
3641
3641
|
* Write form of {@link TrainSchedule}, where table-or-array concepts are allowed to take an array form.
|
3642
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3642
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#TrainSchedule Online documentation}
|
3643
3643
|
*/
|
3644
3644
|
export interface TrainScheduleWrite {
|
3645
3645
|
/**
|
@@ -3655,7 +3655,7 @@ declare module "factorio:runtime" {
|
|
3655
3655
|
* - `"entity"`: Fires at an entity.
|
3656
3656
|
* - `"position"`: Fires directly at a position.
|
3657
3657
|
* - `"direction"`: Fires in a direction.
|
3658
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3658
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#TargetType Online documentation}
|
3659
3659
|
*/
|
3660
3660
|
export type TargetType = "entity" | "position" | "direction"
|
3661
3661
|
export interface AmmoType {
|
@@ -3709,8 +3709,8 @@ declare module "factorio:runtime" {
|
|
3709
3709
|
*
|
3710
3710
|
* The validity of a SpritePath can be verified at runtime using {@link LuaGameScript#is_valid_sprite_path LuaGameScript::is_valid_sprite_path}.
|
3711
3711
|
*
|
3712
|
-
* {@link https://lua-api.factorio.com/1.1.
|
3713
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3712
|
+
* {@link https://lua-api.factorio.com/1.1.109/concepts.html#SpritePath > The supported types are:}
|
3713
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#SpritePath Online documentation}
|
3714
3714
|
*/
|
3715
3715
|
export type SpritePath =
|
3716
3716
|
| (string & {
|
@@ -3737,12 +3737,12 @@ declare module "factorio:runtime" {
|
|
3737
3737
|
*
|
3738
3738
|
* The validity of a SoundPath can be verified at runtime using {@link LuaGameScript#is_valid_sound_path LuaGameScript::is_valid_sound_path}.
|
3739
3739
|
*
|
3740
|
-
* {@link https://lua-api.factorio.com/1.1.
|
3740
|
+
* {@link https://lua-api.factorio.com/1.1.109/concepts.html#SoundPath > The utility and ambient types each contain general use sound prototypes defined by the game itself:}
|
3741
3741
|
*
|
3742
|
-
* {@link https://lua-api.factorio.com/1.1.
|
3742
|
+
* {@link https://lua-api.factorio.com/1.1.109/concepts.html#SoundPath > The following types can be combined with any tile name as long as its prototype defines the corresponding sound:}
|
3743
3743
|
*
|
3744
|
-
* {@link https://lua-api.factorio.com/1.1.
|
3745
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3744
|
+
* {@link https://lua-api.factorio.com/1.1.109/concepts.html#SoundPath > The following types can be combined with any entity name as long as its prototype defines the corresponding sound:}
|
3745
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#SoundPath Online documentation}
|
3746
3746
|
*/
|
3747
3747
|
export type SoundPath =
|
3748
3748
|
| (string & {
|
@@ -3762,7 +3762,7 @@ declare module "factorio:runtime" {
|
|
3762
3762
|
* speed={bonus=-0.15},
|
3763
3763
|
* productivity={bonus=0.06},
|
3764
3764
|
* pollution={bonus=0.075}}
|
3765
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3765
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#ModuleEffects Online documentation}
|
3766
3766
|
*/
|
3767
3767
|
export interface ModuleEffects {
|
3768
3768
|
readonly consumption?: ModuleEffectValue
|
@@ -3772,7 +3772,7 @@ declare module "factorio:runtime" {
|
|
3772
3772
|
}
|
3773
3773
|
/**
|
3774
3774
|
* A set of flags. Active flags are in the dictionary as `true`, while inactive flags aren't present at all. By default, none of these flags are set.
|
3775
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3775
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#EntityPrototypeFlags Online documentation}
|
3776
3776
|
*/
|
3777
3777
|
export type EntityPrototypeFlags = {
|
3778
3778
|
readonly [T in EntityPrototypeFlag]?: true
|
@@ -3807,7 +3807,7 @@ declare module "factorio:runtime" {
|
|
3807
3807
|
* - `"not-upgradable"`: Prevents the entity from being selected by the upgrade planner.
|
3808
3808
|
* - `"not-in-kill-statistics"`: Prevents the entity from being shown in the kill statistics.
|
3809
3809
|
* - `"not-in-made-in"`: Prevents the entity from being shown in the "made in" list in recipe tooltips.
|
3810
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3810
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#EntityPrototypeFlag Online documentation}
|
3811
3811
|
*/
|
3812
3812
|
export type EntityPrototypeFlag =
|
3813
3813
|
| "not-rotatable"
|
@@ -3838,7 +3838,7 @@ declare module "factorio:runtime" {
|
|
3838
3838
|
| "not-in-made-in"
|
3839
3839
|
/**
|
3840
3840
|
* A set of flags. Active flags are in the dictionary as `true`, while inactive flags aren't present at all. By default, none of these flags are set.
|
3841
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3841
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#ItemPrototypeFlags Online documentation}
|
3842
3842
|
*/
|
3843
3843
|
export type ItemPrototypeFlags = {
|
3844
3844
|
readonly [T in ItemPrototypeFlag]?: true
|
@@ -3858,7 +3858,7 @@ declare module "factorio:runtime" {
|
|
3858
3858
|
* - `"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.
|
3859
3859
|
* - `"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.
|
3860
3860
|
* - `"spawnable"`: Allows the item to be spawned by a quickbar shortcut or custom input.
|
3861
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3861
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#ItemPrototypeFlag Online documentation}
|
3862
3862
|
*/
|
3863
3863
|
export type ItemPrototypeFlag =
|
3864
3864
|
| "draw-logistic-overlay"
|
@@ -3891,7 +3891,7 @@ declare module "factorio:runtime" {
|
|
3891
3891
|
* - `"rail-layer"`
|
3892
3892
|
* - `"transport-belt-layer"`
|
3893
3893
|
* - `"not-setup"`
|
3894
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3894
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#CollisionMaskLayer Online documentation}
|
3895
3895
|
*/
|
3896
3896
|
export type CollisionMaskLayer =
|
3897
3897
|
| "ground-tile"
|
@@ -3910,7 +3910,7 @@ declare module "factorio:runtime" {
|
|
3910
3910
|
| `layer-${bigint}`
|
3911
3911
|
/**
|
3912
3912
|
* A set of flags. Active flags are in the dictionary as `true`, while inactive flags aren't present at all.
|
3913
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3913
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#CollisionMask Online documentation}
|
3914
3914
|
*/
|
3915
3915
|
export type CollisionMask = {
|
3916
3916
|
readonly [T in CollisionMaskLayer]?: true
|
@@ -3923,7 +3923,7 @@ declare module "factorio:runtime" {
|
|
3923
3923
|
* - `"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.
|
3924
3924
|
* - `"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.
|
3925
3925
|
* - `"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.
|
3926
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3926
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#CollisionMaskWithFlags Online documentation}
|
3927
3927
|
*/
|
3928
3928
|
export type CollisionMaskWithFlags = {
|
3929
3929
|
/**
|
@@ -3943,10 +3943,47 @@ declare module "factorio:runtime" {
|
|
3943
3943
|
}
|
3944
3944
|
/**
|
3945
3945
|
* A set of trigger target masks.
|
3946
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3946
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#TriggerTargetMask Online documentation}
|
3947
3947
|
*/
|
3948
3948
|
export type TriggerTargetMask = Record<string, boolean>
|
3949
|
-
export interface
|
3949
|
+
export interface CircularParticleCreationSpecification {
|
3950
|
+
/**
|
3951
|
+
* Name of the {@link LuaEntityPrototype}.
|
3952
|
+
*/
|
3953
|
+
readonly name: string
|
3954
|
+
readonly direction: float
|
3955
|
+
readonly direction_deviation: float
|
3956
|
+
readonly speed: float
|
3957
|
+
readonly speed_deviation: float
|
3958
|
+
readonly starting_frame_speed: float
|
3959
|
+
readonly starting_frame_speed_deviation: float
|
3960
|
+
readonly height: float
|
3961
|
+
readonly height_deviation: float
|
3962
|
+
readonly vertical_speed: float
|
3963
|
+
readonly vertical_speed_deviation: float
|
3964
|
+
/**
|
3965
|
+
* This vector is a table with `x` and `y` keys instead of an array.
|
3966
|
+
*/
|
3967
|
+
readonly center: Vector
|
3968
|
+
readonly creation_distance: double
|
3969
|
+
readonly creation_distance_orientation: double
|
3970
|
+
readonly use_source_position: boolean
|
3971
|
+
}
|
3972
|
+
export type CircularProjectileCreationSpecification = readonly [RealOrientation, Vector]
|
3973
|
+
export interface AttackParameterFluid {
|
3974
|
+
/**
|
3975
|
+
* Name of the {@link LuaFluidPrototype}.
|
3976
|
+
*/
|
3977
|
+
readonly type: string
|
3978
|
+
/**
|
3979
|
+
* Multiplier applied to the damage of an attack.
|
3980
|
+
*/
|
3981
|
+
readonly damage_modifier: double
|
3982
|
+
}
|
3983
|
+
/**
|
3984
|
+
* Common attributes to all variants of {@link AttackParameters}.
|
3985
|
+
*/
|
3986
|
+
export interface BaseAttackParameters {
|
3950
3987
|
/**
|
3951
3988
|
* The type of AttackParameter.
|
3952
3989
|
*/
|
@@ -4003,10 +4040,53 @@ declare module "factorio:runtime" {
|
|
4003
4040
|
readonly movement_slow_down_cooldown: float
|
4004
4041
|
readonly ammo_type?: AmmoType
|
4005
4042
|
/**
|
4006
|
-
* List of the names of compatible
|
4043
|
+
* List of the names of compatible {@link LuaAmmoCategoryPrototype LuaAmmoCategoryPrototypes}.
|
4007
4044
|
*/
|
4008
4045
|
readonly ammo_categories?: string[]
|
4009
4046
|
}
|
4047
|
+
/**
|
4048
|
+
* `"projectile"` variant of {@link AttackParameters}.
|
4049
|
+
*/
|
4050
|
+
export interface ProjectileAttackParameters extends BaseAttackParameters {
|
4051
|
+
readonly type: "projectile"
|
4052
|
+
readonly projectile_center: Vector
|
4053
|
+
readonly projectile_creation_distance: float
|
4054
|
+
readonly projectile_orientation_offset: float
|
4055
|
+
readonly shell_particle?: CircularParticleCreationSpecification
|
4056
|
+
readonly projectile_creation_parameters?: CircularProjectileCreationSpecification[]
|
4057
|
+
}
|
4058
|
+
/**
|
4059
|
+
* `"stream"` variant of {@link AttackParameters}.
|
4060
|
+
*/
|
4061
|
+
export interface StreamAttackParameters extends BaseAttackParameters {
|
4062
|
+
readonly type: "stream"
|
4063
|
+
readonly gun_barrel_length: float
|
4064
|
+
readonly gun_center_shift: GunShift4Way
|
4065
|
+
readonly fluid_consumption: float
|
4066
|
+
readonly fluids?: AttackParameterFluid[]
|
4067
|
+
readonly projectile_creation_parameters?: CircularProjectileCreationSpecification[]
|
4068
|
+
}
|
4069
|
+
/**
|
4070
|
+
* Variants of {@link AttackParameters} with no additional attributes.
|
4071
|
+
*/
|
4072
|
+
export interface OtherAttackParameters extends BaseAttackParameters {
|
4073
|
+
readonly type: "beam"
|
4074
|
+
}
|
4075
|
+
/**
|
4076
|
+
* Base attributes: {@link BaseAttackParameters}
|
4077
|
+
*
|
4078
|
+
* Other attributes may be specified depending on `type`:
|
4079
|
+
* - `"projectile"`: {@link ProjectileAttackParameters}
|
4080
|
+
* - `"stream"`: {@link StreamAttackParameters}
|
4081
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#AttackParameters Online documentation}
|
4082
|
+
*/
|
4083
|
+
export type AttackParameters = ProjectileAttackParameters | StreamAttackParameters | OtherAttackParameters
|
4084
|
+
export interface GunShift4Way {
|
4085
|
+
readonly north: Vector
|
4086
|
+
readonly east: Vector
|
4087
|
+
readonly south: Vector
|
4088
|
+
readonly west: Vector
|
4089
|
+
}
|
4010
4090
|
export interface BaseCapsuleAction {
|
4011
4091
|
readonly type: "throw" | "equipment-remote" | "use-on-self" | "artillery-remote" | "destroy-cliffs"
|
4012
4092
|
}
|
@@ -4064,7 +4144,7 @@ declare module "factorio:runtime" {
|
|
4064
4144
|
* - `"use-on-self"`: {@link UseOnSelfCapsuleAction}
|
4065
4145
|
* - `"artillery-remote"`: {@link ArtilleryRemoteCapsuleAction}
|
4066
4146
|
* - `"destroy-cliffs"`: {@link DestroyCliffsCapsuleAction}
|
4067
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4147
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#CapsuleAction Online documentation}
|
4068
4148
|
*/
|
4069
4149
|
export type CapsuleAction =
|
4070
4150
|
| ThrowCapsuleAction
|
@@ -4100,7 +4180,7 @@ declare module "factorio:runtime" {
|
|
4100
4180
|
* - `"avoid-rolling-stock"`: Selects entities that are not `rolling-stock`s.
|
4101
4181
|
* - `"entity-ghost"`: Selects entities that are `entity-ghost`s.
|
4102
4182
|
* - `"tile-ghost"`: Selects entities that are `tile-ghost`s.
|
4103
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4183
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#SelectionModeFlags Online documentation}
|
4104
4184
|
*/
|
4105
4185
|
export interface SelectionModeFlags {
|
4106
4186
|
/**
|
@@ -4249,12 +4329,12 @@ declare module "factorio:runtime" {
|
|
4249
4329
|
}
|
4250
4330
|
/**
|
4251
4331
|
* Any basic type (string, number, boolean) or table.
|
4252
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4332
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#AnyBasic Online documentation}
|
4253
4333
|
*/
|
4254
4334
|
export type AnyBasic = string | boolean | number | table
|
4255
4335
|
/**
|
4256
4336
|
* Any basic type (string, number, boolean), table, or LuaObject.
|
4257
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4337
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#Any Online documentation}
|
4258
4338
|
*/
|
4259
4339
|
export type Any = string | boolean | number | table | LuaObject
|
4260
4340
|
export interface ProgrammableSpeakerParameters {
|
@@ -4292,7 +4372,7 @@ declare module "factorio:runtime" {
|
|
4292
4372
|
* - `"top-right"`
|
4293
4373
|
* - `"right"`: The same as `"middle-right"`
|
4294
4374
|
* - `"bottom-right"`
|
4295
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4375
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#Alignment Online documentation}
|
4296
4376
|
*/
|
4297
4377
|
export type Alignment =
|
4298
4378
|
| "top-left"
|
@@ -4307,8 +4387,8 @@ declare module "factorio:runtime" {
|
|
4307
4387
|
| "right"
|
4308
4388
|
| "bottom-right"
|
4309
4389
|
/**
|
4310
|
-
* 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.
|
4311
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4390
|
+
* 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.109/events.html the list of Factorio events} for more information on these.
|
4391
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#EventData Online documentation}
|
4312
4392
|
*/
|
4313
4393
|
export interface EventData {
|
4314
4394
|
/**
|
@@ -4418,7 +4498,7 @@ declare module "factorio:runtime" {
|
|
4418
4498
|
* - `"button-7"`
|
4419
4499
|
* - `"button-8"`
|
4420
4500
|
* - `"button-9"`
|
4421
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4501
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#MouseButtonFlags Online documentation}
|
4422
4502
|
*/
|
4423
4503
|
export interface MouseButtonFlags {
|
4424
4504
|
readonly left?: true
|
@@ -4442,7 +4522,7 @@ declare module "factorio:runtime" {
|
|
4442
4522
|
* - `"not-friend"`: Forces which are not friends pass.
|
4443
4523
|
* - `"same"`: The same force pass.
|
4444
4524
|
* - `"not-same"`: The non-same forces pass.
|
4445
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4525
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#ForceCondition Online documentation}
|
4446
4526
|
*/
|
4447
4527
|
export type ForceCondition = "all" | "enemy" | "ally" | "friend" | "not-friend" | "same" | "not-same"
|
4448
4528
|
/**
|
@@ -4493,7 +4573,7 @@ declare module "factorio:runtime" {
|
|
4493
4573
|
* - `"collision-selection-box"`: 189
|
4494
4574
|
* - `"arrow"`: 190
|
4495
4575
|
* - `"cursor"`: 210
|
4496
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4576
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#RenderLayer Online documentation}
|
4497
4577
|
*/
|
4498
4578
|
export type RenderLayer =
|
4499
4579
|
| `${bigint}`
|
@@ -4559,7 +4639,7 @@ declare module "factorio:runtime" {
|
|
4559
4639
|
* - `"walking"`
|
4560
4640
|
* - `"alert"`
|
4561
4641
|
* - `"wind"`
|
4562
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4642
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#SoundType Online documentation}
|
4563
4643
|
*/
|
4564
4644
|
export type SoundType = "game-effect" | "gui-effect" | "ambient" | "environment" | "walking" | "alert" | "wind"
|
4565
4645
|
/**
|
@@ -4589,7 +4669,7 @@ declare module "factorio:runtime" {
|
|
4589
4669
|
* - `"tabbed-pane"`: A collection of `tab`s and their contents. Relevant event: {@link OnGuiSelectedTabChangedEvent on_gui_selected_tab_changed}
|
4590
4670
|
* - `"tab"`: A tab for use in a `tabbed-pane`.
|
4591
4671
|
* - `"switch"`: A switch with three possible states. Can have labels attached to either side. Relevant event: {@link OnGuiSwitchStateChangedEvent on_gui_switch_state_changed}
|
4592
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4672
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#GuiElementType Online documentation}
|
4593
4673
|
*/
|
4594
4674
|
export type GuiElementType =
|
4595
4675
|
| "button"
|
@@ -4629,7 +4709,7 @@ declare module "factorio:runtime" {
|
|
4629
4709
|
* - `"position"`
|
4630
4710
|
* - `"crafting_queue"`
|
4631
4711
|
* - `"item_stack"`: Will point to a given item stack in an inventory.
|
4632
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4712
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#GuiArrowType Online documentation}
|
4633
4713
|
*/
|
4634
4714
|
export type GuiArrowType =
|
4635
4715
|
| "nowhere"
|
@@ -4650,7 +4730,7 @@ declare module "factorio:runtime" {
|
|
4650
4730
|
* ## Union members
|
4651
4731
|
* - `"horizontal"`
|
4652
4732
|
* - `"vertical"`
|
4653
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4733
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#GuiDirection Online documentation}
|
4654
4734
|
*/
|
4655
4735
|
export type GuiDirection = "horizontal" | "vertical"
|
4656
4736
|
/**
|
@@ -4662,76 +4742,76 @@ declare module "factorio:runtime" {
|
|
4662
4742
|
* - `"always"`
|
4663
4743
|
* - `"auto"`
|
4664
4744
|
* - `"auto-and-reserve-space"`
|
4665
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4745
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#ScrollPolicy Online documentation}
|
4666
4746
|
*/
|
4667
4747
|
export type ScrollPolicy = "never" | "dont-show-but-allow-scrolling" | "always" | "auto" | "auto-and-reserve-space"
|
4668
4748
|
/**
|
4669
4749
|
* A floating-point number. This is a single-precision floating point number. Whilst Lua only uses double-precision numbers, when a function takes a float, the game engine will immediately convert the double-precision number to single-precision.
|
4670
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4750
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#float Online documentation}
|
4671
4751
|
*/
|
4672
4752
|
export type float = number
|
4673
4753
|
/**
|
4674
4754
|
* A double-precision floating-point number. This is the same data type as all Lua numbers use.
|
4675
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4755
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#double Online documentation}
|
4676
4756
|
*/
|
4677
4757
|
export type double = number
|
4678
4758
|
/**
|
4679
4759
|
* 32-bit signed integer. Possible values are `-2 147 483 648` to `2 147 483 647`.
|
4680
4760
|
*
|
4681
4761
|
* Since Lua 5.2 only uses doubles, any API that asks for `int` will floor the given double.
|
4682
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4762
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#int Online documentation}
|
4683
4763
|
*/
|
4684
4764
|
export type int = number
|
4685
4765
|
/**
|
4686
4766
|
* 8-bit signed integer. Possible values are `-128` to `127`.
|
4687
4767
|
*
|
4688
4768
|
* Since Lua 5.2 only uses doubles, any API that asks for `int8` will floor the given double.
|
4689
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4769
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#int8 Online documentation}
|
4690
4770
|
*/
|
4691
4771
|
export type int8 = number
|
4692
4772
|
/**
|
4693
4773
|
* 32-bit unsigned integer. Possible values are `0` to `4 294 967 295`.
|
4694
4774
|
*
|
4695
4775
|
* Since Lua 5.2 only uses doubles, any API that asks for `uint` will floor the given double.
|
4696
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4776
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#uint Online documentation}
|
4697
4777
|
*/
|
4698
4778
|
export type uint = number
|
4699
4779
|
/**
|
4700
4780
|
* 8-bit unsigned integer. Possible values are `0` to `255`.
|
4701
4781
|
*
|
4702
4782
|
* Since Lua 5.2 only uses doubles, any API that asks for `uint8` will floor the given double.
|
4703
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4783
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#uint8 Online documentation}
|
4704
4784
|
*/
|
4705
4785
|
export type uint8 = number
|
4706
4786
|
/**
|
4707
4787
|
* 16-bit unsigned integer. Possible values are `0` to `65 535`.
|
4708
4788
|
*
|
4709
4789
|
* Since Lua 5.2 only uses doubles, any API that asks for `uint16` will floor the given double.
|
4710
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4790
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#uint16 Online documentation}
|
4711
4791
|
*/
|
4712
4792
|
export type uint16 = number
|
4713
4793
|
/**
|
4714
4794
|
* 64-bit unsigned integer. Possible values are `0` to `18 446 744 073 709 551 615`.
|
4715
4795
|
*
|
4716
4796
|
* Since Lua 5.2 only uses doubles, any API that asks for `uint64` will floor the given double.
|
4717
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4797
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#uint64 Online documentation}
|
4718
4798
|
*/
|
4719
4799
|
export type uint64 = number
|
4720
4800
|
/**
|
4721
4801
|
* Nil is the type of the value `nil`, whose main property is to be different from any other value. It usually represents the absence of a useful value.
|
4722
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4802
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#nil Online documentation}
|
4723
4803
|
*/
|
4724
4804
|
export type nil = undefined
|
4725
4805
|
/**
|
4726
4806
|
* Tables are enclosed in curly brackets, like this `{}`.
|
4727
4807
|
*
|
4728
4808
|
* Throughout the API docs, the terms "array" and "dictionary" are used. These are fundamentally just {@linkplain http://www.lua.org/pil/2.5.html Lua tables}, but have a limitation on which kind of table keys can be used. An array is a table that uses continuous integer keys starting at `1`, while a dictionary can use numeric or string keys in any order or combination.
|
4729
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4809
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#table Online documentation}
|
4730
4810
|
*/
|
4731
4811
|
export type table = object
|
4732
4812
|
/**
|
4733
|
-
* Any LuaObject listed on the {@linkplain https://lua-api.factorio.com/1.1.
|
4734
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4813
|
+
* Any LuaObject listed on the {@linkplain https://lua-api.factorio.com/1.1.109/classes.html Classes} page.
|
4814
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#LuaObject Online documentation}
|
4735
4815
|
*/
|
4736
4816
|
export interface LuaObject {
|
4737
4817
|
readonly object_name: string
|
@@ -5066,7 +5146,7 @@ declare module "factorio:runtime" {
|
|
5066
5146
|
* - `"fuel-acceleration-multiplier"`: {@link FuelAccelerationMultiplierItemPrototypeFilter}
|
5067
5147
|
* - `"fuel-top-speed-multiplier"`: {@link FuelTopSpeedMultiplierItemPrototypeFilter}
|
5068
5148
|
* - `"fuel-emissions-multiplier"`: {@link FuelEmissionsMultiplierItemPrototypeFilter}
|
5069
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
5149
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#ItemPrototypeFilter Online documentation}
|
5070
5150
|
*/
|
5071
5151
|
export type ItemPrototypeFilter =
|
5072
5152
|
| PlaceResultItemPrototypeFilter
|
@@ -5088,7 +5168,7 @@ declare module "factorio:runtime" {
|
|
5088
5168
|
| OtherItemPrototypeFilter
|
5089
5169
|
/**
|
5090
5170
|
* Write form of {@link ItemPrototypeFilter}, where table-or-array concepts are allowed to take an array form.
|
5091
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
5171
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#ItemPrototypeFilter Online documentation}
|
5092
5172
|
*/
|
5093
5173
|
export type ItemPrototypeFilterWrite =
|
5094
5174
|
| PlaceResultItemPrototypeFilterWrite
|
@@ -5162,7 +5242,7 @@ declare module "factorio:runtime" {
|
|
5162
5242
|
* - `"type"`: {@link TypeModSettingPrototypeFilter}
|
5163
5243
|
* - `"mod"`: {@link ModModSettingPrototypeFilter}
|
5164
5244
|
* - `"setting-type"`: {@link SettingTypeModSettingPrototypeFilter}
|
5165
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
5245
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#ModSettingPrototypeFilter Online documentation}
|
5166
5246
|
*/
|
5167
5247
|
export type ModSettingPrototypeFilter =
|
5168
5248
|
| TypeModSettingPrototypeFilter
|
@@ -5288,7 +5368,7 @@ declare module "factorio:runtime" {
|
|
5288
5368
|
* - `"level"`: {@link LevelTechnologyPrototypeFilter}
|
5289
5369
|
* - `"max-level"`: {@link MaxLevelTechnologyPrototypeFilter}
|
5290
5370
|
* - `"time"`: {@link TimeTechnologyPrototypeFilter}
|
5291
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
5371
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#TechnologyPrototypeFilter Online documentation}
|
5292
5372
|
*/
|
5293
5373
|
export type TechnologyPrototypeFilter =
|
5294
5374
|
| ResearchUnitIngredientTechnologyPrototypeFilter
|
@@ -5299,7 +5379,7 @@ declare module "factorio:runtime" {
|
|
5299
5379
|
| OtherTechnologyPrototypeFilter
|
5300
5380
|
/**
|
5301
5381
|
* Write form of {@link TechnologyPrototypeFilter}, where table-or-array concepts are allowed to take an array form.
|
5302
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
5382
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#TechnologyPrototypeFilter Online documentation}
|
5303
5383
|
*/
|
5304
5384
|
export type TechnologyPrototypeFilterWrite =
|
5305
5385
|
| ResearchUnitIngredientTechnologyPrototypeFilter
|
@@ -5347,7 +5427,7 @@ declare module "factorio:runtime" {
|
|
5347
5427
|
*
|
5348
5428
|
* Other attributes may be specified depending on `filter`:
|
5349
5429
|
* - `"collision-mask"`: {@link CollisionMaskDecorativePrototypeFilter}
|
5350
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
5430
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#DecorativePrototypeFilter Online documentation}
|
5351
5431
|
*/
|
5352
5432
|
export type DecorativePrototypeFilter = CollisionMaskDecorativePrototypeFilter | OtherDecorativePrototypeFilter
|
5353
5433
|
/**
|
@@ -5388,7 +5468,7 @@ declare module "factorio:runtime" {
|
|
5388
5468
|
*
|
5389
5469
|
* Other attributes may be specified depending on `filter`:
|
5390
5470
|
* - `"type"`: {@link TypeAchievementPrototypeFilter}
|
5391
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
5471
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#AchievementPrototypeFilter Online documentation}
|
5392
5472
|
*/
|
5393
5473
|
export type AchievementPrototypeFilter = TypeAchievementPrototypeFilter | OtherAchievementPrototypeFilter
|
5394
5474
|
/**
|
@@ -5573,7 +5653,7 @@ declare module "factorio:runtime" {
|
|
5573
5653
|
* - `"fuel-value"`: {@link FuelValueFluidPrototypeFilter}
|
5574
5654
|
* - `"emissions-multiplier"`: {@link EmissionsMultiplierFluidPrototypeFilter}
|
5575
5655
|
* - `"gas-temperature"`: {@link GasTemperatureFluidPrototypeFilter}
|
5576
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
5656
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#FluidPrototypeFilter Online documentation}
|
5577
5657
|
*/
|
5578
5658
|
export type FluidPrototypeFilter =
|
5579
5659
|
| NameFluidPrototypeFilter
|
@@ -5587,7 +5667,7 @@ declare module "factorio:runtime" {
|
|
5587
5667
|
| OtherFluidPrototypeFilter
|
5588
5668
|
/**
|
5589
5669
|
* Write form of {@link FluidPrototypeFilter}, where table-or-array concepts are allowed to take an array form.
|
5590
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
5670
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#FluidPrototypeFilter Online documentation}
|
5591
5671
|
*/
|
5592
5672
|
export type FluidPrototypeFilterWrite =
|
5593
5673
|
| NameFluidPrototypeFilter
|
@@ -5637,7 +5717,7 @@ declare module "factorio:runtime" {
|
|
5637
5717
|
*
|
5638
5718
|
* Other attributes may be specified depending on `filter`:
|
5639
5719
|
* - `"type"`: {@link TypeEquipmentPrototypeFilter}
|
5640
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
5720
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#EquipmentPrototypeFilter Online documentation}
|
5641
5721
|
*/
|
5642
5722
|
export type EquipmentPrototypeFilter = TypeEquipmentPrototypeFilter | OtherEquipmentPrototypeFilter
|
5643
5723
|
/**
|
@@ -5768,7 +5848,7 @@ declare module "factorio:runtime" {
|
|
5768
5848
|
* - `"vehicle-friction-modifier"`: {@link VehicleFrictionModifierTilePrototypeFilter}
|
5769
5849
|
* - `"decorative-removal-probability"`: {@link DecorativeRemovalProbabilityTilePrototypeFilter}
|
5770
5850
|
* - `"emissions"`: {@link EmissionsTilePrototypeFilter}
|
5771
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
5851
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#TilePrototypeFilter Online documentation}
|
5772
5852
|
*/
|
5773
5853
|
export type TilePrototypeFilter =
|
5774
5854
|
| CollisionMaskTilePrototypeFilter
|
@@ -5779,7 +5859,7 @@ declare module "factorio:runtime" {
|
|
5779
5859
|
| OtherTilePrototypeFilter
|
5780
5860
|
/**
|
5781
5861
|
* Write form of {@link TilePrototypeFilter}, where table-or-array concepts are allowed to take an array form.
|
5782
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
5862
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#TilePrototypeFilter Online documentation}
|
5783
5863
|
*/
|
5784
5864
|
export type TilePrototypeFilterWrite =
|
5785
5865
|
| CollisionMaskTilePrototypeFilter
|
@@ -6039,7 +6119,7 @@ declare module "factorio:runtime" {
|
|
6039
6119
|
* - `"emissions-multiplier"`: {@link EmissionsMultiplierRecipePrototypeFilter}
|
6040
6120
|
* - `"request-paste-multiplier"`: {@link RequestPasteMultiplierRecipePrototypeFilter}
|
6041
6121
|
* - `"overload-multiplier"`: {@link OverloadMultiplierRecipePrototypeFilter}
|
6042
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
6122
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#RecipePrototypeFilter Online documentation}
|
6043
6123
|
*/
|
6044
6124
|
export type RecipePrototypeFilter =
|
6045
6125
|
| HasIngredientItemRecipePrototypeFilter
|
@@ -6055,7 +6135,7 @@ declare module "factorio:runtime" {
|
|
6055
6135
|
| OtherRecipePrototypeFilter
|
6056
6136
|
/**
|
6057
6137
|
* Write form of {@link RecipePrototypeFilter}, where table-or-array concepts are allowed to take an array form.
|
6058
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
6138
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#RecipePrototypeFilter Online documentation}
|
6059
6139
|
*/
|
6060
6140
|
export type RecipePrototypeFilterWrite =
|
6061
6141
|
| HasIngredientItemRecipePrototypeFilterWrite
|
@@ -6286,7 +6366,7 @@ declare module "factorio:runtime" {
|
|
6286
6366
|
* - `"selection-priority"`: {@link SelectionPriorityEntityPrototypeFilter}
|
6287
6367
|
* - `"emissions"`: {@link EmissionsEntityPrototypeFilter}
|
6288
6368
|
* - `"crafting-category"`: {@link CraftingCategoryEntityPrototypeFilter}
|
6289
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
6369
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#EntityPrototypeFilter Online documentation}
|
6290
6370
|
*/
|
6291
6371
|
export type EntityPrototypeFilter =
|
6292
6372
|
| NameEntityPrototypeFilter
|
@@ -6300,7 +6380,7 @@ declare module "factorio:runtime" {
|
|
6300
6380
|
| OtherEntityPrototypeFilter
|
6301
6381
|
/**
|
6302
6382
|
* Write form of {@link EntityPrototypeFilter}, where table-or-array concepts are allowed to take an array form.
|
6303
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
6383
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#EntityPrototypeFilter Online documentation}
|
6304
6384
|
*/
|
6305
6385
|
export type EntityPrototypeFilterWrite =
|
6306
6386
|
| NameEntityPrototypeFilter
|
@@ -6409,7 +6489,7 @@ declare module "factorio:runtime" {
|
|
6409
6489
|
* - `"name"`: {@link NameScriptRaisedReviveEventFilter}
|
6410
6490
|
* - `"ghost_type"`: {@link GhostTypeScriptRaisedReviveEventFilter}
|
6411
6491
|
* - `"ghost_name"`: {@link GhostNameScriptRaisedReviveEventFilter}
|
6412
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
6492
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#LuaScriptRaisedReviveEventFilter Online documentation}
|
6413
6493
|
*/
|
6414
6494
|
export type LuaScriptRaisedReviveEventFilter =
|
6415
6495
|
| TypeScriptRaisedReviveEventFilter
|
@@ -6514,7 +6594,7 @@ declare module "factorio:runtime" {
|
|
6514
6594
|
* - `"name"`: {@link NameEntityDiedEventFilter}
|
6515
6595
|
* - `"ghost_type"`: {@link GhostTypeEntityDiedEventFilter}
|
6516
6596
|
* - `"ghost_name"`: {@link GhostNameEntityDiedEventFilter}
|
6517
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
6597
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#LuaEntityDiedEventFilter Online documentation}
|
6518
6598
|
*/
|
6519
6599
|
export type LuaEntityDiedEventFilter =
|
6520
6600
|
| TypeEntityDiedEventFilter
|
@@ -6621,7 +6701,7 @@ declare module "factorio:runtime" {
|
|
6621
6701
|
* - `"name"`: {@link NameEntityMarkedForDeconstructionEventFilter}
|
6622
6702
|
* - `"ghost_type"`: {@link GhostTypeEntityMarkedForDeconstructionEventFilter}
|
6623
6703
|
* - `"ghost_name"`: {@link GhostNameEntityMarkedForDeconstructionEventFilter}
|
6624
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
6704
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#LuaEntityMarkedForDeconstructionEventFilter Online documentation}
|
6625
6705
|
*/
|
6626
6706
|
export type LuaEntityMarkedForDeconstructionEventFilter =
|
6627
6707
|
| TypeEntityMarkedForDeconstructionEventFilter
|
@@ -6726,7 +6806,7 @@ declare module "factorio:runtime" {
|
|
6726
6806
|
* - `"name"`: {@link NamePreGhostDeconstructedEventFilter}
|
6727
6807
|
* - `"ghost_type"`: {@link GhostTypePreGhostDeconstructedEventFilter}
|
6728
6808
|
* - `"ghost_name"`: {@link GhostNamePreGhostDeconstructedEventFilter}
|
6729
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
6809
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#LuaPreGhostDeconstructedEventFilter Online documentation}
|
6730
6810
|
*/
|
6731
6811
|
export type LuaPreGhostDeconstructedEventFilter =
|
6732
6812
|
| TypePreGhostDeconstructedEventFilter
|
@@ -6831,7 +6911,7 @@ declare module "factorio:runtime" {
|
|
6831
6911
|
* - `"name"`: {@link NameScriptRaisedDestroyEventFilter}
|
6832
6912
|
* - `"ghost_type"`: {@link GhostTypeScriptRaisedDestroyEventFilter}
|
6833
6913
|
* - `"ghost_name"`: {@link GhostNameScriptRaisedDestroyEventFilter}
|
6834
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
6914
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#LuaScriptRaisedDestroyEventFilter Online documentation}
|
6835
6915
|
*/
|
6836
6916
|
export type LuaScriptRaisedDestroyEventFilter =
|
6837
6917
|
| TypeScriptRaisedDestroyEventFilter
|
@@ -6936,7 +7016,7 @@ declare module "factorio:runtime" {
|
|
6936
7016
|
* - `"name"`: {@link NameUpgradeCancelledEventFilter}
|
6937
7017
|
* - `"ghost_type"`: {@link GhostTypeUpgradeCancelledEventFilter}
|
6938
7018
|
* - `"ghost_name"`: {@link GhostNameUpgradeCancelledEventFilter}
|
6939
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
7019
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#LuaUpgradeCancelledEventFilter Online documentation}
|
6940
7020
|
*/
|
6941
7021
|
export type LuaUpgradeCancelledEventFilter =
|
6942
7022
|
| TypeUpgradeCancelledEventFilter
|
@@ -7041,7 +7121,7 @@ declare module "factorio:runtime" {
|
|
7041
7121
|
* - `"name"`: {@link NamePlayerRepairedEntityEventFilter}
|
7042
7122
|
* - `"ghost_type"`: {@link GhostTypePlayerRepairedEntityEventFilter}
|
7043
7123
|
* - `"ghost_name"`: {@link GhostNamePlayerRepairedEntityEventFilter}
|
7044
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
7124
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#LuaPlayerRepairedEntityEventFilter Online documentation}
|
7045
7125
|
*/
|
7046
7126
|
export type LuaPlayerRepairedEntityEventFilter =
|
7047
7127
|
| TypePlayerRepairedEntityEventFilter
|
@@ -7146,7 +7226,7 @@ declare module "factorio:runtime" {
|
|
7146
7226
|
* - `"name"`: {@link NameScriptRaisedTeleportedEventFilter}
|
7147
7227
|
* - `"ghost_type"`: {@link GhostTypeScriptRaisedTeleportedEventFilter}
|
7148
7228
|
* - `"ghost_name"`: {@link GhostNameScriptRaisedTeleportedEventFilter}
|
7149
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
7229
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#LuaScriptRaisedTeleportedEventFilter Online documentation}
|
7150
7230
|
*/
|
7151
7231
|
export type LuaScriptRaisedTeleportedEventFilter =
|
7152
7232
|
| TypeScriptRaisedTeleportedEventFilter
|
@@ -7251,7 +7331,7 @@ declare module "factorio:runtime" {
|
|
7251
7331
|
* - `"name"`: {@link NameEntityMarkedForUpgradeEventFilter}
|
7252
7332
|
* - `"ghost_type"`: {@link GhostTypeEntityMarkedForUpgradeEventFilter}
|
7253
7333
|
* - `"ghost_name"`: {@link GhostNameEntityMarkedForUpgradeEventFilter}
|
7254
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
7334
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#LuaEntityMarkedForUpgradeEventFilter Online documentation}
|
7255
7335
|
*/
|
7256
7336
|
export type LuaEntityMarkedForUpgradeEventFilter =
|
7257
7337
|
| TypeEntityMarkedForUpgradeEventFilter
|
@@ -7291,7 +7371,7 @@ declare module "factorio:runtime" {
|
|
7291
7371
|
*
|
7292
7372
|
* Other attributes may be specified depending on `filter`:
|
7293
7373
|
* - `"type"`: {@link TypePostEntityDiedEventFilter}
|
7294
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
7374
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#LuaPostEntityDiedEventFilter Online documentation}
|
7295
7375
|
*/
|
7296
7376
|
export type LuaPostEntityDiedEventFilter = TypePostEntityDiedEventFilter
|
7297
7377
|
/**
|
@@ -7391,7 +7471,7 @@ declare module "factorio:runtime" {
|
|
7391
7471
|
* - `"name"`: {@link NamePreRobotMinedEntityEventFilter}
|
7392
7472
|
* - `"ghost_type"`: {@link GhostTypePreRobotMinedEntityEventFilter}
|
7393
7473
|
* - `"ghost_name"`: {@link GhostNamePreRobotMinedEntityEventFilter}
|
7394
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
7474
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#LuaPreRobotMinedEntityEventFilter Online documentation}
|
7395
7475
|
*/
|
7396
7476
|
export type LuaPreRobotMinedEntityEventFilter =
|
7397
7477
|
| TypePreRobotMinedEntityEventFilter
|
@@ -7496,7 +7576,7 @@ declare module "factorio:runtime" {
|
|
7496
7576
|
* - `"name"`: {@link NameEntityClonedEventFilter}
|
7497
7577
|
* - `"ghost_type"`: {@link GhostTypeEntityClonedEventFilter}
|
7498
7578
|
* - `"ghost_name"`: {@link GhostNameEntityClonedEventFilter}
|
7499
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
7579
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#LuaEntityClonedEventFilter Online documentation}
|
7500
7580
|
*/
|
7501
7581
|
export type LuaEntityClonedEventFilter =
|
7502
7582
|
| TypeEntityClonedEventFilter
|
@@ -7601,7 +7681,7 @@ declare module "factorio:runtime" {
|
|
7601
7681
|
* - `"name"`: {@link NameScriptRaisedBuiltEventFilter}
|
7602
7682
|
* - `"ghost_type"`: {@link GhostTypeScriptRaisedBuiltEventFilter}
|
7603
7683
|
* - `"ghost_name"`: {@link GhostNameScriptRaisedBuiltEventFilter}
|
7604
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
7684
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#LuaScriptRaisedBuiltEventFilter Online documentation}
|
7605
7685
|
*/
|
7606
7686
|
export type LuaScriptRaisedBuiltEventFilter =
|
7607
7687
|
| TypeScriptRaisedBuiltEventFilter
|
@@ -7706,7 +7786,7 @@ declare module "factorio:runtime" {
|
|
7706
7786
|
* - `"name"`: {@link NameRobotMinedEntityEventFilter}
|
7707
7787
|
* - `"ghost_type"`: {@link GhostTypeRobotMinedEntityEventFilter}
|
7708
7788
|
* - `"ghost_name"`: {@link GhostNameRobotMinedEntityEventFilter}
|
7709
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
7789
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#LuaRobotMinedEntityEventFilter Online documentation}
|
7710
7790
|
*/
|
7711
7791
|
export type LuaRobotMinedEntityEventFilter =
|
7712
7792
|
| TypeRobotMinedEntityEventFilter
|
@@ -7811,7 +7891,7 @@ declare module "factorio:runtime" {
|
|
7811
7891
|
* - `"name"`: {@link NamePrePlayerMinedEntityEventFilter}
|
7812
7892
|
* - `"ghost_type"`: {@link GhostTypePrePlayerMinedEntityEventFilter}
|
7813
7893
|
* - `"ghost_name"`: {@link GhostNamePrePlayerMinedEntityEventFilter}
|
7814
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
7894
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#LuaPrePlayerMinedEntityEventFilter Online documentation}
|
7815
7895
|
*/
|
7816
7896
|
export type LuaPrePlayerMinedEntityEventFilter =
|
7817
7897
|
| TypePrePlayerMinedEntityEventFilter
|
@@ -7928,7 +8008,7 @@ declare module "factorio:runtime" {
|
|
7928
8008
|
* - `"ghost_type"`: {@link GhostTypeRobotBuiltEntityEventFilter}
|
7929
8009
|
* - `"ghost_name"`: {@link GhostNameRobotBuiltEntityEventFilter}
|
7930
8010
|
* - `"force"`: {@link ForceRobotBuiltEntityEventFilter}
|
7931
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
8011
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#LuaRobotBuiltEntityEventFilter Online documentation}
|
7932
8012
|
*/
|
7933
8013
|
export type LuaRobotBuiltEntityEventFilter =
|
7934
8014
|
| TypeRobotBuiltEntityEventFilter
|
@@ -8034,7 +8114,7 @@ declare module "factorio:runtime" {
|
|
8034
8114
|
* - `"name"`: {@link NamePreGhostUpgradedEventFilter}
|
8035
8115
|
* - `"ghost_type"`: {@link GhostTypePreGhostUpgradedEventFilter}
|
8036
8116
|
* - `"ghost_name"`: {@link GhostNamePreGhostUpgradedEventFilter}
|
8037
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
8117
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#LuaPreGhostUpgradedEventFilter Online documentation}
|
8038
8118
|
*/
|
8039
8119
|
export type LuaPreGhostUpgradedEventFilter =
|
8040
8120
|
| TypePreGhostUpgradedEventFilter
|
@@ -8141,7 +8221,7 @@ declare module "factorio:runtime" {
|
|
8141
8221
|
* - `"name"`: {@link NameEntityDeconstructionCancelledEventFilter}
|
8142
8222
|
* - `"ghost_type"`: {@link GhostTypeEntityDeconstructionCancelledEventFilter}
|
8143
8223
|
* - `"ghost_name"`: {@link GhostNameEntityDeconstructionCancelledEventFilter}
|
8144
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
8224
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#LuaEntityDeconstructionCancelledEventFilter Online documentation}
|
8145
8225
|
*/
|
8146
8226
|
export type LuaEntityDeconstructionCancelledEventFilter =
|
8147
8227
|
| TypeEntityDeconstructionCancelledEventFilter
|
@@ -8258,7 +8338,7 @@ declare module "factorio:runtime" {
|
|
8258
8338
|
* - `"ghost_type"`: {@link GhostTypePlayerBuiltEntityEventFilter}
|
8259
8339
|
* - `"ghost_name"`: {@link GhostNamePlayerBuiltEntityEventFilter}
|
8260
8340
|
* - `"force"`: {@link ForcePlayerBuiltEntityEventFilter}
|
8261
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
8341
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#LuaPlayerBuiltEntityEventFilter Online documentation}
|
8262
8342
|
*/
|
8263
8343
|
export type LuaPlayerBuiltEntityEventFilter =
|
8264
8344
|
| TypePlayerBuiltEntityEventFilter
|
@@ -8364,7 +8444,7 @@ declare module "factorio:runtime" {
|
|
8364
8444
|
* - `"name"`: {@link NamePlayerMinedEntityEventFilter}
|
8365
8445
|
* - `"ghost_type"`: {@link GhostTypePlayerMinedEntityEventFilter}
|
8366
8446
|
* - `"ghost_name"`: {@link GhostNamePlayerMinedEntityEventFilter}
|
8367
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
8447
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#LuaPlayerMinedEntityEventFilter Online documentation}
|
8368
8448
|
*/
|
8369
8449
|
export type LuaPlayerMinedEntityEventFilter =
|
8370
8450
|
| TypePlayerMinedEntityEventFilter
|
@@ -8544,7 +8624,7 @@ declare module "factorio:runtime" {
|
|
8544
8624
|
* - `"final-damage-amount"`: {@link FinalDamageAmountEntityDamagedEventFilter}
|
8545
8625
|
* - `"damage-type"`: {@link DamageTypeEntityDamagedEventFilter}
|
8546
8626
|
* - `"final-health"`: {@link FinalHealthEntityDamagedEventFilter}
|
8547
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
8627
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#LuaEntityDamagedEventFilter Online documentation}
|
8548
8628
|
*/
|
8549
8629
|
export type LuaEntityDamagedEventFilter =
|
8550
8630
|
| TypeEntityDamagedEventFilter
|
@@ -8558,7 +8638,7 @@ declare module "factorio:runtime" {
|
|
8558
8638
|
| OtherEntityDamagedEventFilter
|
8559
8639
|
/**
|
8560
8640
|
* Write form of {@link LuaEntityDamagedEventFilter}, where table-or-array concepts are allowed to take an array form.
|
8561
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
8641
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#LuaEntityDamagedEventFilter Online documentation}
|
8562
8642
|
*/
|
8563
8643
|
export type LuaEntityDamagedEventFilterWrite =
|
8564
8644
|
| TypeEntityDamagedEventFilter
|
@@ -8667,7 +8747,7 @@ declare module "factorio:runtime" {
|
|
8667
8747
|
* - `"name"`: {@link NameSectorScannedEventFilter}
|
8668
8748
|
* - `"ghost_type"`: {@link GhostTypeSectorScannedEventFilter}
|
8669
8749
|
* - `"ghost_name"`: {@link GhostNameSectorScannedEventFilter}
|
8670
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
8750
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/concepts.html#LuaSectorScannedEventFilter Online documentation}
|
8671
8751
|
*/
|
8672
8752
|
export type LuaSectorScannedEventFilter =
|
8673
8753
|
| TypeSectorScannedEventFilter
|