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

@@ -1,5 +1,5 @@
env.info( '*** MOOSE STATIC INCLUDE START *** ' )
env.info( 'Moose Generation Timestamp: 20170214_1049' )
env.info( 'Moose Generation Timestamp: 20170214_1314' )
local base = _G
Include = {}
@@ -4173,6 +4173,10 @@ end
--
-- @module Event
--- The EVENT structure
-- @type EVENT
-- @field #EVENT.Events Events
@@ -5158,6 +5162,21 @@ 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
--- This module contains the MENU classes.
--
-- ===