mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-08-15 10:47:21 +00:00
Implements RADIO's constructor
This commit is contained in:
parent
7866de2370
commit
c37d6e6f95
@ -9,6 +9,7 @@
|
||||
-- 1.1) RADIO construction methods
|
||||
-- -------------------------------
|
||||
-- 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}
|
||||
--
|
||||
-- @module Radio
|
||||
@ -28,3 +29,22 @@ MESSAGE = {
|
||||
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
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user