mirror of
https://github.com/Xevion/project-cybersyn.git
synced 2025-12-12 22:12:38 -06:00
api update
This commit is contained in:
24
.vscode/factorio/runtime-api-LuaEntity.lua
vendored
24
.vscode/factorio/runtime-api-LuaEntity.lua
vendored
@@ -1,7 +1,7 @@
|
||||
---@meta
|
||||
---@diagnostic disable
|
||||
|
||||
--$Factorio 1.1.69
|
||||
--$Factorio 1.1.70
|
||||
--$Overlay 5
|
||||
--$Section LuaEntity
|
||||
-- This file is automatically generated. Edits will be overwritten.
|
||||
@@ -282,6 +282,8 @@
|
||||
---Whether the driver of this car or spidertron is the gunner. If `false`, the passenger is the gunner. `nil` if this is neither a car or a spidertron.
|
||||
---
|
||||
---[View documentation](https://lua-api.factorio.com/latest/LuaEntity.html#LuaEntity.driver_is_gunner)
|
||||
---
|
||||
---_Can only be used if this is Car or SpiderVehicle_
|
||||
---@field driver_is_gunner? boolean
|
||||
---[RW]
|
||||
---Position where the entity puts its stuff.
|
||||
@@ -884,7 +886,7 @@
|
||||
---
|
||||
---[View documentation](https://lua-api.factorio.com/latest/LuaEntity.html#LuaEntity.selected_gun_index)
|
||||
---
|
||||
---_Can only be used if this is Character or Car_
|
||||
---_Can only be used if this is Character, Car or SpiderVehicle_
|
||||
---@field selected_gun_index? uint
|
||||
---[R]
|
||||
---[LuaEntityPrototype::selection_box](https://lua-api.factorio.com/latest/LuaEntityPrototype.html#LuaEntityPrototype.selection_box) around entity's given position and respecting the current entity orientation.
|
||||
@@ -892,7 +894,7 @@
|
||||
---[View documentation](https://lua-api.factorio.com/latest/LuaEntity.html#LuaEntity.selection_box)
|
||||
---@field selection_box BoundingBox
|
||||
---[RW]
|
||||
---The shooting target for this turret, if any.
|
||||
---The shooting target for this turret, if any. Can't be set to `nil` via script.
|
||||
---
|
||||
---[View documentation](https://lua-api.factorio.com/latest/LuaEntity.html#LuaEntity.shooting_target)
|
||||
---@field shooting_target? LuaEntity
|
||||
@@ -1513,7 +1515,7 @@ get_heat_setting=function()end,
|
||||
---_Can only be used if this is Rail_
|
||||
---@return LuaEntity[]
|
||||
get_inbound_signals=function()end,
|
||||
---Gets the filter for this infinity container at the given index or `nil` if the filter index doesn't exist or is empty.
|
||||
---Gets the filter for this infinity container at the given index, or `nil` if the filter index doesn't exist or is empty.
|
||||
---
|
||||
---[View documentation](https://lua-api.factorio.com/latest/LuaEntity.html#LuaEntity.get_infinity_container_filter)
|
||||
---
|
||||
@@ -1521,7 +1523,7 @@ get_inbound_signals=function()end,
|
||||
---@param index uint@The index to get.
|
||||
---@return InfinityInventoryFilter?
|
||||
get_infinity_container_filter=function(index)end,
|
||||
---Gets the filter for this infinity pipe or `nil` if the filter is empty.
|
||||
---Gets the filter for this infinity pipe, or `nil` if the filter is empty.
|
||||
---
|
||||
---[View documentation](https://lua-api.factorio.com/latest/LuaEntity.html#LuaEntity.get_infinity_pipe_filter)
|
||||
---
|
||||
@@ -1598,7 +1600,7 @@ get_parent_signals=function()end,
|
||||
---
|
||||
---[View documentation](https://lua-api.factorio.com/latest/LuaEntity.html#LuaEntity.get_passenger)
|
||||
---
|
||||
---_Can only be used if this is Vehicle_
|
||||
---_Can only be used if this is Car or SpiderVehicle_
|
||||
---@return LuaEntity|LuaPlayer?@`nil` if the vehicle contains no passenger. To check if there's a driver see [LuaEntity::get_driver](https://lua-api.factorio.com/latest/LuaEntity.html#LuaEntity.get_driver).
|
||||
get_passenger=function()end,
|
||||
---The radius of this entity.
|
||||
@@ -2065,7 +2067,7 @@ set_driver=function(driver)end,
|
||||
---
|
||||
---[View documentation](https://lua-api.factorio.com/latest/LuaEntity.html#LuaEntity.set_filter)
|
||||
---@param slot_index uint@Index of the slot to set the filter for.
|
||||
---@param item string@Prototype name of the item to filter.
|
||||
---@param item string|nil@Prototype name of the item to filter, or `nil` to clear the filter.
|
||||
set_filter=function(slot_index,item)end,
|
||||
---Sets the heat setting for this heat interface.
|
||||
---
|
||||
@@ -2080,14 +2082,14 @@ set_heat_setting=function(filter)end,
|
||||
---
|
||||
---_Can only be used if this is InfinityContainer_
|
||||
---@param index uint@The index to set.
|
||||
---@param filter InfinityInventoryFilter@The new filter or `nil` to clear the filter.
|
||||
---@param filter InfinityInventoryFilter|nil@The new filter, or `nil` to clear the filter.
|
||||
set_infinity_container_filter=function(index,filter)end,
|
||||
---Sets the filter for this infinity pipe.
|
||||
---
|
||||
---[View documentation](https://lua-api.factorio.com/latest/LuaEntity.html#LuaEntity.set_infinity_pipe_filter)
|
||||
---
|
||||
---_Can only be used if this is InfinityPipe_
|
||||
---@param filter InfinityPipeFilter@The new filter or `nil` to clear the filter.
|
||||
---@param filter InfinityPipeFilter|nil@The new filter, or `nil` to clear the filter.
|
||||
set_infinity_pipe_filter=function(filter)end,
|
||||
---Sets the passenger of this car or spidertron.
|
||||
---
|
||||
@@ -2098,7 +2100,7 @@ set_infinity_pipe_filter=function(filter)end,
|
||||
---
|
||||
---[View documentation](https://lua-api.factorio.com/latest/LuaEntity.html#LuaEntity.set_passenger)
|
||||
---
|
||||
---_Can only be used if this is Vehicle_
|
||||
---_Can only be used if this is Car or SpiderVehicle_
|
||||
---@param passenger LuaEntity|PlayerIdentification
|
||||
set_passenger=function(passenger)end,
|
||||
---Sets the current recipe in this assembly machine.
|
||||
@@ -2153,7 +2155,7 @@ spawn_decorations=function()end,
|
||||
---
|
||||
---[View documentation](https://lua-api.factorio.com/latest/LuaEntity.html#LuaEntity.start_fading_out)
|
||||
start_fading_out=function()end,
|
||||
---Stops the given SpiderVehicle.
|
||||
---Sets the [speed](https://lua-api.factorio.com/latest/LuaEntity.html#LuaEntity.speed) of the given SpiderVehicle to zero. Notably does not clear its [autopilot_destination](https://lua-api.factorio.com/latest/LuaEntity.html#LuaEntity.autopilot_destination), which it will continue moving towards if set.
|
||||
---
|
||||
---[View documentation](https://lua-api.factorio.com/latest/LuaEntity.html#LuaEntity.stop_spider)
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user