Skip to content

Instantly share code, notes, and snippets.

@probablycorey
Created October 18, 2010 22:54
Show Gist options
  • Select an option

  • Save probablycorey/633241 to your computer and use it in GitHub Desktop.

Select an option

Save probablycorey/633241 to your computer and use it in GitHub Desktop.
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