typed-factorio 3.2.0 → 3.3.1
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 +2430 -2430
- package/prototype/generated/types.d.ts +2460 -2460
- package/runtime/generated/classes.d.ts +3517 -3510
- package/runtime/generated/concepts.d.ts +270 -270
- package/runtime/generated/defines.d.ts +177 -177
- package/runtime/generated/events.d.ts +200 -200
- package/runtime/generated/global-functions.d.ts +3 -3
- package/runtime/generated/global-objects.d.ts +8 -8
@@ -12,12 +12,12 @@ import type { VersionString } from "factorio:common"
|
|
12
12
|
declare module "factorio:runtime" {
|
13
13
|
/**
|
14
14
|
* `math.huge` represents the maximum possible tick.
|
15
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
15
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/MapTick.html Online documentation}
|
16
16
|
*/
|
17
17
|
export type MapTick = uint64
|
18
18
|
/**
|
19
19
|
* The percentual increase of the attribute. A value of `0.6` means a 60% increase.
|
20
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
20
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/ModuleEffectValue.html Online documentation}
|
21
21
|
*/
|
22
22
|
export type ModuleEffectValue = float
|
23
23
|
/**
|
@@ -27,7 +27,7 @@ declare module "factorio:runtime" {
|
|
27
27
|
* speed=-0.15,
|
28
28
|
* productivity=0.06,
|
29
29
|
* pollution=0.075}
|
30
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
30
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/ModuleEffects.html Online documentation}
|
31
31
|
*/
|
32
32
|
export interface ModuleEffects {
|
33
33
|
readonly consumption?: ModuleEffectValue
|
@@ -51,7 +51,7 @@ declare module "factorio:runtime" {
|
|
51
51
|
* - `"<="`: "lesser than or equal to"
|
52
52
|
* - `"≠"`: "not equal to"
|
53
53
|
* - `"!="`: "not equal to"
|
54
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
54
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/ComparatorString.html Online documentation}
|
55
55
|
*/
|
56
56
|
export type ComparatorString = "=" | ">" | "<" | "≥" | ">=" | "≤" | "<=" | "≠" | "!="
|
57
57
|
/** @see ComparatorString */
|
@@ -83,8 +83,8 @@ declare module "factorio:runtime" {
|
|
83
83
|
*
|
84
84
|
* The validity of a SpritePath can be verified at runtime using {@link LuaHelpers#is_valid_sprite_path LuaHelpers::is_valid_sprite_path}.
|
85
85
|
*
|
86
|
-
* {@link https://lua-api.factorio.com/2.0.
|
87
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
86
|
+
* {@link https://lua-api.factorio.com/2.0.17/concepts/SpritePath.html > The supported types are:}
|
87
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/SpritePath.html Online documentation}
|
88
88
|
*/
|
89
89
|
export type SpritePath =
|
90
90
|
| (string & {
|
@@ -95,7 +95,7 @@ declare module "factorio:runtime" {
|
|
95
95
|
* @example
|
96
96
|
* -- Most common collision mask of buildings:
|
97
97
|
* collision_mask = {layers = {item = true, meltable = true, object = true, player = true, water_tile = true, is_object = true, is_lower_object = true}}
|
98
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
98
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/CollisionMask.html Online documentation}
|
99
99
|
*/
|
100
100
|
export interface CollisionMask {
|
101
101
|
/**
|
@@ -223,7 +223,7 @@ declare module "factorio:runtime" {
|
|
223
223
|
* - `"check-box"`
|
224
224
|
* - `"switch"`
|
225
225
|
* - `"label"`
|
226
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
226
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/SimulationWidgetType.html Online documentation}
|
227
227
|
*/
|
228
228
|
export type SimulationWidgetType =
|
229
229
|
| "signal-id"
|
@@ -345,7 +345,7 @@ declare module "factorio:runtime" {
|
|
345
345
|
* - `"any-goal-accessible"`: The method will return {@link TrainPathFinderOneGoalResult}.
|
346
346
|
* - `"all-goals-accessible"`: The method will return {@link TrainPathAllGoalsResult}.
|
347
347
|
* - `"all-goals-penalties"`: The method will return {@link TrainPathAllGoalsResult} with `penalties`.
|
348
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
348
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/TrainPathRequestType.html Online documentation}
|
349
349
|
*/
|
350
350
|
export type TrainPathRequestType = "path" | "any-goal-accessible" | "all-goals-accessible" | "all-goals-penalties"
|
351
351
|
/**
|
@@ -354,7 +354,7 @@ declare module "factorio:runtime" {
|
|
354
354
|
* - {@link RailEndGoal}
|
355
355
|
* - {@link LuaRailEnd}
|
356
356
|
* - {@link LuaEntity}: Only if it points at train-stop that is connected to a rail.
|
357
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
357
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/TrainPathFinderGoal.html Online documentation}
|
358
358
|
*/
|
359
359
|
export type TrainPathFinderGoal = TrainStopGoal | RailEndGoal | LuaRailEnd | LuaEntity
|
360
360
|
export interface TrainStopGoal {
|
@@ -459,7 +459,7 @@ declare module "factorio:runtime" {
|
|
459
459
|
}
|
460
460
|
/**
|
461
461
|
* A single pipe connection for a given fluidbox.
|
462
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
462
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/PipeConnection.html Online documentation}
|
463
463
|
*/
|
464
464
|
export interface PipeConnection {
|
465
465
|
readonly flow_direction: "input" | "output" | "input-output"
|
@@ -522,7 +522,7 @@ declare module "factorio:runtime" {
|
|
522
522
|
* - {@link LuaEntityDiedEventFilter}
|
523
523
|
* - {@link LuaPreRobotMinedEntityEventFilter}
|
524
524
|
* @see EventFilterWrite
|
525
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
525
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/EventFilter.html Online documentation}
|
526
526
|
*/
|
527
527
|
export type EventFilter =
|
528
528
|
| LuaPrePlatformMinedEntityEventFilter[]
|
@@ -552,7 +552,7 @@ declare module "factorio:runtime" {
|
|
552
552
|
| LuaPreRobotMinedEntityEventFilter[]
|
553
553
|
/**
|
554
554
|
* Write form of {@link EventFilter}, where table-or-array concepts are allowed to take an array form.
|
555
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
555
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/EventFilter.html Online documentation}
|
556
556
|
*/
|
557
557
|
export type EventFilterWrite =
|
558
558
|
| readonly LuaPrePlatformMinedEntityEventFilter[]
|
@@ -602,7 +602,7 @@ declare module "factorio:runtime" {
|
|
602
602
|
* - {@link LuaCommandable}: Target type {@link defines.target_type.commandable commandable}; `useful_id` {@link LuaCommandable#unique_id LuaCommandable::unique_id}
|
603
603
|
* - {@link LuaCustomChartTag}: Target type {@link defines.target_type.custom_chart_tag custom_chart_tag}; `useful_id` {@link LuaCustomChartTag#tag_number LuaCustomChartTag::tag_number}
|
604
604
|
* - {@link LuaGuiElement}: Target type {@link defines.target_type.gui_element gui_element}; `useful_id` {@link LuaGuiElement#index LuaGuiElement::index}
|
605
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
605
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/RegistrationTarget.html Online documentation}
|
606
606
|
*/
|
607
607
|
export type RegistrationTarget =
|
608
608
|
| LuaEntity
|
@@ -803,7 +803,7 @@ declare module "factorio:runtime" {
|
|
803
803
|
* - `"wire-removed"`: {@link WireRemovedUndoRedoAction}
|
804
804
|
* - `"rotated-entity"`: {@link RotatedEntityUndoRedoAction}
|
805
805
|
* - `"copy-entity-settings"`: {@link CopyEntitySettingsUndoRedoAction}
|
806
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
806
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/UndoRedoAction.html Online documentation}
|
807
807
|
*/
|
808
808
|
export type UndoRedoAction =
|
809
809
|
| BuiltEntityUndoRedoAction
|
@@ -835,7 +835,7 @@ declare module "factorio:runtime" {
|
|
835
835
|
* - `"weapon"`
|
836
836
|
* - `"explosion"`
|
837
837
|
* - `"enemy"`
|
838
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
838
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/SoundType.html Online documentation}
|
839
839
|
*/
|
840
840
|
export type SoundType =
|
841
841
|
| "game-effect"
|
@@ -918,7 +918,7 @@ declare module "factorio:runtime" {
|
|
918
918
|
* - `"controllable-remove"`
|
919
919
|
* - `"entity-ghost"`: Selects entities that are `entity-ghost`s.
|
920
920
|
* - `"tile-ghost"`: Selects entities that are `tile-ghost`s.
|
921
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
921
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/SelectionModeFlags.html Online documentation}
|
922
922
|
*/
|
923
923
|
export interface SelectionModeFlags {
|
924
924
|
/**
|
@@ -1037,7 +1037,7 @@ declare module "factorio:runtime" {
|
|
1037
1037
|
* A set of flags. Active flags are in the dictionary as `true`, while inactive flags aren't present at all.
|
1038
1038
|
*
|
1039
1039
|
* By default, none of these flags are set.
|
1040
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1040
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/ItemPrototypeFlags.html Online documentation}
|
1041
1041
|
*/
|
1042
1042
|
export type ItemPrototypeFlags = {
|
1043
1043
|
readonly [T in ItemPrototypeFlag]?: true
|
@@ -1058,7 +1058,7 @@ declare module "factorio:runtime" {
|
|
1058
1058
|
* - `"spawnable"`: Allows the item to be spawned by a quickbar shortcut or custom input.
|
1059
1059
|
* - `"spoil-result"`
|
1060
1060
|
* - `"ignore-spoil-time-modifier"`: Controls whether the spoil time ignores the spoil time modifier in the {@link DifficultySettings}.
|
1061
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1061
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/ItemPrototypeFlag.html Online documentation}
|
1062
1062
|
*/
|
1063
1063
|
export type ItemPrototypeFlag =
|
1064
1064
|
| "draw-logistic-overlay"
|
@@ -1078,7 +1078,7 @@ declare module "factorio:runtime" {
|
|
1078
1078
|
* - `"none"`
|
1079
1079
|
* - `"whitelist"`
|
1080
1080
|
* - `"blacklist"`
|
1081
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1081
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/PrototypeFilterMode.html Online documentation}
|
1082
1082
|
*/
|
1083
1083
|
export type PrototypeFilterMode = "none" | "whitelist" | "blacklist"
|
1084
1084
|
export interface PipeConnectionDefinition {
|
@@ -1102,7 +1102,7 @@ declare module "factorio:runtime" {
|
|
1102
1102
|
* The name of a {@link LuaCollisionLayerPrototype}.
|
1103
1103
|
* @example
|
1104
1104
|
* "is_lower_object"
|
1105
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1105
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/CollisionLayerID.html Online documentation}
|
1106
1106
|
*/
|
1107
1107
|
export type CollisionLayerID = string
|
1108
1108
|
export interface ItemIDFilter {
|
@@ -1152,7 +1152,7 @@ declare module "factorio:runtime" {
|
|
1152
1152
|
* - SpaceLocationPrototypeFilter
|
1153
1153
|
* - FluidPrototypeFilter
|
1154
1154
|
* @see PrototypeFilterWrite
|
1155
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1155
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/PrototypeFilter.html Online documentation}
|
1156
1156
|
*/
|
1157
1157
|
export type PrototypeFilter =
|
1158
1158
|
| ModSettingPrototypeFilter[]
|
@@ -1169,7 +1169,7 @@ declare module "factorio:runtime" {
|
|
1169
1169
|
| FluidPrototypeFilter[]
|
1170
1170
|
/**
|
1171
1171
|
* Write form of {@link PrototypeFilter}, where table-or-array concepts are allowed to take an array form.
|
1172
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1172
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/PrototypeFilter.html Online documentation}
|
1173
1173
|
*/
|
1174
1174
|
export type PrototypeFilterWrite =
|
1175
1175
|
| readonly ModSettingPrototypeFilter[]
|
@@ -1186,7 +1186,7 @@ declare module "factorio:runtime" {
|
|
1186
1186
|
| readonly FluidPrototypeFilterWrite[]
|
1187
1187
|
/**
|
1188
1188
|
* @see DisplayPanelMessageDefinitionWrite
|
1189
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1189
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/DisplayPanelMessageDefinition.html Online documentation}
|
1190
1190
|
*/
|
1191
1191
|
export interface DisplayPanelMessageDefinition {
|
1192
1192
|
/**
|
@@ -1204,7 +1204,7 @@ declare module "factorio:runtime" {
|
|
1204
1204
|
}
|
1205
1205
|
/**
|
1206
1206
|
* Write form of {@link DisplayPanelMessageDefinition}, where table-or-array concepts are allowed to take an array form.
|
1207
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1207
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/DisplayPanelMessageDefinition.html Online documentation}
|
1208
1208
|
*/
|
1209
1209
|
export interface DisplayPanelMessageDefinitionWrite {
|
1210
1210
|
/**
|
@@ -1230,7 +1230,7 @@ declare module "factorio:runtime" {
|
|
1230
1230
|
* - `"space-location"`
|
1231
1231
|
* - `"asteroid-chunk"`
|
1232
1232
|
* - `"quality"`
|
1233
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1233
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/SignalIDType.html Online documentation}
|
1234
1234
|
*/
|
1235
1235
|
export type SignalIDType =
|
1236
1236
|
| "item"
|
@@ -1431,7 +1431,7 @@ declare module "factorio:runtime" {
|
|
1431
1431
|
* - `"play-next-track"`
|
1432
1432
|
* - `"play-previous-track"`
|
1433
1433
|
* - `"pause-resume-music"`
|
1434
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1434
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/LinkedGameControl.html Online documentation}
|
1435
1435
|
*/
|
1436
1436
|
export type LinkedGameControl =
|
1437
1437
|
| "move-up"
|
@@ -1682,7 +1682,7 @@ declare module "factorio:runtime" {
|
|
1682
1682
|
* - `"create-ghost-on-entity-death"`
|
1683
1683
|
* - `"belt-stack-size-bonus"`
|
1684
1684
|
* - `"vehicle-logistics"`
|
1685
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1685
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/ModifierType.html Online documentation}
|
1686
1686
|
*/
|
1687
1687
|
export type ModifierType =
|
1688
1688
|
| "inserter-stack-size-bonus"
|
@@ -1801,7 +1801,7 @@ declare module "factorio:runtime" {
|
|
1801
1801
|
* - `"capture-spawner"`: {@link CaptureSpawnerResearchTrigger}
|
1802
1802
|
* - `"build-entity"`: {@link BuildEntityResearchTrigger}
|
1803
1803
|
* - `"send-item-to-orbit"`: {@link SendItemToOrbitResearchTrigger}
|
1804
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1804
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/ResearchTrigger.html Online documentation}
|
1805
1805
|
*/
|
1806
1806
|
export type ResearchTrigger =
|
1807
1807
|
| CraftItemResearchTrigger
|
@@ -1815,7 +1815,7 @@ declare module "factorio:runtime" {
|
|
1815
1815
|
* A set of flags. Active flags are in the dictionary as `true`, while inactive flags aren't present at all.
|
1816
1816
|
*
|
1817
1817
|
* By default, none of these flags are set.
|
1818
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1818
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/EntityPrototypeFlags.html Online documentation}
|
1819
1819
|
*/
|
1820
1820
|
export type EntityPrototypeFlags = {
|
1821
1821
|
readonly [T in EntityPrototypeFlag]?: true
|
@@ -1850,7 +1850,7 @@ declare module "factorio:runtime" {
|
|
1850
1850
|
* - `"building-direction-16-way"`
|
1851
1851
|
* - `"snap-to-rail-support-spot"`
|
1852
1852
|
* - `"not-in-made-in"`: Prevents the entity from being shown in the "made in" list in recipe tooltips.
|
1853
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1853
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/EntityPrototypeFlag.html Online documentation}
|
1854
1854
|
*/
|
1855
1855
|
export type EntityPrototypeFlag =
|
1856
1856
|
| "not-rotatable"
|
@@ -1920,7 +1920,7 @@ declare module "factorio:runtime" {
|
|
1920
1920
|
* - `"local"`: The sound can be heard within the audible range around the speaker.
|
1921
1921
|
* - `"surface"`: The sound can be heard anywhere on the speaker's surface.
|
1922
1922
|
* - `"global"`: The sound can be heard everywhere.
|
1923
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1923
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/ProgrammableSpeakerPlaybackMode.html Online documentation}
|
1924
1924
|
*/
|
1925
1925
|
export type ProgrammableSpeakerPlaybackMode = "local" | "surface" | "global"
|
1926
1926
|
/**
|
@@ -1945,7 +1945,7 @@ declare module "factorio:runtime" {
|
|
1945
1945
|
* - `"none-to-south"`
|
1946
1946
|
* - `"south-to-none"`
|
1947
1947
|
* - `"none-to-north"`
|
1948
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1948
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/CliffOrientation.html Online documentation}
|
1949
1949
|
*/
|
1950
1950
|
export type CliffOrientation =
|
1951
1951
|
| "west-to-east"
|
@@ -1970,7 +1970,7 @@ declare module "factorio:runtime" {
|
|
1970
1970
|
| "none-to-north"
|
1971
1971
|
/**
|
1972
1972
|
* Defines an item type that a blueprint entity will request.
|
1973
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1973
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/BlueprintInsertPlan.html Online documentation}
|
1974
1974
|
*/
|
1975
1975
|
export interface BlueprintInsertPlan {
|
1976
1976
|
/**
|
@@ -1998,7 +1998,7 @@ declare module "factorio:runtime" {
|
|
1998
1998
|
}
|
1999
1999
|
/**
|
2000
2000
|
* A single offer on a market entity.
|
2001
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2001
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/Offer.html Online documentation}
|
2002
2002
|
*/
|
2003
2003
|
export interface Offer {
|
2004
2004
|
/**
|
@@ -2013,7 +2013,7 @@ declare module "factorio:runtime" {
|
|
2013
2013
|
/**
|
2014
2014
|
* An item filter may be specified in two ways, either as a string which is an item prototype name or as a table.
|
2015
2015
|
* @see ItemFilterWrite
|
2016
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2016
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/ItemFilter.html Online documentation}
|
2017
2017
|
*/
|
2018
2018
|
export type ItemFilter =
|
2019
2019
|
| {
|
@@ -2033,7 +2033,7 @@ declare module "factorio:runtime" {
|
|
2033
2033
|
| string
|
2034
2034
|
/**
|
2035
2035
|
* Write form of {@link ItemFilter}, where table-or-array concepts are allowed to take an array form.
|
2036
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2036
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/ItemFilter.html Online documentation}
|
2037
2037
|
*/
|
2038
2038
|
export type ItemFilterWrite =
|
2039
2039
|
| {
|
@@ -2053,7 +2053,7 @@ declare module "factorio:runtime" {
|
|
2053
2053
|
| string
|
2054
2054
|
/**
|
2055
2055
|
* @see ScheduleRecordWrite
|
2056
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2056
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/ScheduleRecord.html Online documentation}
|
2057
2057
|
*/
|
2058
2058
|
export interface ScheduleRecord {
|
2059
2059
|
/**
|
@@ -2076,7 +2076,7 @@ declare module "factorio:runtime" {
|
|
2076
2076
|
}
|
2077
2077
|
/**
|
2078
2078
|
* Write form of {@link ScheduleRecord}, where table-or-array concepts are allowed to take an array form.
|
2079
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2079
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/ScheduleRecord.html Online documentation}
|
2080
2080
|
*/
|
2081
2081
|
export interface ScheduleRecordWrite {
|
2082
2082
|
/**
|
@@ -2162,7 +2162,7 @@ declare module "factorio:runtime" {
|
|
2162
2162
|
* - `"position"`: {@link PositionGuiArrowSpecification}
|
2163
2163
|
* - `"crafting_queue"`: {@link CraftingQueueGuiArrowSpecification}
|
2164
2164
|
* - `"item_stack"`: {@link ItemStackGuiArrowSpecification}
|
2165
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2165
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/GuiArrowSpecification.html Online documentation}
|
2166
2166
|
*/
|
2167
2167
|
export type GuiArrowSpecification =
|
2168
2168
|
| EntityGuiArrowSpecification
|
@@ -2175,7 +2175,7 @@ declare module "factorio:runtime" {
|
|
2175
2175
|
*
|
2176
2176
|
* If this is specified as a three-element array then the array items are x, y and z, in that order.
|
2177
2177
|
* @see Vector3DArray
|
2178
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2178
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/Vector3D.html Online documentation}
|
2179
2179
|
*/
|
2180
2180
|
export interface Vector3D {
|
2181
2181
|
readonly x: float
|
@@ -2185,12 +2185,12 @@ declare module "factorio:runtime" {
|
|
2185
2185
|
/**
|
2186
2186
|
* Array form of {@link Vector3D}.
|
2187
2187
|
* @see Vector3D
|
2188
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2188
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/Vector3D.html Online documentation}
|
2189
2189
|
*/
|
2190
2190
|
export type Vector3DArray = readonly [float, float, float]
|
2191
2191
|
/**
|
2192
2192
|
* @see TrainScheduleWrite
|
2193
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2193
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/TrainSchedule.html Online documentation}
|
2194
2194
|
*/
|
2195
2195
|
export interface TrainSchedule {
|
2196
2196
|
/**
|
@@ -2201,7 +2201,7 @@ declare module "factorio:runtime" {
|
|
2201
2201
|
}
|
2202
2202
|
/**
|
2203
2203
|
* Write form of {@link TrainSchedule}, where table-or-array concepts are allowed to take an array form.
|
2204
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2204
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/TrainSchedule.html Online documentation}
|
2205
2205
|
*/
|
2206
2206
|
export interface TrainScheduleWrite {
|
2207
2207
|
/**
|
@@ -2212,7 +2212,7 @@ declare module "factorio:runtime" {
|
|
2212
2212
|
}
|
2213
2213
|
/**
|
2214
2214
|
* @see PlatformScheduleWrite
|
2215
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2215
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/PlatformSchedule.html Online documentation}
|
2216
2216
|
*/
|
2217
2217
|
export interface PlatformSchedule {
|
2218
2218
|
/**
|
@@ -2223,7 +2223,7 @@ declare module "factorio:runtime" {
|
|
2223
2223
|
}
|
2224
2224
|
/**
|
2225
2225
|
* Write form of {@link PlatformSchedule}, where table-or-array concepts are allowed to take an array form.
|
2226
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2226
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/PlatformSchedule.html Online documentation}
|
2227
2227
|
*/
|
2228
2228
|
export interface PlatformScheduleWrite {
|
2229
2229
|
/**
|
@@ -2240,7 +2240,7 @@ declare module "factorio:runtime" {
|
|
2240
2240
|
}
|
2241
2241
|
/**
|
2242
2242
|
* A recipe prototype with optional quality specification.
|
2243
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2243
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/RecipeIDAndQualityIDPair.html Online documentation}
|
2244
2244
|
*/
|
2245
2245
|
export interface RecipeIDAndQualityIDPair {
|
2246
2246
|
/**
|
@@ -2289,7 +2289,7 @@ declare module "factorio:runtime" {
|
|
2289
2289
|
* - `string`: Name of the force, same as {@link LuaForce#name LuaForce::name}.
|
2290
2290
|
* - {@link uint8}: Index of the force, same as {@link LuaForce#index LuaForce::index}.
|
2291
2291
|
* - {@link LuaForce}: A reference to {@link LuaForce} may be passed directly.
|
2292
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2292
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/ForceID.html Online documentation}
|
2293
2293
|
*/
|
2294
2294
|
export type ForceID = string | uint8 | LuaForce
|
2295
2295
|
/**
|
@@ -2299,7 +2299,7 @@ declare module "factorio:runtime" {
|
|
2299
2299
|
* - `string`: The fluid name.
|
2300
2300
|
* - {@link LuaFluidPrototype}: The fluid prototype.
|
2301
2301
|
* - {@link Fluid}: The fluid.
|
2302
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2302
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/FluidID.html Online documentation}
|
2303
2303
|
*/
|
2304
2304
|
export type FluidID = string | LuaFluidPrototype | Fluid
|
2305
2305
|
/**
|
@@ -2310,12 +2310,12 @@ declare module "factorio:runtime" {
|
|
2310
2310
|
* - {@link LuaEntityPrototype}: The entity prototype. Normal quality will be used.
|
2311
2311
|
* - `string`: The prototype name. Normal quality will be used.
|
2312
2312
|
* - {@link EntityIDAndQualityIDPair}: A table of entity prototype and quality.
|
2313
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2313
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/EntityWithQualityID.html Online documentation}
|
2314
2314
|
*/
|
2315
2315
|
export type EntityWithQualityID = LuaEntity | LuaEntityPrototype | string | EntityIDAndQualityIDPair
|
2316
2316
|
/**
|
2317
2317
|
* An entity prototype with optional quality specification.
|
2318
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2318
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/EntityIDAndQualityIDPair.html Online documentation}
|
2319
2319
|
*/
|
2320
2320
|
export interface EntityIDAndQualityIDPair {
|
2321
2321
|
/**
|
@@ -2335,12 +2335,12 @@ declare module "factorio:runtime" {
|
|
2335
2335
|
* - {@link LuaItemPrototype}: The item prototype. Normal quality will be used.
|
2336
2336
|
* - `string`: The prototype name. Normal quality will be used.
|
2337
2337
|
* - {@link ItemIDAndQualityIDPair}: A table of entity prototype and quality.
|
2338
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2338
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/ItemWithQualityID.html Online documentation}
|
2339
2339
|
*/
|
2340
2340
|
export type ItemWithQualityID = LuaItemStack | LuaItemPrototype | string | ItemIDAndQualityIDPair
|
2341
2341
|
/**
|
2342
2342
|
* An item prototype with optional quality specification.
|
2343
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2343
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/ItemIDAndQualityIDPair.html Online documentation}
|
2344
2344
|
*/
|
2345
2345
|
export interface ItemIDAndQualityIDPair {
|
2346
2346
|
/**
|
@@ -2360,7 +2360,7 @@ declare module "factorio:runtime" {
|
|
2360
2360
|
* - {@link LuaItemStack}: Non empty item stack.
|
2361
2361
|
* - {@link LuaItem}: The item.
|
2362
2362
|
* - `string`: The prototype name.
|
2363
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2363
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/ItemID.html Online documentation}
|
2364
2364
|
*/
|
2365
2365
|
export type ItemID = LuaItemPrototype | LuaItemStack | LuaItem | string
|
2366
2366
|
/**
|
@@ -2370,7 +2370,7 @@ declare module "factorio:runtime" {
|
|
2370
2370
|
* - {@link LuaEntityPrototype}: The entity prototype.
|
2371
2371
|
* - {@link LuaEntity}: The entity.
|
2372
2372
|
* - `string`: The prototype name.
|
2373
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2373
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/EntityID.html Online documentation}
|
2374
2374
|
*/
|
2375
2375
|
export type EntityID = LuaEntityPrototype | LuaEntity | string
|
2376
2376
|
/**
|
@@ -2380,7 +2380,7 @@ declare module "factorio:runtime" {
|
|
2380
2380
|
* - {@link LuaTechnologyPrototype}: The technology prototype.
|
2381
2381
|
* - {@link LuaTechnology}: Instance of the technology.
|
2382
2382
|
* - `string`: The prototype name.
|
2383
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2383
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/TechnologyID.html Online documentation}
|
2384
2384
|
*/
|
2385
2385
|
export type TechnologyID = LuaTechnologyPrototype | LuaTechnology | string
|
2386
2386
|
/**
|
@@ -2389,7 +2389,7 @@ declare module "factorio:runtime" {
|
|
2389
2389
|
* ## Union members
|
2390
2390
|
* - {@link LuaParticlePrototype}: The particle prototype.
|
2391
2391
|
* - `string`: The prototype name.
|
2392
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2392
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/ParticleID.html Online documentation}
|
2393
2393
|
*/
|
2394
2394
|
export type ParticleID = LuaParticlePrototype | string
|
2395
2395
|
/**
|
@@ -2398,7 +2398,7 @@ declare module "factorio:runtime" {
|
|
2398
2398
|
* ## Union members
|
2399
2399
|
* - {@link LuaDamagePrototype}: The damage type prototype.
|
2400
2400
|
* - `string`: The prototype name.
|
2401
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2401
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/DamageTypeID.html Online documentation}
|
2402
2402
|
*/
|
2403
2403
|
export type DamageTypeID = LuaDamagePrototype | string
|
2404
2404
|
/**
|
@@ -2407,7 +2407,7 @@ declare module "factorio:runtime" {
|
|
2407
2407
|
* ## Union members
|
2408
2408
|
* - {@link LuaTrivialSmokePrototype}: The trivial smoke prototype.
|
2409
2409
|
* - `string`: The prototype name.
|
2410
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2410
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/TrivialSmokeID.html Online documentation}
|
2411
2411
|
*/
|
2412
2412
|
export type TrivialSmokeID = LuaTrivialSmokePrototype | string
|
2413
2413
|
/**
|
@@ -2419,7 +2419,7 @@ declare module "factorio:runtime" {
|
|
2419
2419
|
* - `"left"`
|
2420
2420
|
* - `"right"`
|
2421
2421
|
* - `"center"`
|
2422
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2422
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/TextAlign.html Online documentation}
|
2423
2423
|
*/
|
2424
2424
|
export type TextAlign = "left" | "right" | "center"
|
2425
2425
|
/**
|
@@ -2432,7 +2432,7 @@ declare module "factorio:runtime" {
|
|
2432
2432
|
* - `"middle"`
|
2433
2433
|
* - `"baseline"`
|
2434
2434
|
* - `"bottom"`
|
2435
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2435
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/VerticalTextAlign.html Online documentation}
|
2436
2436
|
*/
|
2437
2437
|
export type VerticalTextAlign = "top" | "middle" | "baseline" | "bottom"
|
2438
2438
|
/**
|
@@ -2441,7 +2441,7 @@ declare module "factorio:runtime" {
|
|
2441
2441
|
* ## Union members
|
2442
2442
|
* - {@link LuaQualityPrototype}: The quality prototype.
|
2443
2443
|
* - `string`: The prototype name.
|
2444
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2444
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/QualityID.html Online documentation}
|
2445
2445
|
*/
|
2446
2446
|
export type QualityID = LuaQualityPrototype | string
|
2447
2447
|
/**
|
@@ -2451,7 +2451,7 @@ declare module "factorio:runtime" {
|
|
2451
2451
|
* - {@link LuaRecipePrototype}: By recipe prototype.
|
2452
2452
|
* - {@link LuaRecipe}: By instance of recipe.
|
2453
2453
|
* - `string`: By name of the recipe prototype.
|
2454
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2454
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/RecipeID.html Online documentation}
|
2455
2455
|
*/
|
2456
2456
|
export type RecipeID = LuaRecipePrototype | LuaRecipe | string
|
2457
2457
|
/**
|
@@ -2461,7 +2461,7 @@ declare module "factorio:runtime" {
|
|
2461
2461
|
* - {@link LuaTilePrototype}: By tile prototype.
|
2462
2462
|
* - {@link LuaTile}: By instance of tile.
|
2463
2463
|
* - `string`: By name of the tile prototype.
|
2464
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2464
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/TileID.html Online documentation}
|
2465
2465
|
*/
|
2466
2466
|
export type TileID = LuaTilePrototype | LuaTile | string
|
2467
2467
|
export interface Fluid {
|
@@ -2485,7 +2485,7 @@ declare module "factorio:runtime" {
|
|
2485
2485
|
* - {@link LuaEquipmentPrototype}: The equipment prototype.
|
2486
2486
|
* - {@link LuaEquipment}: The equipment.
|
2487
2487
|
* - `string`: The prototype name.
|
2488
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2488
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/EquipmentID.html Online documentation}
|
2489
2489
|
*/
|
2490
2490
|
export type EquipmentID = LuaEquipmentPrototype | LuaEquipment | string
|
2491
2491
|
/**
|
@@ -2496,12 +2496,12 @@ declare module "factorio:runtime" {
|
|
2496
2496
|
* - {@link LuaEquipment}: The equipment. Both prototype and quality of the provided equipment will be used.
|
2497
2497
|
* - `string`: The prototype name. Normal quality will be used.
|
2498
2498
|
* - {@link EquipmentIDAndQualityIDPair}: A table of equipment prototype and quality.
|
2499
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2499
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/EquipmentWithQualityID.html Online documentation}
|
2500
2500
|
*/
|
2501
2501
|
export type EquipmentWithQualityID = LuaEquipmentPrototype | LuaEquipment | string | EquipmentIDAndQualityIDPair
|
2502
2502
|
/**
|
2503
2503
|
* An equipment prototype with optional quality specification.
|
2504
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2504
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/EquipmentIDAndQualityIDPair.html Online documentation}
|
2505
2505
|
*/
|
2506
2506
|
export interface EquipmentIDAndQualityIDPair {
|
2507
2507
|
/**
|
@@ -2522,7 +2522,7 @@ declare module "factorio:runtime" {
|
|
2522
2522
|
* @example
|
2523
2523
|
* -- Shorthand
|
2524
2524
|
* {{-2, -3}, {5, 8}}
|
2525
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2525
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/BoundingBox.html Online documentation}
|
2526
2526
|
*/
|
2527
2527
|
export interface BoundingBox {
|
2528
2528
|
readonly left_top: MapPosition
|
@@ -2540,7 +2540,7 @@ declare module "factorio:runtime" {
|
|
2540
2540
|
/**
|
2541
2541
|
* Array form of {@link BoundingBox}.
|
2542
2542
|
* @see BoundingBox
|
2543
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2543
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/BoundingBox.html Online documentation}
|
2544
2544
|
*/
|
2545
2545
|
export type BoundingBoxArray = readonly [MapPosition | MapPositionArray, MapPosition | MapPositionArray]
|
2546
2546
|
/**
|
@@ -2548,7 +2548,7 @@ declare module "factorio:runtime" {
|
|
2548
2548
|
*
|
2549
2549
|
* ## Union members
|
2550
2550
|
* - {@link LuaSpacePlatform}
|
2551
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2551
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/SpacePlatformIdentification.html Online documentation}
|
2552
2552
|
*/
|
2553
2553
|
export type SpacePlatformIdentification = LuaSpacePlatform
|
2554
2554
|
/**
|
@@ -2558,12 +2558,12 @@ declare module "factorio:runtime" {
|
|
2558
2558
|
* - LuaForce[]: Array of many forces.
|
2559
2559
|
* - LuaForce: A single force.
|
2560
2560
|
* @see ForceSetWrite
|
2561
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2561
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/ForceSet.html Online documentation}
|
2562
2562
|
*/
|
2563
2563
|
export type ForceSet = LuaForce[] | LuaForce
|
2564
2564
|
/**
|
2565
2565
|
* Write form of {@link ForceSet}, where table-or-array concepts are allowed to take an array form.
|
2566
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2566
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/ForceSet.html Online documentation}
|
2567
2567
|
*/
|
2568
2568
|
export type ForceSetWrite = readonly ForceID[] | ForceID
|
2569
2569
|
/**
|
@@ -2572,7 +2572,7 @@ declare module "factorio:runtime" {
|
|
2572
2572
|
* ## Union members
|
2573
2573
|
* - {@link LuaDecorativePrototype}: The decorative prototype.
|
2574
2574
|
* - `string`: The prototype name.
|
2575
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2575
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/DecorativeID.html Online documentation}
|
2576
2576
|
*/
|
2577
2577
|
export type DecorativeID = LuaDecorativePrototype | string
|
2578
2578
|
/**
|
@@ -2581,7 +2581,7 @@ declare module "factorio:runtime" {
|
|
2581
2581
|
* ## Union members
|
2582
2582
|
* - {@link LuaAsteroidChunkPrototype}: The asteroid chunk prototype.
|
2583
2583
|
* - `string`: The prototype name.
|
2584
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2584
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/AsteroidChunkID.html Online documentation}
|
2585
2585
|
*/
|
2586
2586
|
export type AsteroidChunkID = LuaAsteroidChunkPrototype | string
|
2587
2587
|
/**
|
@@ -2590,13 +2590,13 @@ declare module "factorio:runtime" {
|
|
2590
2590
|
* ## Union members
|
2591
2591
|
* - {@link LuaSpaceLocationPrototype}: The space location prototype.
|
2592
2592
|
* - `string`: The prototype name.
|
2593
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2593
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/SpaceLocationID.html Online documentation}
|
2594
2594
|
*/
|
2595
2595
|
export type SpaceLocationID = LuaSpaceLocationPrototype | string
|
2596
2596
|
/**
|
2597
2597
|
* A signal filter may be specified in two ways, either as a string which is a virtual signal name or item prototype name or as a table.
|
2598
2598
|
* @see SignalFilterWrite
|
2599
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2599
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/SignalFilter.html Online documentation}
|
2600
2600
|
*/
|
2601
2601
|
export type SignalFilter =
|
2602
2602
|
| {
|
@@ -2620,7 +2620,7 @@ declare module "factorio:runtime" {
|
|
2620
2620
|
| string
|
2621
2621
|
/**
|
2622
2622
|
* Write form of {@link SignalFilter}, where table-or-array concepts are allowed to take an array form.
|
2623
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2623
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/SignalFilter.html Online documentation}
|
2624
2624
|
*/
|
2625
2625
|
export type SignalFilterWrite =
|
2626
2626
|
| {
|
@@ -2644,7 +2644,7 @@ declare module "factorio:runtime" {
|
|
2644
2644
|
| string
|
2645
2645
|
/**
|
2646
2646
|
* @see LogisticFilterWrite
|
2647
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2647
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/LogisticFilter.html Online documentation}
|
2648
2648
|
*/
|
2649
2649
|
export interface LogisticFilter {
|
2650
2650
|
/**
|
@@ -2670,7 +2670,7 @@ declare module "factorio:runtime" {
|
|
2670
2670
|
}
|
2671
2671
|
/**
|
2672
2672
|
* Write form of {@link LogisticFilter}, where table-or-array concepts are allowed to take an array form.
|
2673
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2673
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/LogisticFilter.html Online documentation}
|
2674
2674
|
*/
|
2675
2675
|
export interface LogisticFilterWrite {
|
2676
2676
|
/**
|
@@ -2726,23 +2726,23 @@ declare module "factorio:runtime" {
|
|
2726
2726
|
* ## Union members
|
2727
2727
|
* - {@link LuaSurfacePropertyPrototype}: The surface property prototype.
|
2728
2728
|
* - `string`: The prototype name.
|
2729
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2729
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/SurfacePropertyID.html Online documentation}
|
2730
2730
|
*/
|
2731
2731
|
export type SurfacePropertyID = LuaSurfacePropertyPrototype | string
|
2732
2732
|
/**
|
2733
2733
|
* When writing it is possible to give LuaEntity or MapPosition directly. However, reading always returns the full ScriptRenderTargetTable.
|
2734
2734
|
* @see ScriptRenderTargetWrite
|
2735
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2735
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/ScriptRenderTarget.html Online documentation}
|
2736
2736
|
*/
|
2737
2737
|
export type ScriptRenderTarget = LuaEntity | MapPosition | ScriptRenderTargetTable
|
2738
2738
|
/**
|
2739
2739
|
* Write form of {@link ScriptRenderTarget}, where table-or-array concepts are allowed to take an array form.
|
2740
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2740
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/ScriptRenderTarget.html Online documentation}
|
2741
2741
|
*/
|
2742
2742
|
export type ScriptRenderTargetWrite = LuaEntity | (MapPosition | MapPositionArray) | ScriptRenderTargetTableWrite
|
2743
2743
|
/**
|
2744
2744
|
* @see ScriptRenderTargetTableWrite
|
2745
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2745
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/ScriptRenderTargetTable.html Online documentation}
|
2746
2746
|
*/
|
2747
2747
|
export interface ScriptRenderTargetTable {
|
2748
2748
|
readonly entity?: LuaEntity
|
@@ -2757,7 +2757,7 @@ declare module "factorio:runtime" {
|
|
2757
2757
|
}
|
2758
2758
|
/**
|
2759
2759
|
* Write form of {@link ScriptRenderTargetTable}, where table-or-array concepts are allowed to take an array form.
|
2760
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2760
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/ScriptRenderTargetTable.html Online documentation}
|
2761
2761
|
*/
|
2762
2762
|
export interface ScriptRenderTargetTableWrite {
|
2763
2763
|
readonly entity?: LuaEntity
|
@@ -2772,7 +2772,7 @@ declare module "factorio:runtime" {
|
|
2772
2772
|
}
|
2773
2773
|
/**
|
2774
2774
|
* An item filter may be specified in two ways, either as a string which is a quality prototype name or as a table.
|
2775
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2775
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/QualityCondition.html Online documentation}
|
2776
2776
|
*/
|
2777
2777
|
export type QualityCondition =
|
2778
2778
|
| {
|
@@ -2791,13 +2791,13 @@ declare module "factorio:runtime" {
|
|
2791
2791
|
* - `"center-to-center"`
|
2792
2792
|
* - `"bounding-box-to-bounding-box"`
|
2793
2793
|
* - `"center-to-bounding-box"`
|
2794
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2794
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/RangeMode.html Online documentation}
|
2795
2795
|
*/
|
2796
2796
|
export type RangeMode = "center-to-center" | "bounding-box-to-bounding-box" | "center-to-bounding-box"
|
2797
2797
|
/**
|
2798
2798
|
* 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.
|
2799
2799
|
* @see BlueprintEntityWrite
|
2800
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2800
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/BlueprintEntity.html Online documentation}
|
2801
2801
|
*/
|
2802
2802
|
export interface BlueprintEntity {
|
2803
2803
|
/**
|
@@ -2983,7 +2983,7 @@ declare module "factorio:runtime" {
|
|
2983
2983
|
}
|
2984
2984
|
/**
|
2985
2985
|
* Write form of {@link BlueprintEntity}, where table-or-array concepts are allowed to take an array form.
|
2986
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2986
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/BlueprintEntity.html Online documentation}
|
2987
2987
|
*/
|
2988
2988
|
export interface BlueprintEntityWrite {
|
2989
2989
|
/**
|
@@ -3107,7 +3107,7 @@ declare module "factorio:runtime" {
|
|
3107
3107
|
* "2500 * (L - 3)"
|
3108
3108
|
* @example
|
3109
3109
|
* "(4e5 * (abs(speed) + 10.5)) / weight"
|
3110
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3110
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/MathExpression.html Online documentation}
|
3111
3111
|
*/
|
3112
3112
|
export type MathExpression = string
|
3113
3113
|
/**
|
@@ -3129,7 +3129,7 @@ declare module "factorio:runtime" {
|
|
3129
3129
|
* -- What a custom recipe would look like that had a probability of 0.5 to return a
|
3130
3130
|
* -- minimum amount of 1 and a maximum amount of 5
|
3131
3131
|
* {{type="item", name="custom-item", probability=0.5, amount_min=1, amount_max=5}}
|
3132
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3132
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/Product.html Online documentation}
|
3133
3133
|
*/
|
3134
3134
|
export type Product = ItemProduct | FluidProduct | ResearchProgressProduct
|
3135
3135
|
/**
|
@@ -3140,7 +3140,7 @@ declare module "factorio:runtime" {
|
|
3140
3140
|
* -- What a custom recipe would look like that had a probability of 0.5 to return a
|
3141
3141
|
* -- minimum amount of 1 and a maximum amount of 5
|
3142
3142
|
* {{type="item", name="custom-item", probability=0.5, amount_min=1, amount_max=5}}
|
3143
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3143
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/ItemProduct.html Online documentation}
|
3144
3144
|
*/
|
3145
3145
|
export interface ItemProduct {
|
3146
3146
|
readonly type: "item"
|
@@ -3184,7 +3184,7 @@ declare module "factorio:runtime" {
|
|
3184
3184
|
* {{type="fluid", name="heavy-oil", amount=1},
|
3185
3185
|
* {type="fluid", name="light-oil", amount=4.5},
|
3186
3186
|
* {type="fluid", name="petroleum-gas", amount=5.5}}
|
3187
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3187
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/FluidProduct.html Online documentation}
|
3188
3188
|
*/
|
3189
3189
|
export interface FluidProduct {
|
3190
3190
|
readonly type: "fluid"
|
@@ -3257,7 +3257,7 @@ declare module "factorio:runtime" {
|
|
3257
3257
|
}
|
3258
3258
|
/**
|
3259
3259
|
* Specifies how probability and richness are calculated when placing something on the map.
|
3260
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3260
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/AutoplaceSpecification.html Online documentation}
|
3261
3261
|
*/
|
3262
3262
|
export interface AutoplaceSpecification {
|
3263
3263
|
/**
|
@@ -3274,7 +3274,7 @@ declare module "factorio:runtime" {
|
|
3274
3274
|
}
|
3275
3275
|
/**
|
3276
3276
|
* @see CliffPlacementSettingsWrite
|
3277
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3277
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/CliffPlacementSettings.html Online documentation}
|
3278
3278
|
*/
|
3279
3279
|
export interface CliffPlacementSettings {
|
3280
3280
|
/**
|
@@ -3304,7 +3304,7 @@ declare module "factorio:runtime" {
|
|
3304
3304
|
}
|
3305
3305
|
/**
|
3306
3306
|
* Write form of {@link CliffPlacementSettings}, where table-or-array concepts are allowed to take an array form.
|
3307
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3307
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/CliffPlacementSettings.html Online documentation}
|
3308
3308
|
*/
|
3309
3309
|
export interface CliffPlacementSettingsWrite {
|
3310
3310
|
/**
|
@@ -3334,7 +3334,7 @@ declare module "factorio:runtime" {
|
|
3334
3334
|
}
|
3335
3335
|
/**
|
3336
3336
|
* @see AutoplaceSettingsWrite
|
3337
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3337
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/AutoplaceSettings.html Online documentation}
|
3338
3338
|
*/
|
3339
3339
|
export interface AutoplaceSettings {
|
3340
3340
|
/**
|
@@ -3348,7 +3348,7 @@ declare module "factorio:runtime" {
|
|
3348
3348
|
}
|
3349
3349
|
/**
|
3350
3350
|
* Write form of {@link AutoplaceSettings}, where table-or-array concepts are allowed to take an array form.
|
3351
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3351
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/AutoplaceSettings.html Online documentation}
|
3352
3352
|
*/
|
3353
3353
|
export interface AutoplaceSettingsWrite {
|
3354
3354
|
/**
|
@@ -3383,7 +3383,7 @@ declare module "factorio:runtime" {
|
|
3383
3383
|
* surface.map_gen_settings = mgs
|
3384
3384
|
* -- This does not require a NamedNoiseExpression to be defined, since literal numbers (and strings naming literal
|
3385
3385
|
* -- numbers, e.g. `"123"`) are understood to stand for constant value expressions.
|
3386
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3386
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/MapGenSettings.html Online documentation}
|
3387
3387
|
*/
|
3388
3388
|
export interface MapGenSettings {
|
3389
3389
|
/**
|
@@ -3438,7 +3438,7 @@ declare module "factorio:runtime" {
|
|
3438
3438
|
}
|
3439
3439
|
/**
|
3440
3440
|
* Write form of {@link MapGenSettings}, where table-or-array concepts are allowed to take an array form.
|
3441
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3441
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/MapGenSettings.html Online documentation}
|
3442
3442
|
*/
|
3443
3443
|
export interface MapGenSettingsWrite {
|
3444
3444
|
/**
|
@@ -3497,7 +3497,7 @@ declare module "factorio:runtime" {
|
|
3497
3497
|
}
|
3498
3498
|
/**
|
3499
3499
|
* These values are for the time frame of one second (60 ticks).
|
3500
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3500
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/PollutionMapSettings.html Online documentation}
|
3501
3501
|
*/
|
3502
3502
|
export interface PollutionMapSettings {
|
3503
3503
|
/**
|
@@ -3551,7 +3551,7 @@ declare module "factorio:runtime" {
|
|
3551
3551
|
}
|
3552
3552
|
/**
|
3553
3553
|
* These values represent a percentual increase in evolution. This means a value of `0.1` would increase evolution by 10%.
|
3554
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3554
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/EnemyEvolutionMapSettings.html Online documentation}
|
3555
3555
|
*/
|
3556
3556
|
export interface EnemyEvolutionMapSettings {
|
3557
3557
|
/**
|
@@ -3589,7 +3589,7 @@ declare module "factorio:runtime" {
|
|
3589
3589
|
* * neighbouring_base_chunk_coefficient^distance(chunk, neighbour)
|
3590
3590
|
* score(chunk) = 1 / (1 + player + base)
|
3591
3591
|
* ```
|
3592
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3592
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/EnemyExpansionMapSettings.html Online documentation}
|
3593
3593
|
*/
|
3594
3594
|
export interface EnemyExpansionMapSettings {
|
3595
3595
|
/**
|
@@ -3848,17 +3848,17 @@ declare module "factorio:runtime" {
|
|
3848
3848
|
}
|
3849
3849
|
/**
|
3850
3850
|
* Technology difficulty settings. Updating any of the attributes will immediately take effect in the game engine.
|
3851
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3851
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/DifficultySettings.html Online documentation}
|
3852
3852
|
*/
|
3853
3853
|
export interface DifficultySettings {
|
3854
3854
|
/**
|
3855
3855
|
* A value in range [0.001, 1000].
|
3856
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3856
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/DifficultySettings.technology_price_multiplier.html Online documentation}
|
3857
3857
|
*/
|
3858
3858
|
technology_price_multiplier: double
|
3859
3859
|
/**
|
3860
3860
|
* A value in range [0.01, 100].
|
3861
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3861
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/DifficultySettings.spoil_time_modifier.html Online documentation}
|
3862
3862
|
*/
|
3863
3863
|
spoil_time_modifier: double
|
3864
3864
|
}
|
@@ -3874,7 +3874,7 @@ declare module "factorio:runtime" {
|
|
3874
3874
|
}
|
3875
3875
|
/**
|
3876
3876
|
* A standard table containing all {@link MapSettings} attributes plus an additional table that contains all {@link DifficultySettings} properties.
|
3877
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3877
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/MapAndDifficultySettings.html Online documentation}
|
3878
3878
|
*/
|
3879
3879
|
export interface MapAndDifficultySettings {
|
3880
3880
|
readonly pollution: PollutionMapSettings
|
@@ -3895,7 +3895,7 @@ declare module "factorio:runtime" {
|
|
3895
3895
|
* @example
|
3896
3896
|
* -- Increase the number of short paths the pathfinder can cache.
|
3897
3897
|
* game.map_settings.path_finder.short_cache_size = 15
|
3898
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3898
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/MapSettings.html Online documentation}
|
3899
3899
|
*/
|
3900
3900
|
export interface MapSettings {
|
3901
3901
|
pollution: PollutionMapSettings
|
@@ -3907,13 +3907,13 @@ declare module "factorio:runtime" {
|
|
3907
3907
|
asteroids: AsteroidMapSettings
|
3908
3908
|
/**
|
3909
3909
|
* If a behavior fails this many times, the enemy (or enemy group) is destroyed. This solves biters getting stuck within their own base.
|
3910
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3910
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/MapSettings.max_failed_behavior_count.html Online documentation}
|
3911
3911
|
*/
|
3912
3912
|
max_failed_behavior_count: uint
|
3913
3913
|
}
|
3914
3914
|
/**
|
3915
3915
|
* @see BlueprintScheduleRecordWrite
|
3916
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3916
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/BlueprintScheduleRecord.html Online documentation}
|
3917
3917
|
*/
|
3918
3918
|
export interface BlueprintScheduleRecord {
|
3919
3919
|
/**
|
@@ -3930,7 +3930,7 @@ declare module "factorio:runtime" {
|
|
3930
3930
|
}
|
3931
3931
|
/**
|
3932
3932
|
* Write form of {@link BlueprintScheduleRecord}, where table-or-array concepts are allowed to take an array form.
|
3933
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3933
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/BlueprintScheduleRecord.html Online documentation}
|
3934
3934
|
*/
|
3935
3935
|
export interface BlueprintScheduleRecordWrite {
|
3936
3936
|
/**
|
@@ -3947,7 +3947,7 @@ declare module "factorio:runtime" {
|
|
3947
3947
|
}
|
3948
3948
|
/**
|
3949
3949
|
* @see BlueprintScheduleInterruptWrite
|
3950
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3950
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/BlueprintScheduleInterrupt.html Online documentation}
|
3951
3951
|
*/
|
3952
3952
|
export interface BlueprintScheduleInterrupt {
|
3953
3953
|
readonly name?: string
|
@@ -3957,7 +3957,7 @@ declare module "factorio:runtime" {
|
|
3957
3957
|
}
|
3958
3958
|
/**
|
3959
3959
|
* Write form of {@link BlueprintScheduleInterrupt}, where table-or-array concepts are allowed to take an array form.
|
3960
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3960
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/BlueprintScheduleInterrupt.html Online documentation}
|
3961
3961
|
*/
|
3962
3962
|
export interface BlueprintScheduleInterruptWrite {
|
3963
3963
|
readonly name?: string
|
@@ -3967,7 +3967,7 @@ declare module "factorio:runtime" {
|
|
3967
3967
|
}
|
3968
3968
|
/**
|
3969
3969
|
* @see BlueprintScheduleWrite
|
3970
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3970
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/BlueprintSchedule.html Online documentation}
|
3971
3971
|
*/
|
3972
3972
|
export interface BlueprintSchedule {
|
3973
3973
|
readonly records?: BlueprintScheduleRecord[]
|
@@ -3976,7 +3976,7 @@ declare module "factorio:runtime" {
|
|
3976
3976
|
}
|
3977
3977
|
/**
|
3978
3978
|
* Write form of {@link BlueprintSchedule}, where table-or-array concepts are allowed to take an array form.
|
3979
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3979
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/BlueprintSchedule.html Online documentation}
|
3980
3980
|
*/
|
3981
3981
|
export interface BlueprintScheduleWrite {
|
3982
3982
|
readonly records?: readonly BlueprintScheduleRecordWrite[]
|
@@ -3985,7 +3985,7 @@ declare module "factorio:runtime" {
|
|
3985
3985
|
}
|
3986
3986
|
/**
|
3987
3987
|
* @see WaitConditionWrite
|
3988
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3988
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/WaitCondition.html Online documentation}
|
3989
3989
|
*/
|
3990
3990
|
export interface WaitCondition {
|
3991
3991
|
readonly type: WaitConditionType
|
@@ -4016,7 +4016,7 @@ declare module "factorio:runtime" {
|
|
4016
4016
|
}
|
4017
4017
|
/**
|
4018
4018
|
* Write form of {@link WaitCondition}, where table-or-array concepts are allowed to take an array form.
|
4019
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4019
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/WaitCondition.html Online documentation}
|
4020
4020
|
*/
|
4021
4021
|
export interface WaitConditionWrite {
|
4022
4022
|
readonly type: WaitConditionType
|
@@ -4075,7 +4075,7 @@ declare module "factorio:runtime" {
|
|
4075
4075
|
* - `"at_station"`
|
4076
4076
|
* - `"not_at_station"`
|
4077
4077
|
* - `"damage_taken"`
|
4078
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4078
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/WaitConditionType.html Online documentation}
|
4079
4079
|
*/
|
4080
4080
|
export type WaitConditionType =
|
4081
4081
|
| "time"
|
@@ -4117,7 +4117,7 @@ declare module "factorio:runtime" {
|
|
4117
4117
|
* - `"blueprint-snap-rectangle"`: Green by default.
|
4118
4118
|
* - `"spidertron-remote-selected"`
|
4119
4119
|
* - `"spidertron-remote-to-be-selected"`
|
4120
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4120
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/CursorBoxRenderType.html Online documentation}
|
4121
4121
|
*/
|
4122
4122
|
export type CursorBoxRenderType =
|
4123
4123
|
| "entity"
|
@@ -4133,7 +4133,7 @@ declare module "factorio:runtime" {
|
|
4133
4133
|
| "spidertron-remote-to-be-selected"
|
4134
4134
|
/**
|
4135
4135
|
* What is shown in the map view. If a field is not given, that setting will not be changed.
|
4136
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4136
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/MapViewSettings.html Online documentation}
|
4137
4137
|
*/
|
4138
4138
|
export interface MapViewSettings {
|
4139
4139
|
readonly "show-logistic-network"?: boolean
|
@@ -4200,7 +4200,7 @@ declare module "factorio:runtime" {
|
|
4200
4200
|
* - `"higher-object-above"`: 127
|
4201
4201
|
* - `"train-stop-top"`: 128
|
4202
4202
|
* - `"item-in-inserter-hand"`: 129
|
4203
|
-
* - `"above-
|
4203
|
+
* - `"above-inserters"`: 130
|
4204
4204
|
* - `"wires"`: 131
|
4205
4205
|
* - `"under-elevated"`: 132
|
4206
4206
|
* - `"elevated-rail-stone-path-lower"`: 133
|
@@ -4226,7 +4226,7 @@ declare module "factorio:runtime" {
|
|
4226
4226
|
* - `"collision-selection-box"`: 189
|
4227
4227
|
* - `"arrow"`: 190
|
4228
4228
|
* - `"cursor"`: 226
|
4229
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4229
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/RenderLayer.html Online documentation}
|
4230
4230
|
*/
|
4231
4231
|
export type RenderLayer =
|
4232
4232
|
| `${bigint}`
|
@@ -4275,7 +4275,7 @@ declare module "factorio:runtime" {
|
|
4275
4275
|
| "higher-object-above"
|
4276
4276
|
| "train-stop-top"
|
4277
4277
|
| "item-in-inserter-hand"
|
4278
|
-
| "above-
|
4278
|
+
| "above-inserters"
|
4279
4279
|
| "wires"
|
4280
4280
|
| "under-elevated"
|
4281
4281
|
| "elevated-rail-stone-path-lower"
|
@@ -4322,7 +4322,7 @@ declare module "factorio:runtime" {
|
|
4322
4322
|
* - `"entity-with-quality"`
|
4323
4323
|
* - `"recipe-with-quality"`
|
4324
4324
|
* - `"equipment-with-quality"`
|
4325
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4325
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/ElemType.html Online documentation}
|
4326
4326
|
*/
|
4327
4327
|
export type ElemType =
|
4328
4328
|
| "achievement"
|
@@ -4349,7 +4349,7 @@ declare module "factorio:runtime" {
|
|
4349
4349
|
* - `"left"`
|
4350
4350
|
* - `"right"`
|
4351
4351
|
* - `"none"`
|
4352
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4352
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/SwitchState.html Online documentation}
|
4353
4353
|
*/
|
4354
4354
|
export type SwitchState = "left" | "right" | "none"
|
4355
4355
|
export interface ElemID {
|
@@ -4389,7 +4389,7 @@ declare module "factorio:runtime" {
|
|
4389
4389
|
* - `"destroy-decoratives"`
|
4390
4390
|
* - `"camera-effect"`
|
4391
4391
|
* - `"activate-impact"`
|
4392
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4392
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/TriggerEffectItemType.html Online documentation}
|
4393
4393
|
*/
|
4394
4394
|
export type TriggerEffectItemType =
|
4395
4395
|
| "damage"
|
@@ -4425,7 +4425,7 @@ declare module "factorio:runtime" {
|
|
4425
4425
|
}
|
4426
4426
|
/**
|
4427
4427
|
* A set of trigger target masks.
|
4428
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4428
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/TriggerTargetMask.html Online documentation}
|
4429
4429
|
*/
|
4430
4430
|
export type TriggerTargetMask = Record<string, true>
|
4431
4431
|
export interface TriggerItem {
|
@@ -4492,7 +4492,7 @@ declare module "factorio:runtime" {
|
|
4492
4492
|
* -- If 'entity-description.furnace' exists, it is concatenated with "\n" and returned. Otherwise, if 'item-description.furnace'
|
4493
4493
|
* -- exists, it is returned as-is. Otherwise, "optional fallback" is returned. If this value wasn't specified, the
|
4494
4494
|
* -- translation result would be "Unknown key: 'item-description.furnace'".
|
4495
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4495
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/LocalisedString.html Online documentation}
|
4496
4496
|
*/
|
4497
4497
|
export type LocalisedString = string | number | boolean | LuaObject | nil | [string, ...LocalisedString[]]
|
4498
4498
|
export interface DisplayResolution {
|
@@ -4503,7 +4503,7 @@ declare module "factorio:runtime" {
|
|
4503
4503
|
* 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".
|
4504
4504
|
*
|
4505
4505
|
* For example then, a value of `0.625` would indicate "south-west", and a value of `0.875` would indicate "north-west".
|
4506
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4506
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/RealOrientation.html Online documentation}
|
4507
4507
|
*/
|
4508
4508
|
export type RealOrientation = float
|
4509
4509
|
/**
|
@@ -4518,7 +4518,7 @@ declare module "factorio:runtime" {
|
|
4518
4518
|
* @example
|
4519
4519
|
* -- Shorthand
|
4520
4520
|
* {1.625, 2.375}
|
4521
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4521
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/MapPosition.html Online documentation}
|
4522
4522
|
*/
|
4523
4523
|
export interface MapPosition {
|
4524
4524
|
readonly x: double
|
@@ -4527,13 +4527,13 @@ declare module "factorio:runtime" {
|
|
4527
4527
|
/**
|
4528
4528
|
* Array form of {@link MapPosition}.
|
4529
4529
|
* @see MapPosition
|
4530
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4530
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/MapPosition.html Online documentation}
|
4531
4531
|
*/
|
4532
4532
|
export type MapPositionArray = readonly [double, double]
|
4533
4533
|
/**
|
4534
4534
|
* 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.
|
4535
4535
|
* @see ChunkPositionArray
|
4536
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4536
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/ChunkPosition.html Online documentation}
|
4537
4537
|
*/
|
4538
4538
|
export interface ChunkPosition {
|
4539
4539
|
readonly x: int
|
@@ -4542,13 +4542,13 @@ declare module "factorio:runtime" {
|
|
4542
4542
|
/**
|
4543
4543
|
* Array form of {@link ChunkPosition}.
|
4544
4544
|
* @see ChunkPosition
|
4545
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4545
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/ChunkPosition.html Online documentation}
|
4546
4546
|
*/
|
4547
4547
|
export type ChunkPositionArray = readonly [int, int]
|
4548
4548
|
/**
|
4549
4549
|
* 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.
|
4550
4550
|
* @see TilePositionArray
|
4551
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4551
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/TilePosition.html Online documentation}
|
4552
4552
|
*/
|
4553
4553
|
export interface TilePosition {
|
4554
4554
|
readonly x: int
|
@@ -4557,7 +4557,7 @@ declare module "factorio:runtime" {
|
|
4557
4557
|
/**
|
4558
4558
|
* Array form of {@link TilePosition}.
|
4559
4559
|
* @see TilePosition
|
4560
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4560
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/TilePosition.html Online documentation}
|
4561
4561
|
*/
|
4562
4562
|
export type TilePositionArray = readonly [int, int]
|
4563
4563
|
/**
|
@@ -4570,7 +4570,7 @@ declare module "factorio:runtime" {
|
|
4570
4570
|
* @example
|
4571
4571
|
* -- Shorthand
|
4572
4572
|
* {1, 2}
|
4573
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4573
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/EquipmentPosition.html Online documentation}
|
4574
4574
|
*/
|
4575
4575
|
export interface EquipmentPosition {
|
4576
4576
|
readonly x: int
|
@@ -4579,13 +4579,13 @@ declare module "factorio:runtime" {
|
|
4579
4579
|
/**
|
4580
4580
|
* Array form of {@link EquipmentPosition}.
|
4581
4581
|
* @see EquipmentPosition
|
4582
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4582
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/EquipmentPosition.html Online documentation}
|
4583
4583
|
*/
|
4584
4584
|
export type EquipmentPositionArray = readonly [int, int]
|
4585
4585
|
/**
|
4586
4586
|
* 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.
|
4587
4587
|
* @see GuiLocationArray
|
4588
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4588
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/GuiLocation.html Online documentation}
|
4589
4589
|
*/
|
4590
4590
|
export interface GuiLocation {
|
4591
4591
|
readonly x: int
|
@@ -4594,12 +4594,12 @@ declare module "factorio:runtime" {
|
|
4594
4594
|
/**
|
4595
4595
|
* Array form of {@link GuiLocation}.
|
4596
4596
|
* @see GuiLocation
|
4597
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4597
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/GuiLocation.html Online documentation}
|
4598
4598
|
*/
|
4599
4599
|
export type GuiLocationArray = readonly [int, int]
|
4600
4600
|
/**
|
4601
4601
|
* A {@link ChunkPosition} with an added bounding box for the area of the chunk.
|
4602
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4602
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/ChunkPositionAndArea.html Online documentation}
|
4603
4603
|
*/
|
4604
4604
|
export interface ChunkPositionAndArea {
|
4605
4605
|
readonly x: int
|
@@ -4608,7 +4608,7 @@ declare module "factorio:runtime" {
|
|
4608
4608
|
}
|
4609
4609
|
/**
|
4610
4610
|
* A table used to define a manual shape for a piece of equipment.
|
4611
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4611
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/EquipmentPoint.html Online documentation}
|
4612
4612
|
*/
|
4613
4613
|
export interface EquipmentPoint {
|
4614
4614
|
readonly x: uint
|
@@ -4644,7 +4644,7 @@ declare module "factorio:runtime" {
|
|
4644
4644
|
* 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.
|
4645
4645
|
* @example
|
4646
4646
|
* {a = 1, b = true, c = "three", d = {e = "f"}}
|
4647
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4647
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/Tags.html Online documentation}
|
4648
4648
|
*/
|
4649
4649
|
export type Tags = Record<string, AnyBasic>
|
4650
4650
|
export interface SurfaceCondition {
|
@@ -4678,13 +4678,13 @@ declare module "factorio:runtime" {
|
|
4678
4678
|
* A vector is a two-element array or dictionary containing the `x` and `y` components. The game will always provide the array format. Positive x goes east, positive y goes south.
|
4679
4679
|
* @example
|
4680
4680
|
* right = {1.0, 0.0}
|
4681
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4681
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/Vector.html Online documentation}
|
4682
4682
|
*/
|
4683
4683
|
export type Vector = MapPositionArray
|
4684
4684
|
/**
|
4685
4685
|
* An area defined using the map editor.
|
4686
4686
|
* @see ScriptAreaWrite
|
4687
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4687
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/ScriptArea.html Online documentation}
|
4688
4688
|
*/
|
4689
4689
|
export interface ScriptArea {
|
4690
4690
|
readonly area: BoundingBox
|
@@ -4694,7 +4694,7 @@ declare module "factorio:runtime" {
|
|
4694
4694
|
}
|
4695
4695
|
/**
|
4696
4696
|
* Write form of {@link ScriptArea}, where table-or-array concepts are allowed to take an array form.
|
4697
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4697
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/ScriptArea.html Online documentation}
|
4698
4698
|
*/
|
4699
4699
|
export interface ScriptAreaWrite {
|
4700
4700
|
readonly area: BoundingBoxWrite | BoundingBoxArray
|
@@ -4705,7 +4705,7 @@ declare module "factorio:runtime" {
|
|
4705
4705
|
/**
|
4706
4706
|
* A position defined using the map editor.
|
4707
4707
|
* @see ScriptPositionWrite
|
4708
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4708
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/ScriptPosition.html Online documentation}
|
4709
4709
|
*/
|
4710
4710
|
export interface ScriptPosition {
|
4711
4711
|
readonly position: MapPosition
|
@@ -4715,7 +4715,7 @@ declare module "factorio:runtime" {
|
|
4715
4715
|
}
|
4716
4716
|
/**
|
4717
4717
|
* Write form of {@link ScriptPosition}, where table-or-array concepts are allowed to take an array form.
|
4718
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4718
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/ScriptPosition.html Online documentation}
|
4719
4719
|
*/
|
4720
4720
|
export interface ScriptPositionWrite {
|
4721
4721
|
readonly position: MapPosition | MapPositionArray
|
@@ -4733,7 +4733,7 @@ declare module "factorio:runtime" {
|
|
4733
4733
|
* red2 = {r = 0.5, a = 0.5} -- Same color as red1
|
4734
4734
|
* black = {} -- All channels omitted: black
|
4735
4735
|
* red1_short = {0.5, 0, 0, 0.5} -- Same color as red1 in short-hand notation
|
4736
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4736
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/Color.html Online documentation}
|
4737
4737
|
*/
|
4738
4738
|
export interface Color {
|
4739
4739
|
readonly r?: float
|
@@ -4744,13 +4744,13 @@ declare module "factorio:runtime" {
|
|
4744
4744
|
/**
|
4745
4745
|
* Array form of {@link Color}.
|
4746
4746
|
* @see Color
|
4747
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4747
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/Color.html Online documentation}
|
4748
4748
|
*/
|
4749
4749
|
export type ColorArray = readonly [r: double, g: double, b: double, a?: double]
|
4750
4750
|
/**
|
4751
4751
|
* 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].
|
4752
4752
|
* @see ColorModifierArray
|
4753
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4753
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/ColorModifier.html Online documentation}
|
4754
4754
|
*/
|
4755
4755
|
export interface ColorModifier {
|
4756
4756
|
readonly r?: float
|
@@ -4761,7 +4761,7 @@ declare module "factorio:runtime" {
|
|
4761
4761
|
/**
|
4762
4762
|
* Array form of {@link ColorModifier}.
|
4763
4763
|
* @see ColorModifier
|
4764
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4764
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/ColorModifier.html Online documentation}
|
4765
4765
|
*/
|
4766
4766
|
export type ColorModifierArray = readonly [r: double, g: double, b: double, a?: double]
|
4767
4767
|
export interface CraftingQueueItem {
|
@@ -4904,7 +4904,7 @@ declare module "factorio:runtime" {
|
|
4904
4904
|
}
|
4905
4905
|
/**
|
4906
4906
|
* @see AsteroidChunkWrite
|
4907
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4907
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/AsteroidChunk.html Online documentation}
|
4908
4908
|
*/
|
4909
4909
|
export interface AsteroidChunk {
|
4910
4910
|
/**
|
@@ -4916,7 +4916,7 @@ declare module "factorio:runtime" {
|
|
4916
4916
|
}
|
4917
4917
|
/**
|
4918
4918
|
* Write form of {@link AsteroidChunk}, where table-or-array concepts are allowed to take an array form.
|
4919
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4919
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/AsteroidChunk.html Online documentation}
|
4920
4920
|
*/
|
4921
4921
|
export interface AsteroidChunkWrite {
|
4922
4922
|
/**
|
@@ -4938,7 +4938,7 @@ declare module "factorio:runtime" {
|
|
4938
4938
|
}
|
4939
4939
|
/**
|
4940
4940
|
* Either `icon`, `text`, or both must be provided.
|
4941
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4941
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/ChartTagSpec.html Online documentation}
|
4942
4942
|
*/
|
4943
4943
|
export interface ChartTagSpec {
|
4944
4944
|
readonly position: MapPosition | MapPositionArray
|
@@ -4948,88 +4948,88 @@ declare module "factorio:runtime" {
|
|
4948
4948
|
}
|
4949
4949
|
/**
|
4950
4950
|
* 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.
|
4951
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4951
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/GameViewSettings.html Online documentation}
|
4952
4952
|
*/
|
4953
4953
|
export interface GameViewSettings {
|
4954
4954
|
/**
|
4955
4955
|
* Show the controller GUI elements. This includes the toolbar, the selected tool slot, the armour slot, and the gun and ammunition slots.
|
4956
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4956
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/GameViewSettings.show_controller_gui.html Online documentation}
|
4957
4957
|
*/
|
4958
4958
|
show_controller_gui: boolean
|
4959
4959
|
/**
|
4960
4960
|
* Show the chart in the upper right-hand corner of the screen.
|
4961
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4961
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/GameViewSettings.show_minimap.html Online documentation}
|
4962
4962
|
*/
|
4963
4963
|
show_minimap: boolean
|
4964
4964
|
/**
|
4965
4965
|
* Show research progress and name in the upper right-hand corner of the screen.
|
4966
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4966
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/GameViewSettings.show_research_info.html Online documentation}
|
4967
4967
|
*/
|
4968
4968
|
show_research_info: boolean
|
4969
4969
|
/**
|
4970
4970
|
* Show overlay icons on entities. Also known as "alt-mode".
|
4971
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4971
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/GameViewSettings.show_entity_info.html Online documentation}
|
4972
4972
|
*/
|
4973
4973
|
show_entity_info: boolean
|
4974
4974
|
/**
|
4975
4975
|
* Show the flashing alert icons next to the player's toolbar.
|
4976
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4976
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/GameViewSettings.show_alert_gui.html Online documentation}
|
4977
4977
|
*/
|
4978
4978
|
show_alert_gui: boolean
|
4979
4979
|
/**
|
4980
4980
|
* When `true` (the default), mousing over an entity will select it. Otherwise, moving the mouse won't update entity selection.
|
4981
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4981
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/GameViewSettings.update_entity_selection.html Online documentation}
|
4982
4982
|
*/
|
4983
4983
|
update_entity_selection: boolean
|
4984
4984
|
/**
|
4985
4985
|
* When `true` (`false` is default), the rails will always show the rail block visualisation.
|
4986
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4986
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/GameViewSettings.show_rail_block_visualisation.html Online documentation}
|
4987
4987
|
*/
|
4988
4988
|
show_rail_block_visualisation: boolean
|
4989
4989
|
/**
|
4990
4990
|
* Shows or hides the buttons row.
|
4991
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4991
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/GameViewSettings.show_side_menu.html Online documentation}
|
4992
4992
|
*/
|
4993
4993
|
show_side_menu: boolean
|
4994
4994
|
/**
|
4995
4995
|
* Shows or hides the view options when map is opened.
|
4996
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4996
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/GameViewSettings.show_map_view_options.html Online documentation}
|
4997
4997
|
*/
|
4998
4998
|
show_map_view_options: boolean
|
4999
4999
|
/**
|
5000
5000
|
* Shows or hides the tooltip that is displayed when selecting an entity.
|
5001
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5001
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/GameViewSettings.show_entity_tooltip.html Online documentation}
|
5002
5002
|
*/
|
5003
5003
|
show_entity_tooltip: boolean
|
5004
5004
|
/**
|
5005
5005
|
* Shows or hides quickbar of shortcuts.
|
5006
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5006
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/GameViewSettings.show_quickbar.html Online documentation}
|
5007
5007
|
*/
|
5008
5008
|
show_quickbar: boolean
|
5009
5009
|
/**
|
5010
5010
|
* Shows or hides the shortcut bar.
|
5011
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5011
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/GameViewSettings.show_shortcut_bar.html Online documentation}
|
5012
5012
|
*/
|
5013
5013
|
show_shortcut_bar: boolean
|
5014
5014
|
/**
|
5015
5015
|
* Shows or hides the crafting queue.
|
5016
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5016
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/GameViewSettings.show_crafting_queue.html Online documentation}
|
5017
5017
|
*/
|
5018
5018
|
show_crafting_queue: boolean
|
5019
5019
|
/**
|
5020
5020
|
* Shows or hides the tool window with the weapons and armor.
|
5021
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5021
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/GameViewSettings.show_tool_bar.html Online documentation}
|
5022
5022
|
*/
|
5023
5023
|
show_tool_bar: boolean
|
5024
5024
|
/**
|
5025
5025
|
* hows or hides the mouse and keyboard/controller button hints in the bottom left corner if they are enabled in the interface settings.
|
5026
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5026
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/GameViewSettings.show_hotkey_suggestions.html Online documentation}
|
5027
5027
|
*/
|
5028
5028
|
show_hotkey_suggestions: boolean
|
5029
5029
|
}
|
5030
5030
|
/**
|
5031
5031
|
* The data that can be extracted from a map exchange string, as a plain table.
|
5032
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5032
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/MapExchangeStringData.html Online documentation}
|
5033
5033
|
*/
|
5034
5034
|
export interface MapExchangeStringData {
|
5035
5035
|
readonly map_settings: MapAndDifficultySettings
|
@@ -5062,12 +5062,12 @@ declare module "factorio:runtime" {
|
|
5062
5062
|
* - `target_entity_number`
|
5063
5063
|
*
|
5064
5064
|
* - `target_wire_connector_id`
|
5065
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5065
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/BlueprintWire.html Online documentation}
|
5066
5066
|
*/
|
5067
5067
|
export type BlueprintWire = readonly [uint, defines.wire_connector_id, uint, defines.wire_connector_id]
|
5068
5068
|
/**
|
5069
5069
|
* @see TileWrite
|
5070
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5070
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/Tile.html Online documentation}
|
5071
5071
|
*/
|
5072
5072
|
export interface Tile {
|
5073
5073
|
/**
|
@@ -5081,7 +5081,7 @@ declare module "factorio:runtime" {
|
|
5081
5081
|
}
|
5082
5082
|
/**
|
5083
5083
|
* Write form of {@link Tile}, where table-or-array concepts are allowed to take an array form.
|
5084
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5084
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/Tile.html Online documentation}
|
5085
5085
|
*/
|
5086
5086
|
export interface TileWrite {
|
5087
5087
|
/**
|
@@ -5136,7 +5136,7 @@ declare module "factorio:runtime" {
|
|
5136
5136
|
*
|
5137
5137
|
* Other attributes may be specified depending on `type`:
|
5138
5138
|
* - `"fluid"`: {@link FluidIngredient}
|
5139
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5139
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/Ingredient.html Online documentation}
|
5140
5140
|
*/
|
5141
5141
|
export type Ingredient = FluidIngredient | OtherIngredient
|
5142
5142
|
export interface Loot {
|
@@ -5302,7 +5302,7 @@ declare module "factorio:runtime" {
|
|
5302
5302
|
* - `"unlock-recipe"`: {@link UnlockRecipeTechnologyModifier}
|
5303
5303
|
* - `"nothing"`: {@link NothingTechnologyModifier}
|
5304
5304
|
* - Other types: {@link OtherTechnologyModifier}
|
5305
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5305
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/TechnologyModifier.html Online documentation}
|
5306
5306
|
*/
|
5307
5307
|
export type TechnologyModifier =
|
5308
5308
|
| GunSpeedTechnologyModifier
|
@@ -5314,7 +5314,7 @@ declare module "factorio:runtime" {
|
|
5314
5314
|
| OtherTechnologyModifier
|
5315
5315
|
/**
|
5316
5316
|
* 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}.
|
5317
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5317
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/NoiseExpression.html Online documentation}
|
5318
5318
|
*/
|
5319
5319
|
export interface NoiseExpression {
|
5320
5320
|
/**
|
@@ -5367,7 +5367,7 @@ declare module "factorio:runtime" {
|
|
5367
5367
|
* - `"very-high"`: equivalent to `2`.
|
5368
5368
|
* - `"very-big"`: equivalent to `2`.
|
5369
5369
|
* - `"very-good"`: equivalent to `2`.
|
5370
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5370
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/MapGenSize.html Online documentation}
|
5371
5371
|
*/
|
5372
5372
|
export type MapGenSize =
|
5373
5373
|
| float
|
@@ -5389,7 +5389,7 @@ declare module "factorio:runtime" {
|
|
5389
5389
|
| "very-good"
|
5390
5390
|
/**
|
5391
5391
|
* @see AutoplaceControlWrite
|
5392
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5392
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/AutoplaceControl.html Online documentation}
|
5393
5393
|
*/
|
5394
5394
|
export interface AutoplaceControl {
|
5395
5395
|
/**
|
@@ -5407,7 +5407,7 @@ declare module "factorio:runtime" {
|
|
5407
5407
|
}
|
5408
5408
|
/**
|
5409
5409
|
* Write form of {@link AutoplaceControl}, where table-or-array concepts are allowed to take an array form.
|
5410
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5410
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/AutoplaceControl.html Online documentation}
|
5411
5411
|
*/
|
5412
5412
|
export interface AutoplaceControlWrite {
|
5413
5413
|
/**
|
@@ -5426,10 +5426,10 @@ declare module "factorio:runtime" {
|
|
5426
5426
|
/**
|
5427
5427
|
* 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}`.
|
5428
5428
|
*
|
5429
|
-
* {@link https://lua-api.factorio.com/2.0.
|
5429
|
+
* {@link https://lua-api.factorio.com/2.0.17/concepts/PropertyExpressionNames.html > 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:}
|
5430
5430
|
*
|
5431
|
-
* {@link https://lua-api.factorio.com/2.0.
|
5432
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5431
|
+
* {@link https://lua-api.factorio.com/2.0.17/concepts/PropertyExpressionNames.html > 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:}
|
5432
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/PropertyExpressionNames.html Online documentation}
|
5433
5433
|
*/
|
5434
5434
|
export type PropertyExpressionNames = Record<string, string>
|
5435
5435
|
export interface AdvancedMapGenSettings {
|
@@ -5462,7 +5462,7 @@ declare module "factorio:runtime" {
|
|
5462
5462
|
}
|
5463
5463
|
/**
|
5464
5464
|
* An actual signal transmitted by the network.
|
5465
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5465
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/Signal.html Online documentation}
|
5466
5466
|
*/
|
5467
5467
|
export interface Signal {
|
5468
5468
|
/**
|
@@ -5476,7 +5476,7 @@ declare module "factorio:runtime" {
|
|
5476
5476
|
}
|
5477
5477
|
/**
|
5478
5478
|
* @see UpgradeMapperSourceWrite
|
5479
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5479
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/UpgradeMapperSource.html Online documentation}
|
5480
5480
|
*/
|
5481
5481
|
export interface UpgradeMapperSource {
|
5482
5482
|
readonly type: "item" | "entity"
|
@@ -5495,7 +5495,7 @@ declare module "factorio:runtime" {
|
|
5495
5495
|
}
|
5496
5496
|
/**
|
5497
5497
|
* Write form of {@link UpgradeMapperSource}, where table-or-array concepts are allowed to take an array form.
|
5498
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5498
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/UpgradeMapperSource.html Online documentation}
|
5499
5499
|
*/
|
5500
5500
|
export interface UpgradeMapperSourceWrite {
|
5501
5501
|
readonly type: "item" | "entity"
|
@@ -5532,7 +5532,7 @@ declare module "factorio:runtime" {
|
|
5532
5532
|
}
|
5533
5533
|
/**
|
5534
5534
|
* A single filter used by an infinity-filters instance.
|
5535
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5535
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/InfinityInventoryFilter.html Online documentation}
|
5536
5536
|
*/
|
5537
5537
|
export interface InfinityInventoryFilter {
|
5538
5538
|
/**
|
@@ -5554,7 +5554,7 @@ declare module "factorio:runtime" {
|
|
5554
5554
|
}
|
5555
5555
|
/**
|
5556
5556
|
* A single filter used by an infinity-pipe type entity.
|
5557
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5557
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/InfinityPipeFilter.html Online documentation}
|
5558
5558
|
*/
|
5559
5559
|
export interface InfinityPipeFilter {
|
5560
5560
|
/**
|
@@ -5608,7 +5608,7 @@ declare module "factorio:runtime" {
|
|
5608
5608
|
}
|
5609
5609
|
/**
|
5610
5610
|
* The settings used by a heat-interface type entity.
|
5611
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5611
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/HeatSetting.html Online documentation}
|
5612
5612
|
*/
|
5613
5613
|
export interface HeatSetting {
|
5614
5614
|
/**
|
@@ -5690,7 +5690,7 @@ declare module "factorio:runtime" {
|
|
5690
5690
|
}
|
5691
5691
|
/**
|
5692
5692
|
* @see CircuitConditionWrite
|
5693
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5693
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/CircuitCondition.html Online documentation}
|
5694
5694
|
*/
|
5695
5695
|
export interface CircuitCondition {
|
5696
5696
|
/**
|
@@ -5712,7 +5712,7 @@ declare module "factorio:runtime" {
|
|
5712
5712
|
}
|
5713
5713
|
/**
|
5714
5714
|
* Write form of {@link CircuitCondition}, where table-or-array concepts are allowed to take an array form.
|
5715
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5715
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/CircuitCondition.html Online documentation}
|
5716
5716
|
*/
|
5717
5717
|
export interface CircuitConditionWrite {
|
5718
5718
|
/**
|
@@ -5734,7 +5734,7 @@ declare module "factorio:runtime" {
|
|
5734
5734
|
}
|
5735
5735
|
/**
|
5736
5736
|
* @see CircuitConditionDefinitionWrite
|
5737
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5737
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/CircuitConditionDefinition.html Online documentation}
|
5738
5738
|
*/
|
5739
5739
|
export interface CircuitConditionDefinition {
|
5740
5740
|
/**
|
@@ -5748,7 +5748,7 @@ declare module "factorio:runtime" {
|
|
5748
5748
|
}
|
5749
5749
|
/**
|
5750
5750
|
* Write form of {@link CircuitConditionDefinition}, where table-or-array concepts are allowed to take an array form.
|
5751
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5751
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/CircuitConditionDefinition.html Online documentation}
|
5752
5752
|
*/
|
5753
5753
|
export interface CircuitConditionDefinitionWrite {
|
5754
5754
|
/**
|
@@ -6037,7 +6037,7 @@ declare module "factorio:runtime" {
|
|
6037
6037
|
* - {@link defines.command.stop}: {@link StopCommand}
|
6038
6038
|
* - {@link defines.command.flee}: {@link FleeCommand}
|
6039
6039
|
* - {@link defines.command.build_base}: {@link BuildBaseCommand}
|
6040
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
6040
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/Command.html Online documentation}
|
6041
6041
|
*/
|
6042
6042
|
export type Command =
|
6043
6043
|
| AttackCommand
|
@@ -6051,7 +6051,7 @@ declare module "factorio:runtime" {
|
|
6051
6051
|
| BuildBaseCommand
|
6052
6052
|
/**
|
6053
6053
|
* Write form of {@link Command}, where table-or-array concepts are allowed to take an array form.
|
6054
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
6054
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/Command.html Online documentation}
|
6055
6055
|
*/
|
6056
6056
|
export type CommandWrite =
|
6057
6057
|
| AttackCommand
|
@@ -6136,7 +6136,7 @@ declare module "factorio:runtime" {
|
|
6136
6136
|
* These are both full stacks of iron plates (for iron-plate, a full stack is 100 plates)
|
6137
6137
|
* "iron-plate"
|
6138
6138
|
* {name="iron-plate", count=100}
|
6139
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
6139
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/SimpleItemStack.html Online documentation}
|
6140
6140
|
*/
|
6141
6141
|
export type SimpleItemStack = string | ItemStackDefinition
|
6142
6142
|
/**
|
@@ -6146,7 +6146,7 @@ declare module "factorio:runtime" {
|
|
6146
6146
|
* - 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.
|
6147
6147
|
* - `string`: It will be the surface name. E.g. `"nauvis"`.
|
6148
6148
|
* - {@link LuaSurface}: A reference to {@link LuaSurface} may be passed directly.
|
6149
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
6149
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/SurfaceIdentification.html Online documentation}
|
6150
6150
|
*/
|
6151
6151
|
export type SurfaceIdentification = SurfaceIndex | string | LuaSurface
|
6152
6152
|
/**
|
@@ -6156,7 +6156,7 @@ declare module "factorio:runtime" {
|
|
6156
6156
|
* - PlayerIndex: The player index.
|
6157
6157
|
* - `string`: The player name.
|
6158
6158
|
* - {@link LuaPlayer}: A reference to {@link LuaPlayer} may be passed directly.
|
6159
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
6159
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/PlayerIdentification.html Online documentation}
|
6160
6160
|
*/
|
6161
6161
|
export type PlayerIdentification = PlayerIndex | string | LuaPlayer
|
6162
6162
|
/**
|
@@ -6165,7 +6165,7 @@ declare module "factorio:runtime" {
|
|
6165
6165
|
* ## Union members
|
6166
6166
|
* - {@link SimpleItemStack}
|
6167
6167
|
* - {@link LuaItemStack}
|
6168
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
6168
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/ItemStackIdentification.html Online documentation}
|
6169
6169
|
*/
|
6170
6170
|
export type ItemStackIdentification = SimpleItemStack | LuaItemStack
|
6171
6171
|
/**
|
@@ -6175,7 +6175,7 @@ declare module "factorio:runtime" {
|
|
6175
6175
|
* - `"entity"`: Fires at an entity.
|
6176
6176
|
* - `"position"`: Fires directly at a position.
|
6177
6177
|
* - `"direction"`: Fires in a direction.
|
6178
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
6178
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/TargetType.html Online documentation}
|
6179
6179
|
*/
|
6180
6180
|
export type TargetType = "entity" | "position" | "direction"
|
6181
6181
|
export interface BeamTarget {
|
@@ -6212,8 +6212,8 @@ declare module "factorio:runtime" {
|
|
6212
6212
|
*
|
6213
6213
|
* The validity of a SoundPath can be verified at runtime using {@link LuaHelpers#is_valid_sound_path LuaHelpers::is_valid_sound_path}.
|
6214
6214
|
*
|
6215
|
-
* {@link https://lua-api.factorio.com/2.0.
|
6216
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
6215
|
+
* {@link https://lua-api.factorio.com/2.0.17/concepts/SoundPath.html > The utility and ambient types each contain general use sound prototypes defined by the game itself.}
|
6216
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/SoundPath.html Online documentation}
|
6217
6217
|
*/
|
6218
6218
|
export type SoundPath =
|
6219
6219
|
| (string & {
|
@@ -6349,7 +6349,7 @@ declare module "factorio:runtime" {
|
|
6349
6349
|
* Other attributes may be specified depending on `type`:
|
6350
6350
|
* - `"projectile"`: {@link ProjectileAttackParameters}
|
6351
6351
|
* - `"stream"`: {@link StreamAttackParameters}
|
6352
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
6352
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/AttackParameters.html Online documentation}
|
6353
6353
|
*/
|
6354
6354
|
export type AttackParameters = ProjectileAttackParameters | StreamAttackParameters | OtherAttackParameters
|
6355
6355
|
export interface GunShift4Way {
|
@@ -6415,7 +6415,7 @@ declare module "factorio:runtime" {
|
|
6415
6415
|
* - `"use-on-self"`: {@link UseOnSelfCapsuleAction}
|
6416
6416
|
* - `"artillery-remote"`: {@link ArtilleryRemoteCapsuleAction}
|
6417
6417
|
* - `"destroy-cliffs"`: {@link DestroyCliffsCapsuleAction}
|
6418
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
6418
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/CapsuleAction.html Online documentation}
|
6419
6419
|
*/
|
6420
6420
|
export type CapsuleAction =
|
6421
6421
|
| ThrowCapsuleAction
|
@@ -6455,12 +6455,12 @@ declare module "factorio:runtime" {
|
|
6455
6455
|
}
|
6456
6456
|
/**
|
6457
6457
|
* Any basic type (string, number, boolean) or table.
|
6458
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
6458
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/AnyBasic.html Online documentation}
|
6459
6459
|
*/
|
6460
6460
|
export type AnyBasic = string | boolean | number | table
|
6461
6461
|
/**
|
6462
6462
|
* Any basic type (string, number, boolean), table, or LuaObject.
|
6463
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
6463
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/Any.html Online documentation}
|
6464
6464
|
*/
|
6465
6465
|
export type Any = string | boolean | number | table | LuaObject
|
6466
6466
|
export interface ProgrammableSpeakerParameters {
|
@@ -6498,7 +6498,7 @@ declare module "factorio:runtime" {
|
|
6498
6498
|
* - `"top-right"`
|
6499
6499
|
* - `"right"`: The same as `"middle-right"`
|
6500
6500
|
* - `"bottom-right"`
|
6501
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
6501
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/Alignment.html Online documentation}
|
6502
6502
|
*/
|
6503
6503
|
export type Alignment =
|
6504
6504
|
| "top-left"
|
@@ -6513,8 +6513,8 @@ declare module "factorio:runtime" {
|
|
6513
6513
|
| "right"
|
6514
6514
|
| "bottom-right"
|
6515
6515
|
/**
|
6516
|
-
* 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/2.0.
|
6517
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
6516
|
+
* 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/2.0.17/events.html the list of Factorio events} for more information on these.
|
6517
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/EventData.html Online documentation}
|
6518
6518
|
*/
|
6519
6519
|
export interface EventData {
|
6520
6520
|
/**
|
@@ -6619,7 +6619,7 @@ declare module "factorio:runtime" {
|
|
6619
6619
|
* - `"button-7"`
|
6620
6620
|
* - `"button-8"`
|
6621
6621
|
* - `"button-9"`
|
6622
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
6622
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/MouseButtonFlags.html Online documentation}
|
6623
6623
|
*/
|
6624
6624
|
export interface MouseButtonFlags {
|
6625
6625
|
readonly left?: true
|
@@ -6643,7 +6643,7 @@ declare module "factorio:runtime" {
|
|
6643
6643
|
* - `"not-friend"`: Forces which are not friends pass.
|
6644
6644
|
* - `"same"`: The same force pass.
|
6645
6645
|
* - `"not-same"`: The non-same forces pass.
|
6646
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
6646
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/ForceCondition.html Online documentation}
|
6647
6647
|
*/
|
6648
6648
|
export type ForceCondition = "all" | "enemy" | "ally" | "friend" | "not-friend" | "same" | "not-same"
|
6649
6649
|
export interface ItemStackLocation {
|
@@ -6681,7 +6681,7 @@ declare module "factorio:runtime" {
|
|
6681
6681
|
* - `"tabbed-pane"`: A collection of `tab`s and their contents. Relevant event: {@link OnGuiSelectedTabChangedEvent on_gui_selected_tab_changed}
|
6682
6682
|
* - `"tab"`: A tab for use in a `tabbed-pane`.
|
6683
6683
|
* - `"switch"`: A switch with three possible states. Can have labels attached to either side. Relevant event: {@link OnGuiSwitchStateChangedEvent on_gui_switch_state_changed}
|
6684
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
6684
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/GuiElementType.html Online documentation}
|
6685
6685
|
*/
|
6686
6686
|
export type GuiElementType =
|
6687
6687
|
| "button"
|
@@ -6721,7 +6721,7 @@ declare module "factorio:runtime" {
|
|
6721
6721
|
* - `"position"`
|
6722
6722
|
* - `"crafting_queue"`
|
6723
6723
|
* - `"item_stack"`: Will point to a given item stack in an inventory.
|
6724
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
6724
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/GuiArrowType.html Online documentation}
|
6725
6725
|
*/
|
6726
6726
|
export type GuiArrowType =
|
6727
6727
|
| "nowhere"
|
@@ -6738,7 +6738,7 @@ declare module "factorio:runtime" {
|
|
6738
6738
|
* ## Union members
|
6739
6739
|
* - `"horizontal"`
|
6740
6740
|
* - `"vertical"`
|
6741
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
6741
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/GuiDirection.html Online documentation}
|
6742
6742
|
*/
|
6743
6743
|
export type GuiDirection = "horizontal" | "vertical"
|
6744
6744
|
/**
|
@@ -6750,7 +6750,7 @@ declare module "factorio:runtime" {
|
|
6750
6750
|
* - `"always"`
|
6751
6751
|
* - `"auto"`
|
6752
6752
|
* - `"auto-and-reserve-space"`
|
6753
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
6753
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/ScrollPolicy.html Online documentation}
|
6754
6754
|
*/
|
6755
6755
|
export type ScrollPolicy = "never" | "dont-show-but-allow-scrolling" | "always" | "auto" | "auto-and-reserve-space"
|
6756
6756
|
export interface RailLocation {
|
@@ -6767,71 +6767,71 @@ declare module "factorio:runtime" {
|
|
6767
6767
|
}
|
6768
6768
|
/**
|
6769
6769
|
* 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.
|
6770
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
6770
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/float.html Online documentation}
|
6771
6771
|
*/
|
6772
6772
|
export type float = number
|
6773
6773
|
/**
|
6774
6774
|
* A double-precision floating-point number. This is the same data type as all Lua numbers use.
|
6775
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
6775
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/double.html Online documentation}
|
6776
6776
|
*/
|
6777
6777
|
export type double = number
|
6778
6778
|
/**
|
6779
6779
|
* 32-bit signed integer. Possible values are `-2 147 483 648` to `2 147 483 647`.
|
6780
6780
|
*
|
6781
6781
|
* Since Lua 5.2 only uses doubles, any API that asks for `int` will floor the given double.
|
6782
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
6782
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/int.html Online documentation}
|
6783
6783
|
*/
|
6784
6784
|
export type int = number
|
6785
6785
|
/**
|
6786
6786
|
* 8-bit signed integer. Possible values are `-128` to `127`.
|
6787
6787
|
*
|
6788
6788
|
* Since Lua 5.2 only uses doubles, any API that asks for `int8` will floor the given double.
|
6789
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
6789
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/int8.html Online documentation}
|
6790
6790
|
*/
|
6791
6791
|
export type int8 = number
|
6792
6792
|
/**
|
6793
6793
|
* 32-bit unsigned integer. Possible values are `0` to `4 294 967 295`.
|
6794
6794
|
*
|
6795
6795
|
* Since Lua 5.2 only uses doubles, any API that asks for `uint` will floor the given double.
|
6796
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
6796
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/uint.html Online documentation}
|
6797
6797
|
*/
|
6798
6798
|
export type uint = number
|
6799
6799
|
/**
|
6800
6800
|
* 8-bit unsigned integer. Possible values are `0` to `255`.
|
6801
6801
|
*
|
6802
6802
|
* Since Lua 5.2 only uses doubles, any API that asks for `uint8` will floor the given double.
|
6803
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
6803
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/uint8.html Online documentation}
|
6804
6804
|
*/
|
6805
6805
|
export type uint8 = number
|
6806
6806
|
/**
|
6807
6807
|
* 16-bit unsigned integer. Possible values are `0` to `65 535`.
|
6808
6808
|
*
|
6809
6809
|
* Since Lua 5.2 only uses doubles, any API that asks for `uint16` will floor the given double.
|
6810
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
6810
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/uint16.html Online documentation}
|
6811
6811
|
*/
|
6812
6812
|
export type uint16 = number
|
6813
6813
|
/**
|
6814
6814
|
* 64-bit unsigned integer. Possible values are `0` to `18 446 744 073 709 551 615`.
|
6815
6815
|
*
|
6816
6816
|
* Since Lua 5.2 only uses doubles, any API that asks for `uint64` will floor the given double.
|
6817
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
6817
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/uint64.html Online documentation}
|
6818
6818
|
*/
|
6819
6819
|
export type uint64 = number
|
6820
6820
|
/**
|
6821
6821
|
* 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.
|
6822
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
6822
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/nil.html Online documentation}
|
6823
6823
|
*/
|
6824
6824
|
export type nil = undefined
|
6825
6825
|
/**
|
6826
6826
|
* Tables are enclosed in curly brackets, like this `{}`.
|
6827
6827
|
*
|
6828
6828
|
* 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.
|
6829
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
6829
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/table.html Online documentation}
|
6830
6830
|
*/
|
6831
6831
|
export type table = object
|
6832
6832
|
/**
|
6833
|
-
* Any LuaObject listed on the {@linkplain https://lua-api.factorio.com/2.0.
|
6834
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
6833
|
+
* Any LuaObject listed on the {@linkplain https://lua-api.factorio.com/2.0.17/classes.html Classes} page.
|
6834
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/LuaObject.html Online documentation}
|
6835
6835
|
*/
|
6836
6836
|
export interface LuaObject {
|
6837
6837
|
readonly object_name: string
|
@@ -6890,7 +6890,7 @@ declare module "factorio:runtime" {
|
|
6890
6890
|
* - `"type"`: {@link TypeModSettingPrototypeFilter}
|
6891
6891
|
* - `"mod"`: {@link ModModSettingPrototypeFilter}
|
6892
6892
|
* - `"setting-type"`: {@link SettingTypeModSettingPrototypeFilter}
|
6893
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
6893
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/ModSettingPrototypeFilter.html Online documentation}
|
6894
6894
|
*/
|
6895
6895
|
export type ModSettingPrototypeFilter =
|
6896
6896
|
| TypeModSettingPrototypeFilter
|
@@ -7035,7 +7035,7 @@ declare module "factorio:runtime" {
|
|
7035
7035
|
* - `"vehicle-friction-modifier"`: {@link VehicleFrictionModifierTilePrototypeFilter}
|
7036
7036
|
* - `"decorative-removal-probability"`: {@link DecorativeRemovalProbabilityTilePrototypeFilter}
|
7037
7037
|
* - `"absorptions-per-second"`: {@link AbsorptionsPerSecondTilePrototypeFilter}
|
7038
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
7038
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/TilePrototypeFilter.html Online documentation}
|
7039
7039
|
*/
|
7040
7040
|
export type TilePrototypeFilter =
|
7041
7041
|
| CollisionMaskTilePrototypeFilter
|
@@ -7046,7 +7046,7 @@ declare module "factorio:runtime" {
|
|
7046
7046
|
| OtherTilePrototypeFilter
|
7047
7047
|
/**
|
7048
7048
|
* Write form of {@link TilePrototypeFilter}, where table-or-array concepts are allowed to take an array form.
|
7049
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
7049
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/TilePrototypeFilter.html Online documentation}
|
7050
7050
|
*/
|
7051
7051
|
export type TilePrototypeFilterWrite =
|
7052
7052
|
| CollisionMaskTilePrototypeFilter
|
@@ -7097,7 +7097,7 @@ declare module "factorio:runtime" {
|
|
7097
7097
|
*
|
7098
7098
|
* Other attributes may be specified depending on `filter`:
|
7099
7099
|
* - `"collision-mask"`: {@link CollisionMaskDecorativePrototypeFilter}
|
7100
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
7100
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/DecorativePrototypeFilter.html Online documentation}
|
7101
7101
|
*/
|
7102
7102
|
export type DecorativePrototypeFilter = CollisionMaskDecorativePrototypeFilter | OtherDecorativePrototypeFilter
|
7103
7103
|
/**
|
@@ -7351,7 +7351,7 @@ declare module "factorio:runtime" {
|
|
7351
7351
|
* - `"emissions-multiplier"`: {@link EmissionsMultiplierRecipePrototypeFilter}
|
7352
7352
|
* - `"request-paste-multiplier"`: {@link RequestPasteMultiplierRecipePrototypeFilter}
|
7353
7353
|
* - `"overload-multiplier"`: {@link OverloadMultiplierRecipePrototypeFilter}
|
7354
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
7354
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/RecipePrototypeFilter.html Online documentation}
|
7355
7355
|
*/
|
7356
7356
|
export type RecipePrototypeFilter =
|
7357
7357
|
| HasIngredientItemRecipePrototypeFilter
|
@@ -7367,7 +7367,7 @@ declare module "factorio:runtime" {
|
|
7367
7367
|
| OtherRecipePrototypeFilter
|
7368
7368
|
/**
|
7369
7369
|
* Write form of {@link RecipePrototypeFilter}, where table-or-array concepts are allowed to take an array form.
|
7370
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
7370
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/RecipePrototypeFilter.html Online documentation}
|
7371
7371
|
*/
|
7372
7372
|
export type RecipePrototypeFilterWrite =
|
7373
7373
|
| HasIngredientItemRecipePrototypeFilterWrite
|
@@ -7419,7 +7419,7 @@ declare module "factorio:runtime" {
|
|
7419
7419
|
*
|
7420
7420
|
* Other attributes may be specified depending on `filter`:
|
7421
7421
|
* - `"type"`: {@link TypeAchievementPrototypeFilter}
|
7422
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
7422
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/AchievementPrototypeFilter.html Online documentation}
|
7423
7423
|
*/
|
7424
7424
|
export type AchievementPrototypeFilter = TypeAchievementPrototypeFilter | OtherAchievementPrototypeFilter
|
7425
7425
|
/**
|
@@ -7542,7 +7542,7 @@ declare module "factorio:runtime" {
|
|
7542
7542
|
* - `"level"`: {@link LevelTechnologyPrototypeFilter}
|
7543
7543
|
* - `"max-level"`: {@link MaxLevelTechnologyPrototypeFilter}
|
7544
7544
|
* - `"time"`: {@link TimeTechnologyPrototypeFilter}
|
7545
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
7545
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/TechnologyPrototypeFilter.html Online documentation}
|
7546
7546
|
*/
|
7547
7547
|
export type TechnologyPrototypeFilter =
|
7548
7548
|
| ResearchUnitIngredientTechnologyPrototypeFilter
|
@@ -7553,7 +7553,7 @@ declare module "factorio:runtime" {
|
|
7553
7553
|
| OtherTechnologyPrototypeFilter
|
7554
7554
|
/**
|
7555
7555
|
* Write form of {@link TechnologyPrototypeFilter}, where table-or-array concepts are allowed to take an array form.
|
7556
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
7556
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/TechnologyPrototypeFilter.html Online documentation}
|
7557
7557
|
*/
|
7558
7558
|
export type TechnologyPrototypeFilterWrite =
|
7559
7559
|
| ResearchUnitIngredientTechnologyPrototypeFilter
|
@@ -7870,7 +7870,7 @@ declare module "factorio:runtime" {
|
|
7870
7870
|
* - `"fuel-acceleration-multiplier"`: {@link FuelAccelerationMultiplierItemPrototypeFilter}
|
7871
7871
|
* - `"fuel-top-speed-multiplier"`: {@link FuelTopSpeedMultiplierItemPrototypeFilter}
|
7872
7872
|
* - `"fuel-emissions-multiplier"`: {@link FuelEmissionsMultiplierItemPrototypeFilter}
|
7873
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
7873
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/ItemPrototypeFilter.html Online documentation}
|
7874
7874
|
*/
|
7875
7875
|
export type ItemPrototypeFilter =
|
7876
7876
|
| PlaceResultItemPrototypeFilter
|
@@ -7890,7 +7890,7 @@ declare module "factorio:runtime" {
|
|
7890
7890
|
| OtherItemPrototypeFilter
|
7891
7891
|
/**
|
7892
7892
|
* Write form of {@link ItemPrototypeFilter}, where table-or-array concepts are allowed to take an array form.
|
7893
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
7893
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/ItemPrototypeFilter.html Online documentation}
|
7894
7894
|
*/
|
7895
7895
|
export type ItemPrototypeFilterWrite =
|
7896
7896
|
| PlaceResultItemPrototypeFilterWrite
|
@@ -7946,7 +7946,7 @@ declare module "factorio:runtime" {
|
|
7946
7946
|
*
|
7947
7947
|
* Other attributes may be specified depending on `filter`:
|
7948
7948
|
* - `"type"`: {@link TypeEquipmentPrototypeFilter}
|
7949
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
7949
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/EquipmentPrototypeFilter.html Online documentation}
|
7950
7950
|
*/
|
7951
7951
|
export type EquipmentPrototypeFilter = TypeEquipmentPrototypeFilter | OtherEquipmentPrototypeFilter
|
7952
7952
|
/**
|
@@ -8177,7 +8177,7 @@ declare module "factorio:runtime" {
|
|
8177
8177
|
* - `"selection-priority"`: {@link SelectionPriorityEntityPrototypeFilter}
|
8178
8178
|
* - `"emissions-per-second"`: {@link EmissionsPerSecondEntityPrototypeFilter}
|
8179
8179
|
* - `"crafting-category"`: {@link CraftingCategoryEntityPrototypeFilter}
|
8180
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
8180
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/EntityPrototypeFilter.html Online documentation}
|
8181
8181
|
*/
|
8182
8182
|
export type EntityPrototypeFilter =
|
8183
8183
|
| NameEntityPrototypeFilter
|
@@ -8191,7 +8191,7 @@ declare module "factorio:runtime" {
|
|
8191
8191
|
| OtherEntityPrototypeFilter
|
8192
8192
|
/**
|
8193
8193
|
* Write form of {@link EntityPrototypeFilter}, where table-or-array concepts are allowed to take an array form.
|
8194
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
8194
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/EntityPrototypeFilter.html Online documentation}
|
8195
8195
|
*/
|
8196
8196
|
export type EntityPrototypeFilterWrite =
|
8197
8197
|
| NameEntityPrototypeFilter
|
@@ -8261,7 +8261,7 @@ declare module "factorio:runtime" {
|
|
8261
8261
|
* Other attributes may be specified depending on `filter`:
|
8262
8262
|
* - `"type"`: {@link TypeSpaceLocationPrototypeFilter}
|
8263
8263
|
* - `"solar-power-in-space"`: {@link SolarPowerInSpaceSpaceLocationPrototypeFilter}
|
8264
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
8264
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/SpaceLocationPrototypeFilter.html Online documentation}
|
8265
8265
|
*/
|
8266
8266
|
export type SpaceLocationPrototypeFilter =
|
8267
8267
|
| TypeSpaceLocationPrototypeFilter
|
@@ -8269,7 +8269,7 @@ declare module "factorio:runtime" {
|
|
8269
8269
|
| OtherSpaceLocationPrototypeFilter
|
8270
8270
|
/**
|
8271
8271
|
* Write form of {@link SpaceLocationPrototypeFilter}, where table-or-array concepts are allowed to take an array form.
|
8272
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
8272
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/SpaceLocationPrototypeFilter.html Online documentation}
|
8273
8273
|
*/
|
8274
8274
|
export type SpaceLocationPrototypeFilterWrite =
|
8275
8275
|
| TypeSpaceLocationPrototypeFilter
|
@@ -8457,7 +8457,7 @@ declare module "factorio:runtime" {
|
|
8457
8457
|
* - `"fuel-value"`: {@link FuelValueFluidPrototypeFilter}
|
8458
8458
|
* - `"emissions-multiplier"`: {@link EmissionsMultiplierFluidPrototypeFilter}
|
8459
8459
|
* - `"gas-temperature"`: {@link GasTemperatureFluidPrototypeFilter}
|
8460
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
8460
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/FluidPrototypeFilter.html Online documentation}
|
8461
8461
|
*/
|
8462
8462
|
export type FluidPrototypeFilter =
|
8463
8463
|
| NameFluidPrototypeFilter
|
@@ -8471,7 +8471,7 @@ declare module "factorio:runtime" {
|
|
8471
8471
|
| OtherFluidPrototypeFilter
|
8472
8472
|
/**
|
8473
8473
|
* Write form of {@link FluidPrototypeFilter}, where table-or-array concepts are allowed to take an array form.
|
8474
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
8474
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/FluidPrototypeFilter.html Online documentation}
|
8475
8475
|
*/
|
8476
8476
|
export type FluidPrototypeFilterWrite =
|
8477
8477
|
| NameFluidPrototypeFilter
|
@@ -8580,7 +8580,7 @@ declare module "factorio:runtime" {
|
|
8580
8580
|
* - `"name"`: {@link NamePrePlatformMinedEntityEventFilter}
|
8581
8581
|
* - `"ghost_type"`: {@link GhostTypePrePlatformMinedEntityEventFilter}
|
8582
8582
|
* - `"ghost_name"`: {@link GhostNamePrePlatformMinedEntityEventFilter}
|
8583
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
8583
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/LuaPrePlatformMinedEntityEventFilter.html Online documentation}
|
8584
8584
|
*/
|
8585
8585
|
export type LuaPrePlatformMinedEntityEventFilter =
|
8586
8586
|
| TypePrePlatformMinedEntityEventFilter
|
@@ -8685,7 +8685,7 @@ declare module "factorio:runtime" {
|
|
8685
8685
|
* - `"name"`: {@link NameRobotMinedEntityEventFilter}
|
8686
8686
|
* - `"ghost_type"`: {@link GhostTypeRobotMinedEntityEventFilter}
|
8687
8687
|
* - `"ghost_name"`: {@link GhostNameRobotMinedEntityEventFilter}
|
8688
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
8688
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/LuaRobotMinedEntityEventFilter.html Online documentation}
|
8689
8689
|
*/
|
8690
8690
|
export type LuaRobotMinedEntityEventFilter =
|
8691
8691
|
| TypeRobotMinedEntityEventFilter
|
@@ -8790,7 +8790,7 @@ declare module "factorio:runtime" {
|
|
8790
8790
|
* - `"name"`: {@link NameEntityMarkedForUpgradeEventFilter}
|
8791
8791
|
* - `"ghost_type"`: {@link GhostTypeEntityMarkedForUpgradeEventFilter}
|
8792
8792
|
* - `"ghost_name"`: {@link GhostNameEntityMarkedForUpgradeEventFilter}
|
8793
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
8793
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/LuaEntityMarkedForUpgradeEventFilter.html Online documentation}
|
8794
8794
|
*/
|
8795
8795
|
export type LuaEntityMarkedForUpgradeEventFilter =
|
8796
8796
|
| TypeEntityMarkedForUpgradeEventFilter
|
@@ -8895,7 +8895,7 @@ declare module "factorio:runtime" {
|
|
8895
8895
|
* - `"name"`: {@link NamePreGhostUpgradedEventFilter}
|
8896
8896
|
* - `"ghost_type"`: {@link GhostTypePreGhostUpgradedEventFilter}
|
8897
8897
|
* - `"ghost_name"`: {@link GhostNamePreGhostUpgradedEventFilter}
|
8898
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
8898
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/LuaPreGhostUpgradedEventFilter.html Online documentation}
|
8899
8899
|
*/
|
8900
8900
|
export type LuaPreGhostUpgradedEventFilter =
|
8901
8901
|
| TypePreGhostUpgradedEventFilter
|
@@ -9000,7 +9000,7 @@ declare module "factorio:runtime" {
|
|
9000
9000
|
* - `"name"`: {@link NamePlatformMinedEntityEventFilter}
|
9001
9001
|
* - `"ghost_type"`: {@link GhostTypePlatformMinedEntityEventFilter}
|
9002
9002
|
* - `"ghost_name"`: {@link GhostNamePlatformMinedEntityEventFilter}
|
9003
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
9003
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/LuaPlatformMinedEntityEventFilter.html Online documentation}
|
9004
9004
|
*/
|
9005
9005
|
export type LuaPlatformMinedEntityEventFilter =
|
9006
9006
|
| TypePlatformMinedEntityEventFilter
|
@@ -9105,7 +9105,7 @@ declare module "factorio:runtime" {
|
|
9105
9105
|
* - `"name"`: {@link NameScriptRaisedDestroyEventFilter}
|
9106
9106
|
* - `"ghost_type"`: {@link GhostTypeScriptRaisedDestroyEventFilter}
|
9107
9107
|
* - `"ghost_name"`: {@link GhostNameScriptRaisedDestroyEventFilter}
|
9108
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
9108
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/LuaScriptRaisedDestroyEventFilter.html Online documentation}
|
9109
9109
|
*/
|
9110
9110
|
export type LuaScriptRaisedDestroyEventFilter =
|
9111
9111
|
| TypeScriptRaisedDestroyEventFilter
|
@@ -9222,7 +9222,7 @@ declare module "factorio:runtime" {
|
|
9222
9222
|
* - `"ghost_type"`: {@link GhostTypePlayerBuiltEntityEventFilter}
|
9223
9223
|
* - `"ghost_name"`: {@link GhostNamePlayerBuiltEntityEventFilter}
|
9224
9224
|
* - `"force"`: {@link ForcePlayerBuiltEntityEventFilter}
|
9225
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
9225
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/LuaPlayerBuiltEntityEventFilter.html Online documentation}
|
9226
9226
|
*/
|
9227
9227
|
export type LuaPlayerBuiltEntityEventFilter =
|
9228
9228
|
| TypePlayerBuiltEntityEventFilter
|
@@ -9340,7 +9340,7 @@ declare module "factorio:runtime" {
|
|
9340
9340
|
* - `"ghost_type"`: {@link GhostTypePlatformBuiltEntityEventFilter}
|
9341
9341
|
* - `"ghost_name"`: {@link GhostNamePlatformBuiltEntityEventFilter}
|
9342
9342
|
* - `"force"`: {@link ForcePlatformBuiltEntityEventFilter}
|
9343
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
9343
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/LuaPlatformBuiltEntityEventFilter.html Online documentation}
|
9344
9344
|
*/
|
9345
9345
|
export type LuaPlatformBuiltEntityEventFilter =
|
9346
9346
|
| TypePlatformBuiltEntityEventFilter
|
@@ -9446,7 +9446,7 @@ declare module "factorio:runtime" {
|
|
9446
9446
|
* - `"name"`: {@link NamePreGhostDeconstructedEventFilter}
|
9447
9447
|
* - `"ghost_type"`: {@link GhostTypePreGhostDeconstructedEventFilter}
|
9448
9448
|
* - `"ghost_name"`: {@link GhostNamePreGhostDeconstructedEventFilter}
|
9449
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
9449
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/LuaPreGhostDeconstructedEventFilter.html Online documentation}
|
9450
9450
|
*/
|
9451
9451
|
export type LuaPreGhostDeconstructedEventFilter =
|
9452
9452
|
| TypePreGhostDeconstructedEventFilter
|
@@ -9551,7 +9551,7 @@ declare module "factorio:runtime" {
|
|
9551
9551
|
* - `"name"`: {@link NameEntityClonedEventFilter}
|
9552
9552
|
* - `"ghost_type"`: {@link GhostTypeEntityClonedEventFilter}
|
9553
9553
|
* - `"ghost_name"`: {@link GhostNameEntityClonedEventFilter}
|
9554
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
9554
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/LuaEntityClonedEventFilter.html Online documentation}
|
9555
9555
|
*/
|
9556
9556
|
export type LuaEntityClonedEventFilter =
|
9557
9557
|
| TypeEntityClonedEventFilter
|
@@ -9656,7 +9656,7 @@ declare module "factorio:runtime" {
|
|
9656
9656
|
* - `"name"`: {@link NameScriptRaisedTeleportedEventFilter}
|
9657
9657
|
* - `"ghost_type"`: {@link GhostTypeScriptRaisedTeleportedEventFilter}
|
9658
9658
|
* - `"ghost_name"`: {@link GhostNameScriptRaisedTeleportedEventFilter}
|
9659
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
9659
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/LuaScriptRaisedTeleportedEventFilter.html Online documentation}
|
9660
9660
|
*/
|
9661
9661
|
export type LuaScriptRaisedTeleportedEventFilter =
|
9662
9662
|
| TypeScriptRaisedTeleportedEventFilter
|
@@ -9763,7 +9763,7 @@ declare module "factorio:runtime" {
|
|
9763
9763
|
* - `"name"`: {@link NameEntityDeconstructionCancelledEventFilter}
|
9764
9764
|
* - `"ghost_type"`: {@link GhostTypeEntityDeconstructionCancelledEventFilter}
|
9765
9765
|
* - `"ghost_name"`: {@link GhostNameEntityDeconstructionCancelledEventFilter}
|
9766
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
9766
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/LuaEntityDeconstructionCancelledEventFilter.html Online documentation}
|
9767
9767
|
*/
|
9768
9768
|
export type LuaEntityDeconstructionCancelledEventFilter =
|
9769
9769
|
| TypeEntityDeconstructionCancelledEventFilter
|
@@ -9880,7 +9880,7 @@ declare module "factorio:runtime" {
|
|
9880
9880
|
* - `"ghost_type"`: {@link GhostTypeRobotBuiltEntityEventFilter}
|
9881
9881
|
* - `"ghost_name"`: {@link GhostNameRobotBuiltEntityEventFilter}
|
9882
9882
|
* - `"force"`: {@link ForceRobotBuiltEntityEventFilter}
|
9883
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
9883
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/LuaRobotBuiltEntityEventFilter.html Online documentation}
|
9884
9884
|
*/
|
9885
9885
|
export type LuaRobotBuiltEntityEventFilter =
|
9886
9886
|
| TypeRobotBuiltEntityEventFilter
|
@@ -9986,7 +9986,7 @@ declare module "factorio:runtime" {
|
|
9986
9986
|
* - `"name"`: {@link NameScriptRaisedBuiltEventFilter}
|
9987
9987
|
* - `"ghost_type"`: {@link GhostTypeScriptRaisedBuiltEventFilter}
|
9988
9988
|
* - `"ghost_name"`: {@link GhostNameScriptRaisedBuiltEventFilter}
|
9989
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
9989
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/LuaScriptRaisedBuiltEventFilter.html Online documentation}
|
9990
9990
|
*/
|
9991
9991
|
export type LuaScriptRaisedBuiltEventFilter =
|
9992
9992
|
| TypeScriptRaisedBuiltEventFilter
|
@@ -10091,7 +10091,7 @@ declare module "factorio:runtime" {
|
|
10091
10091
|
* - `"name"`: {@link NamePrePlayerMinedEntityEventFilter}
|
10092
10092
|
* - `"ghost_type"`: {@link GhostTypePrePlayerMinedEntityEventFilter}
|
10093
10093
|
* - `"ghost_name"`: {@link GhostNamePrePlayerMinedEntityEventFilter}
|
10094
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
10094
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/LuaPrePlayerMinedEntityEventFilter.html Online documentation}
|
10095
10095
|
*/
|
10096
10096
|
export type LuaPrePlayerMinedEntityEventFilter =
|
10097
10097
|
| TypePrePlayerMinedEntityEventFilter
|
@@ -10196,7 +10196,7 @@ declare module "factorio:runtime" {
|
|
10196
10196
|
* - `"name"`: {@link NamePlayerRepairedEntityEventFilter}
|
10197
10197
|
* - `"ghost_type"`: {@link GhostTypePlayerRepairedEntityEventFilter}
|
10198
10198
|
* - `"ghost_name"`: {@link GhostNamePlayerRepairedEntityEventFilter}
|
10199
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
10199
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/LuaPlayerRepairedEntityEventFilter.html Online documentation}
|
10200
10200
|
*/
|
10201
10201
|
export type LuaPlayerRepairedEntityEventFilter =
|
10202
10202
|
| TypePlayerRepairedEntityEventFilter
|
@@ -10301,7 +10301,7 @@ declare module "factorio:runtime" {
|
|
10301
10301
|
* - `"name"`: {@link NameUpgradeCancelledEventFilter}
|
10302
10302
|
* - `"ghost_type"`: {@link GhostTypeUpgradeCancelledEventFilter}
|
10303
10303
|
* - `"ghost_name"`: {@link GhostNameUpgradeCancelledEventFilter}
|
10304
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
10304
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/LuaUpgradeCancelledEventFilter.html Online documentation}
|
10305
10305
|
*/
|
10306
10306
|
export type LuaUpgradeCancelledEventFilter =
|
10307
10307
|
| TypeUpgradeCancelledEventFilter
|
@@ -10406,7 +10406,7 @@ declare module "factorio:runtime" {
|
|
10406
10406
|
* - `"name"`: {@link NameSectorScannedEventFilter}
|
10407
10407
|
* - `"ghost_type"`: {@link GhostTypeSectorScannedEventFilter}
|
10408
10408
|
* - `"ghost_name"`: {@link GhostNameSectorScannedEventFilter}
|
10409
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
10409
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/LuaSectorScannedEventFilter.html Online documentation}
|
10410
10410
|
*/
|
10411
10411
|
export type LuaSectorScannedEventFilter =
|
10412
10412
|
| TypeSectorScannedEventFilter
|
@@ -10452,7 +10452,7 @@ declare module "factorio:runtime" {
|
|
10452
10452
|
*
|
10453
10453
|
* Other attributes may be specified depending on `filter`:
|
10454
10454
|
* - `"type"`: {@link TypePostEntityDiedEventFilter}
|
10455
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
10455
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/LuaPostEntityDiedEventFilter.html Online documentation}
|
10456
10456
|
*/
|
10457
10457
|
export type LuaPostEntityDiedEventFilter = TypePostEntityDiedEventFilter | OtherPostEntityDiedEventFilter
|
10458
10458
|
/**
|
@@ -10554,7 +10554,7 @@ declare module "factorio:runtime" {
|
|
10554
10554
|
* - `"name"`: {@link NameEntityMarkedForDeconstructionEventFilter}
|
10555
10555
|
* - `"ghost_type"`: {@link GhostTypeEntityMarkedForDeconstructionEventFilter}
|
10556
10556
|
* - `"ghost_name"`: {@link GhostNameEntityMarkedForDeconstructionEventFilter}
|
10557
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
10557
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/LuaEntityMarkedForDeconstructionEventFilter.html Online documentation}
|
10558
10558
|
*/
|
10559
10559
|
export type LuaEntityMarkedForDeconstructionEventFilter =
|
10560
10560
|
| TypeEntityMarkedForDeconstructionEventFilter
|
@@ -10659,7 +10659,7 @@ declare module "factorio:runtime" {
|
|
10659
10659
|
* - `"name"`: {@link NamePlayerMinedEntityEventFilter}
|
10660
10660
|
* - `"ghost_type"`: {@link GhostTypePlayerMinedEntityEventFilter}
|
10661
10661
|
* - `"ghost_name"`: {@link GhostNamePlayerMinedEntityEventFilter}
|
10662
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
10662
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/LuaPlayerMinedEntityEventFilter.html Online documentation}
|
10663
10663
|
*/
|
10664
10664
|
export type LuaPlayerMinedEntityEventFilter =
|
10665
10665
|
| TypePlayerMinedEntityEventFilter
|
@@ -10839,7 +10839,7 @@ declare module "factorio:runtime" {
|
|
10839
10839
|
* - `"final-damage-amount"`: {@link FinalDamageAmountEntityDamagedEventFilter}
|
10840
10840
|
* - `"damage-type"`: {@link DamageTypeEntityDamagedEventFilter}
|
10841
10841
|
* - `"final-health"`: {@link FinalHealthEntityDamagedEventFilter}
|
10842
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
10842
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/LuaEntityDamagedEventFilter.html Online documentation}
|
10843
10843
|
*/
|
10844
10844
|
export type LuaEntityDamagedEventFilter =
|
10845
10845
|
| TypeEntityDamagedEventFilter
|
@@ -10853,7 +10853,7 @@ declare module "factorio:runtime" {
|
|
10853
10853
|
| OtherEntityDamagedEventFilter
|
10854
10854
|
/**
|
10855
10855
|
* Write form of {@link LuaEntityDamagedEventFilter}, where table-or-array concepts are allowed to take an array form.
|
10856
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
10856
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/LuaEntityDamagedEventFilter.html Online documentation}
|
10857
10857
|
*/
|
10858
10858
|
export type LuaEntityDamagedEventFilterWrite =
|
10859
10859
|
| TypeEntityDamagedEventFilter
|
@@ -10962,7 +10962,7 @@ declare module "factorio:runtime" {
|
|
10962
10962
|
* - `"name"`: {@link NameScriptRaisedReviveEventFilter}
|
10963
10963
|
* - `"ghost_type"`: {@link GhostTypeScriptRaisedReviveEventFilter}
|
10964
10964
|
* - `"ghost_name"`: {@link GhostNameScriptRaisedReviveEventFilter}
|
10965
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
10965
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/LuaScriptRaisedReviveEventFilter.html Online documentation}
|
10966
10966
|
*/
|
10967
10967
|
export type LuaScriptRaisedReviveEventFilter =
|
10968
10968
|
| TypeScriptRaisedReviveEventFilter
|
@@ -11067,7 +11067,7 @@ declare module "factorio:runtime" {
|
|
11067
11067
|
* - `"name"`: {@link NameEntityDiedEventFilter}
|
11068
11068
|
* - `"ghost_type"`: {@link GhostTypeEntityDiedEventFilter}
|
11069
11069
|
* - `"ghost_name"`: {@link GhostNameEntityDiedEventFilter}
|
11070
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
11070
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/LuaEntityDiedEventFilter.html Online documentation}
|
11071
11071
|
*/
|
11072
11072
|
export type LuaEntityDiedEventFilter =
|
11073
11073
|
| TypeEntityDiedEventFilter
|
@@ -11172,7 +11172,7 @@ declare module "factorio:runtime" {
|
|
11172
11172
|
* - `"name"`: {@link NamePreRobotMinedEntityEventFilter}
|
11173
11173
|
* - `"ghost_type"`: {@link GhostTypePreRobotMinedEntityEventFilter}
|
11174
11174
|
* - `"ghost_name"`: {@link GhostNamePreRobotMinedEntityEventFilter}
|
11175
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
11175
|
+
* @see {@link https://lua-api.factorio.com/2.0.17/concepts/LuaPreRobotMinedEntityEventFilter.html Online documentation}
|
11176
11176
|
*/
|
11177
11177
|
export type LuaPreRobotMinedEntityEventFilter =
|
11178
11178
|
| TypePreRobotMinedEntityEventFilter
|