mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
#STATIC - added access to STORAGE object if set (cargo static types)
This commit is contained in:
parent
5ffeecc333
commit
7fa01b9e3c
@ -330,3 +330,12 @@ function STATIC:FindAllByMatching( Pattern )
|
|||||||
|
|
||||||
return GroupsFound
|
return GroupsFound
|
||||||
end
|
end
|
||||||
|
|
||||||
|
--- Get the Wrapper.Storage#STORAGE object of an static if it is used as cargo and has been set up as storage object.
|
||||||
|
-- @param #STATIC self
|
||||||
|
-- @return Wrapper.Storage#STORAGE Storage or `nil` if not fund or set up.
|
||||||
|
function STATIC:GetStaticStorage()
|
||||||
|
local name = self:GetName()
|
||||||
|
local storage = STORAGE:NewFromStaticCargo(name)
|
||||||
|
return storage
|
||||||
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user