factorio-types 0.0.39 → 0.0.41

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/global.d.ts CHANGED
@@ -2,48 +2,48 @@
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.89
5
+ // Factorio version 1.1.90
6
6
  // API version 4
7
7
 
8
8
  /**
9
9
  * Allows registration of custom commands for the in-game console.
10
10
  */
11
- declare const commands: LuaCommandProcessor
11
+ declare const commands: runtime.LuaCommandProcessor
12
12
  /**
13
13
  * The main scripting interface through which most of the API is accessed.
14
14
  */
15
- declare const game: LuaGameScript
15
+ declare const game: runtime.LuaGameScript
16
16
  /**
17
17
  * Allows printing messages to the calling RCON instance, if any.
18
18
  */
19
- declare const rcon: LuaRCON
19
+ declare const rcon: runtime.LuaRCON
20
20
  /**
21
21
  * Allows registration and use of functions to communicate between mods.
22
22
  */
23
- declare const remote: LuaRemote
23
+ declare const remote: runtime.LuaRemote
24
24
  /**
25
25
  * Allows rendering of geometric shapes, text and sprites in the game world.
26
26
  */
27
- declare const rendering: LuaRendering
27
+ declare const rendering: runtime.LuaRendering
28
28
  /**
29
29
  * Provides an interface for registering game event handlers.
30
30
  */
31
- declare const script: LuaBootstrap
31
+ declare const script: runtime.LuaBootstrap
32
32
  /**
33
33
  * Provides access to the current mod settings.
34
34
  */
35
- declare const settings: LuaSettings
35
+ declare const settings: runtime.LuaSettings
36
36
  /**
37
37
  * `localised_print()` allows printing {@link LocalisedString | runtime:LocalisedString} to stdout without polluting the Factorio {@link log file | https://wiki.factorio.com/Log_file}. This is primarily useful when communicating with external tools that launch Factorio as a child process.
38
38
  */
39
39
  declare function localised_print(this: void,
40
- string: LocalisedString): void
40
+ string: runtime.LocalisedString): void
41
41
 
42
42
  /**
43
43
  * `log()` can print {@link LocalisedStrings | runtime:LocalisedString} to the Factorio {@link log file | https://wiki.factorio.com/Log_file}. This, in combination with the serpent library, makes debugging in the data stage easier because it allows the inspection of entire prototype tables. For example, printing all properties of the sulfur item prototype can be done like so: `log(serpent.block(data.raw["item"]["sulfur"]))`
44
44
  */
45
45
  declare function log(this: void,
46
- string: LocalisedString): void
46
+ string: runtime.LocalisedString): void
47
47
 
48
48
  /**
49
49
  * Factorio provides the `table_size()` function as a simple way to determine the size of tables with non-continuous keys, as the standard `#` operator does not work correctly for these. The function is a C++ implementation of the following Lua code, which is faster than doing the same in Lua:
@@ -61,5 +61,5 @@ declare function log(this: void,
61
61
  * Note that `table_size()` does not work correctly for {@link LuaCustomTable | runtime:LuaCustomTable}, their size has to be determined with {@link LuaCustomTable::length_operator | runtime:LuaCustomTable::length_operator} instead.
62
62
  */
63
63
  declare function table_size(this: void,
64
- table: Table): void
64
+ table: Table): number
65
65