factorio-types 1.2.29 → 1.2.30
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 -2
- package/dist/concepts.d.ts +1 -1
- package/dist/datacollection.d.ts +1 -1
- package/dist/defines.d.ts +1 -1
- package/dist/events.d.ts +1 -1
- package/dist/global.d.ts +1 -1
- package/dist/prototypes.d.ts +5 -1
- package/dist/types.d.ts +29 -9
- package/package.json +2 -2
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 2.0.
|
|
5
|
+
// Factorio version 2.0.43
|
|
6
6
|
// API version 6
|
|
7
7
|
|
|
8
8
|
declare namespace runtime {
|
|
@@ -181,6 +181,7 @@ interface LuaAgriculturalTowerControlBehavior extends LuaGenericOnOffControlBeha
|
|
|
181
181
|
interface LuaAirbornePollutantPrototype extends LuaPrototypeBase {
|
|
182
182
|
readonly affects_evolution: boolean;
|
|
183
183
|
readonly chart_color: Color;
|
|
184
|
+
readonly damages_trees: boolean;
|
|
184
185
|
readonly localised_name_with_amount_key: string;
|
|
185
186
|
/**
|
|
186
187
|
* The class name of this object. Available even when `valid` is false. For LuaStruct objects it may also be suffixed with a dotted path to a member of the struct.
|
|
@@ -13903,7 +13904,7 @@ interface LuaPlayer extends LuaControl {
|
|
|
13903
13904
|
set_controller(this: void, table: {
|
|
13904
13905
|
type: defines.controllers;
|
|
13905
13906
|
character?: LuaEntity;
|
|
13906
|
-
waypoints?: CutsceneWaypoint;
|
|
13907
|
+
waypoints?: CutsceneWaypoint[];
|
|
13907
13908
|
start_position?: MapPosition;
|
|
13908
13909
|
start_zoom?: double;
|
|
13909
13910
|
final_transition_time?: uint;
|
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 2.0.
|
|
5
|
+
// Factorio version 2.0.43
|
|
6
6
|
// API version 6
|
|
7
7
|
|
|
8
8
|
declare namespace runtime {
|
package/dist/datacollection.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 2.0.
|
|
5
|
+
// Factorio version 2.0.43
|
|
6
6
|
// API version 6
|
|
7
7
|
|
|
8
8
|
declare namespace prototype {
|
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 2.0.
|
|
5
|
+
// Factorio version 2.0.43
|
|
6
6
|
// API version 6
|
|
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 2.0.
|
|
5
|
+
// Factorio version 2.0.43
|
|
6
6
|
// API version 6
|
|
7
7
|
|
|
8
8
|
declare namespace runtime {
|
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 2.0.
|
|
5
|
+
// Factorio version 2.0.43
|
|
6
6
|
// API version 6
|
|
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 2.0.
|
|
5
|
+
// Factorio version 2.0.43
|
|
6
6
|
// API version 6
|
|
7
7
|
|
|
8
8
|
declare namespace prototype {
|
|
@@ -196,6 +196,10 @@ interface AirbornePollutantPrototype extends Prototype {
|
|
|
196
196
|
*/
|
|
197
197
|
affects_water_tint: boolean;
|
|
198
198
|
chart_color: Color;
|
|
199
|
+
/**
|
|
200
|
+
* If true, trees will occasionally take damage from this pollutant type. When they do, some amount of pollution is removed from the chunk equal to the map's `pollution_restored_per_tree_damage` setting.
|
|
201
|
+
*/
|
|
202
|
+
damages_trees?: boolean;
|
|
199
203
|
icon: Sprite;
|
|
200
204
|
/**
|
|
201
205
|
* The translated plural string key to use when displaying this pollution's name with an amount. See {@link Tutorial:Localisation | https://wiki.factorio.com/Tutorial:Localisation}.
|
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 2.0.
|
|
5
|
+
// Factorio version 2.0.43
|
|
6
6
|
// API version 6
|
|
7
7
|
|
|
8
8
|
declare namespace prototype {
|
|
@@ -5955,19 +5955,26 @@ interface MainSound {
|
|
|
5955
5955
|
* Can't be used when `match_progress_to_activity` is `true`.
|
|
5956
5956
|
*/
|
|
5957
5957
|
fade_out_ticks?: uint32;
|
|
5958
|
-
|
|
5959
|
-
|
|
5960
|
-
|
|
5958
|
+
/**
|
|
5959
|
+
* Unused when {@link WorkingSound::persistent | prototype:WorkingSound::persistent} is `true`.
|
|
5960
|
+
*/
|
|
5961
|
+
match_progress_to_activity?: bool;
|
|
5962
|
+
match_speed_to_activity?: bool;
|
|
5963
|
+
match_volume_to_activity?: bool;
|
|
5961
5964
|
/**
|
|
5962
5965
|
* Array of {@link WorkingVisualisation::name | prototype:WorkingVisualisation::name}s, individual names cannot be empty.
|
|
5963
5966
|
*
|
|
5964
5967
|
* The `sound` is played when at least one of the specified working visualisations is drawn.
|
|
5968
|
+
*
|
|
5969
|
+
* Unused when {@link WorkingSound::persistent | prototype:WorkingSound::persistent} is `true`.
|
|
5965
5970
|
*/
|
|
5966
5971
|
play_for_working_visualisations?: string[];
|
|
5967
5972
|
/**
|
|
5968
5973
|
* Modifies how often the sound is played.
|
|
5969
5974
|
*
|
|
5970
5975
|
* Silently clamped to the [0.0, 1.0] range.
|
|
5976
|
+
*
|
|
5977
|
+
* Unused when {@link WorkingSound::persistent | prototype:WorkingSound::persistent} is `true`.
|
|
5971
5978
|
* @example ```
|
|
5972
5979
|
probability = 1 / (3 * 60) -- average pause between the sound is 3 seconds
|
|
5973
5980
|
```
|
|
@@ -12595,18 +12602,26 @@ working_sound =
|
|
|
12595
12602
|
type WorkingSound = {
|
|
12596
12603
|
/**
|
|
12597
12604
|
* Might not work with all entities that use working_sound.
|
|
12605
|
+
*
|
|
12606
|
+
* Unused when `persistent` is `true`.
|
|
12598
12607
|
*/
|
|
12599
12608
|
activate_sound?: Sound;
|
|
12600
12609
|
/**
|
|
12601
12610
|
* Might not work with all entities that use working_sound.
|
|
12611
|
+
*
|
|
12612
|
+
* Unused when `persistent` is `true`.
|
|
12602
12613
|
*/
|
|
12603
12614
|
deactivate_sound?: Sound;
|
|
12604
12615
|
/**
|
|
12605
|
-
* If `true`, `max_sounds_per_prototype`
|
|
12616
|
+
* If `true`, entities playing their extra sound don't count towards `max_sounds_per_prototype` limit. 'extra sound' refers to `idle_sound`, `activate_sound` or `deactivate_sound`.
|
|
12617
|
+
*
|
|
12618
|
+
* Unused when `persistent` is `true`.
|
|
12606
12619
|
*/
|
|
12607
|
-
extra_sounds_ignore_limit?:
|
|
12620
|
+
extra_sounds_ignore_limit?: bool;
|
|
12608
12621
|
/**
|
|
12609
12622
|
* The sound to be played when the entity is idle. Might not work with all entities that use working_sound.
|
|
12623
|
+
*
|
|
12624
|
+
* Unused when `persistent` is `true`.
|
|
12610
12625
|
*/
|
|
12611
12626
|
idle_sound?: Sound;
|
|
12612
12627
|
/**
|
|
@@ -12619,14 +12634,19 @@ type WorkingSound = {
|
|
|
12619
12634
|
* Inactive entities without an `idle_sound` don't count towards this limit.
|
|
12620
12635
|
*
|
|
12621
12636
|
* Entities with their working sound fading out don't count towards this limit.
|
|
12637
|
+
*
|
|
12638
|
+
* Unused when `persistent` is `true`.
|
|
12622
12639
|
*/
|
|
12623
12640
|
max_sounds_per_prototype?: uint8;
|
|
12624
12641
|
/**
|
|
12625
|
-
* When `true`, working sounds for all entities of the same prototype are combined into one
|
|
12642
|
+
* When `true`, working sounds for all entities of the same prototype are combined into one.
|
|
12643
|
+
*/
|
|
12644
|
+
persistent?: bool;
|
|
12645
|
+
/**
|
|
12646
|
+
* Unused when `persistent` is `true`.
|
|
12626
12647
|
*/
|
|
12627
|
-
persistent?: boolean;
|
|
12628
12648
|
sound_accents?: SoundAccent | SoundAccent[];
|
|
12629
|
-
use_doppler_shift?:
|
|
12649
|
+
use_doppler_shift?: bool;
|
|
12630
12650
|
} | Sound;
|
|
12631
12651
|
/**
|
|
12632
12652
|
* Used by crafting machines to display different graphics when the machine is running.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "factorio-types",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.30",
|
|
4
4
|
"description": "Typescript declarations for the Factorio mod API",
|
|
5
5
|
"main": "index.d.ts",
|
|
6
6
|
"repository": "https://github.com/sguest/factorio-types.git",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"src/**/*.d.ts",
|
|
24
24
|
"dist/**/*.d.ts"
|
|
25
25
|
],
|
|
26
|
-
"factorioVersion": "2.0.
|
|
26
|
+
"factorioVersion": "2.0.43",
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"lua-types": "^2.13.1"
|
|
29
29
|
},
|