annotate modules/ReAction_ModuleTemplate/ReAction_ModuleName.lua @ 25:bf997ea151ca

yet another attempt to add missing files
author Flick <flickerstreak@gmail.com>
date Fri, 07 Mar 2008 22:19:03 +0000
parents
children 21bcaf8215ff
rev   line source
flickerstreak@25 1 --[[
flickerstreak@25 2 ReAction module template
flickerstreak@25 3
flickerstreak@25 4 --]]
flickerstreak@25 5
flickerstreak@25 6 -- local imports
flickerstreak@25 7 local ReAction = ReAction
flickerstreak@25 8 local L = ReAction.L
flickerstreak@25 9 local _G = _G
flickerstreak@25 10
flickerstreak@25 11 -- module declaration
flickerstreak@25 12 local moduleID = "MyModuleName"
flickerstreak@25 13 local module = ReAction:NewModule( moduleID,
flickerstreak@25 14 -- mixins go here
flickerstreak@25 15 )
flickerstreak@25 16
flickerstreak@25 17 -- module methods
flickerstreak@25 18 function module:OnInitialize()
flickerstreak@25 19 self.db = ReAction:AcquireDBNamespace(moduleID)
flickerstreak@25 20 ReAction:RegisterDefaults(moduleID,"profile",
flickerstreak@25 21 {
flickerstreak@25 22
flickerstreak@25 23 }
flickerstreak@25 24 )
flickerstreak@25 25 end
flickerstreak@25 26
flickerstreak@25 27 function module:OnEnable()
flickerstreak@25 28
flickerstreak@25 29 end
flickerstreak@25 30
flickerstreak@25 31 function module:OnDisable()
flickerstreak@25 32
flickerstreak@25 33 end
flickerstreak@25 34
flickerstreak@25 35 function module:OnProfileEnable()
flickerstreak@25 36
flickerstreak@25 37 end
flickerstreak@25 38
flickerstreak@25 39 function module:OnProfileDisable()
flickerstreak@25 40
flickerstreak@25 41 end
flickerstreak@25 42