updated api

This commit is contained in:
Monica Moniot
2022-12-01 19:04:58 -05:00
parent 21abe6fb56
commit 30fe2946e6
104 changed files with 232 additions and 123 deletions
+8 -2
View File
@@ -1,7 +1,7 @@
---@meta
---@diagnostic disable
--$Factorio 1.1.70
--$Factorio 1.1.72
--$Overlay 5
--$Section LuaInventory
-- This file is automatically generated. Edits will be overwritten.
@@ -89,8 +89,9 @@ clear=function()end,
---
---[View documentation](https://lua-api.factorio.com/latest/LuaInventory.html#LuaInventory.count_empty_stacks)
---@param include_filtered boolean?@If true, filtered slots will be included. Defaults to false.
---@param include_bar boolean?@If true, slots blocked by the current bar will be included. Defaults to true.
---@return uint
count_empty_stacks=function(include_filtered)end,
count_empty_stacks=function(include_filtered,include_bar)end,
---Destroys this inventory.
---
---**Note:** Only inventories created by [LuaGameScript::create_inventory](https://lua-api.factorio.com/latest/LuaGameScript.html#LuaGameScript.create_inventory) can be destroyed this way.
@@ -167,6 +168,11 @@ is_empty=function()end,
---[View documentation](https://lua-api.factorio.com/latest/LuaInventory.html#LuaInventory.is_filtered)
---@return boolean
is_filtered=function()end,
---Is every stack in this inventory full? Ignores stacks blocked by the current bar.
---
---[View documentation](https://lua-api.factorio.com/latest/LuaInventory.html#LuaInventory.is_full)
---@return boolean
is_full=function()end,
---Remove items from this inventory.
---
---[View documentation](https://lua-api.factorio.com/latest/LuaInventory.html#LuaInventory.remove)