factorio-types 1.2.6 → 1.2.7
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 +11 -3
- package/dist/concepts.d.ts +1 -1
- package/dist/datacollection.d.ts +1 -1
- package/dist/defines.d.ts +5 -1
- package/dist/events.d.ts +5 -1
- package/dist/global.d.ts +1 -1
- package/dist/prototypes.d.ts +2 -2
- package/dist/types.d.ts +7 -3
- 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.13
|
|
6
6
|
// API version 6
|
|
7
7
|
|
|
8
8
|
declare namespace runtime {
|
|
@@ -79,7 +79,7 @@ interface LuaAchievementPrototype extends LuaPrototypeBase {
|
|
|
79
79
|
readonly minimum_damage?: float;
|
|
80
80
|
readonly minimum_distance?: double;
|
|
81
81
|
readonly minimum_energy_produced?: double;
|
|
82
|
-
readonly module?:
|
|
82
|
+
readonly module?: string[];
|
|
83
83
|
readonly more_than_manually?: boolean;
|
|
84
84
|
readonly not_to_kill?: LuaEntityPrototype;
|
|
85
85
|
/**
|
|
@@ -13656,6 +13656,10 @@ interface LuaPlayer extends LuaControl {
|
|
|
13656
13656
|
* The permission group this player is part of, if any.
|
|
13657
13657
|
*/
|
|
13658
13658
|
permission_group?: LuaPermissionGroup;
|
|
13659
|
+
/**
|
|
13660
|
+
* The player's "physical" controller. When a player is in the remote controller, this specifies the controller they will return to. When the player is not in the remote controller, this is equivalent to {@link LuaPlayer::controller_type | runtime:LuaPlayer::controller_type}.
|
|
13661
|
+
*/
|
|
13662
|
+
readonly physical_controller_type: defines.controllers;
|
|
13659
13663
|
/**
|
|
13660
13664
|
* The current position of this players physical controller.
|
|
13661
13665
|
*/
|
|
@@ -14125,6 +14129,10 @@ interface LuaPumpControlBehavior extends LuaGenericOnOffControlBehavior {
|
|
|
14125
14129
|
*/
|
|
14126
14130
|
interface LuaQualityPrototype extends LuaPrototypeBase {
|
|
14127
14131
|
readonly beacon_power_usage_multiplier: float;
|
|
14132
|
+
/**
|
|
14133
|
+
* The color of the prototype
|
|
14134
|
+
*/
|
|
14135
|
+
readonly color: Color;
|
|
14128
14136
|
readonly draw_sprite_by_default: boolean;
|
|
14129
14137
|
/**
|
|
14130
14138
|
* Level basically specifies the stat-increasing value of this quality level
|
|
@@ -15846,7 +15854,7 @@ interface LuaSpacePlatform {
|
|
|
15846
15854
|
/**
|
|
15847
15855
|
* The name of this space platform.
|
|
15848
15856
|
*/
|
|
15849
|
-
|
|
15857
|
+
name: string;
|
|
15850
15858
|
/**
|
|
15851
15859
|
* 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.
|
|
15852
15860
|
*/
|
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.13
|
|
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.13
|
|
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.13
|
|
6
6
|
// API version 6
|
|
7
7
|
|
|
8
8
|
declare namespace defines {
|
|
@@ -2083,6 +2083,10 @@ enum space_platform_state {
|
|
|
2083
2083
|
* Following the path.
|
|
2084
2084
|
*/
|
|
2085
2085
|
on_the_path = 3,
|
|
2086
|
+
/**
|
|
2087
|
+
* Paused.
|
|
2088
|
+
*/
|
|
2089
|
+
paused = 8,
|
|
2086
2090
|
/**
|
|
2087
2091
|
* Starter pack is on the way.
|
|
2088
2092
|
*/
|
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.13
|
|
6
6
|
// API version 6
|
|
7
7
|
|
|
8
8
|
declare namespace runtime {
|
|
@@ -3224,6 +3224,10 @@ interface on_pre_scenario_finished {
|
|
|
3224
3224
|
* Identifier of the event
|
|
3225
3225
|
*/
|
|
3226
3226
|
name: defines.events;
|
|
3227
|
+
/**
|
|
3228
|
+
* If a player won
|
|
3229
|
+
*/
|
|
3230
|
+
player_won: boolean;
|
|
3227
3231
|
/**
|
|
3228
3232
|
* Tick the event was generated.
|
|
3229
3233
|
*/
|
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.13
|
|
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.13
|
|
6
6
|
// API version 6
|
|
7
7
|
|
|
8
8
|
declare namespace prototype {
|
|
@@ -5419,7 +5419,7 @@ interface ModuleTransferAchievementPrototype extends AchievementPrototype {
|
|
|
5419
5419
|
module = "quality-module"
|
|
5420
5420
|
```
|
|
5421
5421
|
*/
|
|
5422
|
-
module: ItemID;
|
|
5422
|
+
module: ItemID | ItemID[];
|
|
5423
5423
|
}
|
|
5424
5424
|
/**
|
|
5425
5425
|
* Used by {@link SelectionToolPrototype::mouse_cursor | prototype:SelectionToolPrototype::mouse_cursor}.
|
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.13
|
|
6
6
|
// API version 6
|
|
7
7
|
|
|
8
8
|
declare namespace prototype {
|
|
@@ -5877,11 +5877,11 @@ interface MainSound {
|
|
|
5877
5877
|
*/
|
|
5878
5878
|
audible_distance_modifier?: double;
|
|
5879
5879
|
/**
|
|
5880
|
-
* Can't be used when `match_progress_to_activity` is true
|
|
5880
|
+
* Can't be used when `match_progress_to_activity` is `true`.
|
|
5881
5881
|
*/
|
|
5882
5882
|
fade_in_ticks?: uint32;
|
|
5883
5883
|
/**
|
|
5884
|
-
* Can't be used when `match_progress_to_activity` is true
|
|
5884
|
+
* Can't be used when `match_progress_to_activity` is `true`.
|
|
5885
5885
|
*/
|
|
5886
5886
|
fade_out_ticks?: uint32;
|
|
5887
5887
|
match_progress_to_activity?: bool;
|
|
@@ -5896,6 +5896,10 @@ interface MainSound {
|
|
|
5896
5896
|
*/
|
|
5897
5897
|
probability?: double;
|
|
5898
5898
|
sound?: Sound;
|
|
5899
|
+
/**
|
|
5900
|
+
* Only used if {@link WorkingSound::persistent | prototype:WorkingSound::persistent} is `true`.
|
|
5901
|
+
*/
|
|
5902
|
+
volume_smoothing_window_size?: uint32;
|
|
5899
5903
|
}
|
|
5900
5904
|
interface ManualTransferTipTrigger extends CountBasedTipTrigger {
|
|
5901
5905
|
type: 'manual-transfer';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "factorio-types",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.7",
|
|
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.13",
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"lua-types": "^2.13.1"
|
|
29
29
|
},
|