From c37d6e6f95abde2fba515b2d29ecf5a198890d17 Mon Sep 17 00:00:00 2001 From: Grey-Echo Date: Fri, 10 Mar 2017 23:31:53 +0100 Subject: [PATCH] Implements RADIO's constructor --- Moose Development/Moose/Core/Radio.lua | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/Moose Development/Moose/Core/Radio.lua b/Moose Development/Moose/Core/Radio.lua index 1aa399112..866d1a040 100644 --- a/Moose Development/Moose/Core/Radio.lua +++ b/Moose Development/Moose/Core/Radio.lua @@ -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 + + + + + +