typed-factorio 3.8.0 → 3.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -21
- package/README.md +222 -222
- package/common/data-global.d.ts +23 -23
- package/common/serpent.d.ts +94 -94
- package/common/settings-global.d.ts +8 -8
- package/common/types.d.ts +106 -106
- package/index.d.ts +25 -25
- package/lualib/index.d.ts +2 -2
- package/lualib/mod-gui.d.ts +12 -12
- package/lualib/util.d.ts +151 -151
- package/package.json +65 -65
- package/prototype/generated/prototypes.d.ts +2116 -2073
- package/prototype/generated/types.d.ts +2123 -2099
- package/prototype/index.d.ts +11 -11
- package/runtime/generated/classes.d.ts +3728 -3568
- package/runtime/generated/concepts.d.ts +299 -295
- package/runtime/generated/defines.d.ts +178 -178
- package/runtime/generated/events.d.ts +201 -201
- package/runtime/generated/global-functions.d.ts +3 -3
- package/runtime/generated/global-objects.d.ts +8 -8
- package/runtime/index.d.ts +11 -11
- package/runtime/pairs.d.ts +12 -12
- package/settings/index.d.ts +10 -10
- package/settings/types.d.ts +118 -118
@@ -12,21 +12,21 @@ 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.28/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
20
|
*
|
21
21
|
* Quality values are divided by 10 internally, allowing for one more decimal of precision.
|
22
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
22
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/ModuleEffectValue.html Online documentation}
|
23
23
|
*/
|
24
24
|
export type ModuleEffectValue = float
|
25
25
|
/**
|
26
26
|
* @example
|
27
27
|
* -- These are the effects of the vanilla Speed Module 3
|
28
28
|
* {speed = 0.5, consumption = 0.7, quality = -0.25}
|
29
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
29
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/ModuleEffects.html Online documentation}
|
30
30
|
*/
|
31
31
|
export interface ModuleEffects {
|
32
32
|
readonly consumption?: ModuleEffectValue
|
@@ -50,7 +50,7 @@ declare module "factorio:runtime" {
|
|
50
50
|
* - `"<="`: "lesser than or equal to"
|
51
51
|
* - `"≠"`: "not equal to"
|
52
52
|
* - `"!="`: "not equal to"
|
53
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
53
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/ComparatorString.html Online documentation}
|
54
54
|
*/
|
55
55
|
export type ComparatorString = "=" | ">" | "<" | "≥" | ">=" | "≤" | "<=" | "≠" | "!="
|
56
56
|
export type ComparatorStringRead = "=" | ">" | "<" | "≥" | "≤" | "≠"
|
@@ -81,8 +81,8 @@ declare module "factorio:runtime" {
|
|
81
81
|
*
|
82
82
|
* The validity of a SpritePath can be verified at runtime using {@link LuaHelpers#is_valid_sprite_path LuaHelpers::is_valid_sprite_path}.
|
83
83
|
*
|
84
|
-
* {@link https://lua-api.factorio.com/2.0.
|
85
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
84
|
+
* {@link https://lua-api.factorio.com/2.0.28/concepts/SpritePath.html > The supported types are:}
|
85
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/SpritePath.html Online documentation}
|
86
86
|
*/
|
87
87
|
export type SpritePath = (string & { _?: never }) | `${SpriteType}${"/" | "."}${string}`
|
88
88
|
/**
|
@@ -93,14 +93,14 @@ declare module "factorio:runtime" {
|
|
93
93
|
* - {@link FluidID}: Used with fluid production statistics.
|
94
94
|
* - {@link EntityWithQualityID}: Used with electric network, entity build count, and kill count statistics.
|
95
95
|
* - {@link EntityID}: Used with pollution statistics.
|
96
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
96
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/FlowStatisticsID.html Online documentation}
|
97
97
|
*/
|
98
98
|
export type FlowStatisticsID = ItemWithQualityID | FluidID | EntityWithQualityID | EntityID
|
99
99
|
/**
|
100
100
|
* @example
|
101
101
|
* -- Most common collision mask of buildings:
|
102
102
|
* collision_mask = {layers = {item = true, meltable = true, object = true, player = true, water_tile = true, is_object = true, is_lower_object = true}}
|
103
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
103
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/CollisionMask.html Online documentation}
|
104
104
|
*/
|
105
105
|
export interface CollisionMask {
|
106
106
|
/**
|
@@ -228,7 +228,7 @@ declare module "factorio:runtime" {
|
|
228
228
|
* - `"check-box"`
|
229
229
|
* - `"switch"`
|
230
230
|
* - `"label"`
|
231
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
231
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/SimulationWidgetType.html Online documentation}
|
232
232
|
*/
|
233
233
|
export type SimulationWidgetType =
|
234
234
|
| "signal-id"
|
@@ -350,7 +350,7 @@ declare module "factorio:runtime" {
|
|
350
350
|
* - `"any-goal-accessible"`: The method will return {@link TrainPathFinderOneGoalResult}.
|
351
351
|
* - `"all-goals-accessible"`: The method will return {@link TrainPathAllGoalsResult}.
|
352
352
|
* - `"all-goals-penalties"`: The method will return {@link TrainPathAllGoalsResult} with `penalties`.
|
353
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
353
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/TrainPathRequestType.html Online documentation}
|
354
354
|
*/
|
355
355
|
export type TrainPathRequestType = "path" | "any-goal-accessible" | "all-goals-accessible" | "all-goals-penalties"
|
356
356
|
/**
|
@@ -359,7 +359,7 @@ declare module "factorio:runtime" {
|
|
359
359
|
* - {@link RailEndGoal}
|
360
360
|
* - {@link LuaRailEnd}
|
361
361
|
* - {@link LuaEntity}: Only if it points at train-stop that is connected to a rail.
|
362
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
362
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/TrainPathFinderGoal.html Online documentation}
|
363
363
|
*/
|
364
364
|
export type TrainPathFinderGoal = TrainStopGoal | RailEndGoal | LuaRailEnd | LuaEntity
|
365
365
|
export interface TrainStopGoal {
|
@@ -464,7 +464,7 @@ declare module "factorio:runtime" {
|
|
464
464
|
}
|
465
465
|
/**
|
466
466
|
* A single pipe connection for a given fluidbox.
|
467
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
467
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/PipeConnection.html Online documentation}
|
468
468
|
*/
|
469
469
|
export interface PipeConnection {
|
470
470
|
readonly flow_direction: "input" | "output" | "input-output"
|
@@ -527,7 +527,7 @@ declare module "factorio:runtime" {
|
|
527
527
|
* - {@link LuaEntityDiedEventFilter}
|
528
528
|
* - {@link LuaPreRobotMinedEntityEventFilter}
|
529
529
|
* @see EventFilterWrite
|
530
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
530
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/EventFilter.html Online documentation}
|
531
531
|
*/
|
532
532
|
export type EventFilter =
|
533
533
|
| LuaPrePlatformMinedEntityEventFilter[]
|
@@ -557,7 +557,7 @@ declare module "factorio:runtime" {
|
|
557
557
|
| LuaPreRobotMinedEntityEventFilter[]
|
558
558
|
/**
|
559
559
|
* Write form of {@link EventFilter}, where some properties allow additional values as input compared to the read form.
|
560
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
560
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/EventFilter.html Online documentation}
|
561
561
|
*/
|
562
562
|
export type EventFilterWrite =
|
563
563
|
| readonly LuaPrePlatformMinedEntityEventFilter[]
|
@@ -607,7 +607,7 @@ declare module "factorio:runtime" {
|
|
607
607
|
* - {@link LuaCommandable}: Target type {@link defines.target_type.commandable commandable}; `useful_id` {@link LuaCommandable#unique_id LuaCommandable::unique_id}
|
608
608
|
* - {@link LuaCustomChartTag}: Target type {@link defines.target_type.custom_chart_tag custom_chart_tag}; `useful_id` {@link LuaCustomChartTag#tag_number LuaCustomChartTag::tag_number}
|
609
609
|
* - {@link LuaGuiElement}: Target type {@link defines.target_type.gui_element gui_element}; `useful_id` {@link LuaGuiElement#index LuaGuiElement::index}
|
610
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
610
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/RegistrationTarget.html Online documentation}
|
611
611
|
*/
|
612
612
|
export type RegistrationTarget =
|
613
613
|
| LuaEntity
|
@@ -808,7 +808,7 @@ declare module "factorio:runtime" {
|
|
808
808
|
* - `"wire-removed"`: {@link WireRemovedUndoRedoAction}
|
809
809
|
* - `"rotated-entity"`: {@link RotatedEntityUndoRedoAction}
|
810
810
|
* - `"copy-entity-settings"`: {@link CopyEntitySettingsUndoRedoAction}
|
811
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
811
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/UndoRedoAction.html Online documentation}
|
812
812
|
*/
|
813
813
|
export type UndoRedoAction =
|
814
814
|
| BuiltEntityUndoRedoAction
|
@@ -840,7 +840,7 @@ declare module "factorio:runtime" {
|
|
840
840
|
* - `"weapon"`
|
841
841
|
* - `"explosion"`
|
842
842
|
* - `"enemy"`
|
843
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
843
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/SoundType.html Online documentation}
|
844
844
|
*/
|
845
845
|
export type SoundType =
|
846
846
|
| "game-effect"
|
@@ -923,7 +923,7 @@ declare module "factorio:runtime" {
|
|
923
923
|
* - `"controllable-remove"`
|
924
924
|
* - `"entity-ghost"`: Selects entities that are `entity-ghost`s.
|
925
925
|
* - `"tile-ghost"`: Selects entities that are `tile-ghost`s.
|
926
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
926
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/SelectionModeFlags.html Online documentation}
|
927
927
|
*/
|
928
928
|
export interface SelectionModeFlags {
|
929
929
|
/**
|
@@ -1042,7 +1042,7 @@ declare module "factorio:runtime" {
|
|
1042
1042
|
* A set of flags. Active flags are in the dictionary as `true`, while inactive flags aren't present at all.
|
1043
1043
|
*
|
1044
1044
|
* By default, none of these flags are set.
|
1045
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1045
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/ItemPrototypeFlags.html Online documentation}
|
1046
1046
|
*/
|
1047
1047
|
export type ItemPrototypeFlags = {
|
1048
1048
|
readonly [T in ItemPrototypeFlag]?: true
|
@@ -1063,7 +1063,7 @@ declare module "factorio:runtime" {
|
|
1063
1063
|
* - `"spawnable"`: Allows the item to be spawned by a quickbar shortcut or custom input.
|
1064
1064
|
* - `"spoil-result"`
|
1065
1065
|
* - `"ignore-spoil-time-modifier"`: Controls whether the spoil time ignores the spoil time modifier in the {@link DifficultySettings}.
|
1066
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1066
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/ItemPrototypeFlag.html Online documentation}
|
1067
1067
|
*/
|
1068
1068
|
export type ItemPrototypeFlag =
|
1069
1069
|
| "draw-logistic-overlay"
|
@@ -1083,7 +1083,7 @@ declare module "factorio:runtime" {
|
|
1083
1083
|
* - `"none"`
|
1084
1084
|
* - `"whitelist"`
|
1085
1085
|
* - `"blacklist"`
|
1086
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1086
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/PrototypeFilterMode.html Online documentation}
|
1087
1087
|
*/
|
1088
1088
|
export type PrototypeFilterMode = "none" | "whitelist" | "blacklist"
|
1089
1089
|
export interface PipeConnectionDefinition {
|
@@ -1107,7 +1107,7 @@ declare module "factorio:runtime" {
|
|
1107
1107
|
* The name of a {@link LuaCollisionLayerPrototype}.
|
1108
1108
|
* @example
|
1109
1109
|
* "is_lower_object"
|
1110
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1110
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/CollisionLayerID.html Online documentation}
|
1111
1111
|
*/
|
1112
1112
|
export type CollisionLayerID = string
|
1113
1113
|
export interface ItemIDFilter {
|
@@ -1157,7 +1157,7 @@ declare module "factorio:runtime" {
|
|
1157
1157
|
* - {@link SpaceLocationPrototypeFilter}
|
1158
1158
|
* - {@link FluidPrototypeFilter}
|
1159
1159
|
* @see PrototypeFilterWrite
|
1160
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1160
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/PrototypeFilter.html Online documentation}
|
1161
1161
|
*/
|
1162
1162
|
export type PrototypeFilter =
|
1163
1163
|
| ModSettingPrototypeFilter[]
|
@@ -1174,7 +1174,7 @@ declare module "factorio:runtime" {
|
|
1174
1174
|
| FluidPrototypeFilter[]
|
1175
1175
|
/**
|
1176
1176
|
* Write form of {@link PrototypeFilter}, where some properties allow additional values as input compared to the read form.
|
1177
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1177
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/PrototypeFilter.html Online documentation}
|
1178
1178
|
*/
|
1179
1179
|
export type PrototypeFilterWrite =
|
1180
1180
|
| readonly ModSettingPrototypeFilter[]
|
@@ -1191,7 +1191,7 @@ declare module "factorio:runtime" {
|
|
1191
1191
|
| readonly FluidPrototypeFilterWrite[]
|
1192
1192
|
/**
|
1193
1193
|
* @see DisplayPanelMessageDefinitionWrite
|
1194
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1194
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/DisplayPanelMessageDefinition.html Online documentation}
|
1195
1195
|
*/
|
1196
1196
|
export interface DisplayPanelMessageDefinition {
|
1197
1197
|
/**
|
@@ -1209,7 +1209,7 @@ declare module "factorio:runtime" {
|
|
1209
1209
|
}
|
1210
1210
|
/**
|
1211
1211
|
* Write form of {@link DisplayPanelMessageDefinition}, where some properties allow additional values as input compared to the read form.
|
1212
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1212
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/DisplayPanelMessageDefinition.html Online documentation}
|
1213
1213
|
*/
|
1214
1214
|
export interface DisplayPanelMessageDefinitionWrite {
|
1215
1215
|
/**
|
@@ -1235,7 +1235,7 @@ declare module "factorio:runtime" {
|
|
1235
1235
|
* - `"space-location"`
|
1236
1236
|
* - `"asteroid-chunk"`
|
1237
1237
|
* - `"quality"`
|
1238
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1238
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/SignalIDType.html Online documentation}
|
1239
1239
|
*/
|
1240
1240
|
export type SignalIDType =
|
1241
1241
|
| "item"
|
@@ -1248,7 +1248,7 @@ declare module "factorio:runtime" {
|
|
1248
1248
|
| "quality"
|
1249
1249
|
/**
|
1250
1250
|
* @see SignalIDWrite
|
1251
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1251
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/SignalID.html Online documentation}
|
1252
1252
|
*/
|
1253
1253
|
export interface SignalID {
|
1254
1254
|
/**
|
@@ -1266,7 +1266,7 @@ declare module "factorio:runtime" {
|
|
1266
1266
|
}
|
1267
1267
|
/**
|
1268
1268
|
* Write form of {@link SignalID}, where some properties allow additional values as input compared to the read form.
|
1269
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1269
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/SignalID.html Online documentation}
|
1270
1270
|
*/
|
1271
1271
|
export interface SignalIDWrite {
|
1272
1272
|
/**
|
@@ -1472,7 +1472,7 @@ declare module "factorio:runtime" {
|
|
1472
1472
|
* - `"play-next-track"`
|
1473
1473
|
* - `"play-previous-track"`
|
1474
1474
|
* - `"pause-resume-music"`
|
1475
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1475
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/LinkedGameControl.html Online documentation}
|
1476
1476
|
*/
|
1477
1477
|
export type LinkedGameControl =
|
1478
1478
|
| "move-up"
|
@@ -1723,7 +1723,7 @@ declare module "factorio:runtime" {
|
|
1723
1723
|
* - `"create-ghost-on-entity-death"`
|
1724
1724
|
* - `"belt-stack-size-bonus"`
|
1725
1725
|
* - `"vehicle-logistics"`
|
1726
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1726
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/ModifierType.html Online documentation}
|
1727
1727
|
*/
|
1728
1728
|
export type ModifierType =
|
1729
1729
|
| "inserter-stack-size-bonus"
|
@@ -1842,7 +1842,7 @@ declare module "factorio:runtime" {
|
|
1842
1842
|
* - `"capture-spawner"`: {@link CaptureSpawnerResearchTrigger}
|
1843
1843
|
* - `"build-entity"`: {@link BuildEntityResearchTrigger}
|
1844
1844
|
* - `"send-item-to-orbit"`: {@link SendItemToOrbitResearchTrigger}
|
1845
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1845
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/ResearchTrigger.html Online documentation}
|
1846
1846
|
*/
|
1847
1847
|
export type ResearchTrigger =
|
1848
1848
|
| CraftItemResearchTrigger
|
@@ -1856,7 +1856,7 @@ declare module "factorio:runtime" {
|
|
1856
1856
|
* A set of flags. Active flags are in the dictionary as `true`, while inactive flags aren't present at all.
|
1857
1857
|
*
|
1858
1858
|
* By default, none of these flags are set.
|
1859
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1859
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/EntityPrototypeFlags.html Online documentation}
|
1860
1860
|
*/
|
1861
1861
|
export type EntityPrototypeFlags = {
|
1862
1862
|
readonly [T in EntityPrototypeFlag]?: true
|
@@ -1891,7 +1891,7 @@ declare module "factorio:runtime" {
|
|
1891
1891
|
* - `"building-direction-16-way"`
|
1892
1892
|
* - `"snap-to-rail-support-spot"`
|
1893
1893
|
* - `"not-in-made-in"`: Prevents the entity from being shown in the "made in" list in recipe tooltips.
|
1894
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1894
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/EntityPrototypeFlag.html Online documentation}
|
1895
1895
|
*/
|
1896
1896
|
export type EntityPrototypeFlag =
|
1897
1897
|
| "not-rotatable"
|
@@ -1961,7 +1961,7 @@ declare module "factorio:runtime" {
|
|
1961
1961
|
* - `"local"`: The sound can be heard within the audible range around the speaker.
|
1962
1962
|
* - `"surface"`: The sound can be heard anywhere on the speaker's surface.
|
1963
1963
|
* - `"global"`: The sound can be heard everywhere.
|
1964
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1964
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/ProgrammableSpeakerPlaybackMode.html Online documentation}
|
1965
1965
|
*/
|
1966
1966
|
export type ProgrammableSpeakerPlaybackMode = "local" | "surface" | "global"
|
1967
1967
|
/**
|
@@ -1986,7 +1986,7 @@ declare module "factorio:runtime" {
|
|
1986
1986
|
* - `"none-to-south"`
|
1987
1987
|
* - `"south-to-none"`
|
1988
1988
|
* - `"none-to-north"`
|
1989
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1989
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/CliffOrientation.html Online documentation}
|
1990
1990
|
*/
|
1991
1991
|
export type CliffOrientation =
|
1992
1992
|
| "west-to-east"
|
@@ -2012,7 +2012,7 @@ declare module "factorio:runtime" {
|
|
2012
2012
|
/**
|
2013
2013
|
* Defines an item type that a blueprint entity will request.
|
2014
2014
|
* @see BlueprintInsertPlanWrite
|
2015
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2015
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/BlueprintInsertPlan.html Online documentation}
|
2016
2016
|
*/
|
2017
2017
|
export interface BlueprintInsertPlan {
|
2018
2018
|
/**
|
@@ -2026,7 +2026,7 @@ declare module "factorio:runtime" {
|
|
2026
2026
|
}
|
2027
2027
|
/**
|
2028
2028
|
* Write form of {@link BlueprintInsertPlan}, where some properties allow additional values as input compared to the read form.
|
2029
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2029
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/BlueprintInsertPlan.html Online documentation}
|
2030
2030
|
*/
|
2031
2031
|
export interface BlueprintInsertPlanWrite {
|
2032
2032
|
/**
|
@@ -2054,7 +2054,7 @@ declare module "factorio:runtime" {
|
|
2054
2054
|
}
|
2055
2055
|
/**
|
2056
2056
|
* A single offer on a market entity.
|
2057
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2057
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/Offer.html Online documentation}
|
2058
2058
|
*/
|
2059
2059
|
export interface Offer {
|
2060
2060
|
/**
|
@@ -2069,7 +2069,7 @@ declare module "factorio:runtime" {
|
|
2069
2069
|
/**
|
2070
2070
|
* An item filter may be specified in two ways, either as a string which is an item prototype name or as a table.
|
2071
2071
|
* @see ItemFilterWrite
|
2072
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2072
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/ItemFilter.html Online documentation}
|
2073
2073
|
*/
|
2074
2074
|
export type ItemFilter =
|
2075
2075
|
| {
|
@@ -2089,7 +2089,7 @@ declare module "factorio:runtime" {
|
|
2089
2089
|
| string
|
2090
2090
|
/**
|
2091
2091
|
* Write form of {@link ItemFilter}, where some properties allow additional values as input compared to the read form.
|
2092
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2092
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/ItemFilter.html Online documentation}
|
2093
2093
|
*/
|
2094
2094
|
export type ItemFilterWrite =
|
2095
2095
|
| {
|
@@ -2109,7 +2109,7 @@ declare module "factorio:runtime" {
|
|
2109
2109
|
| string
|
2110
2110
|
/**
|
2111
2111
|
* @see ScheduleRecordWrite
|
2112
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2112
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/ScheduleRecord.html Online documentation}
|
2113
2113
|
*/
|
2114
2114
|
export interface ScheduleRecord {
|
2115
2115
|
/**
|
@@ -2132,7 +2132,7 @@ declare module "factorio:runtime" {
|
|
2132
2132
|
}
|
2133
2133
|
/**
|
2134
2134
|
* Write form of {@link ScheduleRecord}, where some properties allow additional values as input compared to the read form.
|
2135
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2135
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/ScheduleRecord.html Online documentation}
|
2136
2136
|
*/
|
2137
2137
|
export interface ScheduleRecordWrite {
|
2138
2138
|
/**
|
@@ -2218,7 +2218,7 @@ declare module "factorio:runtime" {
|
|
2218
2218
|
* - `"position"`: {@link PositionGuiArrowSpecification}
|
2219
2219
|
* - `"crafting_queue"`: {@link CraftingQueueGuiArrowSpecification}
|
2220
2220
|
* - `"item_stack"`: {@link ItemStackGuiArrowSpecification}
|
2221
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2221
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/GuiArrowSpecification.html Online documentation}
|
2222
2222
|
*/
|
2223
2223
|
export type GuiArrowSpecification =
|
2224
2224
|
| EntityGuiArrowSpecification
|
@@ -2231,7 +2231,7 @@ declare module "factorio:runtime" {
|
|
2231
2231
|
*
|
2232
2232
|
* If this is specified as a three-element array then the array items are x, y and z, in that order.
|
2233
2233
|
* @see Vector3DArray
|
2234
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2234
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/Vector3D.html Online documentation}
|
2235
2235
|
*/
|
2236
2236
|
export interface Vector3D {
|
2237
2237
|
readonly x: float
|
@@ -2241,7 +2241,7 @@ declare module "factorio:runtime" {
|
|
2241
2241
|
/**
|
2242
2242
|
* Array form of {@link Vector3D}.
|
2243
2243
|
* @see Vector3D
|
2244
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2244
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/Vector3D.html Online documentation}
|
2245
2245
|
*/
|
2246
2246
|
export type Vector3DArray = readonly [float, float, float]
|
2247
2247
|
export interface ItemWithQualityCounts {
|
@@ -2274,7 +2274,7 @@ declare module "factorio:runtime" {
|
|
2274
2274
|
}
|
2275
2275
|
/**
|
2276
2276
|
* @see TrainScheduleWrite
|
2277
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2277
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/TrainSchedule.html Online documentation}
|
2278
2278
|
*/
|
2279
2279
|
export interface TrainSchedule {
|
2280
2280
|
/**
|
@@ -2285,7 +2285,7 @@ declare module "factorio:runtime" {
|
|
2285
2285
|
}
|
2286
2286
|
/**
|
2287
2287
|
* Write form of {@link TrainSchedule}, where some properties allow additional values as input compared to the read form.
|
2288
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2288
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/TrainSchedule.html Online documentation}
|
2289
2289
|
*/
|
2290
2290
|
export interface TrainScheduleWrite {
|
2291
2291
|
/**
|
@@ -2296,7 +2296,7 @@ declare module "factorio:runtime" {
|
|
2296
2296
|
}
|
2297
2297
|
/**
|
2298
2298
|
* @see PlatformScheduleWrite
|
2299
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2299
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/PlatformSchedule.html Online documentation}
|
2300
2300
|
*/
|
2301
2301
|
export interface PlatformSchedule {
|
2302
2302
|
/**
|
@@ -2307,7 +2307,7 @@ declare module "factorio:runtime" {
|
|
2307
2307
|
}
|
2308
2308
|
/**
|
2309
2309
|
* Write form of {@link PlatformSchedule}, where some properties allow additional values as input compared to the read form.
|
2310
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2310
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/PlatformSchedule.html Online documentation}
|
2311
2311
|
*/
|
2312
2312
|
export interface PlatformScheduleWrite {
|
2313
2313
|
/**
|
@@ -2324,7 +2324,7 @@ declare module "factorio:runtime" {
|
|
2324
2324
|
}
|
2325
2325
|
/**
|
2326
2326
|
* A recipe prototype with optional quality specification.
|
2327
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2327
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/RecipeIDAndQualityIDPair.html Online documentation}
|
2328
2328
|
*/
|
2329
2329
|
export interface RecipeIDAndQualityIDPair {
|
2330
2330
|
/**
|
@@ -2373,7 +2373,7 @@ declare module "factorio:runtime" {
|
|
2373
2373
|
* - `string`: Name of the force, same as {@link LuaForce#name LuaForce::name}.
|
2374
2374
|
* - {@link uint8}: Index of the force, same as {@link LuaForce#index LuaForce::index}.
|
2375
2375
|
* - {@link LuaForce}: A reference to {@link LuaForce} may be passed directly.
|
2376
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2376
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/ForceID.html Online documentation}
|
2377
2377
|
*/
|
2378
2378
|
export type ForceID = string | uint8 | LuaForce
|
2379
2379
|
/**
|
@@ -2383,7 +2383,7 @@ declare module "factorio:runtime" {
|
|
2383
2383
|
* - `string`: The fluid name.
|
2384
2384
|
* - {@link LuaFluidPrototype}: The fluid prototype.
|
2385
2385
|
* - {@link Fluid}: The fluid.
|
2386
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2386
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/FluidID.html Online documentation}
|
2387
2387
|
*/
|
2388
2388
|
export type FluidID = string | LuaFluidPrototype | Fluid
|
2389
2389
|
/**
|
@@ -2394,12 +2394,12 @@ declare module "factorio:runtime" {
|
|
2394
2394
|
* - {@link LuaEntityPrototype}: The entity prototype. Normal quality will be used.
|
2395
2395
|
* - `string`: The prototype name. Normal quality will be used.
|
2396
2396
|
* - {@link EntityIDAndQualityIDPair}: A table of entity prototype and quality.
|
2397
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2397
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/EntityWithQualityID.html Online documentation}
|
2398
2398
|
*/
|
2399
2399
|
export type EntityWithQualityID = LuaEntity | LuaEntityPrototype | string | EntityIDAndQualityIDPair
|
2400
2400
|
/**
|
2401
2401
|
* An entity prototype with optional quality specification.
|
2402
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2402
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/EntityIDAndQualityIDPair.html Online documentation}
|
2403
2403
|
*/
|
2404
2404
|
export interface EntityIDAndQualityIDPair {
|
2405
2405
|
/**
|
@@ -2419,13 +2419,13 @@ declare module "factorio:runtime" {
|
|
2419
2419
|
* - {@link LuaItemPrototype}: The item prototype. Normal quality will be used.
|
2420
2420
|
* - `string`: The prototype name. Normal quality will be used.
|
2421
2421
|
* - {@link ItemIDAndQualityIDPair}: A table of entity prototype and quality.
|
2422
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2422
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/ItemWithQualityID.html Online documentation}
|
2423
2423
|
*/
|
2424
2424
|
export type ItemWithQualityID = LuaItemStack | LuaItemPrototype | string | ItemIDAndQualityIDPairWrite
|
2425
2425
|
/**
|
2426
2426
|
* An item prototype with optional quality specification.
|
2427
2427
|
* @see ItemIDAndQualityIDPairWrite
|
2428
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2428
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/ItemIDAndQualityIDPair.html Online documentation}
|
2429
2429
|
*/
|
2430
2430
|
export interface ItemIDAndQualityIDPair {
|
2431
2431
|
/**
|
@@ -2439,7 +2439,7 @@ declare module "factorio:runtime" {
|
|
2439
2439
|
}
|
2440
2440
|
/**
|
2441
2441
|
* Write form of {@link ItemIDAndQualityIDPair}, where some properties allow additional values as input compared to the read form.
|
2442
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2442
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/ItemIDAndQualityIDPair.html Online documentation}
|
2443
2443
|
*/
|
2444
2444
|
export interface ItemIDAndQualityIDPairWrite {
|
2445
2445
|
/**
|
@@ -2459,7 +2459,7 @@ declare module "factorio:runtime" {
|
|
2459
2459
|
* - {@link LuaItemStack}: Non empty item stack.
|
2460
2460
|
* - {@link LuaItem}: The item.
|
2461
2461
|
* - `string`: The prototype name.
|
2462
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2462
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/ItemID.html Online documentation}
|
2463
2463
|
*/
|
2464
2464
|
export type ItemID = LuaItemPrototype | LuaItemStack | LuaItem | string
|
2465
2465
|
/**
|
@@ -2469,7 +2469,7 @@ declare module "factorio:runtime" {
|
|
2469
2469
|
* - {@link LuaEntityPrototype}: The entity prototype.
|
2470
2470
|
* - {@link LuaEntity}: The entity.
|
2471
2471
|
* - `string`: The prototype name.
|
2472
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2472
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/EntityID.html Online documentation}
|
2473
2473
|
*/
|
2474
2474
|
export type EntityID = LuaEntityPrototype | LuaEntity | string
|
2475
2475
|
/**
|
@@ -2479,7 +2479,7 @@ declare module "factorio:runtime" {
|
|
2479
2479
|
* - {@link LuaTechnologyPrototype}: The technology prototype.
|
2480
2480
|
* - {@link LuaTechnology}: Instance of the technology.
|
2481
2481
|
* - `string`: The prototype name.
|
2482
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2482
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/TechnologyID.html Online documentation}
|
2483
2483
|
*/
|
2484
2484
|
export type TechnologyID = LuaTechnologyPrototype | LuaTechnology | string
|
2485
2485
|
/**
|
@@ -2488,7 +2488,7 @@ declare module "factorio:runtime" {
|
|
2488
2488
|
* ## Union members
|
2489
2489
|
* - {@link LuaParticlePrototype}: The particle prototype.
|
2490
2490
|
* - `string`: The prototype name.
|
2491
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2491
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/ParticleID.html Online documentation}
|
2492
2492
|
*/
|
2493
2493
|
export type ParticleID = LuaParticlePrototype | string
|
2494
2494
|
/**
|
@@ -2497,7 +2497,7 @@ declare module "factorio:runtime" {
|
|
2497
2497
|
* ## Union members
|
2498
2498
|
* - {@link LuaDamagePrototype}: The damage type prototype.
|
2499
2499
|
* - `string`: The prototype name.
|
2500
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2500
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/DamageTypeID.html Online documentation}
|
2501
2501
|
*/
|
2502
2502
|
export type DamageTypeID = LuaDamagePrototype | string
|
2503
2503
|
/**
|
@@ -2506,7 +2506,7 @@ declare module "factorio:runtime" {
|
|
2506
2506
|
* ## Union members
|
2507
2507
|
* - {@link LuaTrivialSmokePrototype}: The trivial smoke prototype.
|
2508
2508
|
* - `string`: The prototype name.
|
2509
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2509
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/TrivialSmokeID.html Online documentation}
|
2510
2510
|
*/
|
2511
2511
|
export type TrivialSmokeID = LuaTrivialSmokePrototype | string
|
2512
2512
|
/**
|
@@ -2518,7 +2518,7 @@ declare module "factorio:runtime" {
|
|
2518
2518
|
* - `"left"`
|
2519
2519
|
* - `"right"`
|
2520
2520
|
* - `"center"`
|
2521
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2521
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/TextAlign.html Online documentation}
|
2522
2522
|
*/
|
2523
2523
|
export type TextAlign = "left" | "right" | "center"
|
2524
2524
|
/**
|
@@ -2531,7 +2531,7 @@ declare module "factorio:runtime" {
|
|
2531
2531
|
* - `"middle"`
|
2532
2532
|
* - `"baseline"`
|
2533
2533
|
* - `"bottom"`
|
2534
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2534
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/VerticalTextAlign.html Online documentation}
|
2535
2535
|
*/
|
2536
2536
|
export type VerticalTextAlign = "top" | "middle" | "baseline" | "bottom"
|
2537
2537
|
/**
|
@@ -2540,7 +2540,7 @@ declare module "factorio:runtime" {
|
|
2540
2540
|
* ## Union members
|
2541
2541
|
* - {@link LuaQualityPrototype}: The quality prototype.
|
2542
2542
|
* - `string`: The prototype name.
|
2543
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2543
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/QualityID.html Online documentation}
|
2544
2544
|
*/
|
2545
2545
|
export type QualityID = LuaQualityPrototype | string
|
2546
2546
|
/**
|
@@ -2550,7 +2550,7 @@ declare module "factorio:runtime" {
|
|
2550
2550
|
* - {@link LuaRecipePrototype}: By recipe prototype.
|
2551
2551
|
* - {@link LuaRecipe}: By instance of recipe.
|
2552
2552
|
* - `string`: By name of the recipe prototype.
|
2553
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2553
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/RecipeID.html Online documentation}
|
2554
2554
|
*/
|
2555
2555
|
export type RecipeID = LuaRecipePrototype | LuaRecipe | string
|
2556
2556
|
/**
|
@@ -2560,7 +2560,7 @@ declare module "factorio:runtime" {
|
|
2560
2560
|
* - {@link LuaTilePrototype}: By tile prototype.
|
2561
2561
|
* - {@link LuaTile}: By instance of tile.
|
2562
2562
|
* - `string`: By name of the tile prototype.
|
2563
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2563
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/TileID.html Online documentation}
|
2564
2564
|
*/
|
2565
2565
|
export type TileID = LuaTilePrototype | LuaTile | string
|
2566
2566
|
export interface Fluid {
|
@@ -2584,7 +2584,7 @@ declare module "factorio:runtime" {
|
|
2584
2584
|
* - {@link LuaEquipmentPrototype}: The equipment prototype.
|
2585
2585
|
* - {@link LuaEquipment}: The equipment.
|
2586
2586
|
* - `string`: The prototype name.
|
2587
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2587
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/EquipmentID.html Online documentation}
|
2588
2588
|
*/
|
2589
2589
|
export type EquipmentID = LuaEquipmentPrototype | LuaEquipment | string
|
2590
2590
|
/**
|
@@ -2595,12 +2595,12 @@ declare module "factorio:runtime" {
|
|
2595
2595
|
* - {@link LuaEquipment}: The equipment. Both prototype and quality of the provided equipment will be used.
|
2596
2596
|
* - `string`: The prototype name. Normal quality will be used.
|
2597
2597
|
* - {@link EquipmentIDAndQualityIDPair}: A table of equipment prototype and quality.
|
2598
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2598
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/EquipmentWithQualityID.html Online documentation}
|
2599
2599
|
*/
|
2600
2600
|
export type EquipmentWithQualityID = LuaEquipmentPrototype | LuaEquipment | string | EquipmentIDAndQualityIDPair
|
2601
2601
|
/**
|
2602
2602
|
* An equipment prototype with optional quality specification.
|
2603
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2603
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/EquipmentIDAndQualityIDPair.html Online documentation}
|
2604
2604
|
*/
|
2605
2605
|
export interface EquipmentIDAndQualityIDPair {
|
2606
2606
|
/**
|
@@ -2621,7 +2621,7 @@ declare module "factorio:runtime" {
|
|
2621
2621
|
* @example
|
2622
2622
|
* -- Shorthand
|
2623
2623
|
* {{-2, -3}, {5, 8}}
|
2624
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2624
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/BoundingBox.html Online documentation}
|
2625
2625
|
*/
|
2626
2626
|
export interface BoundingBox {
|
2627
2627
|
readonly left_top: MapPosition
|
@@ -2631,7 +2631,7 @@ declare module "factorio:runtime" {
|
|
2631
2631
|
/**
|
2632
2632
|
* Array form of {@link BoundingBox}.
|
2633
2633
|
* @see BoundingBox
|
2634
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2634
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/BoundingBox.html Online documentation}
|
2635
2635
|
*/
|
2636
2636
|
export type BoundingBoxArray = readonly [MapPosition | MapPositionArray, MapPosition | MapPositionArray]
|
2637
2637
|
export interface BoundingBoxWrite {
|
@@ -2644,7 +2644,7 @@ declare module "factorio:runtime" {
|
|
2644
2644
|
*
|
2645
2645
|
* ## Union members
|
2646
2646
|
* - {@link LuaSpacePlatform}
|
2647
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2647
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/SpacePlatformIdentification.html Online documentation}
|
2648
2648
|
*/
|
2649
2649
|
export type SpacePlatformIdentification = LuaSpacePlatform
|
2650
2650
|
/**
|
@@ -2654,12 +2654,12 @@ declare module "factorio:runtime" {
|
|
2654
2654
|
* - {@link LuaForce}[]: Array of many forces.
|
2655
2655
|
* - {@link LuaForce}: A single force.
|
2656
2656
|
* @see ForceSetWrite
|
2657
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2657
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/ForceSet.html Online documentation}
|
2658
2658
|
*/
|
2659
2659
|
export type ForceSet = LuaForce[] | LuaForce
|
2660
2660
|
/**
|
2661
2661
|
* Write form of {@link ForceSet}, where some properties allow additional values as input compared to the read form.
|
2662
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2662
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/ForceSet.html Online documentation}
|
2663
2663
|
*/
|
2664
2664
|
export type ForceSetWrite = readonly ForceID[] | ForceID
|
2665
2665
|
/**
|
@@ -2668,7 +2668,7 @@ declare module "factorio:runtime" {
|
|
2668
2668
|
* ## Union members
|
2669
2669
|
* - {@link LuaDecorativePrototype}: The decorative prototype.
|
2670
2670
|
* - `string`: The prototype name.
|
2671
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2671
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/DecorativeID.html Online documentation}
|
2672
2672
|
*/
|
2673
2673
|
export type DecorativeID = LuaDecorativePrototype | string
|
2674
2674
|
/**
|
@@ -2677,7 +2677,7 @@ declare module "factorio:runtime" {
|
|
2677
2677
|
* ## Union members
|
2678
2678
|
* - {@link LuaAsteroidChunkPrototype}: The asteroid chunk prototype.
|
2679
2679
|
* - `string`: The prototype name.
|
2680
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2680
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/AsteroidChunkID.html Online documentation}
|
2681
2681
|
*/
|
2682
2682
|
export type AsteroidChunkID = LuaAsteroidChunkPrototype | string
|
2683
2683
|
/**
|
@@ -2686,13 +2686,13 @@ declare module "factorio:runtime" {
|
|
2686
2686
|
* ## Union members
|
2687
2687
|
* - {@link LuaSpaceLocationPrototype}: The space location prototype.
|
2688
2688
|
* - `string`: The prototype name.
|
2689
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2689
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/SpaceLocationID.html Online documentation}
|
2690
2690
|
*/
|
2691
2691
|
export type SpaceLocationID = LuaSpaceLocationPrototype | string
|
2692
2692
|
/**
|
2693
2693
|
* 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.
|
2694
2694
|
* @see SignalFilterWrite
|
2695
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2695
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/SignalFilter.html Online documentation}
|
2696
2696
|
*/
|
2697
2697
|
export type SignalFilter =
|
2698
2698
|
| {
|
@@ -2716,7 +2716,7 @@ declare module "factorio:runtime" {
|
|
2716
2716
|
| string
|
2717
2717
|
/**
|
2718
2718
|
* Write form of {@link SignalFilter}, where some properties allow additional values as input compared to the read form.
|
2719
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2719
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/SignalFilter.html Online documentation}
|
2720
2720
|
*/
|
2721
2721
|
export type SignalFilterWrite =
|
2722
2722
|
| {
|
@@ -2740,7 +2740,7 @@ declare module "factorio:runtime" {
|
|
2740
2740
|
| string
|
2741
2741
|
/**
|
2742
2742
|
* @see LogisticFilterWrite
|
2743
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2743
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/LogisticFilter.html Online documentation}
|
2744
2744
|
*/
|
2745
2745
|
export interface LogisticFilter {
|
2746
2746
|
/**
|
@@ -2766,7 +2766,7 @@ declare module "factorio:runtime" {
|
|
2766
2766
|
}
|
2767
2767
|
/**
|
2768
2768
|
* Write form of {@link LogisticFilter}, where some properties allow additional values as input compared to the read form.
|
2769
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2769
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/LogisticFilter.html Online documentation}
|
2770
2770
|
*/
|
2771
2771
|
export interface LogisticFilterWrite {
|
2772
2772
|
/**
|
@@ -2822,23 +2822,23 @@ declare module "factorio:runtime" {
|
|
2822
2822
|
* ## Union members
|
2823
2823
|
* - {@link LuaSurfacePropertyPrototype}: The surface property prototype.
|
2824
2824
|
* - `string`: The prototype name.
|
2825
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2825
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/SurfacePropertyID.html Online documentation}
|
2826
2826
|
*/
|
2827
2827
|
export type SurfacePropertyID = LuaSurfacePropertyPrototype | string
|
2828
2828
|
/**
|
2829
2829
|
* When writing it is possible to give LuaEntity or MapPosition directly. However, reading always returns the full ScriptRenderTargetTable.
|
2830
2830
|
* @see ScriptRenderTargetWrite
|
2831
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2831
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/ScriptRenderTarget.html Online documentation}
|
2832
2832
|
*/
|
2833
2833
|
export type ScriptRenderTarget = LuaEntity | MapPosition | ScriptRenderTargetTable
|
2834
2834
|
/**
|
2835
2835
|
* Write form of {@link ScriptRenderTarget}, where some properties allow additional values as input compared to the read form.
|
2836
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2836
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/ScriptRenderTarget.html Online documentation}
|
2837
2837
|
*/
|
2838
2838
|
export type ScriptRenderTargetWrite = LuaEntity | (MapPosition | MapPositionArray) | ScriptRenderTargetTableWrite
|
2839
2839
|
/**
|
2840
2840
|
* @see ScriptRenderTargetTableWrite
|
2841
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2841
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/ScriptRenderTargetTable.html Online documentation}
|
2842
2842
|
*/
|
2843
2843
|
export interface ScriptRenderTargetTable {
|
2844
2844
|
readonly entity?: LuaEntity
|
@@ -2853,7 +2853,7 @@ declare module "factorio:runtime" {
|
|
2853
2853
|
}
|
2854
2854
|
/**
|
2855
2855
|
* Write form of {@link ScriptRenderTargetTable}, where some properties allow additional values as input compared to the read form.
|
2856
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2856
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/ScriptRenderTargetTable.html Online documentation}
|
2857
2857
|
*/
|
2858
2858
|
export interface ScriptRenderTargetTableWrite {
|
2859
2859
|
readonly entity?: LuaEntity
|
@@ -2868,7 +2868,7 @@ declare module "factorio:runtime" {
|
|
2868
2868
|
}
|
2869
2869
|
/**
|
2870
2870
|
* An item filter may be specified in two ways, either as a string which is a quality prototype name or as a table.
|
2871
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2871
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/QualityCondition.html Online documentation}
|
2872
2872
|
*/
|
2873
2873
|
export type QualityCondition =
|
2874
2874
|
| {
|
@@ -2890,7 +2890,7 @@ declare module "factorio:runtime" {
|
|
2890
2890
|
* - {@link LuaCustomInputPrototype}: Custom input prototype.
|
2891
2891
|
* - {@link defines.events}: Event identifier.
|
2892
2892
|
* - `string`: Name of the event.
|
2893
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2893
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/LuaEventType.html Online documentation}
|
2894
2894
|
*/
|
2895
2895
|
export type LuaEventType = LuaCustomEventPrototype | LuaCustomInputPrototype | defines.events | string | EventId<any>
|
2896
2896
|
/**
|
@@ -2898,13 +2898,13 @@ declare module "factorio:runtime" {
|
|
2898
2898
|
* - `"center-to-center"`
|
2899
2899
|
* - `"bounding-box-to-bounding-box"`
|
2900
2900
|
* - `"center-to-bounding-box"`
|
2901
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2901
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/RangeMode.html Online documentation}
|
2902
2902
|
*/
|
2903
2903
|
export type RangeMode = "center-to-center" | "bounding-box-to-bounding-box" | "center-to-bounding-box"
|
2904
2904
|
/**
|
2905
2905
|
* 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.
|
2906
2906
|
* @see BlueprintEntityWrite
|
2907
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2907
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/BlueprintEntity.html Online documentation}
|
2908
2908
|
*/
|
2909
2909
|
export interface BlueprintEntity {
|
2910
2910
|
/**
|
@@ -3118,7 +3118,7 @@ declare module "factorio:runtime" {
|
|
3118
3118
|
}
|
3119
3119
|
/**
|
3120
3120
|
* Write form of {@link BlueprintEntity}, where some properties allow additional values as input compared to the read form.
|
3121
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3121
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/BlueprintEntity.html Online documentation}
|
3122
3122
|
*/
|
3123
3123
|
export interface BlueprintEntityWrite {
|
3124
3124
|
/**
|
@@ -3339,7 +3339,7 @@ declare module "factorio:runtime" {
|
|
3339
3339
|
}
|
3340
3340
|
/**
|
3341
3341
|
* @see BlueprintEquipmentWrite
|
3342
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3342
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/BlueprintEquipment.html Online documentation}
|
3343
3343
|
*/
|
3344
3344
|
export interface BlueprintEquipment {
|
3345
3345
|
readonly equipment: ItemIDAndQualityIDPair
|
@@ -3347,7 +3347,7 @@ declare module "factorio:runtime" {
|
|
3347
3347
|
}
|
3348
3348
|
/**
|
3349
3349
|
* Write form of {@link BlueprintEquipment}, where some properties allow additional values as input compared to the read form.
|
3350
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3350
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/BlueprintEquipment.html Online documentation}
|
3351
3351
|
*/
|
3352
3352
|
export interface BlueprintEquipmentWrite {
|
3353
3353
|
readonly equipment: ItemIDAndQualityIDPairWrite
|
@@ -3355,7 +3355,7 @@ declare module "factorio:runtime" {
|
|
3355
3355
|
}
|
3356
3356
|
/**
|
3357
3357
|
* @see BlueprintInventoryWrite
|
3358
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3358
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/BlueprintInventory.html Online documentation}
|
3359
3359
|
*/
|
3360
3360
|
export interface BlueprintInventory {
|
3361
3361
|
readonly filters?: BlueprintLogisticFilter[]
|
@@ -3366,7 +3366,7 @@ declare module "factorio:runtime" {
|
|
3366
3366
|
}
|
3367
3367
|
/**
|
3368
3368
|
* Write form of {@link BlueprintInventory}, where some properties allow additional values as input compared to the read form.
|
3369
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3369
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/BlueprintInventory.html Online documentation}
|
3370
3370
|
*/
|
3371
3371
|
export interface BlueprintInventoryWrite {
|
3372
3372
|
readonly filters?: readonly BlueprintLogisticFilterWrite[]
|
@@ -3387,7 +3387,7 @@ declare module "factorio:runtime" {
|
|
3387
3387
|
}
|
3388
3388
|
/**
|
3389
3389
|
* @see BlueprintControlBehaviorWrite
|
3390
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3390
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/BlueprintControlBehavior.html Online documentation}
|
3391
3391
|
*/
|
3392
3392
|
export interface BlueprintControlBehavior {
|
3393
3393
|
/**
|
@@ -3395,6 +3395,8 @@ declare module "factorio:runtime" {
|
|
3395
3395
|
*
|
3396
3396
|
* Does **not** apply to logistic containers, see instead {@link circuit_condition_enabled }.
|
3397
3397
|
*
|
3398
|
+
*
|
3399
|
+
*
|
3398
3400
|
* Corresponds to {@link LuaGenericOnOffControlBehavior.circuit_enable_disable }
|
3399
3401
|
*/
|
3400
3402
|
readonly circuit_enabled?: boolean
|
@@ -3640,7 +3642,7 @@ declare module "factorio:runtime" {
|
|
3640
3642
|
}
|
3641
3643
|
/**
|
3642
3644
|
* Write form of {@link BlueprintControlBehavior}, where some properties allow additional values as input compared to the read form.
|
3643
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3645
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/BlueprintControlBehavior.html Online documentation}
|
3644
3646
|
*/
|
3645
3647
|
export interface BlueprintControlBehaviorWrite {
|
3646
3648
|
/**
|
@@ -3648,6 +3650,8 @@ declare module "factorio:runtime" {
|
|
3648
3650
|
*
|
3649
3651
|
* Does **not** apply to logistic containers, see instead {@link circuit_condition_enabled }.
|
3650
3652
|
*
|
3653
|
+
*
|
3654
|
+
*
|
3651
3655
|
* Corresponds to {@link LuaGenericOnOffControlBehavior.circuit_enable_disable }
|
3652
3656
|
*/
|
3653
3657
|
readonly circuit_enabled?: boolean
|
@@ -3921,7 +3925,7 @@ declare module "factorio:runtime" {
|
|
3921
3925
|
* "2500 * (L - 3)"
|
3922
3926
|
* @example
|
3923
3927
|
* "(4e5 * (abs(speed) + 10.5)) / weight"
|
3924
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3928
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/MathExpression.html Online documentation}
|
3925
3929
|
*/
|
3926
3930
|
export type MathExpression = string
|
3927
3931
|
/**
|
@@ -3943,7 +3947,7 @@ declare module "factorio:runtime" {
|
|
3943
3947
|
* -- What a custom recipe would look like that had a probability of 0.5 to return a
|
3944
3948
|
* -- minimum amount of 1 and a maximum amount of 5
|
3945
3949
|
* {{type="item", name="custom-item", probability=0.5, amount_min=1, amount_max=5}}
|
3946
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3950
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/Product.html Online documentation}
|
3947
3951
|
*/
|
3948
3952
|
export type Product = ItemProduct | FluidProduct | ResearchProgressProduct
|
3949
3953
|
/**
|
@@ -3954,7 +3958,7 @@ declare module "factorio:runtime" {
|
|
3954
3958
|
* -- What a custom recipe would look like that had a probability of 0.5 to return a
|
3955
3959
|
* -- minimum amount of 1 and a maximum amount of 5
|
3956
3960
|
* {{type="item", name="custom-item", probability=0.5, amount_min=1, amount_max=5}}
|
3957
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3961
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/ItemProduct.html Online documentation}
|
3958
3962
|
*/
|
3959
3963
|
export interface ItemProduct {
|
3960
3964
|
readonly type: "item"
|
@@ -3998,7 +4002,7 @@ declare module "factorio:runtime" {
|
|
3998
4002
|
* {{type="fluid", name="heavy-oil", amount=1},
|
3999
4003
|
* {type="fluid", name="light-oil", amount=4.5},
|
4000
4004
|
* {type="fluid", name="petroleum-gas", amount=5.5}}
|
4001
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4005
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/FluidProduct.html Online documentation}
|
4002
4006
|
*/
|
4003
4007
|
export interface FluidProduct {
|
4004
4008
|
readonly type: "fluid"
|
@@ -4046,7 +4050,7 @@ declare module "factorio:runtime" {
|
|
4046
4050
|
}
|
4047
4051
|
/**
|
4048
4052
|
* @see LogisticSectionsWrite
|
4049
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4053
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/LogisticSections.html Online documentation}
|
4050
4054
|
*/
|
4051
4055
|
export interface LogisticSections {
|
4052
4056
|
readonly sections?: LogisticSection[]
|
@@ -4057,7 +4061,7 @@ declare module "factorio:runtime" {
|
|
4057
4061
|
}
|
4058
4062
|
/**
|
4059
4063
|
* Write form of {@link LogisticSections}, where some properties allow additional values as input compared to the read form.
|
4060
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4064
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/LogisticSections.html Online documentation}
|
4061
4065
|
*/
|
4062
4066
|
export interface LogisticSectionsWrite {
|
4063
4067
|
readonly sections?: readonly LogisticSectionWrite[]
|
@@ -4093,7 +4097,7 @@ declare module "factorio:runtime" {
|
|
4093
4097
|
}
|
4094
4098
|
/**
|
4095
4099
|
* @see LogisticSectionWrite
|
4096
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4100
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/LogisticSection.html Online documentation}
|
4097
4101
|
*/
|
4098
4102
|
export interface LogisticSection {
|
4099
4103
|
readonly index: uint8
|
@@ -4110,7 +4114,7 @@ declare module "factorio:runtime" {
|
|
4110
4114
|
}
|
4111
4115
|
/**
|
4112
4116
|
* Write form of {@link LogisticSection}, where some properties allow additional values as input compared to the read form.
|
4113
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4117
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/LogisticSection.html Online documentation}
|
4114
4118
|
*/
|
4115
4119
|
export interface LogisticSectionWrite {
|
4116
4120
|
readonly index: uint8
|
@@ -4127,7 +4131,7 @@ declare module "factorio:runtime" {
|
|
4127
4131
|
}
|
4128
4132
|
/**
|
4129
4133
|
* @see BlueprintLogisticFilterWrite
|
4130
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4134
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/BlueprintLogisticFilter.html Online documentation}
|
4131
4135
|
*/
|
4132
4136
|
export interface BlueprintLogisticFilter {
|
4133
4137
|
readonly index: LogisticFilterIndex
|
@@ -4157,7 +4161,7 @@ declare module "factorio:runtime" {
|
|
4157
4161
|
}
|
4158
4162
|
/**
|
4159
4163
|
* Write form of {@link BlueprintLogisticFilter}, where some properties allow additional values as input compared to the read form.
|
4160
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4164
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/BlueprintLogisticFilter.html Online documentation}
|
4161
4165
|
*/
|
4162
4166
|
export interface BlueprintLogisticFilterWrite {
|
4163
4167
|
readonly index: LogisticFilterIndex
|
@@ -4187,7 +4191,7 @@ declare module "factorio:runtime" {
|
|
4187
4191
|
}
|
4188
4192
|
/**
|
4189
4193
|
* Specifies how probability and richness are calculated when placing something on the map.
|
4190
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4194
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/AutoplaceSpecification.html Online documentation}
|
4191
4195
|
*/
|
4192
4196
|
export interface AutoplaceSpecification {
|
4193
4197
|
/**
|
@@ -4204,7 +4208,7 @@ declare module "factorio:runtime" {
|
|
4204
4208
|
}
|
4205
4209
|
/**
|
4206
4210
|
* @see CliffPlacementSettingsWrite
|
4207
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4211
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/CliffPlacementSettings.html Online documentation}
|
4208
4212
|
*/
|
4209
4213
|
export interface CliffPlacementSettings {
|
4210
4214
|
/**
|
@@ -4234,7 +4238,7 @@ declare module "factorio:runtime" {
|
|
4234
4238
|
}
|
4235
4239
|
/**
|
4236
4240
|
* Write form of {@link CliffPlacementSettings}, where some properties allow additional values as input compared to the read form.
|
4237
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4241
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/CliffPlacementSettings.html Online documentation}
|
4238
4242
|
*/
|
4239
4243
|
export interface CliffPlacementSettingsWrite {
|
4240
4244
|
/**
|
@@ -4264,7 +4268,7 @@ declare module "factorio:runtime" {
|
|
4264
4268
|
}
|
4265
4269
|
/**
|
4266
4270
|
* @see AutoplaceSettingsWrite
|
4267
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4271
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/AutoplaceSettings.html Online documentation}
|
4268
4272
|
*/
|
4269
4273
|
export interface AutoplaceSettings {
|
4270
4274
|
/**
|
@@ -4278,7 +4282,7 @@ declare module "factorio:runtime" {
|
|
4278
4282
|
}
|
4279
4283
|
/**
|
4280
4284
|
* Write form of {@link AutoplaceSettings}, where some properties allow additional values as input compared to the read form.
|
4281
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4285
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/AutoplaceSettings.html Online documentation}
|
4282
4286
|
*/
|
4283
4287
|
export interface AutoplaceSettingsWrite {
|
4284
4288
|
/**
|
@@ -4313,7 +4317,7 @@ declare module "factorio:runtime" {
|
|
4313
4317
|
* surface.map_gen_settings = mgs
|
4314
4318
|
* -- This does not require a NamedNoiseExpression to be defined, since literal numbers (and strings naming literal
|
4315
4319
|
* -- numbers, e.g. `"123"`) are understood to stand for constant value expressions.
|
4316
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4320
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/MapGenSettings.html Online documentation}
|
4317
4321
|
*/
|
4318
4322
|
export interface MapGenSettings {
|
4319
4323
|
/**
|
@@ -4368,7 +4372,7 @@ declare module "factorio:runtime" {
|
|
4368
4372
|
}
|
4369
4373
|
/**
|
4370
4374
|
* Write form of {@link MapGenSettings}, where some properties allow additional values as input compared to the read form.
|
4371
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4375
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/MapGenSettings.html Online documentation}
|
4372
4376
|
*/
|
4373
4377
|
export interface MapGenSettingsWrite {
|
4374
4378
|
/**
|
@@ -4427,7 +4431,7 @@ declare module "factorio:runtime" {
|
|
4427
4431
|
}
|
4428
4432
|
/**
|
4429
4433
|
* These values are for the time frame of one second (60 ticks).
|
4430
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4434
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/PollutionMapSettings.html Online documentation}
|
4431
4435
|
*/
|
4432
4436
|
export interface PollutionMapSettings {
|
4433
4437
|
/**
|
@@ -4481,7 +4485,7 @@ declare module "factorio:runtime" {
|
|
4481
4485
|
}
|
4482
4486
|
/**
|
4483
4487
|
* These values represent a percentual increase in evolution. This means a value of `0.1` would increase evolution by 10%.
|
4484
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4488
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/EnemyEvolutionMapSettings.html Online documentation}
|
4485
4489
|
*/
|
4486
4490
|
export interface EnemyEvolutionMapSettings {
|
4487
4491
|
/**
|
@@ -4519,7 +4523,7 @@ declare module "factorio:runtime" {
|
|
4519
4523
|
* * neighbouring_base_chunk_coefficient^distance(chunk, neighbour)
|
4520
4524
|
* score(chunk) = 1 / (1 + player + base)
|
4521
4525
|
* ```
|
4522
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4526
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/EnemyExpansionMapSettings.html Online documentation}
|
4523
4527
|
*/
|
4524
4528
|
export interface EnemyExpansionMapSettings {
|
4525
4529
|
/**
|
@@ -4778,17 +4782,17 @@ declare module "factorio:runtime" {
|
|
4778
4782
|
}
|
4779
4783
|
/**
|
4780
4784
|
* Technology difficulty settings. Updating any of the attributes will immediately take effect in the game engine.
|
4781
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4785
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/DifficultySettings.html Online documentation}
|
4782
4786
|
*/
|
4783
4787
|
export interface DifficultySettings {
|
4784
4788
|
/**
|
4785
4789
|
* A value in range [0.001, 1000].
|
4786
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4790
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/DifficultySettings.technology_price_multiplier.html Online documentation}
|
4787
4791
|
*/
|
4788
4792
|
technology_price_multiplier: double
|
4789
4793
|
/**
|
4790
4794
|
* A value in range [0.01, 100].
|
4791
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4795
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/DifficultySettings.spoil_time_modifier.html Online documentation}
|
4792
4796
|
*/
|
4793
4797
|
spoil_time_modifier: double
|
4794
4798
|
}
|
@@ -4804,7 +4808,7 @@ declare module "factorio:runtime" {
|
|
4804
4808
|
}
|
4805
4809
|
/**
|
4806
4810
|
* A standard table containing all {@link MapSettings} attributes plus an additional table that contains all {@link DifficultySettings} properties.
|
4807
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4811
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/MapAndDifficultySettings.html Online documentation}
|
4808
4812
|
*/
|
4809
4813
|
export interface MapAndDifficultySettings {
|
4810
4814
|
readonly pollution: PollutionMapSettings
|
@@ -4825,7 +4829,7 @@ declare module "factorio:runtime" {
|
|
4825
4829
|
* @example
|
4826
4830
|
* -- Increase the number of short paths the pathfinder can cache.
|
4827
4831
|
* game.map_settings.path_finder.short_cache_size = 15
|
4828
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4832
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/MapSettings.html Online documentation}
|
4829
4833
|
*/
|
4830
4834
|
export interface MapSettings {
|
4831
4835
|
pollution: PollutionMapSettings
|
@@ -4837,13 +4841,13 @@ declare module "factorio:runtime" {
|
|
4837
4841
|
asteroids: AsteroidMapSettings
|
4838
4842
|
/**
|
4839
4843
|
* If a behavior fails this many times, the enemy (or enemy group) is destroyed. This solves biters getting stuck within their own base.
|
4840
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4844
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/MapSettings.max_failed_behavior_count.html Online documentation}
|
4841
4845
|
*/
|
4842
4846
|
max_failed_behavior_count: uint
|
4843
4847
|
}
|
4844
4848
|
/**
|
4845
4849
|
* @see BlueprintScheduleRecordWrite
|
4846
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4850
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/BlueprintScheduleRecord.html Online documentation}
|
4847
4851
|
*/
|
4848
4852
|
export interface BlueprintScheduleRecord {
|
4849
4853
|
/**
|
@@ -4860,7 +4864,7 @@ declare module "factorio:runtime" {
|
|
4860
4864
|
}
|
4861
4865
|
/**
|
4862
4866
|
* Write form of {@link BlueprintScheduleRecord}, where some properties allow additional values as input compared to the read form.
|
4863
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4867
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/BlueprintScheduleRecord.html Online documentation}
|
4864
4868
|
*/
|
4865
4869
|
export interface BlueprintScheduleRecordWrite {
|
4866
4870
|
/**
|
@@ -4877,7 +4881,7 @@ declare module "factorio:runtime" {
|
|
4877
4881
|
}
|
4878
4882
|
/**
|
4879
4883
|
* @see BlueprintScheduleInterruptWrite
|
4880
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4884
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/BlueprintScheduleInterrupt.html Online documentation}
|
4881
4885
|
*/
|
4882
4886
|
export interface BlueprintScheduleInterrupt {
|
4883
4887
|
readonly name?: string
|
@@ -4887,7 +4891,7 @@ declare module "factorio:runtime" {
|
|
4887
4891
|
}
|
4888
4892
|
/**
|
4889
4893
|
* Write form of {@link BlueprintScheduleInterrupt}, where some properties allow additional values as input compared to the read form.
|
4890
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4894
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/BlueprintScheduleInterrupt.html Online documentation}
|
4891
4895
|
*/
|
4892
4896
|
export interface BlueprintScheduleInterruptWrite {
|
4893
4897
|
readonly name?: string
|
@@ -4897,7 +4901,7 @@ declare module "factorio:runtime" {
|
|
4897
4901
|
}
|
4898
4902
|
/**
|
4899
4903
|
* @see BlueprintScheduleWrite
|
4900
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4904
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/BlueprintSchedule.html Online documentation}
|
4901
4905
|
*/
|
4902
4906
|
export interface BlueprintSchedule {
|
4903
4907
|
readonly records?: BlueprintScheduleRecord[]
|
@@ -4906,7 +4910,7 @@ declare module "factorio:runtime" {
|
|
4906
4910
|
}
|
4907
4911
|
/**
|
4908
4912
|
* Write form of {@link BlueprintSchedule}, where some properties allow additional values as input compared to the read form.
|
4909
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4913
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/BlueprintSchedule.html Online documentation}
|
4910
4914
|
*/
|
4911
4915
|
export interface BlueprintScheduleWrite {
|
4912
4916
|
readonly records?: readonly BlueprintScheduleRecordWrite[]
|
@@ -4915,7 +4919,7 @@ declare module "factorio:runtime" {
|
|
4915
4919
|
}
|
4916
4920
|
/**
|
4917
4921
|
* @see WaitConditionWrite
|
4918
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4922
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/WaitCondition.html Online documentation}
|
4919
4923
|
*/
|
4920
4924
|
export interface WaitCondition {
|
4921
4925
|
readonly type: WaitConditionType
|
@@ -4946,7 +4950,7 @@ declare module "factorio:runtime" {
|
|
4946
4950
|
}
|
4947
4951
|
/**
|
4948
4952
|
* Write form of {@link WaitCondition}, where some properties allow additional values as input compared to the read form.
|
4949
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4953
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/WaitCondition.html Online documentation}
|
4950
4954
|
*/
|
4951
4955
|
export interface WaitConditionWrite {
|
4952
4956
|
readonly type: WaitConditionType
|
@@ -5005,7 +5009,7 @@ declare module "factorio:runtime" {
|
|
5005
5009
|
* - `"at_station"`
|
5006
5010
|
* - `"not_at_station"`
|
5007
5011
|
* - `"damage_taken"`
|
5008
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5012
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/WaitConditionType.html Online documentation}
|
5009
5013
|
*/
|
5010
5014
|
export type WaitConditionType =
|
5011
5015
|
| "time"
|
@@ -5047,7 +5051,7 @@ declare module "factorio:runtime" {
|
|
5047
5051
|
* - `"blueprint-snap-rectangle"`: Green by default.
|
5048
5052
|
* - `"spidertron-remote-selected"`
|
5049
5053
|
* - `"spidertron-remote-to-be-selected"`
|
5050
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5054
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/CursorBoxRenderType.html Online documentation}
|
5051
5055
|
*/
|
5052
5056
|
export type CursorBoxRenderType =
|
5053
5057
|
| "entity"
|
@@ -5063,7 +5067,7 @@ declare module "factorio:runtime" {
|
|
5063
5067
|
| "spidertron-remote-to-be-selected"
|
5064
5068
|
/**
|
5065
5069
|
* What is shown in the map view. If a field is not given, that setting will not be changed.
|
5066
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5070
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/MapViewSettings.html Online documentation}
|
5067
5071
|
*/
|
5068
5072
|
export interface MapViewSettings {
|
5069
5073
|
readonly "show-logistic-network"?: boolean
|
@@ -5156,7 +5160,7 @@ declare module "factorio:runtime" {
|
|
5156
5160
|
* - `"collision-selection-box"`: 189
|
5157
5161
|
* - `"arrow"`: 190
|
5158
5162
|
* - `"cursor"`: 226
|
5159
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5163
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/RenderLayer.html Online documentation}
|
5160
5164
|
*/
|
5161
5165
|
export type RenderLayer =
|
5162
5166
|
| `${bigint}`
|
@@ -5252,7 +5256,7 @@ declare module "factorio:runtime" {
|
|
5252
5256
|
* - `"entity-with-quality"`
|
5253
5257
|
* - `"recipe-with-quality"`
|
5254
5258
|
* - `"equipment-with-quality"`
|
5255
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5259
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/ElemType.html Online documentation}
|
5256
5260
|
*/
|
5257
5261
|
export type ElemType =
|
5258
5262
|
| "achievement"
|
@@ -5279,7 +5283,7 @@ declare module "factorio:runtime" {
|
|
5279
5283
|
* - `"left"`
|
5280
5284
|
* - `"right"`
|
5281
5285
|
* - `"none"`
|
5282
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5286
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/SwitchState.html Online documentation}
|
5283
5287
|
*/
|
5284
5288
|
export type SwitchState = "left" | "right" | "none"
|
5285
5289
|
export interface ElemID {
|
@@ -5320,7 +5324,7 @@ declare module "factorio:runtime" {
|
|
5320
5324
|
* - `"destroy-decoratives"`
|
5321
5325
|
* - `"camera-effect"`
|
5322
5326
|
* - `"activate-impact"`
|
5323
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5327
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/TriggerEffectItemType.html Online documentation}
|
5324
5328
|
*/
|
5325
5329
|
export type TriggerEffectItemType =
|
5326
5330
|
| "damage"
|
@@ -5357,7 +5361,7 @@ declare module "factorio:runtime" {
|
|
5357
5361
|
}
|
5358
5362
|
/**
|
5359
5363
|
* A set of trigger target masks.
|
5360
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5364
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/TriggerTargetMask.html Online documentation}
|
5361
5365
|
*/
|
5362
5366
|
export type TriggerTargetMask = Record<string, true>
|
5363
5367
|
export interface TriggerItem {
|
@@ -5424,7 +5428,7 @@ declare module "factorio:runtime" {
|
|
5424
5428
|
* -- If 'entity-description.furnace' exists, it is concatenated with "\n" and returned. Otherwise, if 'item-description.furnace'
|
5425
5429
|
* -- exists, it is returned as-is. Otherwise, "optional fallback" is returned. If this value wasn't specified, the
|
5426
5430
|
* -- translation result would be "Unknown key: 'item-description.furnace'".
|
5427
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5431
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/LocalisedString.html Online documentation}
|
5428
5432
|
*/
|
5429
5433
|
export type LocalisedString = string | number | boolean | LuaObject | nil | [string, ...LocalisedString[]]
|
5430
5434
|
export interface DisplayResolution {
|
@@ -5435,7 +5439,7 @@ declare module "factorio:runtime" {
|
|
5435
5439
|
* 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".
|
5436
5440
|
*
|
5437
5441
|
* For example then, a value of `0.625` would indicate "south-west", and a value of `0.875` would indicate "north-west".
|
5438
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5442
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/RealOrientation.html Online documentation}
|
5439
5443
|
*/
|
5440
5444
|
export type RealOrientation = float
|
5441
5445
|
/**
|
@@ -5450,7 +5454,7 @@ declare module "factorio:runtime" {
|
|
5450
5454
|
* @example
|
5451
5455
|
* -- Shorthand
|
5452
5456
|
* {1.625, 2.375}
|
5453
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5457
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/MapPosition.html Online documentation}
|
5454
5458
|
*/
|
5455
5459
|
export interface MapPosition {
|
5456
5460
|
readonly x: double
|
@@ -5459,13 +5463,13 @@ declare module "factorio:runtime" {
|
|
5459
5463
|
/**
|
5460
5464
|
* Array form of {@link MapPosition}.
|
5461
5465
|
* @see MapPosition
|
5462
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5466
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/MapPosition.html Online documentation}
|
5463
5467
|
*/
|
5464
5468
|
export type MapPositionArray = readonly [double, double]
|
5465
5469
|
/**
|
5466
5470
|
* 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.
|
5467
5471
|
* @see ChunkPositionArray
|
5468
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5472
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/ChunkPosition.html Online documentation}
|
5469
5473
|
*/
|
5470
5474
|
export interface ChunkPosition {
|
5471
5475
|
readonly x: int
|
@@ -5474,13 +5478,13 @@ declare module "factorio:runtime" {
|
|
5474
5478
|
/**
|
5475
5479
|
* Array form of {@link ChunkPosition}.
|
5476
5480
|
* @see ChunkPosition
|
5477
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5481
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/ChunkPosition.html Online documentation}
|
5478
5482
|
*/
|
5479
5483
|
export type ChunkPositionArray = readonly [int, int]
|
5480
5484
|
/**
|
5481
5485
|
* 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.
|
5482
5486
|
* @see TilePositionArray
|
5483
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5487
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/TilePosition.html Online documentation}
|
5484
5488
|
*/
|
5485
5489
|
export interface TilePosition {
|
5486
5490
|
readonly x: int
|
@@ -5489,7 +5493,7 @@ declare module "factorio:runtime" {
|
|
5489
5493
|
/**
|
5490
5494
|
* Array form of {@link TilePosition}.
|
5491
5495
|
* @see TilePosition
|
5492
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5496
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/TilePosition.html Online documentation}
|
5493
5497
|
*/
|
5494
5498
|
export type TilePositionArray = readonly [int, int]
|
5495
5499
|
/**
|
@@ -5502,7 +5506,7 @@ declare module "factorio:runtime" {
|
|
5502
5506
|
* @example
|
5503
5507
|
* -- Shorthand
|
5504
5508
|
* {1, 2}
|
5505
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5509
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/EquipmentPosition.html Online documentation}
|
5506
5510
|
*/
|
5507
5511
|
export interface EquipmentPosition {
|
5508
5512
|
readonly x: int
|
@@ -5511,13 +5515,13 @@ declare module "factorio:runtime" {
|
|
5511
5515
|
/**
|
5512
5516
|
* Array form of {@link EquipmentPosition}.
|
5513
5517
|
* @see EquipmentPosition
|
5514
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5518
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/EquipmentPosition.html Online documentation}
|
5515
5519
|
*/
|
5516
5520
|
export type EquipmentPositionArray = readonly [int, int]
|
5517
5521
|
/**
|
5518
5522
|
* 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.
|
5519
5523
|
* @see GuiLocationArray
|
5520
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5524
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/GuiLocation.html Online documentation}
|
5521
5525
|
*/
|
5522
5526
|
export interface GuiLocation {
|
5523
5527
|
readonly x: int
|
@@ -5526,12 +5530,12 @@ declare module "factorio:runtime" {
|
|
5526
5530
|
/**
|
5527
5531
|
* Array form of {@link GuiLocation}.
|
5528
5532
|
* @see GuiLocation
|
5529
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5533
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/GuiLocation.html Online documentation}
|
5530
5534
|
*/
|
5531
5535
|
export type GuiLocationArray = readonly [int, int]
|
5532
5536
|
/**
|
5533
5537
|
* A {@link ChunkPosition} with an added bounding box for the area of the chunk.
|
5534
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5538
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/ChunkPositionAndArea.html Online documentation}
|
5535
5539
|
*/
|
5536
5540
|
export interface ChunkPositionAndArea {
|
5537
5541
|
readonly x: int
|
@@ -5540,7 +5544,7 @@ declare module "factorio:runtime" {
|
|
5540
5544
|
}
|
5541
5545
|
/**
|
5542
5546
|
* A table used to define a manual shape for a piece of equipment.
|
5543
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5547
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/EquipmentPoint.html Online documentation}
|
5544
5548
|
*/
|
5545
5549
|
export interface EquipmentPoint {
|
5546
5550
|
readonly x: uint
|
@@ -5576,7 +5580,7 @@ declare module "factorio:runtime" {
|
|
5576
5580
|
* 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.
|
5577
5581
|
* @example
|
5578
5582
|
* {a = 1, b = true, c = "three", d = {e = "f"}}
|
5579
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5583
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/Tags.html Online documentation}
|
5580
5584
|
*/
|
5581
5585
|
export type Tags = Record<string, AnyBasic>
|
5582
5586
|
export interface SurfaceCondition {
|
@@ -5610,13 +5614,13 @@ declare module "factorio:runtime" {
|
|
5610
5614
|
* 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.
|
5611
5615
|
* @example
|
5612
5616
|
* right = {1.0, 0.0}
|
5613
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5617
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/Vector.html Online documentation}
|
5614
5618
|
*/
|
5615
5619
|
export type Vector = MapPositionArray
|
5616
5620
|
/**
|
5617
5621
|
* An area defined using the map editor.
|
5618
5622
|
* @see ScriptAreaWrite
|
5619
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5623
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/ScriptArea.html Online documentation}
|
5620
5624
|
*/
|
5621
5625
|
export interface ScriptArea {
|
5622
5626
|
readonly area: BoundingBox
|
@@ -5626,7 +5630,7 @@ declare module "factorio:runtime" {
|
|
5626
5630
|
}
|
5627
5631
|
/**
|
5628
5632
|
* Write form of {@link ScriptArea}, where some properties allow additional values as input compared to the read form.
|
5629
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5633
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/ScriptArea.html Online documentation}
|
5630
5634
|
*/
|
5631
5635
|
export interface ScriptAreaWrite {
|
5632
5636
|
readonly area: BoundingBoxWrite | BoundingBoxArray
|
@@ -5637,7 +5641,7 @@ declare module "factorio:runtime" {
|
|
5637
5641
|
/**
|
5638
5642
|
* A position defined using the map editor.
|
5639
5643
|
* @see ScriptPositionWrite
|
5640
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5644
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/ScriptPosition.html Online documentation}
|
5641
5645
|
*/
|
5642
5646
|
export interface ScriptPosition {
|
5643
5647
|
readonly position: MapPosition
|
@@ -5647,7 +5651,7 @@ declare module "factorio:runtime" {
|
|
5647
5651
|
}
|
5648
5652
|
/**
|
5649
5653
|
* Write form of {@link ScriptPosition}, where some properties allow additional values as input compared to the read form.
|
5650
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5654
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/ScriptPosition.html Online documentation}
|
5651
5655
|
*/
|
5652
5656
|
export interface ScriptPositionWrite {
|
5653
5657
|
readonly position: MapPosition | MapPositionArray
|
@@ -5665,7 +5669,7 @@ declare module "factorio:runtime" {
|
|
5665
5669
|
* red2 = {r = 0.5, a = 0.5} -- Same color as red1
|
5666
5670
|
* black = {} -- All channels omitted: black
|
5667
5671
|
* red1_short = {0.5, 0, 0, 0.5} -- Same color as red1 in short-hand notation
|
5668
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5672
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/Color.html Online documentation}
|
5669
5673
|
*/
|
5670
5674
|
export interface Color {
|
5671
5675
|
readonly r?: float
|
@@ -5676,13 +5680,13 @@ declare module "factorio:runtime" {
|
|
5676
5680
|
/**
|
5677
5681
|
* Array form of {@link Color}.
|
5678
5682
|
* @see Color
|
5679
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5683
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/Color.html Online documentation}
|
5680
5684
|
*/
|
5681
5685
|
export type ColorArray = readonly [r: double, g: double, b: double, a?: double]
|
5682
5686
|
/**
|
5683
5687
|
* 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].
|
5684
5688
|
* @see ColorModifierArray
|
5685
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5689
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/ColorModifier.html Online documentation}
|
5686
5690
|
*/
|
5687
5691
|
export interface ColorModifier {
|
5688
5692
|
readonly r?: float
|
@@ -5693,7 +5697,7 @@ declare module "factorio:runtime" {
|
|
5693
5697
|
/**
|
5694
5698
|
* Array form of {@link ColorModifier}.
|
5695
5699
|
* @see ColorModifier
|
5696
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5700
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/ColorModifier.html Online documentation}
|
5697
5701
|
*/
|
5698
5702
|
export type ColorModifierArray = readonly [r: double, g: double, b: double, a?: double]
|
5699
5703
|
export interface CraftingQueueItem {
|
@@ -5836,7 +5840,7 @@ declare module "factorio:runtime" {
|
|
5836
5840
|
}
|
5837
5841
|
/**
|
5838
5842
|
* @see AsteroidChunkWrite
|
5839
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5843
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/AsteroidChunk.html Online documentation}
|
5840
5844
|
*/
|
5841
5845
|
export interface AsteroidChunk {
|
5842
5846
|
/**
|
@@ -5848,7 +5852,7 @@ declare module "factorio:runtime" {
|
|
5848
5852
|
}
|
5849
5853
|
/**
|
5850
5854
|
* Write form of {@link AsteroidChunk}, where some properties allow additional values as input compared to the read form.
|
5851
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5855
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/AsteroidChunk.html Online documentation}
|
5852
5856
|
*/
|
5853
5857
|
export interface AsteroidChunkWrite {
|
5854
5858
|
/**
|
@@ -5870,7 +5874,7 @@ declare module "factorio:runtime" {
|
|
5870
5874
|
}
|
5871
5875
|
/**
|
5872
5876
|
* Either `icon`, `text`, or both must be provided.
|
5873
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5877
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/ChartTagSpec.html Online documentation}
|
5874
5878
|
*/
|
5875
5879
|
export interface ChartTagSpec {
|
5876
5880
|
readonly position: MapPosition | MapPositionArray
|
@@ -5880,93 +5884,93 @@ declare module "factorio:runtime" {
|
|
5880
5884
|
}
|
5881
5885
|
/**
|
5882
5886
|
* 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.
|
5883
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5887
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/GameViewSettings.html Online documentation}
|
5884
5888
|
*/
|
5885
5889
|
export interface GameViewSettings {
|
5886
5890
|
/**
|
5887
5891
|
* Show the controller GUI elements. This includes the toolbar, the selected tool slot, the armour slot, and the gun and ammunition slots.
|
5888
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5892
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/GameViewSettings.show_controller_gui.html Online documentation}
|
5889
5893
|
*/
|
5890
5894
|
show_controller_gui: boolean
|
5891
5895
|
/**
|
5892
5896
|
* Show the chart in the upper right-hand corner of the screen.
|
5893
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5897
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/GameViewSettings.show_minimap.html Online documentation}
|
5894
5898
|
*/
|
5895
5899
|
show_minimap: boolean
|
5896
5900
|
/**
|
5897
5901
|
* Show research progress and name in the upper right-hand corner of the screen.
|
5898
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5902
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/GameViewSettings.show_research_info.html Online documentation}
|
5899
5903
|
*/
|
5900
5904
|
show_research_info: boolean
|
5901
5905
|
/**
|
5902
5906
|
* Show overlay icons on entities. Also known as "alt-mode".
|
5903
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5907
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/GameViewSettings.show_entity_info.html Online documentation}
|
5904
5908
|
*/
|
5905
5909
|
show_entity_info: boolean
|
5906
5910
|
/**
|
5907
5911
|
* Show the flashing alert icons next to the player's toolbar.
|
5908
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5912
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/GameViewSettings.show_alert_gui.html Online documentation}
|
5909
5913
|
*/
|
5910
5914
|
show_alert_gui: boolean
|
5911
5915
|
/**
|
5912
5916
|
* When `true` (the default), mousing over an entity will select it. Otherwise, moving the mouse won't update entity selection.
|
5913
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5917
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/GameViewSettings.update_entity_selection.html Online documentation}
|
5914
5918
|
*/
|
5915
5919
|
update_entity_selection: boolean
|
5916
5920
|
/**
|
5917
5921
|
* When `true` (`false` is default), the rails will always show the rail block visualisation.
|
5918
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5922
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/GameViewSettings.show_rail_block_visualisation.html Online documentation}
|
5919
5923
|
*/
|
5920
5924
|
show_rail_block_visualisation: boolean
|
5921
5925
|
/**
|
5922
5926
|
* Shows or hides the buttons row.
|
5923
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5927
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/GameViewSettings.show_side_menu.html Online documentation}
|
5924
5928
|
*/
|
5925
5929
|
show_side_menu: boolean
|
5926
5930
|
/**
|
5927
5931
|
* Shows or hides the view options when map is opened.
|
5928
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5932
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/GameViewSettings.show_map_view_options.html Online documentation}
|
5929
5933
|
*/
|
5930
5934
|
show_map_view_options: boolean
|
5931
5935
|
/**
|
5932
5936
|
* Shows or hides the tooltip that is displayed when selecting an entity.
|
5933
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5937
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/GameViewSettings.show_entity_tooltip.html Online documentation}
|
5934
5938
|
*/
|
5935
5939
|
show_entity_tooltip: boolean
|
5936
5940
|
/**
|
5937
5941
|
* Shows or hides quickbar of shortcuts.
|
5938
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5942
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/GameViewSettings.show_quickbar.html Online documentation}
|
5939
5943
|
*/
|
5940
5944
|
show_quickbar: boolean
|
5941
5945
|
/**
|
5942
5946
|
* Shows or hides the shortcut bar.
|
5943
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5947
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/GameViewSettings.show_shortcut_bar.html Online documentation}
|
5944
5948
|
*/
|
5945
5949
|
show_shortcut_bar: boolean
|
5946
5950
|
/**
|
5947
5951
|
* Shows or hides the crafting queue.
|
5948
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5952
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/GameViewSettings.show_crafting_queue.html Online documentation}
|
5949
5953
|
*/
|
5950
5954
|
show_crafting_queue: boolean
|
5951
5955
|
/**
|
5952
5956
|
* Shows or hides the tool window with the weapons and armor.
|
5953
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5957
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/GameViewSettings.show_tool_bar.html Online documentation}
|
5954
5958
|
*/
|
5955
5959
|
show_tool_bar: boolean
|
5956
5960
|
/**
|
5957
5961
|
* Shows or hides the mouse and keyboard/controller button hints in the bottom left corner if they are enabled in the interface settings.
|
5958
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5962
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/GameViewSettings.show_hotkey_suggestions.html Online documentation}
|
5959
5963
|
*/
|
5960
5964
|
show_hotkey_suggestions: boolean
|
5961
5965
|
/**
|
5962
5966
|
* Shows or hides the surface list while in Remote View.
|
5963
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5967
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/GameViewSettings.show_surface_list.html Online documentation}
|
5964
5968
|
*/
|
5965
5969
|
show_surface_list: boolean
|
5966
5970
|
}
|
5967
5971
|
/**
|
5968
5972
|
* The data that can be extracted from a map exchange string, as a plain table.
|
5969
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5973
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/MapExchangeStringData.html Online documentation}
|
5970
5974
|
*/
|
5971
5975
|
export interface MapExchangeStringData {
|
5972
5976
|
readonly map_settings: MapAndDifficultySettings
|
@@ -5974,7 +5978,7 @@ declare module "factorio:runtime" {
|
|
5974
5978
|
}
|
5975
5979
|
/**
|
5976
5980
|
* @see BlueprintSignalIconWrite
|
5977
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5981
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/BlueprintSignalIcon.html Online documentation}
|
5978
5982
|
*/
|
5979
5983
|
export interface BlueprintSignalIcon {
|
5980
5984
|
/**
|
@@ -5988,7 +5992,7 @@ declare module "factorio:runtime" {
|
|
5988
5992
|
}
|
5989
5993
|
/**
|
5990
5994
|
* Write form of {@link BlueprintSignalIcon}, where some properties allow additional values as input compared to the read form.
|
5991
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5995
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/BlueprintSignalIcon.html Online documentation}
|
5992
5996
|
*/
|
5993
5997
|
export interface BlueprintSignalIconWrite {
|
5994
5998
|
/**
|
@@ -6017,12 +6021,12 @@ declare module "factorio:runtime" {
|
|
6017
6021
|
* - `target_entity_number`
|
6018
6022
|
*
|
6019
6023
|
* - `target_wire_connector_id`
|
6020
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
6024
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/BlueprintWire.html Online documentation}
|
6021
6025
|
*/
|
6022
6026
|
export type BlueprintWire = readonly [uint, defines.wire_connector_id, uint, defines.wire_connector_id]
|
6023
6027
|
/**
|
6024
6028
|
* @see TileWrite
|
6025
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
6029
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/Tile.html Online documentation}
|
6026
6030
|
*/
|
6027
6031
|
export interface Tile {
|
6028
6032
|
/**
|
@@ -6036,7 +6040,7 @@ declare module "factorio:runtime" {
|
|
6036
6040
|
}
|
6037
6041
|
/**
|
6038
6042
|
* Write form of {@link Tile}, where some properties allow additional values as input compared to the read form.
|
6039
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
6043
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/Tile.html Online documentation}
|
6040
6044
|
*/
|
6041
6045
|
export interface TileWrite {
|
6042
6046
|
/**
|
@@ -6091,7 +6095,7 @@ declare module "factorio:runtime" {
|
|
6091
6095
|
*
|
6092
6096
|
* Other attributes may be specified depending on `type`:
|
6093
6097
|
* - `"fluid"`: {@link FluidIngredient}
|
6094
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
6098
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/Ingredient.html Online documentation}
|
6095
6099
|
*/
|
6096
6100
|
export type Ingredient = FluidIngredient | OtherIngredient
|
6097
6101
|
export interface Loot {
|
@@ -6257,7 +6261,7 @@ declare module "factorio:runtime" {
|
|
6257
6261
|
* - `"unlock-recipe"`: {@link UnlockRecipeTechnologyModifier}
|
6258
6262
|
* - `"nothing"`: {@link NothingTechnologyModifier}
|
6259
6263
|
* - Other types: {@link OtherTechnologyModifier}
|
6260
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
6264
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/TechnologyModifier.html Online documentation}
|
6261
6265
|
*/
|
6262
6266
|
export type TechnologyModifier =
|
6263
6267
|
| GunSpeedTechnologyModifier
|
@@ -6269,7 +6273,7 @@ declare module "factorio:runtime" {
|
|
6269
6273
|
| OtherTechnologyModifier
|
6270
6274
|
/**
|
6271
6275
|
* 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}.
|
6272
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
6276
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/NoiseExpression.html Online documentation}
|
6273
6277
|
*/
|
6274
6278
|
export interface NoiseExpression {
|
6275
6279
|
/**
|
@@ -6322,7 +6326,7 @@ declare module "factorio:runtime" {
|
|
6322
6326
|
* - `"very-high"`: equivalent to `2`.
|
6323
6327
|
* - `"very-big"`: equivalent to `2`.
|
6324
6328
|
* - `"very-good"`: equivalent to `2`.
|
6325
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
6329
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/MapGenSize.html Online documentation}
|
6326
6330
|
*/
|
6327
6331
|
export type MapGenSize =
|
6328
6332
|
| float
|
@@ -6344,7 +6348,7 @@ declare module "factorio:runtime" {
|
|
6344
6348
|
| "very-good"
|
6345
6349
|
/**
|
6346
6350
|
* @see AutoplaceControlWrite
|
6347
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
6351
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/AutoplaceControl.html Online documentation}
|
6348
6352
|
*/
|
6349
6353
|
export interface AutoplaceControl {
|
6350
6354
|
/**
|
@@ -6362,7 +6366,7 @@ declare module "factorio:runtime" {
|
|
6362
6366
|
}
|
6363
6367
|
/**
|
6364
6368
|
* Write form of {@link AutoplaceControl}, where some properties allow additional values as input compared to the read form.
|
6365
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
6369
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/AutoplaceControl.html Online documentation}
|
6366
6370
|
*/
|
6367
6371
|
export interface AutoplaceControlWrite {
|
6368
6372
|
/**
|
@@ -6381,10 +6385,10 @@ declare module "factorio:runtime" {
|
|
6381
6385
|
/**
|
6382
6386
|
* 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}`.
|
6383
6387
|
*
|
6384
|
-
* {@link https://lua-api.factorio.com/2.0.
|
6388
|
+
* {@link https://lua-api.factorio.com/2.0.28/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:}
|
6385
6389
|
*
|
6386
|
-
* {@link https://lua-api.factorio.com/2.0.
|
6387
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
6390
|
+
* {@link https://lua-api.factorio.com/2.0.28/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:}
|
6391
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/PropertyExpressionNames.html Online documentation}
|
6388
6392
|
*/
|
6389
6393
|
export type PropertyExpressionNames = Record<string, string>
|
6390
6394
|
export interface AdvancedMapGenSettings {
|
@@ -6407,7 +6411,7 @@ declare module "factorio:runtime" {
|
|
6407
6411
|
}
|
6408
6412
|
/**
|
6409
6413
|
* An actual signal transmitted by the network.
|
6410
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
6414
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/Signal.html Online documentation}
|
6411
6415
|
*/
|
6412
6416
|
export interface Signal {
|
6413
6417
|
/**
|
@@ -6421,7 +6425,7 @@ declare module "factorio:runtime" {
|
|
6421
6425
|
}
|
6422
6426
|
/**
|
6423
6427
|
* @see UpgradeMapperSourceWrite
|
6424
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
6428
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/UpgradeMapperSource.html Online documentation}
|
6425
6429
|
*/
|
6426
6430
|
export interface UpgradeMapperSource {
|
6427
6431
|
readonly type: "item" | "entity"
|
@@ -6440,7 +6444,7 @@ declare module "factorio:runtime" {
|
|
6440
6444
|
}
|
6441
6445
|
/**
|
6442
6446
|
* Write form of {@link UpgradeMapperSource}, where some properties allow additional values as input compared to the read form.
|
6443
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
6447
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/UpgradeMapperSource.html Online documentation}
|
6444
6448
|
*/
|
6445
6449
|
export interface UpgradeMapperSourceWrite {
|
6446
6450
|
readonly type: "item" | "entity"
|
@@ -6477,7 +6481,7 @@ declare module "factorio:runtime" {
|
|
6477
6481
|
}
|
6478
6482
|
/**
|
6479
6483
|
* A single filter used by an infinity-filters instance.
|
6480
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
6484
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/InfinityInventoryFilter.html Online documentation}
|
6481
6485
|
*/
|
6482
6486
|
export interface InfinityInventoryFilter {
|
6483
6487
|
/**
|
@@ -6499,7 +6503,7 @@ declare module "factorio:runtime" {
|
|
6499
6503
|
}
|
6500
6504
|
/**
|
6501
6505
|
* A single filter used by an infinity-pipe type entity.
|
6502
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
6506
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/InfinityPipeFilter.html Online documentation}
|
6503
6507
|
*/
|
6504
6508
|
export interface InfinityPipeFilter {
|
6505
6509
|
/**
|
@@ -6553,7 +6557,7 @@ declare module "factorio:runtime" {
|
|
6553
6557
|
}
|
6554
6558
|
/**
|
6555
6559
|
* The settings used by a heat-interface type entity.
|
6556
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
6560
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/HeatSetting.html Online documentation}
|
6557
6561
|
*/
|
6558
6562
|
export interface HeatSetting {
|
6559
6563
|
/**
|
@@ -6571,7 +6575,7 @@ declare module "factorio:runtime" {
|
|
6571
6575
|
}
|
6572
6576
|
/**
|
6573
6577
|
* @see ArithmeticCombinatorParametersWrite
|
6574
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
6578
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/ArithmeticCombinatorParameters.html Online documentation}
|
6575
6579
|
*/
|
6576
6580
|
export interface ArithmeticCombinatorParameters {
|
6577
6581
|
/**
|
@@ -6601,7 +6605,7 @@ declare module "factorio:runtime" {
|
|
6601
6605
|
}
|
6602
6606
|
/**
|
6603
6607
|
* Write form of {@link ArithmeticCombinatorParameters}, where some properties allow additional values as input compared to the read form.
|
6604
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
6608
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/ArithmeticCombinatorParameters.html Online documentation}
|
6605
6609
|
*/
|
6606
6610
|
export interface ArithmeticCombinatorParametersWrite {
|
6607
6611
|
/**
|
@@ -6631,7 +6635,7 @@ declare module "factorio:runtime" {
|
|
6631
6635
|
}
|
6632
6636
|
/**
|
6633
6637
|
* @see SelectorCombinatorParametersWrite
|
6634
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
6638
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/SelectorCombinatorParameters.html Online documentation}
|
6635
6639
|
*/
|
6636
6640
|
export interface SelectorCombinatorParameters {
|
6637
6641
|
/**
|
@@ -6657,7 +6661,7 @@ declare module "factorio:runtime" {
|
|
6657
6661
|
}
|
6658
6662
|
/**
|
6659
6663
|
* Write form of {@link SelectorCombinatorParameters}, where some properties allow additional values as input compared to the read form.
|
6660
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
6664
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/SelectorCombinatorParameters.html Online documentation}
|
6661
6665
|
*/
|
6662
6666
|
export interface SelectorCombinatorParametersWrite {
|
6663
6667
|
/**
|
@@ -6699,7 +6703,7 @@ declare module "factorio:runtime" {
|
|
6699
6703
|
}
|
6700
6704
|
/**
|
6701
6705
|
* @see CircuitConditionWrite
|
6702
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
6706
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/CircuitCondition.html Online documentation}
|
6703
6707
|
*/
|
6704
6708
|
export interface CircuitCondition {
|
6705
6709
|
/**
|
@@ -6721,7 +6725,7 @@ declare module "factorio:runtime" {
|
|
6721
6725
|
}
|
6722
6726
|
/**
|
6723
6727
|
* Write form of {@link CircuitCondition}, where some properties allow additional values as input compared to the read form.
|
6724
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
6728
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/CircuitCondition.html Online documentation}
|
6725
6729
|
*/
|
6726
6730
|
export interface CircuitConditionWrite {
|
6727
6731
|
/**
|
@@ -6743,7 +6747,7 @@ declare module "factorio:runtime" {
|
|
6743
6747
|
}
|
6744
6748
|
/**
|
6745
6749
|
* @see CircuitConditionDefinitionWrite
|
6746
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
6750
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/CircuitConditionDefinition.html Online documentation}
|
6747
6751
|
*/
|
6748
6752
|
export interface CircuitConditionDefinition {
|
6749
6753
|
/**
|
@@ -6757,7 +6761,7 @@ declare module "factorio:runtime" {
|
|
6757
6761
|
}
|
6758
6762
|
/**
|
6759
6763
|
* Write form of {@link CircuitConditionDefinition}, where some properties allow additional values as input compared to the read form.
|
6760
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
6764
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/CircuitConditionDefinition.html Online documentation}
|
6761
6765
|
*/
|
6762
6766
|
export interface CircuitConditionDefinitionWrite {
|
6763
6767
|
/**
|
@@ -7032,7 +7036,7 @@ declare module "factorio:runtime" {
|
|
7032
7036
|
* - {@link defines.command.stop}: {@link StopCommand}
|
7033
7037
|
* - {@link defines.command.flee}: {@link FleeCommand}
|
7034
7038
|
* - {@link defines.command.build_base}: {@link BuildBaseCommand}
|
7035
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
7039
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/Command.html Online documentation}
|
7036
7040
|
*/
|
7037
7041
|
export type Command =
|
7038
7042
|
| AttackCommand
|
@@ -7046,7 +7050,7 @@ declare module "factorio:runtime" {
|
|
7046
7050
|
| BuildBaseCommand
|
7047
7051
|
/**
|
7048
7052
|
* Write form of {@link Command}, where some properties allow additional values as input compared to the read form.
|
7049
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
7053
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/Command.html Online documentation}
|
7050
7054
|
*/
|
7051
7055
|
export type CommandWrite =
|
7052
7056
|
| AttackCommand
|
@@ -7131,7 +7135,7 @@ declare module "factorio:runtime" {
|
|
7131
7135
|
* These are both full stacks of iron plates (for iron-plate, a full stack is 100 plates)
|
7132
7136
|
* "iron-plate"
|
7133
7137
|
* {name="iron-plate", count=100}
|
7134
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
7138
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/SimpleItemStack.html Online documentation}
|
7135
7139
|
*/
|
7136
7140
|
export type SimpleItemStack = string | ItemStackDefinition
|
7137
7141
|
/**
|
@@ -7141,7 +7145,7 @@ declare module "factorio:runtime" {
|
|
7141
7145
|
* - 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.
|
7142
7146
|
* - `string`: It will be the surface name. E.g. `"nauvis"`.
|
7143
7147
|
* - {@link LuaSurface}: A reference to {@link LuaSurface} may be passed directly.
|
7144
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
7148
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/SurfaceIdentification.html Online documentation}
|
7145
7149
|
*/
|
7146
7150
|
export type SurfaceIdentification = SurfaceIndex | string | LuaSurface
|
7147
7151
|
/**
|
@@ -7151,7 +7155,7 @@ declare module "factorio:runtime" {
|
|
7151
7155
|
* - PlayerIndex: The player index.
|
7152
7156
|
* - `string`: The player name.
|
7153
7157
|
* - {@link LuaPlayer}: A reference to {@link LuaPlayer} may be passed directly.
|
7154
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
7158
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/PlayerIdentification.html Online documentation}
|
7155
7159
|
*/
|
7156
7160
|
export type PlayerIdentification = PlayerIndex | string | LuaPlayer
|
7157
7161
|
/**
|
@@ -7160,7 +7164,7 @@ declare module "factorio:runtime" {
|
|
7160
7164
|
* ## Union members
|
7161
7165
|
* - {@link SimpleItemStack}
|
7162
7166
|
* - {@link LuaItemStack}
|
7163
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
7167
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/ItemStackIdentification.html Online documentation}
|
7164
7168
|
*/
|
7165
7169
|
export type ItemStackIdentification = SimpleItemStack | LuaItemStack
|
7166
7170
|
/**
|
@@ -7170,7 +7174,7 @@ declare module "factorio:runtime" {
|
|
7170
7174
|
* - `"entity"`: Fires at an entity.
|
7171
7175
|
* - `"position"`: Fires directly at a position.
|
7172
7176
|
* - `"direction"`: Fires in a direction.
|
7173
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
7177
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/TargetType.html Online documentation}
|
7174
7178
|
*/
|
7175
7179
|
export type TargetType = "entity" | "position" | "direction"
|
7176
7180
|
export interface BeamTarget {
|
@@ -7207,8 +7211,8 @@ declare module "factorio:runtime" {
|
|
7207
7211
|
*
|
7208
7212
|
* The validity of a SoundPath can be verified at runtime using {@link LuaHelpers#is_valid_sound_path LuaHelpers::is_valid_sound_path}.
|
7209
7213
|
*
|
7210
|
-
* {@link https://lua-api.factorio.com/2.0.
|
7211
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
7214
|
+
* {@link https://lua-api.factorio.com/2.0.28/concepts/SoundPath.html > The utility and ambient types each contain general use sound prototypes defined by the game itself.}
|
7215
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/SoundPath.html Online documentation}
|
7212
7216
|
*/
|
7213
7217
|
export type SoundPath = (string & { _?: never }) | `${SoundCategory}/${string}`
|
7214
7218
|
export interface CircularParticleCreationSpecification {
|
@@ -7340,7 +7344,7 @@ declare module "factorio:runtime" {
|
|
7340
7344
|
* Other attributes may be specified depending on `type`:
|
7341
7345
|
* - `"projectile"`: {@link ProjectileAttackParameters}
|
7342
7346
|
* - `"stream"`: {@link StreamAttackParameters}
|
7343
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
7347
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/AttackParameters.html Online documentation}
|
7344
7348
|
*/
|
7345
7349
|
export type AttackParameters = ProjectileAttackParameters | StreamAttackParameters | OtherAttackParameters
|
7346
7350
|
export interface GunShift4Way {
|
@@ -7406,7 +7410,7 @@ declare module "factorio:runtime" {
|
|
7406
7410
|
* - `"use-on-self"`: {@link UseOnSelfCapsuleAction}
|
7407
7411
|
* - `"artillery-remote"`: {@link ArtilleryRemoteCapsuleAction}
|
7408
7412
|
* - `"destroy-cliffs"`: {@link DestroyCliffsCapsuleAction}
|
7409
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
7413
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/CapsuleAction.html Online documentation}
|
7410
7414
|
*/
|
7411
7415
|
export type CapsuleAction =
|
7412
7416
|
| ThrowCapsuleAction
|
@@ -7446,12 +7450,12 @@ declare module "factorio:runtime" {
|
|
7446
7450
|
}
|
7447
7451
|
/**
|
7448
7452
|
* Any basic type (string, number, boolean) or table.
|
7449
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
7453
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/AnyBasic.html Online documentation}
|
7450
7454
|
*/
|
7451
7455
|
export type AnyBasic = string | boolean | number | table
|
7452
7456
|
/**
|
7453
7457
|
* Any basic type (string, number, boolean), table, or LuaObject.
|
7454
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
7458
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/Any.html Online documentation}
|
7455
7459
|
*/
|
7456
7460
|
export type Any = string | boolean | number | table | LuaObject
|
7457
7461
|
export interface ProgrammableSpeakerParameters {
|
@@ -7461,7 +7465,7 @@ declare module "factorio:runtime" {
|
|
7461
7465
|
}
|
7462
7466
|
/**
|
7463
7467
|
* @see ProgrammableSpeakerAlertParametersWrite
|
7464
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
7468
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/ProgrammableSpeakerAlertParameters.html Online documentation}
|
7465
7469
|
*/
|
7466
7470
|
export interface ProgrammableSpeakerAlertParameters {
|
7467
7471
|
readonly show_alert: boolean
|
@@ -7471,7 +7475,7 @@ declare module "factorio:runtime" {
|
|
7471
7475
|
}
|
7472
7476
|
/**
|
7473
7477
|
* Write form of {@link ProgrammableSpeakerAlertParameters}, where some properties allow additional values as input compared to the read form.
|
7474
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
7478
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/ProgrammableSpeakerAlertParameters.html Online documentation}
|
7475
7479
|
*/
|
7476
7480
|
export interface ProgrammableSpeakerAlertParametersWrite {
|
7477
7481
|
readonly show_alert: boolean
|
@@ -7503,7 +7507,7 @@ declare module "factorio:runtime" {
|
|
7503
7507
|
* - `"top-right"`
|
7504
7508
|
* - `"right"`: The same as `"middle-right"`
|
7505
7509
|
* - `"bottom-right"`
|
7506
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
7510
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/Alignment.html Online documentation}
|
7507
7511
|
*/
|
7508
7512
|
export type Alignment =
|
7509
7513
|
| "top-left"
|
@@ -7536,8 +7540,8 @@ declare module "factorio:runtime" {
|
|
7536
7540
|
_customEventIdBrand: any
|
7537
7541
|
}
|
7538
7542
|
/**
|
7539
|
-
* 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.
|
7540
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
7543
|
+
* 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.28/events.html the list of Factorio events} for more information on these.
|
7544
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/EventData.html Online documentation}
|
7541
7545
|
*/
|
7542
7546
|
export interface EventData {
|
7543
7547
|
/**
|
@@ -7646,7 +7650,7 @@ declare module "factorio:runtime" {
|
|
7646
7650
|
* - `"button-7"`
|
7647
7651
|
* - `"button-8"`
|
7648
7652
|
* - `"button-9"`
|
7649
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
7653
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/MouseButtonFlags.html Online documentation}
|
7650
7654
|
*/
|
7651
7655
|
export interface MouseButtonFlags {
|
7652
7656
|
readonly left?: true
|
@@ -7669,7 +7673,7 @@ declare module "factorio:runtime" {
|
|
7669
7673
|
* - `"not-friend"`: Forces which are not friends pass.
|
7670
7674
|
* - `"same"`: The same force pass.
|
7671
7675
|
* - `"not-same"`: The non-same forces pass.
|
7672
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
7676
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/ForceCondition.html Online documentation}
|
7673
7677
|
*/
|
7674
7678
|
export type ForceCondition = "all" | "enemy" | "ally" | "friend" | "not-friend" | "same" | "not-same"
|
7675
7679
|
export interface ItemStackLocation {
|
@@ -7707,7 +7711,7 @@ declare module "factorio:runtime" {
|
|
7707
7711
|
* - `"tabbed-pane"`: A collection of `tab`s and their contents. Relevant event: {@link OnGuiSelectedTabChangedEvent on_gui_selected_tab_changed}
|
7708
7712
|
* - `"tab"`: A tab for use in a `tabbed-pane`.
|
7709
7713
|
* - `"switch"`: A switch with three possible states. Can have labels attached to either side. Relevant event: {@link OnGuiSwitchStateChangedEvent on_gui_switch_state_changed}
|
7710
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
7714
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/GuiElementType.html Online documentation}
|
7711
7715
|
*/
|
7712
7716
|
export type GuiElementType =
|
7713
7717
|
| "button"
|
@@ -7747,7 +7751,7 @@ declare module "factorio:runtime" {
|
|
7747
7751
|
* - `"position"`
|
7748
7752
|
* - `"crafting_queue"`
|
7749
7753
|
* - `"item_stack"`: Will point to a given item stack in an inventory.
|
7750
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
7754
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/GuiArrowType.html Online documentation}
|
7751
7755
|
*/
|
7752
7756
|
export type GuiArrowType =
|
7753
7757
|
| "nowhere"
|
@@ -7764,7 +7768,7 @@ declare module "factorio:runtime" {
|
|
7764
7768
|
* ## Union members
|
7765
7769
|
* - `"horizontal"`
|
7766
7770
|
* - `"vertical"`
|
7767
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
7771
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/GuiDirection.html Online documentation}
|
7768
7772
|
*/
|
7769
7773
|
export type GuiDirection = "horizontal" | "vertical"
|
7770
7774
|
/**
|
@@ -7776,7 +7780,7 @@ declare module "factorio:runtime" {
|
|
7776
7780
|
* - `"always"`
|
7777
7781
|
* - `"auto"`
|
7778
7782
|
* - `"auto-and-reserve-space"`
|
7779
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
7783
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/ScrollPolicy.html Online documentation}
|
7780
7784
|
*/
|
7781
7785
|
export type ScrollPolicy = "never" | "dont-show-but-allow-scrolling" | "always" | "auto" | "auto-and-reserve-space"
|
7782
7786
|
export interface RailLocation {
|
@@ -7793,71 +7797,71 @@ declare module "factorio:runtime" {
|
|
7793
7797
|
}
|
7794
7798
|
/**
|
7795
7799
|
* 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.
|
7796
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
7800
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/float.html Online documentation}
|
7797
7801
|
*/
|
7798
7802
|
export type float = number
|
7799
7803
|
/**
|
7800
7804
|
* A double-precision floating-point number. This is the same data type as all Lua numbers use.
|
7801
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
7805
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/double.html Online documentation}
|
7802
7806
|
*/
|
7803
7807
|
export type double = number
|
7804
7808
|
/**
|
7805
7809
|
* 32-bit signed integer. Possible values are `-2 147 483 648` to `2 147 483 647`.
|
7806
7810
|
*
|
7807
7811
|
* Since Lua 5.2 only uses doubles, any API that asks for `int` will floor the given double.
|
7808
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
7812
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/int.html Online documentation}
|
7809
7813
|
*/
|
7810
7814
|
export type int = number
|
7811
7815
|
/**
|
7812
7816
|
* 8-bit signed integer. Possible values are `-128` to `127`.
|
7813
7817
|
*
|
7814
7818
|
* Since Lua 5.2 only uses doubles, any API that asks for `int8` will floor the given double.
|
7815
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
7819
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/int8.html Online documentation}
|
7816
7820
|
*/
|
7817
7821
|
export type int8 = number
|
7818
7822
|
/**
|
7819
7823
|
* 32-bit unsigned integer. Possible values are `0` to `4 294 967 295`.
|
7820
7824
|
*
|
7821
7825
|
* Since Lua 5.2 only uses doubles, any API that asks for `uint` will floor the given double.
|
7822
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
7826
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/uint.html Online documentation}
|
7823
7827
|
*/
|
7824
7828
|
export type uint = number
|
7825
7829
|
/**
|
7826
7830
|
* 8-bit unsigned integer. Possible values are `0` to `255`.
|
7827
7831
|
*
|
7828
7832
|
* Since Lua 5.2 only uses doubles, any API that asks for `uint8` will floor the given double.
|
7829
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
7833
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/uint8.html Online documentation}
|
7830
7834
|
*/
|
7831
7835
|
export type uint8 = number
|
7832
7836
|
/**
|
7833
7837
|
* 16-bit unsigned integer. Possible values are `0` to `65 535`.
|
7834
7838
|
*
|
7835
7839
|
* Since Lua 5.2 only uses doubles, any API that asks for `uint16` will floor the given double.
|
7836
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
7840
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/uint16.html Online documentation}
|
7837
7841
|
*/
|
7838
7842
|
export type uint16 = number
|
7839
7843
|
/**
|
7840
7844
|
* 64-bit unsigned integer. Possible values are `0` to `18 446 744 073 709 551 615`.
|
7841
7845
|
*
|
7842
7846
|
* Since Lua 5.2 only uses doubles, any API that asks for `uint64` will floor the given double.
|
7843
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
7847
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/uint64.html Online documentation}
|
7844
7848
|
*/
|
7845
7849
|
export type uint64 = number
|
7846
7850
|
/**
|
7847
7851
|
* 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.
|
7848
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
7852
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/nil.html Online documentation}
|
7849
7853
|
*/
|
7850
7854
|
export type nil = undefined
|
7851
7855
|
/**
|
7852
7856
|
* Tables are enclosed in curly brackets, like this `{}`.
|
7853
7857
|
*
|
7854
7858
|
* 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.
|
7855
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
7859
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/table.html Online documentation}
|
7856
7860
|
*/
|
7857
7861
|
export type table = object
|
7858
7862
|
/**
|
7859
|
-
* Any LuaObject listed on the {@linkplain https://lua-api.factorio.com/2.0.
|
7860
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
7863
|
+
* Any LuaObject listed on the {@linkplain https://lua-api.factorio.com/2.0.28/classes.html Classes} page.
|
7864
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/LuaObject.html Online documentation}
|
7861
7865
|
*/
|
7862
7866
|
export interface LuaObject {
|
7863
7867
|
readonly object_name: string
|
@@ -7916,7 +7920,7 @@ declare module "factorio:runtime" {
|
|
7916
7920
|
* - `"type"`: {@link TypeModSettingPrototypeFilter}
|
7917
7921
|
* - `"mod"`: {@link ModModSettingPrototypeFilter}
|
7918
7922
|
* - `"setting-type"`: {@link SettingTypeModSettingPrototypeFilter}
|
7919
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
7923
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/ModSettingPrototypeFilter.html Online documentation}
|
7920
7924
|
*/
|
7921
7925
|
export type ModSettingPrototypeFilter =
|
7922
7926
|
| TypeModSettingPrototypeFilter
|
@@ -8061,7 +8065,7 @@ declare module "factorio:runtime" {
|
|
8061
8065
|
* - `"vehicle-friction-modifier"`: {@link VehicleFrictionModifierTilePrototypeFilter}
|
8062
8066
|
* - `"decorative-removal-probability"`: {@link DecorativeRemovalProbabilityTilePrototypeFilter}
|
8063
8067
|
* - `"absorptions-per-second"`: {@link AbsorptionsPerSecondTilePrototypeFilter}
|
8064
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
8068
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/TilePrototypeFilter.html Online documentation}
|
8065
8069
|
*/
|
8066
8070
|
export type TilePrototypeFilter =
|
8067
8071
|
| CollisionMaskTilePrototypeFilter
|
@@ -8072,7 +8076,7 @@ declare module "factorio:runtime" {
|
|
8072
8076
|
| OtherTilePrototypeFilter
|
8073
8077
|
/**
|
8074
8078
|
* Write form of {@link TilePrototypeFilter}, where some properties allow additional values as input compared to the read form.
|
8075
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
8079
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/TilePrototypeFilter.html Online documentation}
|
8076
8080
|
*/
|
8077
8081
|
export type TilePrototypeFilterWrite =
|
8078
8082
|
| CollisionMaskTilePrototypeFilter
|
@@ -8123,7 +8127,7 @@ declare module "factorio:runtime" {
|
|
8123
8127
|
*
|
8124
8128
|
* Other attributes may be specified depending on `filter`:
|
8125
8129
|
* - `"collision-mask"`: {@link CollisionMaskDecorativePrototypeFilter}
|
8126
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
8130
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/DecorativePrototypeFilter.html Online documentation}
|
8127
8131
|
*/
|
8128
8132
|
export type DecorativePrototypeFilter = CollisionMaskDecorativePrototypeFilter | OtherDecorativePrototypeFilter
|
8129
8133
|
/**
|
@@ -8377,7 +8381,7 @@ declare module "factorio:runtime" {
|
|
8377
8381
|
* - `"emissions-multiplier"`: {@link EmissionsMultiplierRecipePrototypeFilter}
|
8378
8382
|
* - `"request-paste-multiplier"`: {@link RequestPasteMultiplierRecipePrototypeFilter}
|
8379
8383
|
* - `"overload-multiplier"`: {@link OverloadMultiplierRecipePrototypeFilter}
|
8380
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
8384
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/RecipePrototypeFilter.html Online documentation}
|
8381
8385
|
*/
|
8382
8386
|
export type RecipePrototypeFilter =
|
8383
8387
|
| HasIngredientItemRecipePrototypeFilter
|
@@ -8393,7 +8397,7 @@ declare module "factorio:runtime" {
|
|
8393
8397
|
| OtherRecipePrototypeFilter
|
8394
8398
|
/**
|
8395
8399
|
* Write form of {@link RecipePrototypeFilter}, where some properties allow additional values as input compared to the read form.
|
8396
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
8400
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/RecipePrototypeFilter.html Online documentation}
|
8397
8401
|
*/
|
8398
8402
|
export type RecipePrototypeFilterWrite =
|
8399
8403
|
| HasIngredientItemRecipePrototypeFilterWrite
|
@@ -8445,7 +8449,7 @@ declare module "factorio:runtime" {
|
|
8445
8449
|
*
|
8446
8450
|
* Other attributes may be specified depending on `filter`:
|
8447
8451
|
* - `"type"`: {@link TypeAchievementPrototypeFilter}
|
8448
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
8452
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/AchievementPrototypeFilter.html Online documentation}
|
8449
8453
|
*/
|
8450
8454
|
export type AchievementPrototypeFilter = TypeAchievementPrototypeFilter | OtherAchievementPrototypeFilter
|
8451
8455
|
/**
|
@@ -8568,7 +8572,7 @@ declare module "factorio:runtime" {
|
|
8568
8572
|
* - `"level"`: {@link LevelTechnologyPrototypeFilter}
|
8569
8573
|
* - `"max-level"`: {@link MaxLevelTechnologyPrototypeFilter}
|
8570
8574
|
* - `"time"`: {@link TimeTechnologyPrototypeFilter}
|
8571
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
8575
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/TechnologyPrototypeFilter.html Online documentation}
|
8572
8576
|
*/
|
8573
8577
|
export type TechnologyPrototypeFilter =
|
8574
8578
|
| ResearchUnitIngredientTechnologyPrototypeFilter
|
@@ -8579,7 +8583,7 @@ declare module "factorio:runtime" {
|
|
8579
8583
|
| OtherTechnologyPrototypeFilter
|
8580
8584
|
/**
|
8581
8585
|
* Write form of {@link TechnologyPrototypeFilter}, where some properties allow additional values as input compared to the read form.
|
8582
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
8586
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/TechnologyPrototypeFilter.html Online documentation}
|
8583
8587
|
*/
|
8584
8588
|
export type TechnologyPrototypeFilterWrite =
|
8585
8589
|
| ResearchUnitIngredientTechnologyPrototypeFilter
|
@@ -8896,7 +8900,7 @@ declare module "factorio:runtime" {
|
|
8896
8900
|
* - `"fuel-acceleration-multiplier"`: {@link FuelAccelerationMultiplierItemPrototypeFilter}
|
8897
8901
|
* - `"fuel-top-speed-multiplier"`: {@link FuelTopSpeedMultiplierItemPrototypeFilter}
|
8898
8902
|
* - `"fuel-emissions-multiplier"`: {@link FuelEmissionsMultiplierItemPrototypeFilter}
|
8899
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
8903
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/ItemPrototypeFilter.html Online documentation}
|
8900
8904
|
*/
|
8901
8905
|
export type ItemPrototypeFilter =
|
8902
8906
|
| PlaceResultItemPrototypeFilter
|
@@ -8916,7 +8920,7 @@ declare module "factorio:runtime" {
|
|
8916
8920
|
| OtherItemPrototypeFilter
|
8917
8921
|
/**
|
8918
8922
|
* Write form of {@link ItemPrototypeFilter}, where some properties allow additional values as input compared to the read form.
|
8919
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
8923
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/ItemPrototypeFilter.html Online documentation}
|
8920
8924
|
*/
|
8921
8925
|
export type ItemPrototypeFilterWrite =
|
8922
8926
|
| PlaceResultItemPrototypeFilterWrite
|
@@ -8972,7 +8976,7 @@ declare module "factorio:runtime" {
|
|
8972
8976
|
*
|
8973
8977
|
* Other attributes may be specified depending on `filter`:
|
8974
8978
|
* - `"type"`: {@link TypeEquipmentPrototypeFilter}
|
8975
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
8979
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/EquipmentPrototypeFilter.html Online documentation}
|
8976
8980
|
*/
|
8977
8981
|
export type EquipmentPrototypeFilter = TypeEquipmentPrototypeFilter | OtherEquipmentPrototypeFilter
|
8978
8982
|
/**
|
@@ -9203,7 +9207,7 @@ declare module "factorio:runtime" {
|
|
9203
9207
|
* - `"selection-priority"`: {@link SelectionPriorityEntityPrototypeFilter}
|
9204
9208
|
* - `"emissions-per-second"`: {@link EmissionsPerSecondEntityPrototypeFilter}
|
9205
9209
|
* - `"crafting-category"`: {@link CraftingCategoryEntityPrototypeFilter}
|
9206
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
9210
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/EntityPrototypeFilter.html Online documentation}
|
9207
9211
|
*/
|
9208
9212
|
export type EntityPrototypeFilter =
|
9209
9213
|
| NameEntityPrototypeFilter
|
@@ -9217,7 +9221,7 @@ declare module "factorio:runtime" {
|
|
9217
9221
|
| OtherEntityPrototypeFilter
|
9218
9222
|
/**
|
9219
9223
|
* Write form of {@link EntityPrototypeFilter}, where some properties allow additional values as input compared to the read form.
|
9220
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
9224
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/EntityPrototypeFilter.html Online documentation}
|
9221
9225
|
*/
|
9222
9226
|
export type EntityPrototypeFilterWrite =
|
9223
9227
|
| NameEntityPrototypeFilter
|
@@ -9287,7 +9291,7 @@ declare module "factorio:runtime" {
|
|
9287
9291
|
* Other attributes may be specified depending on `filter`:
|
9288
9292
|
* - `"type"`: {@link TypeSpaceLocationPrototypeFilter}
|
9289
9293
|
* - `"solar-power-in-space"`: {@link SolarPowerInSpaceSpaceLocationPrototypeFilter}
|
9290
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
9294
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/SpaceLocationPrototypeFilter.html Online documentation}
|
9291
9295
|
*/
|
9292
9296
|
export type SpaceLocationPrototypeFilter =
|
9293
9297
|
| TypeSpaceLocationPrototypeFilter
|
@@ -9295,7 +9299,7 @@ declare module "factorio:runtime" {
|
|
9295
9299
|
| OtherSpaceLocationPrototypeFilter
|
9296
9300
|
/**
|
9297
9301
|
* Write form of {@link SpaceLocationPrototypeFilter}, where some properties allow additional values as input compared to the read form.
|
9298
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
9302
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/SpaceLocationPrototypeFilter.html Online documentation}
|
9299
9303
|
*/
|
9300
9304
|
export type SpaceLocationPrototypeFilterWrite =
|
9301
9305
|
| TypeSpaceLocationPrototypeFilter
|
@@ -9483,7 +9487,7 @@ declare module "factorio:runtime" {
|
|
9483
9487
|
* - `"fuel-value"`: {@link FuelValueFluidPrototypeFilter}
|
9484
9488
|
* - `"emissions-multiplier"`: {@link EmissionsMultiplierFluidPrototypeFilter}
|
9485
9489
|
* - `"gas-temperature"`: {@link GasTemperatureFluidPrototypeFilter}
|
9486
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
9490
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/FluidPrototypeFilter.html Online documentation}
|
9487
9491
|
*/
|
9488
9492
|
export type FluidPrototypeFilter =
|
9489
9493
|
| NameFluidPrototypeFilter
|
@@ -9497,7 +9501,7 @@ declare module "factorio:runtime" {
|
|
9497
9501
|
| OtherFluidPrototypeFilter
|
9498
9502
|
/**
|
9499
9503
|
* Write form of {@link FluidPrototypeFilter}, where some properties allow additional values as input compared to the read form.
|
9500
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
9504
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/FluidPrototypeFilter.html Online documentation}
|
9501
9505
|
*/
|
9502
9506
|
export type FluidPrototypeFilterWrite =
|
9503
9507
|
| NameFluidPrototypeFilter
|
@@ -9606,7 +9610,7 @@ declare module "factorio:runtime" {
|
|
9606
9610
|
* - `"name"`: {@link NamePrePlatformMinedEntityEventFilter}
|
9607
9611
|
* - `"ghost_type"`: {@link GhostTypePrePlatformMinedEntityEventFilter}
|
9608
9612
|
* - `"ghost_name"`: {@link GhostNamePrePlatformMinedEntityEventFilter}
|
9609
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
9613
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/LuaPrePlatformMinedEntityEventFilter.html Online documentation}
|
9610
9614
|
*/
|
9611
9615
|
export type LuaPrePlatformMinedEntityEventFilter =
|
9612
9616
|
| TypePrePlatformMinedEntityEventFilter
|
@@ -9711,7 +9715,7 @@ declare module "factorio:runtime" {
|
|
9711
9715
|
* - `"name"`: {@link NameRobotMinedEntityEventFilter}
|
9712
9716
|
* - `"ghost_type"`: {@link GhostTypeRobotMinedEntityEventFilter}
|
9713
9717
|
* - `"ghost_name"`: {@link GhostNameRobotMinedEntityEventFilter}
|
9714
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
9718
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/LuaRobotMinedEntityEventFilter.html Online documentation}
|
9715
9719
|
*/
|
9716
9720
|
export type LuaRobotMinedEntityEventFilter =
|
9717
9721
|
| TypeRobotMinedEntityEventFilter
|
@@ -9816,7 +9820,7 @@ declare module "factorio:runtime" {
|
|
9816
9820
|
* - `"name"`: {@link NameEntityMarkedForUpgradeEventFilter}
|
9817
9821
|
* - `"ghost_type"`: {@link GhostTypeEntityMarkedForUpgradeEventFilter}
|
9818
9822
|
* - `"ghost_name"`: {@link GhostNameEntityMarkedForUpgradeEventFilter}
|
9819
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
9823
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/LuaEntityMarkedForUpgradeEventFilter.html Online documentation}
|
9820
9824
|
*/
|
9821
9825
|
export type LuaEntityMarkedForUpgradeEventFilter =
|
9822
9826
|
| TypeEntityMarkedForUpgradeEventFilter
|
@@ -9921,7 +9925,7 @@ declare module "factorio:runtime" {
|
|
9921
9925
|
* - `"name"`: {@link NamePreGhostUpgradedEventFilter}
|
9922
9926
|
* - `"ghost_type"`: {@link GhostTypePreGhostUpgradedEventFilter}
|
9923
9927
|
* - `"ghost_name"`: {@link GhostNamePreGhostUpgradedEventFilter}
|
9924
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
9928
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/LuaPreGhostUpgradedEventFilter.html Online documentation}
|
9925
9929
|
*/
|
9926
9930
|
export type LuaPreGhostUpgradedEventFilter =
|
9927
9931
|
| TypePreGhostUpgradedEventFilter
|
@@ -10026,7 +10030,7 @@ declare module "factorio:runtime" {
|
|
10026
10030
|
* - `"name"`: {@link NamePlatformMinedEntityEventFilter}
|
10027
10031
|
* - `"ghost_type"`: {@link GhostTypePlatformMinedEntityEventFilter}
|
10028
10032
|
* - `"ghost_name"`: {@link GhostNamePlatformMinedEntityEventFilter}
|
10029
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
10033
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/LuaPlatformMinedEntityEventFilter.html Online documentation}
|
10030
10034
|
*/
|
10031
10035
|
export type LuaPlatformMinedEntityEventFilter =
|
10032
10036
|
| TypePlatformMinedEntityEventFilter
|
@@ -10131,7 +10135,7 @@ declare module "factorio:runtime" {
|
|
10131
10135
|
* - `"name"`: {@link NameScriptRaisedDestroyEventFilter}
|
10132
10136
|
* - `"ghost_type"`: {@link GhostTypeScriptRaisedDestroyEventFilter}
|
10133
10137
|
* - `"ghost_name"`: {@link GhostNameScriptRaisedDestroyEventFilter}
|
10134
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
10138
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/LuaScriptRaisedDestroyEventFilter.html Online documentation}
|
10135
10139
|
*/
|
10136
10140
|
export type LuaScriptRaisedDestroyEventFilter =
|
10137
10141
|
| TypeScriptRaisedDestroyEventFilter
|
@@ -10248,7 +10252,7 @@ declare module "factorio:runtime" {
|
|
10248
10252
|
* - `"ghost_type"`: {@link GhostTypePlayerBuiltEntityEventFilter}
|
10249
10253
|
* - `"ghost_name"`: {@link GhostNamePlayerBuiltEntityEventFilter}
|
10250
10254
|
* - `"force"`: {@link ForcePlayerBuiltEntityEventFilter}
|
10251
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
10255
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/LuaPlayerBuiltEntityEventFilter.html Online documentation}
|
10252
10256
|
*/
|
10253
10257
|
export type LuaPlayerBuiltEntityEventFilter =
|
10254
10258
|
| TypePlayerBuiltEntityEventFilter
|
@@ -10366,7 +10370,7 @@ declare module "factorio:runtime" {
|
|
10366
10370
|
* - `"ghost_type"`: {@link GhostTypePlatformBuiltEntityEventFilter}
|
10367
10371
|
* - `"ghost_name"`: {@link GhostNamePlatformBuiltEntityEventFilter}
|
10368
10372
|
* - `"force"`: {@link ForcePlatformBuiltEntityEventFilter}
|
10369
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
10373
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/LuaPlatformBuiltEntityEventFilter.html Online documentation}
|
10370
10374
|
*/
|
10371
10375
|
export type LuaPlatformBuiltEntityEventFilter =
|
10372
10376
|
| TypePlatformBuiltEntityEventFilter
|
@@ -10472,7 +10476,7 @@ declare module "factorio:runtime" {
|
|
10472
10476
|
* - `"name"`: {@link NamePreGhostDeconstructedEventFilter}
|
10473
10477
|
* - `"ghost_type"`: {@link GhostTypePreGhostDeconstructedEventFilter}
|
10474
10478
|
* - `"ghost_name"`: {@link GhostNamePreGhostDeconstructedEventFilter}
|
10475
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
10479
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/LuaPreGhostDeconstructedEventFilter.html Online documentation}
|
10476
10480
|
*/
|
10477
10481
|
export type LuaPreGhostDeconstructedEventFilter =
|
10478
10482
|
| TypePreGhostDeconstructedEventFilter
|
@@ -10577,7 +10581,7 @@ declare module "factorio:runtime" {
|
|
10577
10581
|
* - `"name"`: {@link NameEntityClonedEventFilter}
|
10578
10582
|
* - `"ghost_type"`: {@link GhostTypeEntityClonedEventFilter}
|
10579
10583
|
* - `"ghost_name"`: {@link GhostNameEntityClonedEventFilter}
|
10580
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
10584
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/LuaEntityClonedEventFilter.html Online documentation}
|
10581
10585
|
*/
|
10582
10586
|
export type LuaEntityClonedEventFilter =
|
10583
10587
|
| TypeEntityClonedEventFilter
|
@@ -10682,7 +10686,7 @@ declare module "factorio:runtime" {
|
|
10682
10686
|
* - `"name"`: {@link NameScriptRaisedTeleportedEventFilter}
|
10683
10687
|
* - `"ghost_type"`: {@link GhostTypeScriptRaisedTeleportedEventFilter}
|
10684
10688
|
* - `"ghost_name"`: {@link GhostNameScriptRaisedTeleportedEventFilter}
|
10685
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
10689
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/LuaScriptRaisedTeleportedEventFilter.html Online documentation}
|
10686
10690
|
*/
|
10687
10691
|
export type LuaScriptRaisedTeleportedEventFilter =
|
10688
10692
|
| TypeScriptRaisedTeleportedEventFilter
|
@@ -10789,7 +10793,7 @@ declare module "factorio:runtime" {
|
|
10789
10793
|
* - `"name"`: {@link NameEntityDeconstructionCancelledEventFilter}
|
10790
10794
|
* - `"ghost_type"`: {@link GhostTypeEntityDeconstructionCancelledEventFilter}
|
10791
10795
|
* - `"ghost_name"`: {@link GhostNameEntityDeconstructionCancelledEventFilter}
|
10792
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
10796
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/LuaEntityDeconstructionCancelledEventFilter.html Online documentation}
|
10793
10797
|
*/
|
10794
10798
|
export type LuaEntityDeconstructionCancelledEventFilter =
|
10795
10799
|
| TypeEntityDeconstructionCancelledEventFilter
|
@@ -10906,7 +10910,7 @@ declare module "factorio:runtime" {
|
|
10906
10910
|
* - `"ghost_type"`: {@link GhostTypeRobotBuiltEntityEventFilter}
|
10907
10911
|
* - `"ghost_name"`: {@link GhostNameRobotBuiltEntityEventFilter}
|
10908
10912
|
* - `"force"`: {@link ForceRobotBuiltEntityEventFilter}
|
10909
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
10913
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/LuaRobotBuiltEntityEventFilter.html Online documentation}
|
10910
10914
|
*/
|
10911
10915
|
export type LuaRobotBuiltEntityEventFilter =
|
10912
10916
|
| TypeRobotBuiltEntityEventFilter
|
@@ -11012,7 +11016,7 @@ declare module "factorio:runtime" {
|
|
11012
11016
|
* - `"name"`: {@link NameScriptRaisedBuiltEventFilter}
|
11013
11017
|
* - `"ghost_type"`: {@link GhostTypeScriptRaisedBuiltEventFilter}
|
11014
11018
|
* - `"ghost_name"`: {@link GhostNameScriptRaisedBuiltEventFilter}
|
11015
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
11019
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/LuaScriptRaisedBuiltEventFilter.html Online documentation}
|
11016
11020
|
*/
|
11017
11021
|
export type LuaScriptRaisedBuiltEventFilter =
|
11018
11022
|
| TypeScriptRaisedBuiltEventFilter
|
@@ -11117,7 +11121,7 @@ declare module "factorio:runtime" {
|
|
11117
11121
|
* - `"name"`: {@link NamePrePlayerMinedEntityEventFilter}
|
11118
11122
|
* - `"ghost_type"`: {@link GhostTypePrePlayerMinedEntityEventFilter}
|
11119
11123
|
* - `"ghost_name"`: {@link GhostNamePrePlayerMinedEntityEventFilter}
|
11120
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
11124
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/LuaPrePlayerMinedEntityEventFilter.html Online documentation}
|
11121
11125
|
*/
|
11122
11126
|
export type LuaPrePlayerMinedEntityEventFilter =
|
11123
11127
|
| TypePrePlayerMinedEntityEventFilter
|
@@ -11222,7 +11226,7 @@ declare module "factorio:runtime" {
|
|
11222
11226
|
* - `"name"`: {@link NamePlayerRepairedEntityEventFilter}
|
11223
11227
|
* - `"ghost_type"`: {@link GhostTypePlayerRepairedEntityEventFilter}
|
11224
11228
|
* - `"ghost_name"`: {@link GhostNamePlayerRepairedEntityEventFilter}
|
11225
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
11229
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/LuaPlayerRepairedEntityEventFilter.html Online documentation}
|
11226
11230
|
*/
|
11227
11231
|
export type LuaPlayerRepairedEntityEventFilter =
|
11228
11232
|
| TypePlayerRepairedEntityEventFilter
|
@@ -11327,7 +11331,7 @@ declare module "factorio:runtime" {
|
|
11327
11331
|
* - `"name"`: {@link NameUpgradeCancelledEventFilter}
|
11328
11332
|
* - `"ghost_type"`: {@link GhostTypeUpgradeCancelledEventFilter}
|
11329
11333
|
* - `"ghost_name"`: {@link GhostNameUpgradeCancelledEventFilter}
|
11330
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
11334
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/LuaUpgradeCancelledEventFilter.html Online documentation}
|
11331
11335
|
*/
|
11332
11336
|
export type LuaUpgradeCancelledEventFilter =
|
11333
11337
|
| TypeUpgradeCancelledEventFilter
|
@@ -11432,7 +11436,7 @@ declare module "factorio:runtime" {
|
|
11432
11436
|
* - `"name"`: {@link NameSectorScannedEventFilter}
|
11433
11437
|
* - `"ghost_type"`: {@link GhostTypeSectorScannedEventFilter}
|
11434
11438
|
* - `"ghost_name"`: {@link GhostNameSectorScannedEventFilter}
|
11435
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
11439
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/LuaSectorScannedEventFilter.html Online documentation}
|
11436
11440
|
*/
|
11437
11441
|
export type LuaSectorScannedEventFilter =
|
11438
11442
|
| TypeSectorScannedEventFilter
|
@@ -11478,7 +11482,7 @@ declare module "factorio:runtime" {
|
|
11478
11482
|
*
|
11479
11483
|
* Other attributes may be specified depending on `filter`:
|
11480
11484
|
* - `"type"`: {@link TypePostEntityDiedEventFilter}
|
11481
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
11485
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/LuaPostEntityDiedEventFilter.html Online documentation}
|
11482
11486
|
*/
|
11483
11487
|
export type LuaPostEntityDiedEventFilter = TypePostEntityDiedEventFilter | OtherPostEntityDiedEventFilter
|
11484
11488
|
/**
|
@@ -11580,7 +11584,7 @@ declare module "factorio:runtime" {
|
|
11580
11584
|
* - `"name"`: {@link NameEntityMarkedForDeconstructionEventFilter}
|
11581
11585
|
* - `"ghost_type"`: {@link GhostTypeEntityMarkedForDeconstructionEventFilter}
|
11582
11586
|
* - `"ghost_name"`: {@link GhostNameEntityMarkedForDeconstructionEventFilter}
|
11583
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
11587
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/LuaEntityMarkedForDeconstructionEventFilter.html Online documentation}
|
11584
11588
|
*/
|
11585
11589
|
export type LuaEntityMarkedForDeconstructionEventFilter =
|
11586
11590
|
| TypeEntityMarkedForDeconstructionEventFilter
|
@@ -11685,7 +11689,7 @@ declare module "factorio:runtime" {
|
|
11685
11689
|
* - `"name"`: {@link NamePlayerMinedEntityEventFilter}
|
11686
11690
|
* - `"ghost_type"`: {@link GhostTypePlayerMinedEntityEventFilter}
|
11687
11691
|
* - `"ghost_name"`: {@link GhostNamePlayerMinedEntityEventFilter}
|
11688
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
11692
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/LuaPlayerMinedEntityEventFilter.html Online documentation}
|
11689
11693
|
*/
|
11690
11694
|
export type LuaPlayerMinedEntityEventFilter =
|
11691
11695
|
| TypePlayerMinedEntityEventFilter
|
@@ -11865,7 +11869,7 @@ declare module "factorio:runtime" {
|
|
11865
11869
|
* - `"final-damage-amount"`: {@link FinalDamageAmountEntityDamagedEventFilter}
|
11866
11870
|
* - `"damage-type"`: {@link DamageTypeEntityDamagedEventFilter}
|
11867
11871
|
* - `"final-health"`: {@link FinalHealthEntityDamagedEventFilter}
|
11868
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
11872
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/LuaEntityDamagedEventFilter.html Online documentation}
|
11869
11873
|
*/
|
11870
11874
|
export type LuaEntityDamagedEventFilter =
|
11871
11875
|
| TypeEntityDamagedEventFilter
|
@@ -11879,7 +11883,7 @@ declare module "factorio:runtime" {
|
|
11879
11883
|
| OtherEntityDamagedEventFilter
|
11880
11884
|
/**
|
11881
11885
|
* Write form of {@link LuaEntityDamagedEventFilter}, where some properties allow additional values as input compared to the read form.
|
11882
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
11886
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/LuaEntityDamagedEventFilter.html Online documentation}
|
11883
11887
|
*/
|
11884
11888
|
export type LuaEntityDamagedEventFilterWrite =
|
11885
11889
|
| TypeEntityDamagedEventFilter
|
@@ -11988,7 +11992,7 @@ declare module "factorio:runtime" {
|
|
11988
11992
|
* - `"name"`: {@link NameScriptRaisedReviveEventFilter}
|
11989
11993
|
* - `"ghost_type"`: {@link GhostTypeScriptRaisedReviveEventFilter}
|
11990
11994
|
* - `"ghost_name"`: {@link GhostNameScriptRaisedReviveEventFilter}
|
11991
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
11995
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/LuaScriptRaisedReviveEventFilter.html Online documentation}
|
11992
11996
|
*/
|
11993
11997
|
export type LuaScriptRaisedReviveEventFilter =
|
11994
11998
|
| TypeScriptRaisedReviveEventFilter
|
@@ -12093,7 +12097,7 @@ declare module "factorio:runtime" {
|
|
12093
12097
|
* - `"name"`: {@link NameEntityDiedEventFilter}
|
12094
12098
|
* - `"ghost_type"`: {@link GhostTypeEntityDiedEventFilter}
|
12095
12099
|
* - `"ghost_name"`: {@link GhostNameEntityDiedEventFilter}
|
12096
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
12100
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/LuaEntityDiedEventFilter.html Online documentation}
|
12097
12101
|
*/
|
12098
12102
|
export type LuaEntityDiedEventFilter =
|
12099
12103
|
| TypeEntityDiedEventFilter
|
@@ -12198,7 +12202,7 @@ declare module "factorio:runtime" {
|
|
12198
12202
|
* - `"name"`: {@link NamePreRobotMinedEntityEventFilter}
|
12199
12203
|
* - `"ghost_type"`: {@link GhostTypePreRobotMinedEntityEventFilter}
|
12200
12204
|
* - `"ghost_name"`: {@link GhostNamePreRobotMinedEntityEventFilter}
|
12201
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
12205
|
+
* @see {@link https://lua-api.factorio.com/2.0.28/concepts/LuaPreRobotMinedEntityEventFilter.html Online documentation}
|
12202
12206
|
*/
|
12203
12207
|
export type LuaPreRobotMinedEntityEventFilter =
|
12204
12208
|
| TypePreRobotMinedEntityEventFilter
|