factorio-types 0.0.36 → 0.0.37
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/dist/classes.d.ts +18 -2
- package/dist/concepts.d.ts +58 -2
- package/dist/defines.d.ts +1 -1
- package/dist/events.d.ts +4 -1
- package/dist/global.d.ts +1 -1
- package/package.json +1 -1
package/dist/classes.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Factorio API reference https://lua-api.factorio.com/latest/index.html
|
|
3
3
|
// Generated from JSON source https://lua-api.factorio.com/latest/runtime-api.json
|
|
4
4
|
// Definition source https://github.com/sguest/factorio-types
|
|
5
|
-
// Factorio version 1.1.
|
|
5
|
+
// Factorio version 1.1.86
|
|
6
6
|
// API version 3
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -4053,7 +4053,7 @@ interface LuaEntity extends LuaControl {
|
|
|
4053
4053
|
/**
|
|
4054
4054
|
* The storage filter for this logistic storage container.
|
|
4055
4055
|
*/
|
|
4056
|
-
storage_filter
|
|
4056
|
+
storage_filter?: LuaItemPrototype
|
|
4057
4057
|
|
|
4058
4058
|
/**
|
|
4059
4059
|
* Whether the entity has direction. When it is false for this entity, it will always return north direction when asked for.
|
|
@@ -6659,6 +6659,12 @@ interface LuaFluidBox {
|
|
|
6659
6659
|
get_flow(this: void,
|
|
6660
6660
|
index: number): void
|
|
6661
6661
|
|
|
6662
|
+
/**
|
|
6663
|
+
* Gets counts of all fluids in the fluid system. May return `nil` for fluid wagon, fluid turret's internal buffer, or a fluidbox which does not belong to a fluid system.
|
|
6664
|
+
*/
|
|
6665
|
+
get_fluid_system_contents(this: void,
|
|
6666
|
+
index: number): void
|
|
6667
|
+
|
|
6662
6668
|
/**
|
|
6663
6669
|
* Gets unique fluid system identifier of selected fluid box. May return nil for fluid wagon, fluid turret's internal buffer or a fluidbox which does not belong to a fluid system
|
|
6664
6670
|
*/
|
|
@@ -6671,6 +6677,12 @@ interface LuaFluidBox {
|
|
|
6671
6677
|
get_locked_fluid(this: void,
|
|
6672
6678
|
index: number): void
|
|
6673
6679
|
|
|
6680
|
+
/**
|
|
6681
|
+
* Get the fluid box's connections and associated data.
|
|
6682
|
+
*/
|
|
6683
|
+
get_pipe_connections(this: void,
|
|
6684
|
+
index: number): void
|
|
6685
|
+
|
|
6674
6686
|
/**
|
|
6675
6687
|
* The prototype of this fluidbox index. If this is used on a fluidbox of a crafting machine which due to recipe was created by merging multiple prototypes, a table of prototypes that were merged will be returned instead
|
|
6676
6688
|
*/
|
|
@@ -13889,6 +13901,7 @@ interface LuaRendering {
|
|
|
13889
13901
|
* @param table.orientation_target_offset - Only used if `orientation_target` is a LuaEntity.
|
|
13890
13902
|
* @param table.oriented_offset - Offsets the center of the animation if `orientation_target` is given. This offset will rotate together with the animation.
|
|
13891
13903
|
* @param table.players - The players that this object is rendered to. Passing `nil` or an empty table will render it to all players.
|
|
13904
|
+
* @param table.render_layer - Render layer of the animation. Defaults to `"arrow"`.
|
|
13892
13905
|
* @param table.target - Center of the animation.
|
|
13893
13906
|
* @param table.target_offset - Only used if `target` is a LuaEntity.
|
|
13894
13907
|
* @param table.time_to_live - In ticks. Defaults to living forever.
|
|
@@ -14024,6 +14037,7 @@ interface LuaRendering {
|
|
|
14024
14037
|
/**
|
|
14025
14038
|
* Create a line.
|
|
14026
14039
|
* @param table.dash_length - Length of the dashes that this line has. Used only if gap_length > 0. Default is 0.
|
|
14040
|
+
* @param table.dash_offset - Starting offset to apply to dashes. Cannot be greater than dash_length + gap_length. Default is 0.
|
|
14027
14041
|
* @param table.draw_on_ground - If this should be drawn below sprites and entities.
|
|
14028
14042
|
* @param table.forces - The forces that this object is rendered to. Passing `nil` or an empty table will render it to all forces.
|
|
14029
14043
|
* @param table.from_offset - Only used if `from` is a LuaEntity.
|
|
@@ -14053,6 +14067,7 @@ interface LuaRendering {
|
|
|
14053
14067
|
width: number,
|
|
14054
14068
|
gap_length?: number,
|
|
14055
14069
|
dash_length?: number,
|
|
14070
|
+
dash_offset?: number,
|
|
14056
14071
|
from: MapPosition | LuaEntity,
|
|
14057
14072
|
from_offset?: Vector,
|
|
14058
14073
|
to: MapPosition | LuaEntity,
|
|
@@ -14140,6 +14155,7 @@ interface LuaRendering {
|
|
|
14140
14155
|
* @param table.orientation_target_offset - Only used if `orientation_target` is a LuaEntity.
|
|
14141
14156
|
* @param table.oriented_offset - Offsets the center of the sprite if `orientation_target` is given. This offset will rotate together with the sprite.
|
|
14142
14157
|
* @param table.players - The players that this object is rendered to. Passing `nil` or an empty table will render it to all players.
|
|
14158
|
+
* @param table.render_layer - Render layer of the sprite. Defaults to `"arrow"`.
|
|
14143
14159
|
* @param table.target - Center of the sprite.
|
|
14144
14160
|
* @param table.target_offset - Only used if `target` is a LuaEntity.
|
|
14145
14161
|
* @param table.time_to_live - In ticks. Defaults to living forever.
|
package/dist/concepts.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Factorio API reference https://lua-api.factorio.com/latest/index.html
|
|
3
3
|
// Generated from JSON source https://lua-api.factorio.com/latest/runtime-api.json
|
|
4
4
|
// Definition source https://github.com/sguest/factorio-types
|
|
5
|
-
// Factorio version 1.1.
|
|
5
|
+
// Factorio version 1.1.86
|
|
6
6
|
// API version 3
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -998,7 +998,7 @@ interface FluidBoxConnection {
|
|
|
998
998
|
positions: Vector[],
|
|
999
999
|
|
|
1000
1000
|
/**
|
|
1001
|
-
*
|
|
1001
|
+
* One of "input", "output", or "input-output".
|
|
1002
1002
|
*/
|
|
1003
1003
|
type: string
|
|
1004
1004
|
}
|
|
@@ -1078,11 +1078,26 @@ interface GameViewSettings {
|
|
|
1078
1078
|
*/
|
|
1079
1079
|
show_controller_gui: boolean
|
|
1080
1080
|
|
|
1081
|
+
/**
|
|
1082
|
+
* Shows or hides the crafting queue.
|
|
1083
|
+
*/
|
|
1084
|
+
show_crafting_queue: boolean
|
|
1085
|
+
|
|
1081
1086
|
/**
|
|
1082
1087
|
* Show overlay icons on entities. Also known as "alt-mode".
|
|
1083
1088
|
*/
|
|
1084
1089
|
show_entity_info: boolean
|
|
1085
1090
|
|
|
1091
|
+
/**
|
|
1092
|
+
* Shows or hides the tooltip that is displayed when selecting an entity.
|
|
1093
|
+
*/
|
|
1094
|
+
show_entity_tooltip: boolean
|
|
1095
|
+
|
|
1096
|
+
/**
|
|
1097
|
+
* Shows or hides the mouse and keyboard/controller button hints in the bottom left corner if they are enabled in the interface settings.
|
|
1098
|
+
*/
|
|
1099
|
+
show_hotkey_suggestions: boolean
|
|
1100
|
+
|
|
1086
1101
|
/**
|
|
1087
1102
|
* Shows or hides the view options when map is opened.
|
|
1088
1103
|
*/
|
|
@@ -1118,6 +1133,11 @@ interface GameViewSettings {
|
|
|
1118
1133
|
*/
|
|
1119
1134
|
show_side_menu: boolean
|
|
1120
1135
|
|
|
1136
|
+
/**
|
|
1137
|
+
* Shows or hides the tool window with the weapons and armor.
|
|
1138
|
+
*/
|
|
1139
|
+
show_tool_bar: boolean
|
|
1140
|
+
|
|
1121
1141
|
/**
|
|
1122
1142
|
* When `true` (the default), mousing over an entity will select it. Otherwise, moving the mouse won't update entity selection.
|
|
1123
1143
|
*/
|
|
@@ -2130,6 +2150,42 @@ interface PathfinderWaypoint {
|
|
|
2130
2150
|
position: MapPosition
|
|
2131
2151
|
}
|
|
2132
2152
|
|
|
2153
|
+
/**
|
|
2154
|
+
* A single pipe connection for a given fluidbox.
|
|
2155
|
+
*/
|
|
2156
|
+
interface PipeConnection {
|
|
2157
|
+
|
|
2158
|
+
/**
|
|
2159
|
+
* One of "normal" or "underground".
|
|
2160
|
+
*/
|
|
2161
|
+
connection_type: string,
|
|
2162
|
+
|
|
2163
|
+
/**
|
|
2164
|
+
* One of "input", "output", or "input-output".
|
|
2165
|
+
*/
|
|
2166
|
+
flow_direction: string,
|
|
2167
|
+
|
|
2168
|
+
/**
|
|
2169
|
+
* The absolute position of this connection within the entity.
|
|
2170
|
+
*/
|
|
2171
|
+
position: MapPosition,
|
|
2172
|
+
|
|
2173
|
+
/**
|
|
2174
|
+
* The connected fluidbox, if any.
|
|
2175
|
+
*/
|
|
2176
|
+
target?: LuaFluidBox,
|
|
2177
|
+
|
|
2178
|
+
/**
|
|
2179
|
+
* The index of the connected fluidbox, if any.
|
|
2180
|
+
*/
|
|
2181
|
+
target_index?: number,
|
|
2182
|
+
|
|
2183
|
+
/**
|
|
2184
|
+
* The absolute position of the connection's intended target.
|
|
2185
|
+
*/
|
|
2186
|
+
target_position: MapPosition
|
|
2187
|
+
}
|
|
2188
|
+
|
|
2133
2189
|
interface PlaceAsTileResult {
|
|
2134
2190
|
condition: CollisionMask,
|
|
2135
2191
|
condition_size: number,
|
package/dist/defines.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Factorio API reference https://lua-api.factorio.com/latest/index.html
|
|
3
3
|
// Generated from JSON source https://lua-api.factorio.com/latest/runtime-api.json
|
|
4
4
|
// Definition source https://github.com/sguest/factorio-types
|
|
5
|
-
// Factorio version 1.1.
|
|
5
|
+
// Factorio version 1.1.86
|
|
6
6
|
// API version 3
|
|
7
7
|
|
|
8
8
|
declare namespace defines {
|
package/dist/events.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Factorio API reference https://lua-api.factorio.com/latest/index.html
|
|
3
3
|
// Generated from JSON source https://lua-api.factorio.com/latest/runtime-api.json
|
|
4
4
|
// Definition source https://github.com/sguest/factorio-types
|
|
5
|
-
// Factorio version 1.1.
|
|
5
|
+
// Factorio version 1.1.86
|
|
6
6
|
// API version 3
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -333,6 +333,9 @@ interface on_entity_cloned extends event {
|
|
|
333
333
|
}
|
|
334
334
|
/**
|
|
335
335
|
* Called after an entity has been recolored either by the player or through script.
|
|
336
|
+
* @remarks
|
|
337
|
+
* Automatic recoloring due to {@link LuaPlayer::color | LuaPlayer::color} will not raise events, as that is a separate mechanism.
|
|
338
|
+
*
|
|
336
339
|
*/
|
|
337
340
|
interface on_entity_color_changed extends event {
|
|
338
341
|
/**
|
package/dist/global.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Factorio API reference https://lua-api.factorio.com/latest/index.html
|
|
3
3
|
// Generated from JSON source https://lua-api.factorio.com/latest/runtime-api.json
|
|
4
4
|
// Definition source https://github.com/sguest/factorio-types
|
|
5
|
-
// Factorio version 1.1.
|
|
5
|
+
// Factorio version 1.1.86
|
|
6
6
|
// API version 3
|
|
7
7
|
|
|
8
8
|
/**
|