mirror of
https://github.com/omltcat/dcs-lua-definitions.git
synced 2026-07-16 22:42:24 +00:00
Add warehouse class
This commit is contained in:
@@ -13,4 +13,9 @@ Airbase.Category = {
|
||||
---Returns a localized string of the airbases's callsign.<br>
|
||||
---In the case of airbases, the callsign of world airbases is defined by the game. Callsigns for units, farps, or ships can be specified by the user with the mission editor or scripting engine.
|
||||
---@return string
|
||||
function Airbase:getCallsign() end
|
||||
function Airbase:getCallsign() end
|
||||
|
||||
---Returns the warehouse object associated with the airbase object.<br>
|
||||
---Can then be used to call the warehouse class functions to modify the contents of the warehouse.
|
||||
---@return Warehouse
|
||||
function Airbase:getWarehouse() end
|
||||
@@ -0,0 +1,19 @@
|
||||
---@meta
|
||||
|
||||
---@class Warehouse
|
||||
---@field whid_ string
|
||||
Warehouse = {}
|
||||
|
||||
--- Adds the passed amount of a given item to the warehouse.<br>
|
||||
---itemName is the typeName associated with the item: `weapons.missiles.AIM_54C_Mk47`<br>
|
||||
---A wsType table can also be used, however the last digit with wsTypes has been known to change: `{4, 4, 7, 322}`
|
||||
---@param item string|table
|
||||
---@param count integer
|
||||
function Warehouse:addItem(item, count) end
|
||||
|
||||
---Returns the number of the passed type of item currently in a warehouse object.<br>
|
||||
---itemName is the typeName associated with the item: `weapons.missiles.AIM_54C_Mk47`<br>
|
||||
---A wsType table can also be used, however the last digit with wsTypes has been known to change: `{4, 4, 7, 322}`
|
||||
---@param item string|table
|
||||
---@return integer
|
||||
function Warehouse:getItemCount(item) end
|
||||
Reference in New Issue
Block a user