factorio-types 0.0.40 → 0.0.41
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 +3 -11
- package/dist/concepts.d.ts +1 -1
- package/dist/defines.d.ts +49 -1
- package/dist/events.d.ts +10 -2
- package/dist/global.d.ts +1 -1
- package/dist/prototypes.d.ts +100 -4
- package/dist/types.d.ts +6 -2
- 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.90
|
|
6
6
|
// API version 4
|
|
7
7
|
|
|
8
8
|
declare namespace runtime {
|
|
@@ -291,7 +291,7 @@ interface LuaBootstrap {
|
|
|
291
291
|
*
|
|
292
292
|
*/
|
|
293
293
|
on_event<T extends event>(this: void,
|
|
294
|
-
event: defines.events | defines.events
|
|
294
|
+
event: defines.events | string | Array<defines.events | string>,
|
|
295
295
|
handler: (this: void, arg0: EventData) => any | null,
|
|
296
296
|
filters?: EventFilter): void
|
|
297
297
|
|
|
@@ -5120,14 +5120,6 @@ interface LuaEntityPrototype {
|
|
|
5120
5120
|
*/
|
|
5121
5121
|
readonly height?: number
|
|
5122
5122
|
|
|
5123
|
-
/**
|
|
5124
|
-
* The idle energy usage of this rocket silo prototype.
|
|
5125
|
-
* @remarks
|
|
5126
|
-
* Applies to subclasses: RocketSilo
|
|
5127
|
-
*
|
|
5128
|
-
*/
|
|
5129
|
-
readonly idle_energy_usage?: number
|
|
5130
|
-
|
|
5131
5123
|
/**
|
|
5132
5124
|
* A vector of the gun prototypes of this car, spider vehicle, artillery wagon, or turret.
|
|
5133
5125
|
* @remarks
|
|
@@ -17501,7 +17493,7 @@ interface LuaTilePrototype {
|
|
|
17501
17493
|
readonly name: string
|
|
17502
17494
|
|
|
17503
17495
|
/**
|
|
17504
|
-
* If this tile needs correction logic applied when it's generated in the world
|
|
17496
|
+
* If this tile needs correction logic applied when it's generated in the world.
|
|
17505
17497
|
*/
|
|
17506
17498
|
readonly needs_correction: boolean
|
|
17507
17499
|
|
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.90
|
|
6
6
|
// API version 4
|
|
7
7
|
|
|
8
8
|
declare namespace runtime {
|
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.90
|
|
6
6
|
// API version 4
|
|
7
7
|
|
|
8
8
|
declare namespace defines {
|
|
@@ -1124,21 +1124,69 @@ declare namespace defines {
|
|
|
1124
1124
|
straight,
|
|
1125
1125
|
}
|
|
1126
1126
|
}
|
|
1127
|
+
/**
|
|
1128
|
+
* The various parts of the launch sequence of the rocket silo.
|
|
1129
|
+
*/
|
|
1127
1130
|
enum rocket_silo_status {
|
|
1131
|
+
/**
|
|
1132
|
+
* The next state is `rocket_ready` or if the rocket is destroyed in this state then the next state will be `lights_blinking_close`. The rocket is getting prepared for launch.
|
|
1133
|
+
*/
|
|
1128
1134
|
arms_advance,
|
|
1135
|
+
/**
|
|
1136
|
+
* The next state is `rocket_flying` or if the rocket is destroyed in this state then the next state will be `lights_blinking_close`. The rocket is getting launched.
|
|
1137
|
+
*/
|
|
1129
1138
|
arms_retract,
|
|
1139
|
+
/**
|
|
1140
|
+
* The rocket silo is crafting rocket parts. When there are enough rocket parts, the silo will switch into the `create_rocket` state.
|
|
1141
|
+
*/
|
|
1130
1142
|
building_rocket,
|
|
1143
|
+
/**
|
|
1144
|
+
* The next state is `lights_blinking_open`. The rocket silo rocket entity gets created.
|
|
1145
|
+
*/
|
|
1131
1146
|
create_rocket,
|
|
1147
|
+
/**
|
|
1148
|
+
* The next state is `building_rocket`.
|
|
1149
|
+
*/
|
|
1132
1150
|
doors_closing,
|
|
1151
|
+
/**
|
|
1152
|
+
* The next state is `rocket_rising` or if the rocket is destroyed in this state then the next state will be `lights_blinking_close`. The rocket is getting prepared for launch.
|
|
1153
|
+
*/
|
|
1133
1154
|
doors_opened,
|
|
1155
|
+
/**
|
|
1156
|
+
* The next state is `doors_opened`. The rocket is getting prepared for launch.
|
|
1157
|
+
*/
|
|
1134
1158
|
doors_opening,
|
|
1159
|
+
/**
|
|
1160
|
+
* The next state is `arms_retract` or if the rocket is destroyed in this state then the next state will be `lights_blinking_close`. The rocket is getting launched.
|
|
1161
|
+
*/
|
|
1135
1162
|
engine_starting,
|
|
1163
|
+
/**
|
|
1164
|
+
* The next state is `engine_starting` or if the rocket is destroyed in this state then the next state will be `lights_blinking_close`. The rocket is getting launched.
|
|
1165
|
+
*/
|
|
1136
1166
|
launch_started,
|
|
1167
|
+
/**
|
|
1168
|
+
* The next state is `launch_started`.
|
|
1169
|
+
*/
|
|
1137
1170
|
launch_starting,
|
|
1171
|
+
/**
|
|
1172
|
+
* The next state is `doors_closing`.
|
|
1173
|
+
*/
|
|
1138
1174
|
lights_blinking_close,
|
|
1175
|
+
/**
|
|
1176
|
+
* The next state is `doors_opening`. The rocket is getting prepared for launch.
|
|
1177
|
+
*/
|
|
1139
1178
|
lights_blinking_open,
|
|
1179
|
+
/**
|
|
1180
|
+
* The next state is `lights_blinking_close`. The rocket is getting launched.
|
|
1181
|
+
*/
|
|
1140
1182
|
rocket_flying,
|
|
1183
|
+
/**
|
|
1184
|
+
* The rocket launch can be started by the player. When the launch is started, the silo switches into the `launch_starting` state.
|
|
1185
|
+
*/
|
|
1141
1186
|
rocket_ready,
|
|
1187
|
+
/**
|
|
1188
|
+
* The next state is `arms_advance` or if the rocket is destroyed in this state then the next state will be `lights_blinking_close`. The rocket is getting prepared for launch.
|
|
1189
|
+
*/
|
|
1142
1190
|
rocket_rising,
|
|
1143
1191
|
}
|
|
1144
1192
|
enum shooting {
|
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.90
|
|
6
6
|
// API version 4
|
|
7
7
|
|
|
8
8
|
declare namespace runtime {
|
|
@@ -24,6 +24,14 @@ interface event {
|
|
|
24
24
|
}
|
|
25
25
|
/**
|
|
26
26
|
* Called when a {@link CustomInputPrototype | prototype:CustomInputPrototype} is activated.
|
|
27
|
+
* @example
|
|
28
|
+
* This will be raised when a custom input with the name "my-potato-control" and action "lua" is pressed
|
|
29
|
+
* ```
|
|
30
|
+
* script.on_event("my-potato-control", function(event)
|
|
31
|
+
* game.print("Keyboard shortcut pressed on tick: " ..tostring(event.tick))
|
|
32
|
+
* end)
|
|
33
|
+
* ```
|
|
34
|
+
*
|
|
27
35
|
*/
|
|
28
36
|
interface CustomInputEvent extends event {
|
|
29
37
|
/**
|
|
@@ -877,7 +885,7 @@ interface on_land_mine_armed extends event {
|
|
|
877
885
|
mine: LuaEntity
|
|
878
886
|
}
|
|
879
887
|
/**
|
|
880
|
-
* Called when a custom Lua shortcut is pressed.
|
|
888
|
+
* Called when a custom {@link Lua shortcut | prototype:ShortcutPrototype} is pressed.
|
|
881
889
|
*/
|
|
882
890
|
interface on_lua_shortcut extends event {
|
|
883
891
|
player_index: number
|
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.90
|
|
6
6
|
// API version 4
|
|
7
7
|
|
|
8
8
|
/**
|
package/dist/prototypes.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/prototype-api.json
|
|
4
4
|
// Definition source https://github.com/sguest/factorio-types
|
|
5
|
-
// Factorio version 1.1.
|
|
5
|
+
// Factorio version 1.1.90
|
|
6
6
|
// API version 4
|
|
7
7
|
|
|
8
8
|
declare namespace prototype {
|
|
@@ -2221,7 +2221,7 @@ A key binding can contain an unlimited amount of modifier keys (listed above) bu
|
|
|
2221
2221
|
|
|
2222
2222
|
For a list of all names used in vanilla, see {@link data.raw | https://wiki.factorio.com/Data.raw}.
|
|
2223
2223
|
|
|
2224
|
-
It is also the name for the event that is raised when they key (combination) is pressed and action is `"lua"`, see {@link Tutorial:Script interfaces | https://wiki.factorio.com/Tutorial:Script_interfaces}.
|
|
2224
|
+
It is also the name for the event that is raised when they key (combination) is pressed and action is `"lua"`, see {@link Tutorial:Script interfaces | https://wiki.factorio.com/Tutorial:Script_interfaces#Custom_input}.
|
|
2225
2225
|
*/
|
|
2226
2226
|
name: string
|
|
2227
2227
|
}
|
|
@@ -2909,6 +2909,10 @@ The selection box is usually a little bit bigger than the collision box, for til
|
|
|
2909
2909
|
When the tile width is odd, the center will be in the center of the tile, when it is even, the center is on the tile transition.
|
|
2910
2910
|
*/
|
|
2911
2911
|
tile_width?: number,
|
|
2912
|
+
|
|
2913
|
+
/**
|
|
2914
|
+
* Defaults to the mask from {@link UtilityConstants::default_trigger_target_mask_by_type | prototype:UtilityConstants::default_trigger_target_mask_by_type}.
|
|
2915
|
+
*/
|
|
2912
2916
|
trigger_target_mask?: TriggerTargetMask,
|
|
2913
2917
|
|
|
2914
2918
|
/**
|
|
@@ -3018,7 +3022,7 @@ interface EntityWithHealthPrototype extends EntityPrototype{
|
|
|
3018
3022
|
interface EntityWithOwnerPrototype extends EntityWithHealthPrototype{
|
|
3019
3023
|
|
|
3020
3024
|
/**
|
|
3021
|
-
* If this is true, this
|
|
3025
|
+
* If this is true, this entity's `is_military_target` property can be changed during runtime (on the entity, not on the prototype itself).
|
|
3022
3026
|
*/
|
|
3023
3027
|
allow_run_time_change_of_is_military_target?: boolean,
|
|
3024
3028
|
|
|
@@ -6798,8 +6802,20 @@ interface RobotWithLogisticInterfacePrototype extends FlyingRobotPrototype{
|
|
|
6798
6802
|
* A {@link rocket silo | https://wiki.factorio.com/Rocket_silo}.
|
|
6799
6803
|
*/
|
|
6800
6804
|
interface RocketSiloPrototype extends AssemblingMachinePrototype{
|
|
6805
|
+
|
|
6806
|
+
/**
|
|
6807
|
+
* Additional energy used during the following parts of the {@link launch sequence | runtime:defines.rocket_silo_status}: doors_opening, rocket_rising, arms_advance, engine_starting, arms_retract, doors_closing.
|
|
6808
|
+
*/
|
|
6801
6809
|
active_energy_usage: Energy,
|
|
6810
|
+
|
|
6811
|
+
/**
|
|
6812
|
+
* Played when switching into the {@link lights_blinking_open | runtime:defines.rocket_silo_status.lights_blinking_open} state.
|
|
6813
|
+
*/
|
|
6802
6814
|
alarm_sound?: Sound,
|
|
6815
|
+
|
|
6816
|
+
/**
|
|
6817
|
+
* Applied when switching into the {@link lights_blinking_open | runtime:defines.rocket_silo_status.lights_blinking_open} state.
|
|
6818
|
+
*/
|
|
6803
6819
|
alarm_trigger?: TriggerEffect,
|
|
6804
6820
|
arm_01_back_animation: Animation,
|
|
6805
6821
|
arm_02_right_animation: Animation,
|
|
@@ -6808,33 +6824,94 @@ interface RocketSiloPrototype extends AssemblingMachinePrototype{
|
|
|
6808
6824
|
base_engine_light?: LightDefinition,
|
|
6809
6825
|
base_front_sprite: Sprite,
|
|
6810
6826
|
base_light?: LightDefinition,
|
|
6827
|
+
|
|
6828
|
+
/**
|
|
6829
|
+
* Drawn instead of `base_day_sprite` during the night i.e. when {@link LuaSurface::darkness | runtime:LuaSurface::darkness} is larger than 0.3.
|
|
6830
|
+
*/
|
|
6811
6831
|
base_night_sprite?: Sprite,
|
|
6832
|
+
|
|
6833
|
+
/**
|
|
6834
|
+
* Played when switching into the {@link arms_retract | runtime:defines.rocket_silo_status.arms_retract} state.
|
|
6835
|
+
*/
|
|
6812
6836
|
clamps_off_sound?: Sound,
|
|
6837
|
+
|
|
6838
|
+
/**
|
|
6839
|
+
* Applied when switching into the {@link arms_retract | runtime:defines.rocket_silo_status.arms_retract} state.
|
|
6840
|
+
*/
|
|
6813
6841
|
clamps_off_trigger?: TriggerEffect,
|
|
6842
|
+
|
|
6843
|
+
/**
|
|
6844
|
+
* Played when switching into the {@link arms_advance | runtime:defines.rocket_silo_status.arms_advance} state.
|
|
6845
|
+
*/
|
|
6814
6846
|
clamps_on_sound?: Sound,
|
|
6847
|
+
|
|
6848
|
+
/**
|
|
6849
|
+
* Applied when switching into the {@link arms_advance | runtime:defines.rocket_silo_status.arms_advance} state.
|
|
6850
|
+
*/
|
|
6815
6851
|
clamps_on_trigger?: TriggerEffect,
|
|
6816
6852
|
door_back_open_offset: Vector,
|
|
6817
6853
|
door_back_sprite: Sprite,
|
|
6818
6854
|
door_front_open_offset: Vector,
|
|
6819
6855
|
door_front_sprite: Sprite,
|
|
6856
|
+
|
|
6857
|
+
/**
|
|
6858
|
+
* The inverse of the duration in ticks of {@link doors_opening | runtime:defines.rocket_silo_status.doors_opening} and {@link closing | runtime:defines.rocket_silo_status.doors_closing}.
|
|
6859
|
+
*/
|
|
6820
6860
|
door_opening_speed: number,
|
|
6861
|
+
|
|
6862
|
+
/**
|
|
6863
|
+
* Played when switching into the {@link doors_opening | runtime:defines.rocket_silo_status.doors_opening} and {@link doors_closing | runtime:defines.rocket_silo_status.doors_closing} states.
|
|
6864
|
+
*/
|
|
6821
6865
|
doors_sound?: Sound,
|
|
6866
|
+
|
|
6867
|
+
/**
|
|
6868
|
+
* Applied when switching into the {@link doors_opening | runtime:defines.rocket_silo_status.doors_opening} and {@link doors_closing | runtime:defines.rocket_silo_status.doors_closing} states.
|
|
6869
|
+
*/
|
|
6822
6870
|
doors_trigger?: TriggerEffect,
|
|
6871
|
+
|
|
6872
|
+
/**
|
|
6873
|
+
* Played when switching into the {@link engine_starting | runtime:defines.rocket_silo_status.engine_starting} state.
|
|
6874
|
+
*/
|
|
6823
6875
|
flying_sound?: Sound,
|
|
6824
6876
|
hole_clipping_box: BoundingBox,
|
|
6825
6877
|
hole_light_sprite: Sprite,
|
|
6826
6878
|
hole_sprite: Sprite,
|
|
6827
|
-
idle_energy_usage: Energy,
|
|
6828
6879
|
|
|
6829
6880
|
/**
|
|
6830
6881
|
* May be 0.
|
|
6882
|
+
|
|
6883
|
+
Additional energy used during the night i.e. when {@link LuaSurface::darkness | runtime:LuaSurface::darkness} is larger than 0.3.
|
|
6831
6884
|
*/
|
|
6832
6885
|
lamp_energy_usage: Energy,
|
|
6886
|
+
|
|
6887
|
+
/**
|
|
6888
|
+
* The time to wait in the {@link launch_started | runtime:defines.rocket_silo_status.launch_started} state before switching to {@link engine_starting | runtime:defines.rocket_silo_status.engine_starting}.
|
|
6889
|
+
*/
|
|
6833
6890
|
launch_wait_time?: number,
|
|
6891
|
+
|
|
6892
|
+
/**
|
|
6893
|
+
* The inverse of the duration in ticks of {@link lights_blinking_open | runtime:defines.rocket_silo_status.lights_blinking_open} and {@link lights_blinking_close | runtime:defines.rocket_silo_status.lights_blinking_close}.
|
|
6894
|
+
*/
|
|
6834
6895
|
light_blinking_speed: number,
|
|
6896
|
+
|
|
6897
|
+
/**
|
|
6898
|
+
* Played when switching into the {@link rocket_rising | runtime:defines.rocket_silo_status.rocket_rising} state.
|
|
6899
|
+
*/
|
|
6835
6900
|
raise_rocket_sound?: Sound,
|
|
6901
|
+
|
|
6902
|
+
/**
|
|
6903
|
+
* Applied when switching into the {@link rocket_rising | runtime:defines.rocket_silo_status.rocket_rising} state.
|
|
6904
|
+
*/
|
|
6836
6905
|
raise_rocket_trigger?: TriggerEffect,
|
|
6906
|
+
|
|
6907
|
+
/**
|
|
6908
|
+
* Drawn from the start of the {@link lights_blinking_open | runtime:defines.rocket_silo_status.lights_blinking_open} state until the end of the {@link lights_blinking_close | runtime:defines.rocket_silo_status.lights_blinking_close} state.
|
|
6909
|
+
*/
|
|
6837
6910
|
red_lights_back_sprites: Sprite,
|
|
6911
|
+
|
|
6912
|
+
/**
|
|
6913
|
+
* Drawn from the start of the {@link lights_blinking_open | runtime:defines.rocket_silo_status.lights_blinking_open} state until the end of the {@link lights_blinking_close | runtime:defines.rocket_silo_status.lights_blinking_close} state.
|
|
6914
|
+
*/
|
|
6838
6915
|
red_lights_front_sprites: Sprite,
|
|
6839
6916
|
|
|
6840
6917
|
/**
|
|
@@ -6848,6 +6925,10 @@ interface RocketSiloPrototype extends AssemblingMachinePrototype{
|
|
|
6848
6925
|
*/
|
|
6849
6926
|
rocket_parts_required: number,
|
|
6850
6927
|
rocket_result_inventory_size?: ItemStackIndex,
|
|
6928
|
+
|
|
6929
|
+
/**
|
|
6930
|
+
* The time to wait in the {@link doors_opened | runtime:defines.rocket_silo_status.doors_opened} state before switching to {@link rocket_rising | runtime:defines.rocket_silo_status.rocket_rising}.
|
|
6931
|
+
*/
|
|
6851
6932
|
rocket_rising_delay?: number,
|
|
6852
6933
|
rocket_shadow_overlay_sprite: Sprite,
|
|
6853
6934
|
satellite_animation: Animation,
|
|
@@ -6855,6 +6936,12 @@ interface RocketSiloPrototype extends AssemblingMachinePrototype{
|
|
|
6855
6936
|
shadow_sprite: Sprite,
|
|
6856
6937
|
silo_fade_out_end_distance: number,
|
|
6857
6938
|
silo_fade_out_start_distance: number,
|
|
6939
|
+
|
|
6940
|
+
/**
|
|
6941
|
+
* How many times the `red_lights_back_sprites` and `red_lights_front_sprites` should blink during {@link lights_blinking_open | runtime:defines.rocket_silo_status.lights_blinking_open} and {@link lights_blinking_close | runtime:defines.rocket_silo_status.lights_blinking_close}.
|
|
6942
|
+
|
|
6943
|
+
Does not affect the duration of the launch sequence.
|
|
6944
|
+
*/
|
|
6858
6945
|
times_to_blink: number
|
|
6859
6946
|
}
|
|
6860
6947
|
|
|
@@ -7144,6 +7231,11 @@ Note: The scale that can be defined in the sprite may not behave as expected bec
|
|
|
7144
7231
|
*/
|
|
7145
7232
|
item_to_spawn?: ItemID,
|
|
7146
7233
|
|
|
7234
|
+
/**
|
|
7235
|
+
* Used to order the shortcuts in the {@link quick panel | https://wiki.factorio.com/Quick_panel}, which replaces the shortcut bar when using a controller (game pad). It {@link is recommended | https://forums.factorio.com/106661} to order modded shortcuts after the vanilla shortcuts.
|
|
7236
|
+
*/
|
|
7237
|
+
order?: Order,
|
|
7238
|
+
|
|
7147
7239
|
/**
|
|
7148
7240
|
* The icon used in the panel for visible shortcuts, when the shortcut is usable.
|
|
7149
7241
|
|
|
@@ -8212,6 +8304,10 @@ Only loaded if `icons` is not defined, or if `icon_size` is not specified for al
|
|
|
8212
8304
|
*/
|
|
8213
8305
|
minable?: MinableProperties,
|
|
8214
8306
|
mined_sound?: Sound,
|
|
8307
|
+
|
|
8308
|
+
/**
|
|
8309
|
+
* Whether the tile needs tile correction logic applied when it's generated in the world, to prevent graphical artifacts. The tile correction logic disallows 1-wide stripes of the tile, see {@link Friday Facts #346 | https://factorio.com/blog/post/fff-346}.
|
|
8310
|
+
*/
|
|
8215
8311
|
needs_correction?: boolean,
|
|
8216
8312
|
next_direction?: TileID,
|
|
8217
8313
|
placeable_by?: ItemToPlace | ItemToPlace[],
|
package/dist/types.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/prototype-api.json
|
|
4
4
|
// Definition source https://github.com/sguest/factorio-types
|
|
5
|
-
// Factorio version 1.1.
|
|
5
|
+
// Factorio version 1.1.90
|
|
6
6
|
// API version 4
|
|
7
7
|
|
|
8
8
|
declare namespace prototype {
|
|
@@ -289,7 +289,7 @@ interface AnimationElement {
|
|
|
289
289
|
*
|
|
290
290
|
* @example
|
|
291
291
|
* ```
|
|
292
|
-
* Complex example - animation contains different layers with different frame counts:
|
|
292
|
+
* -- Complex example - animation contains different layers with different frame counts:
|
|
293
293
|
* local custom_frame_sequence = { 2, 2, 2, 2, 2, 4, 3, 4, 3 }
|
|
294
294
|
* layers = {
|
|
295
295
|
* {
|
|
@@ -8420,6 +8420,10 @@ interface TriggerItem {
|
|
|
8420
8420
|
*/
|
|
8421
8421
|
probability?: number,
|
|
8422
8422
|
repeat_count?: number,
|
|
8423
|
+
|
|
8424
|
+
/**
|
|
8425
|
+
* The trigger affects only prototypes with these masks.
|
|
8426
|
+
*/
|
|
8423
8427
|
trigger_target_mask?: TriggerTargetMask
|
|
8424
8428
|
}
|
|
8425
8429
|
|