mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-08-15 10:47:21 +00:00
Update Cohort.lua
- Added functions to get and set attributes - Added function to get category and properties
This commit is contained in:
parent
0e78be86e4
commit
a4b5362347
@ -504,6 +504,37 @@ function COHORT:SetCallsign(Callsign, Index)
|
|||||||
return self
|
return self
|
||||||
end
|
end
|
||||||
|
|
||||||
|
--- Set generalized attribute.
|
||||||
|
-- @param #COHORT self
|
||||||
|
-- @param #string Attribute Generalized attribute, e.g. `GROUP.Attribute.Ground_Infantry`.
|
||||||
|
-- @return #COHORT self
|
||||||
|
function COHORT:SetAttribute(Attribute)
|
||||||
|
self.attribute=Attribute
|
||||||
|
return self
|
||||||
|
end
|
||||||
|
|
||||||
|
--- Get generalized attribute.
|
||||||
|
-- @param #COHORT self
|
||||||
|
-- @return #string Generalized attribute, e.g. `GROUP.Attribute.Ground_Infantry`.
|
||||||
|
function COHORT:GetAttribute()
|
||||||
|
return self.attribute
|
||||||
|
end
|
||||||
|
|
||||||
|
--- Get group category.
|
||||||
|
-- @param #COHORT self
|
||||||
|
-- @return #string Group category
|
||||||
|
function COHORT:GetCategory()
|
||||||
|
return self.category
|
||||||
|
end
|
||||||
|
|
||||||
|
--- Get properties, *i.e.* DCS attributes.
|
||||||
|
-- @param #COHORT self
|
||||||
|
-- @return #table Properties table.
|
||||||
|
function COHORT:GetProperties()
|
||||||
|
return self.properties
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
--- Set modex.
|
--- Set modex.
|
||||||
-- @param #COHORT self
|
-- @param #COHORT self
|
||||||
-- @param #number Modex A number like 100.
|
-- @param #number Modex A number like 100.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user