typed-factorio 1.6.1 → 1.7.0
Sign up to get free protection for your applications and to get access to all the features.
- package/Changelog.md +4 -0
- package/generated/classes.d.ts +24 -10
- package/generated/concepts.d.ts +5 -2
- package/package.json +1 -1
package/Changelog.md
CHANGED
package/generated/classes.d.ts
CHANGED
@@ -2941,6 +2941,13 @@ interface LuaEntity extends LuaControl {
|
|
2941
2941
|
* @see {@link https://lua-api.factorio.com/latest/LuaEntity.html#LuaEntity.get_spider_legs Online documentation}
|
2942
2942
|
*/
|
2943
2943
|
get_spider_legs(): LuaEntity[]
|
2944
|
+
/**
|
2945
|
+
* Stops the given SpiderVehicle.
|
2946
|
+
*
|
2947
|
+
* _Can only be used if this is SpiderVehicle_
|
2948
|
+
* @see {@link https://lua-api.factorio.com/latest/LuaEntity.html#LuaEntity.stop_spider Online documentation}
|
2949
|
+
*/
|
2950
|
+
stop_spider(): void
|
2944
2951
|
/**
|
2945
2952
|
* Name of the entity prototype. E.g. "inserter" or "filter-inserter".
|
2946
2953
|
* @see {@link https://lua-api.factorio.com/latest/LuaEntity.html#LuaEntity.name Online documentation}
|
@@ -3941,21 +3948,21 @@ interface LuaEntity extends LuaControl {
|
|
3941
3948
|
*/
|
3942
3949
|
readonly autopilot_destinations: MapPosition[]
|
3943
3950
|
/**
|
3944
|
-
* Amount of trains related to this particular train stop. Includes train stopped at this train stop (until it finds a path to next target) and trains having this train stop as goal or waypoint.
|
3951
|
+
* Amount of trains related to this particular train stop. Includes train stopped at this train stop (until it finds a path to next target) and trains having this train stop as goal or waypoint.
|
3945
3952
|
*
|
3946
3953
|
* _Can only be used if this is TrainStop_
|
3947
3954
|
* @remarks Train may be included multiple times when braking distance covers this train stop multiple times<br>Value may be read even when train stop has no control behavior
|
3948
3955
|
* @see {@link https://lua-api.factorio.com/latest/LuaEntity.html#LuaEntity.trains_count Online documentation}
|
3949
3956
|
*/
|
3950
|
-
readonly trains_count: uint
|
3957
|
+
readonly trains_count: uint
|
3951
3958
|
/**
|
3952
|
-
* Amount of trains above which no new trains will be sent to this train stop.
|
3959
|
+
* Amount of trains above which no new trains will be sent to this train stop. Writing nil will disable the limit (will set a maximum possible value).
|
3953
3960
|
*
|
3954
3961
|
* _Can only be used if this is TrainStop_
|
3955
3962
|
* @remarks When a train stop has a control behavior with wire connected and set_trains_limit enabled, this value will be overwritten by it
|
3956
3963
|
* @see {@link https://lua-api.factorio.com/latest/LuaEntity.html#LuaEntity.trains_limit Online documentation}
|
3957
3964
|
*/
|
3958
|
-
trains_limit: uint
|
3965
|
+
trains_limit: uint | nil
|
3959
3966
|
/**
|
3960
3967
|
* (deprecated by 1.1.51) If this entity is a MilitaryTarget. Returns same value as LuaEntity::is_military_target
|
3961
3968
|
* @see {@link https://lua-api.factorio.com/latest/LuaEntity.html#LuaEntity.is_entity_with_force Online documentation}
|
@@ -5784,21 +5791,21 @@ interface TrainStopEntity extends BaseEntity {
|
|
5784
5791
|
*/
|
5785
5792
|
readonly connected_rail_direction: defines.rail_direction
|
5786
5793
|
/**
|
5787
|
-
* Amount of trains related to this particular train stop. Includes train stopped at this train stop (until it finds a path to next target) and trains having this train stop as goal or waypoint.
|
5794
|
+
* Amount of trains related to this particular train stop. Includes train stopped at this train stop (until it finds a path to next target) and trains having this train stop as goal or waypoint.
|
5788
5795
|
*
|
5789
5796
|
* _Can only be used if this is TrainStop_
|
5790
5797
|
* @remarks Train may be included multiple times when braking distance covers this train stop multiple times<br>Value may be read even when train stop has no control behavior
|
5791
5798
|
* @see {@link https://lua-api.factorio.com/latest/LuaEntity.html#LuaEntity.trains_count Online documentation}
|
5792
5799
|
*/
|
5793
|
-
readonly trains_count: uint
|
5800
|
+
readonly trains_count: uint
|
5794
5801
|
/**
|
5795
|
-
* Amount of trains above which no new trains will be sent to this train stop.
|
5802
|
+
* Amount of trains above which no new trains will be sent to this train stop. Writing nil will disable the limit (will set a maximum possible value).
|
5796
5803
|
*
|
5797
5804
|
* _Can only be used if this is TrainStop_
|
5798
5805
|
* @remarks When a train stop has a control behavior with wire connected and set_trains_limit enabled, this value will be overwritten by it
|
5799
5806
|
* @see {@link https://lua-api.factorio.com/latest/LuaEntity.html#LuaEntity.trains_limit Online documentation}
|
5800
5807
|
*/
|
5801
|
-
trains_limit: uint
|
5808
|
+
trains_limit: uint | nil
|
5802
5809
|
}
|
5803
5810
|
|
5804
5811
|
/**
|
@@ -5885,6 +5892,13 @@ interface SpiderVehicleEntity extends BaseEntity {
|
|
5885
5892
|
* @see {@link https://lua-api.factorio.com/latest/LuaEntity.html#LuaEntity.get_spider_legs Online documentation}
|
5886
5893
|
*/
|
5887
5894
|
get_spider_legs(): LuaEntity[]
|
5895
|
+
/**
|
5896
|
+
* Stops the given SpiderVehicle.
|
5897
|
+
*
|
5898
|
+
* _Can only be used if this is SpiderVehicle_
|
5899
|
+
* @see {@link https://lua-api.factorio.com/latest/LuaEntity.html#LuaEntity.stop_spider Online documentation}
|
5900
|
+
*/
|
5901
|
+
stop_spider(): void
|
5888
5902
|
/**
|
5889
5903
|
* The torso orientation of this spider vehicle.
|
5890
5904
|
*
|
@@ -18340,7 +18354,7 @@ interface LuaPlayer extends LuaControl {
|
|
18340
18354
|
*/
|
18341
18355
|
remove_alert(params: {
|
18342
18356
|
readonly entity?: LuaEntity
|
18343
|
-
readonly prototype?: LuaEntityPrototype
|
18357
|
+
readonly prototype?: LuaEntityPrototype | string
|
18344
18358
|
readonly position?: MapPosition | MapPositionArray
|
18345
18359
|
readonly type?: defines.alert_type
|
18346
18360
|
readonly surface?: SurfaceIdentification
|
@@ -23084,7 +23098,7 @@ interface LuaSurface {
|
|
23084
23098
|
*/
|
23085
23099
|
readonly can_open_gates?: boolean
|
23086
23100
|
/**
|
23087
|
-
* Defines how coarse the pathfinder's grid is. Smaller values mean a coarser grid (negative numbers allowed). Defaults to `0`.
|
23101
|
+
* Defines how coarse the pathfinder's grid is. Smaller values mean a coarser grid (negative numbers allowed). Allowed values are from -8 to 8. Defaults to `0`.
|
23088
23102
|
*/
|
23089
23103
|
readonly path_resolution_modifier?: int
|
23090
23104
|
/**
|
package/generated/concepts.d.ts
CHANGED
@@ -3398,6 +3398,9 @@ interface AmmoType {
|
|
3398
3398
|
* Energy consumption of a single shot, if applicable. Defaults to `0`.
|
3399
3399
|
*/
|
3400
3400
|
readonly energy_consumption?: double
|
3401
|
+
readonly range_modifier?: double
|
3402
|
+
readonly cooldown_modifier?: double
|
3403
|
+
readonly consumption_modifier?: double
|
3401
3404
|
}
|
3402
3405
|
|
3403
3406
|
interface BeamTarget {
|
@@ -4119,9 +4122,9 @@ interface LogisticFilter {
|
|
4119
4122
|
*/
|
4120
4123
|
interface ModSetting {
|
4121
4124
|
/**
|
4122
|
-
* The value of the mod setting. The type depends on the setting.
|
4125
|
+
* The value of the mod setting. The type depends on the kind of setting.
|
4123
4126
|
*/
|
4124
|
-
readonly value:
|
4127
|
+
readonly value: int | double | boolean | string
|
4125
4128
|
}
|
4126
4129
|
|
4127
4130
|
/**
|