factorio-types 0.0.30 → 0.0.32
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 +23 -2
- package/dist/concepts.d.ts +1 -1
- package/dist/defines.d.ts +1 -1
- package/dist/events.d.ts +5 -1
- package/dist/global.d.ts +1 -1
- 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.74
|
|
6
6
|
// API version 3
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -9787,10 +9787,12 @@ interface LuaInventory {
|
|
|
9787
9787
|
|
|
9788
9788
|
/**
|
|
9789
9789
|
* Counts the number of empty stacks.
|
|
9790
|
+
* @param include_bar - If true, slots blocked by the current bar will be included. Defaults to true.
|
|
9790
9791
|
* @param include_filtered - If true, filtered slots will be included. Defaults to false.
|
|
9791
9792
|
*/
|
|
9792
9793
|
count_empty_stacks(this: void,
|
|
9793
|
-
include_filtered?: boolean
|
|
9794
|
+
include_filtered?: boolean,
|
|
9795
|
+
include_bar?: boolean): void
|
|
9794
9796
|
|
|
9795
9797
|
/**
|
|
9796
9798
|
* Destroys this inventory.
|
|
@@ -9875,6 +9877,11 @@ interface LuaInventory {
|
|
|
9875
9877
|
*/
|
|
9876
9878
|
is_filtered(this: void): void
|
|
9877
9879
|
|
|
9880
|
+
/**
|
|
9881
|
+
* Is every stack in this inventory full? Ignores stacks blocked by the current bar.
|
|
9882
|
+
*/
|
|
9883
|
+
is_full(this: void): void
|
|
9884
|
+
|
|
9878
9885
|
/**
|
|
9879
9886
|
* Remove items from this inventory.
|
|
9880
9887
|
* @param items - Items to remove.
|
|
@@ -12688,6 +12695,15 @@ interface LuaPlayer extends LuaControl {
|
|
|
12688
12695
|
request_translation(this: void,
|
|
12689
12696
|
localised_string: LocalisedString): void
|
|
12690
12697
|
|
|
12698
|
+
/**
|
|
12699
|
+
* Requests a translation for the given localised strings. If the request is successful the {@link on_string_translated | on_string_translated} event will be fired at a later time with the results.
|
|
12700
|
+
* @remarks
|
|
12701
|
+
* Does nothing if this player is not connected. (see {@link LuaPlayer::connected | LuaPlayer::connected}).
|
|
12702
|
+
*
|
|
12703
|
+
*/
|
|
12704
|
+
request_translations(this: void,
|
|
12705
|
+
localised_strings: LocalisedString[]): void
|
|
12706
|
+
|
|
12691
12707
|
/**
|
|
12692
12708
|
* Sets which quick bar page is being used for the given screen page.
|
|
12693
12709
|
* @param page_index - The new quick bar page.
|
|
@@ -12860,6 +12876,11 @@ interface LuaPlayer extends LuaControl {
|
|
|
12860
12876
|
|
|
12861
12877
|
readonly controller_type: defines.controllers
|
|
12862
12878
|
|
|
12879
|
+
/**
|
|
12880
|
+
* Returns true if the current item stack in cursor will be destroyed after clearing the cursor. Manually putting it into inventory still preserves the item. If the cursor stack is not one of the supported types (blueprint, blueprint-book, deconstruction-planner, upgrade-planner), write operation will be silently ignored.
|
|
12881
|
+
*/
|
|
12882
|
+
cursor_stack_temporary: boolean
|
|
12883
|
+
|
|
12863
12884
|
/**
|
|
12864
12885
|
* When in a cutscene; the character this player would be using once the cutscene is over, if any. Returns `nil` when the player is disconnected (see {@link LuaPlayer::connected | LuaPlayer::connected}).
|
|
12865
12886
|
*/
|
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.74
|
|
6
6
|
// API version 3
|
|
7
7
|
|
|
8
8
|
/**
|
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.74
|
|
6
6
|
// API version 3
|
|
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 1.1.
|
|
5
|
+
// Factorio version 1.1.74
|
|
6
6
|
// API version 3
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -2285,6 +2285,10 @@ interface on_spider_command_completed extends event {
|
|
|
2285
2285
|
* Called when a translation request generated through {@link LuaPlayer::request_translation | LuaPlayer::request_translation} is translated.
|
|
2286
2286
|
*/
|
|
2287
2287
|
interface on_string_translated extends event {
|
|
2288
|
+
/**
|
|
2289
|
+
* The unique id for this translation request.
|
|
2290
|
+
*/
|
|
2291
|
+
id: number
|
|
2288
2292
|
/**
|
|
2289
2293
|
* The localised string being translated.
|
|
2290
2294
|
*/
|
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.74
|
|
6
6
|
// API version 3
|
|
7
7
|
|
|
8
8
|
/**
|