mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Implements RADIO's constructor
This commit is contained in:
@@ -9,6 +9,7 @@
|
|||||||
-- 1.1) RADIO construction methods
|
-- 1.1) RADIO construction methods
|
||||||
-- -------------------------------
|
-- -------------------------------
|
||||||
-- RADIO is created with @{Radio#RADIO.New}. This doesn't broadcast a transmission, but only create a RADIO object
|
-- RADIO is created with @{Radio#RADIO.New}. This doesn't broadcast a transmission, but only create a RADIO object
|
||||||
|
-- It should only be used internally. To create a RADIO object, please use @{Identifiable#IDENIFIABLE.GetRadio}
|
||||||
-- To actually broadcast your transmission, you need to use @{Radio#RADIO.Broadcast}
|
-- To actually broadcast your transmission, you need to use @{Radio#RADIO.Broadcast}
|
||||||
--
|
--
|
||||||
-- @module Radio
|
-- @module Radio
|
||||||
@@ -28,3 +29,22 @@ MESSAGE = {
|
|||||||
SubtitleDuration = ""
|
SubtitleDuration = ""
|
||||||
}
|
}
|
||||||
|
|
||||||
|
--- Create a new RADIO Object. This doesn't broadcast a transmission, though, use @{Radio#RADIO.Broadcast} to actually broadcast
|
||||||
|
-- @param self
|
||||||
|
-- @param
|
||||||
|
-- @return #RADIO
|
||||||
|
-- @usage
|
||||||
|
-- -- This is for internal use only. To create a new RADIO, use @{Identifiable#IDENIFIABLE.GetRadio}
|
||||||
|
function RADIO:New(identifiable)
|
||||||
|
local self = BASE:Inherit( self, BASE:New() )
|
||||||
|
self:F( { MessageText, MessageDuration, MessageCategory } )
|
||||||
|
|
||||||
|
self.Identifiable = identifiable
|
||||||
|
return self
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user