vanilla-wow-addons – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | |
2 | -- Class creation |
||
3 | AceModule = AceCore:new() |
||
4 | -- Compatibility reference, deprecated use |
||
5 | AceModuleClass = AceModule |
||
6 | |||
7 | |||
8 | --[[-------------------------------------------------------------------------- |
||
9 | Event Handling |
||
10 | -----------------------------------------------------------------------------]] |
||
11 | |||
12 | function AceModule:RegisterEvent(event, method) |
||
13 | ace.event:RegisterEvent(self, event, method) |
||
14 | end |
||
15 | |||
16 | function AceModule:UnregisterEvent(event) |
||
17 | ace.event:UnregisterEvent(self, event) |
||
18 | end |
||
19 | |||
20 | function AceModule:UnregisterAllEvents() |
||
21 | ace.event:UnregisterAllEvents(self) |
||
22 | end |
||
23 | |||
24 | function AceModule:TriggerEvent(...) |
||
25 | ace.event:TriggerEvent(unpack(arg)) |
||
26 | end |
||
27 | |||
28 | |||
29 | --[[-------------------------------------------------------------------------- |
||
30 | Function Hooking & Script Hooking |
||
31 | -----------------------------------------------------------------------------]] |
||
32 | |||
33 | ace.hook:Embed(AceModule) |