Warehouse v0.4.4w

This commit is contained in:
funkyfranky
2018-09-14 15:25:06 +02:00
parent fdfb5266b3
commit c7c63b37fe
3 changed files with 257 additions and 191 deletions

View File

@@ -206,8 +206,19 @@ function IDENTIFIABLE:GetCountry()
self:F( self.ClassName .. " " .. self.IdentifiableName .. " not found!" )
return nil
end
--- Returns country name of the Identifiable.
-- @param #IDENTIFIABLE self
-- @return #string Name of the country.
function IDENTIFIABLE:GetCountryName()
self:F2( self.IdentifiableName )
local countryid=self:GetCountry()
for name,id in pairs(country.id) do
if countryid==id then
return name
end
end
end
--- Returns Identifiable descriptor. Descriptor type depends on Identifiable category.
-- @param #IDENTIFIABLE self