diff --git a/library/mission/airbase.lua b/library/mission/airbase.lua index 1d07309..e73c9e9 100644 --- a/library/mission/airbase.lua +++ b/library/mission/airbase.lua @@ -13,4 +13,9 @@ Airbase.Category = { ---Returns a localized string of the airbases's callsign.
---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 \ No newline at end of file +function Airbase:getCallsign() end + +---Returns the warehouse object associated with the airbase object.
+---Can then be used to call the warehouse class functions to modify the contents of the warehouse. +---@return Warehouse +function Airbase:getWarehouse() end \ No newline at end of file diff --git a/library/mission/warehouse.lua b/library/mission/warehouse.lua new file mode 100644 index 0000000..206174d --- /dev/null +++ b/library/mission/warehouse.lua @@ -0,0 +1,19 @@ +---@meta + +---@class Warehouse +---@field whid_ string +Warehouse = {} + +--- Adds the passed amount of a given item to the warehouse.
+---itemName is the typeName associated with the item: `weapons.missiles.AIM_54C_Mk47`
+---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.
+---itemName is the typeName associated with the item: `weapons.missiles.AIM_54C_Mk47`
+---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 \ No newline at end of file