mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Warehouse v0.4.4w
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user