api update

This commit is contained in:
Monica Moniot
2022-10-28 14:40:49 -04:00
parent 4887e3925d
commit d2bb9e2523
113 changed files with 432 additions and 222 deletions
+6 -6
View File
@@ -1,7 +1,7 @@
---@meta
---@diagnostic disable
--$Factorio 1.1.69
--$Factorio 1.1.70
--$Overlay 5
--$Section LuaControl
-- This file is automatically generated. Edits will be overwritten.
@@ -206,14 +206,14 @@
---
---This is the GUI that will asked to close (by firing the [on_gui_closed](https://lua-api.factorio.com/latest/events.html#on_gui_closed) event) when the `Esc` or `E` keys are pressed. If this attribute is not `nil`, and a new GUI is written to it, the existing one will be asked to close.
---
---**Note:** Write supports any of the types. Read will return the `entity`, `equipment`, `equipment-grid`, `player`, `element`, `inventory` or `nil`.
---**Note:** Write supports any of the types. Read will return the `entity`, `equipment`, `equipment-grid`, `player`, `element`, `inventory`, `technology`, or `nil`.
---
---**Events:**
--- * May raise [on_gui_opened](https://lua-api.factorio.com/latest/events.html#on_gui_opened) instantly.
---Raised when writing a valid GUI target to this attribute.
---
---[View documentation](https://lua-api.factorio.com/latest/LuaControl.html#LuaControl.opened)
---@field opened? LuaEntity|LuaItemStack|LuaEquipment|LuaEquipmentGrid|LuaPlayer|LuaGuiElement|LuaInventory|defines.gui_type
---@field opened? LuaEntity|LuaItemStack|LuaEquipment|LuaEquipmentGrid|LuaPlayer|LuaGuiElement|LuaInventory|LuaTechnology|defines.gui_type
---[R]
---
---[View documentation](https://lua-api.factorio.com/latest/LuaControl.html#LuaControl.opened_gui_type)
@@ -244,7 +244,7 @@
---[View documentation](https://lua-api.factorio.com/latest/LuaControl.html#LuaControl.resource_reach_distance)
---@field resource_reach_distance double
---[RW]
---Current riding state of this car or the vehicle this player is riding in.
---Current riding state of this car, or of the car this player is riding in.
---
---[View documentation](https://lua-api.factorio.com/latest/LuaControl.html#LuaControl.riding_state)
---@field riding_state RidingState
@@ -426,13 +426,13 @@ get_item_count=function(item)end,
---[View documentation](https://lua-api.factorio.com/latest/LuaControl.html#LuaControl.get_main_inventory)
---@return LuaInventory?@The inventory or `nil` if this entity is not a character or player.
get_main_inventory=function()end,
---Gets the parameters of a personal logistic request and auto-trash slot. Only used on `spider-vehicle`.
---Gets the parameters of a personal logistic request and auto-trash slot.
---
---[View documentation](https://lua-api.factorio.com/latest/LuaControl.html#LuaControl.get_personal_logistic_slot)
---@param slot_index uint@The slot to get.
---@return LogisticParameters@The logistic parameters. If personal logistics are not researched yet, their `name` will be `nil`.
get_personal_logistic_slot=function(slot_index)end,
---Gets the parameters of a vehicle logistic request and auto-trash slot.
---Gets the parameters of a vehicle logistic request and auto-trash slot. Only used on `spider-vehicle`.
---
---[View documentation](https://lua-api.factorio.com/latest/LuaControl.html#LuaControl.get_vehicle_logistic_slot)
---@param slot_index uint@The slot to get.