docs update
This commit is contained in:
@@ -6,21 +6,24 @@ Barotrauma Item class with some additional functions and fields
|
||||
Barotrauma source code: [Item.cs](https://github.com/evilfactory/Barotrauma-lua-attempt/blob/master/Barotrauma/BarotraumaShared/SharedSource/Items/Item.cs)
|
||||
]]
|
||||
-- @code Item
|
||||
-- @pragma nostrip
|
||||
|
||||
Item = {}
|
||||
|
||||
--- Adds to remove queue, use this instead of Remove, to prevent desync.
|
||||
-- @realm server
|
||||
function AddToRemoveQueue(item) end
|
||||
function Item.AddToRemoveQueue(item) end
|
||||
|
||||
--- Gets a component from an item by a string name.
|
||||
-- @treturn Component component
|
||||
-- @realm server
|
||||
function GetComponentString(componentName) end
|
||||
function Item:GetComponentString(componentName) end
|
||||
|
||||
--- Sends a signal.
|
||||
-- @realm server
|
||||
function SendSignal(signalOrString, connectionOrConnectionName) end
|
||||
function Item:SendSignal(signalOrString, connectionOrConnectionName) end
|
||||
|
||||
--- List of all items.
|
||||
-- @treturn table
|
||||
-- @realm shared
|
||||
ItemList = {}
|
||||
Item.ItemList = {}
|
||||
Reference in New Issue
Block a user