mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Merge remote-tracking branch 'origin/master' into develop
# Conflicts: # Moose Development/Moose/Wrapper/Airbase.lua
This commit is contained in:
commit
00ecbc98ba
@ -2309,5 +2309,3 @@ end
|
|||||||
function AIRBASE:GetCategoryName()
|
function AIRBASE:GetCategoryName()
|
||||||
return AIRBASE.CategoryName[self.category]
|
return AIRBASE.CategoryName[self.category]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -25,6 +25,7 @@
|
|||||||
-- @field #string ClassName Name of the class.
|
-- @field #string ClassName Name of the class.
|
||||||
-- @field #string UnitName Name of the unit.
|
-- @field #string UnitName Name of the unit.
|
||||||
-- @field #string GroupName Name of the group the unit belongs to.
|
-- @field #string GroupName Name of the group the unit belongs to.
|
||||||
|
-- @field #table DCSUnit The DCS Unit object from the API.
|
||||||
-- @extends Wrapper.Controllable#CONTROLLABLE
|
-- @extends Wrapper.Controllable#CONTROLLABLE
|
||||||
|
|
||||||
--- For each DCS Unit object alive within a running mission, a UNIT wrapper object (instance) will be created within the global _DATABASE object (an instance of @{Core.Database#DATABASE}).
|
--- For each DCS Unit object alive within a running mission, a UNIT wrapper object (instance) will be created within the global _DATABASE object (an instance of @{Core.Database#DATABASE}).
|
||||||
@ -92,6 +93,7 @@ UNIT = {
|
|||||||
ClassName="UNIT",
|
ClassName="UNIT",
|
||||||
UnitName=nil,
|
UnitName=nil,
|
||||||
GroupName=nil,
|
GroupName=nil,
|
||||||
|
DCSUnit = nil,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -124,6 +126,7 @@ function UNIT:Register( UnitName )
|
|||||||
if group then
|
if group then
|
||||||
self.GroupName=group:getName()
|
self.GroupName=group:getName()
|
||||||
end
|
end
|
||||||
|
self.DCSUnit = unit
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Set event prio.
|
-- Set event prio.
|
||||||
@ -175,7 +178,11 @@ function UNIT:GetDCSObject()
|
|||||||
if DCSUnit then
|
if DCSUnit then
|
||||||
return DCSUnit
|
return DCSUnit
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if self.DCSUnit then
|
||||||
|
return self.DCSUnit
|
||||||
|
end
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user