mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2026-08-12 16:57:50 +00:00
FG
This commit is contained in:
@@ -352,10 +352,23 @@ AIRBASE.TerminalType = {
|
||||
-- @param #string AirbaseName The name of the airbase.
|
||||
-- @return Wrapper.Airbase#AIRBASE
|
||||
function AIRBASE:Register( AirbaseName )
|
||||
|
||||
-- Inherit from POSITIONABLE.
|
||||
local self = BASE:Inherit( self, POSITIONABLE:New( AirbaseName ) ) --#AIRBASE
|
||||
|
||||
-- Set airbase name.
|
||||
self.AirbaseName = AirbaseName
|
||||
|
||||
-- Set airbase zone.
|
||||
self.AirbaseZone = ZONE_RADIUS:New( AirbaseName, self:GetVec2(), 2500 )
|
||||
|
||||
-- Get Parking data.
|
||||
self.parking=self:GetParkingSpotsTable()
|
||||
|
||||
-- Register zone.
|
||||
_DATABASE.ZONENAMES[AirbaseName] = AirbaseName
|
||||
_DATABASE:AddZone( AirbaseName, self.AirbaseZone )
|
||||
|
||||
return self
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user