Created
October 18, 2010 22:54
-
-
Save probablycorey/633241 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| waxClass{"SomePlugin", Plugin} | |
| function init(self) | |
| self = self.super(self) | |
| -- Any initialization goes here | |
| return self | |
| end | |
| function eventReceived(self, event) | |
| -- Handle the event | |
| end | |
| -- | |
| -- OR | |
| -- | |
| -- Each event could be defined in the ObjC 'Plugin' class and you override | |
| -- them in lua | |
| function thatThingHappened(self, var, anotherVar) | |
| -- Handle the event | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment