Implement POSITIONABLE:GetRadio() and small fixes in Radio.lua

This commit is contained in:
Grey-Echo
2017-03-10 23:32:33 +01:00
parent 59bba1e17e
commit fc3ad53ebe
2 changed files with 9 additions and 6 deletions

View File

@@ -432,7 +432,11 @@ function POSITIONABLE:Message( Message, Duration, Name )
return nil
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
function POSITIONABLE:GetRadio()
local Radio = RADIO.New(self)
return Radio
end