Added EVENTHANDLER class for generic event handling

This commit is contained in:
FlightControl
2017-02-14 13:15:11 +01:00
parent d1877ba300
commit 84b5f2dd68
5 changed files with 93 additions and 2 deletions

View File

@@ -152,6 +152,10 @@
--
-- @module Event
--- The EVENT structure
-- @type EVENT
-- @field #EVENT.Events Events
@@ -1137,3 +1141,18 @@ function EVENT:onEvent( Event )
end
end
--- The EVENTHANDLER structure
-- @type EVENTHANDLER
-- @extends Core.Base#BASE
EVENTHANDLER = {
ClassName = "EVENTHANDLER",
ClassID = 0,
}
--- The EVENTHANDLER constructor
-- @param #EVENTHANDLER self
-- @return #EVENTHANDLER
function EVENTHANDLER:New()
self = BASE:Inherit( self, BASE:New() ) -- #EVENTHANDLER
return self
end