factorio-types 0.0.31 → 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 +15 -1
- 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
|
/**
|
|
@@ -12695,6 +12695,15 @@ interface LuaPlayer extends LuaControl {
|
|
|
12695
12695
|
request_translation(this: void,
|
|
12696
12696
|
localised_string: LocalisedString): void
|
|
12697
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
|
+
|
|
12698
12707
|
/**
|
|
12699
12708
|
* Sets which quick bar page is being used for the given screen page.
|
|
12700
12709
|
* @param page_index - The new quick bar page.
|
|
@@ -12867,6 +12876,11 @@ interface LuaPlayer extends LuaControl {
|
|
|
12867
12876
|
|
|
12868
12877
|
readonly controller_type: defines.controllers
|
|
12869
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
|
+
|
|
12870
12884
|
/**
|
|
12871
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}).
|
|
12872
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
|
/**
|