typed-factorio 0.14.0 → 0.14.1
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 +23 -24
- package/generated/concepts.d.ts +21 -5
- package/package.json +1 -1
package/Changelog.md
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
# v0.14.1
|
2
|
+
|
3
|
+
- LuaStyle: `extra_margin/padding_when_activated` is now for subclass scroll_pane
|
4
|
+
|
1
5
|
# v0.14.0
|
2
6
|
|
3
7
|
- LuaStyle size, margin/padding setters now have more specific array types. These array types are `SizeArray` and `StyleValuesArray` for size and margin/padding, respectively.
|
package/generated/classes.d.ts
CHANGED
@@ -5765,14 +5765,6 @@ interface LuaEntityPrototype {
|
|
5765
5765
|
* {@link https://lua-api.factorio.com/latest/LuaEntityPrototype.html#LuaEntityPrototype.neighbour_bonus View documentation}
|
5766
5766
|
*/
|
5767
5767
|
readonly neighbour_bonus: double
|
5768
|
-
/**
|
5769
|
-
* Controls how much a reactor extends when connected to other reactors.
|
5770
|
-
*
|
5771
|
-
* *Can only be used if this is Reactor*
|
5772
|
-
*
|
5773
|
-
* {@link https://lua-api.factorio.com/latest/LuaEntityPrototype.html#LuaEntityPrototype.neighbour_collision_increase View documentation}
|
5774
|
-
*/
|
5775
|
-
readonly neighbour_collision_increase: double
|
5776
5768
|
/**
|
5777
5769
|
* *Can only be used if this is Loader*
|
5778
5770
|
*
|
@@ -17434,22 +17426,6 @@ interface BaseStyle {
|
|
17434
17426
|
* {@link https://lua-api.factorio.com/latest/LuaStyle.html#LuaStyle.margin View documentation}
|
17435
17427
|
*/
|
17436
17428
|
set margin(value: int | StyleValuesArray)
|
17437
|
-
/**
|
17438
|
-
* Sets extra_top/right/bottom/left_padding_when_actived to this value. An array with two values sets top/bottom
|
17439
|
-
* padding to the first value and left/right padding to the second value. An array with four values sets top, right,
|
17440
|
-
* bottom, left padding respectively.
|
17441
|
-
*
|
17442
|
-
* {@link https://lua-api.factorio.com/latest/LuaStyle.html#LuaStyle.extra_padding_when_activated View documentation}
|
17443
|
-
*/
|
17444
|
-
set extra_padding_when_activated(value: int | StyleValuesArray)
|
17445
|
-
/**
|
17446
|
-
* Sets extra_top/right/bottom/left_margin_when_activated to this value. An array with two values sets top/bottom
|
17447
|
-
* margin to the first value and left/right margin to the second value. An array with four values sets top, right,
|
17448
|
-
* bottom, left margin respectively.
|
17449
|
-
*
|
17450
|
-
* {@link https://lua-api.factorio.com/latest/LuaStyle.html#LuaStyle.extra_margin_when_activated View documentation}
|
17451
|
-
*/
|
17452
|
-
set extra_margin_when_activated(value: int | StyleValuesArray)
|
17453
17429
|
/**
|
17454
17430
|
* Is this object valid? This Lua object holds a reference to an object within the game engine. It is possible that
|
17455
17431
|
* the game-engine object is removed whilst a mod still holds the corresponding Lua object. If that happens, the
|
@@ -17785,6 +17761,22 @@ interface ScrollPaneStyle extends BaseStyle {
|
|
17785
17761
|
* {@link https://lua-api.factorio.com/latest/LuaStyle.html#LuaStyle.extra_right_margin_when_activated View documentation}
|
17786
17762
|
*/
|
17787
17763
|
extra_right_margin_when_activated: int
|
17764
|
+
/**
|
17765
|
+
* Sets extra_top/right/bottom/left_padding_when_actived to this value. An array with two values sets top/bottom
|
17766
|
+
* padding to the first value and left/right padding to the second value. An array with four values sets top, right,
|
17767
|
+
* bottom, left padding respectively.
|
17768
|
+
*
|
17769
|
+
* {@link https://lua-api.factorio.com/latest/LuaStyle.html#LuaStyle.extra_padding_when_activated View documentation}
|
17770
|
+
*/
|
17771
|
+
set extra_padding_when_activated(value: int | StyleValuesArray)
|
17772
|
+
/**
|
17773
|
+
* Sets extra_top/right/bottom/left_margin_when_activated to this value. An array with two values sets top/bottom
|
17774
|
+
* margin to the first value and left/right margin to the second value. An array with four values sets top, right,
|
17775
|
+
* bottom, left margin respectively.
|
17776
|
+
*
|
17777
|
+
* {@link https://lua-api.factorio.com/latest/LuaStyle.html#LuaStyle.extra_margin_when_activated View documentation}
|
17778
|
+
*/
|
17779
|
+
set extra_margin_when_activated(value: int | StyleValuesArray)
|
17788
17780
|
}
|
17789
17781
|
|
17790
17782
|
interface ImageStyle extends BaseStyle {
|
@@ -19772,6 +19764,13 @@ interface LuaTilePrototype {
|
|
19772
19764
|
* {@link https://lua-api.factorio.com/latest/LuaTilePrototype.html#LuaTilePrototype.emissions_per_second View documentation}
|
19773
19765
|
*/
|
19774
19766
|
readonly emissions_per_second: double
|
19767
|
+
/**
|
19768
|
+
* True if building this tile should check for colliding entities above and prevent building if such are found. Also
|
19769
|
+
* during mining tiles above this tile checks for entities colliding with this tile and prevents mining if such are found.
|
19770
|
+
*
|
19771
|
+
* {@link https://lua-api.factorio.com/latest/LuaTilePrototype.html#LuaTilePrototype.check_collision_with_entities View documentation}
|
19772
|
+
*/
|
19773
|
+
readonly check_collision_with_entities: boolean
|
19775
19774
|
/**
|
19776
19775
|
* Is this object valid? This Lua object holds a reference to an object within the game engine. It is possible that
|
19777
19776
|
* the game-engine object is removed whilst a mod still holds the corresponding Lua object. If that happens, the
|
package/generated/concepts.d.ts
CHANGED
@@ -873,17 +873,33 @@ interface DifficultySettings {
|
|
873
873
|
readonly research_queue_setting: "after-victory" | "always" | "never"
|
874
874
|
}
|
875
875
|
|
876
|
+
/**
|
877
|
+
* All regular {@link MapSettings} plus an additional table that contains the {@link DifficultySettings}.
|
878
|
+
*
|
879
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#MapAndDifficultySettings View documentation}
|
880
|
+
*/
|
881
|
+
interface MapAndDifficultySettings {
|
882
|
+
readonly pollution: PollutionMapSettings
|
883
|
+
readonly enemy_evolution: EnemyEvolutionMapSettings
|
884
|
+
readonly enemy_expansion: EnemyExpansionMapSettings
|
885
|
+
readonly unit_group: UnitGroupMapSettings
|
886
|
+
readonly steering: SteeringMapSettings
|
887
|
+
readonly path_finder: PathFinderMapSettings
|
888
|
+
/**
|
889
|
+
* If a behavior fails this many times, the enemy (or enemy group) is destroyed. This solves biters getting stuck
|
890
|
+
* within their own base.
|
891
|
+
*/
|
892
|
+
readonly max_failed_behavior_count: uint
|
893
|
+
readonly difficulty_settings: DifficultySettings
|
894
|
+
}
|
895
|
+
|
876
896
|
/**
|
877
897
|
* The data that can be extracted from a map exchange string, as a plain table.
|
878
898
|
*
|
879
899
|
* {@link https://lua-api.factorio.com/latest/Concepts.html#MapExchangeStringData View documentation}
|
880
900
|
*/
|
881
901
|
interface MapExchangeStringData {
|
882
|
-
|
883
|
-
* All the regular map settings plus an additional table called `difficulty_settings` that contains the
|
884
|
-
* {@link DifficultySettings}.
|
885
|
-
*/
|
886
|
-
readonly map_settings: MapSettings
|
902
|
+
readonly map_settings: MapAndDifficultySettings
|
887
903
|
readonly map_gen_settings: MapGenSettings
|
888
904
|
}
|
889
905
|
|