Fix various bugs in RADIO

This is the first implementation that PLAY A SOUND !
The whole RADIO class isn't tested thoroughly though
This commit is contained in:
Grey-Echo
2017-03-10 23:33:21 +01:00
parent b75d90092d
commit 65c61a15b4
6 changed files with 54 additions and 38 deletions

View File

@@ -433,10 +433,10 @@ function POSITIONABLE:Message( Message, Duration, Name )
end
--- Create a @{Radio#RADIO}, to allow radio transmission for this POSITIONABLE
-- Set parameters with the methods provided, then use @{Radio#RADIO.Broadcast} to actually broadcast the message
-- @param self
-- @return #RADIO
-- Set parameters with the methods provided, then use RADIO:Broadcast() to actually broadcast the message
-- @param #POSITIONABLE self
-- @return #RADIO Radio
function POSITIONABLE:GetRadio()
local Radio = RADIO.New(self)
return Radio
end
self:F2(self)
return RADIO:New(self)
end