Thomasims

EventBox

Jan 16th, 2013
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.43 KB | None | 0 0
  1. local EventBox = {
  2.   display = function(self)
  3.     
  4.   end,
  5.   
  6.   update = function(self, e, a1, a2, a3)
  7.     self.e = e
  8.     self.a1 = a1
  9.     self.a2 = a2
  10.     self.a3 = a3
  11.     return true
  12.   end
  13. }
  14.  
  15. local EventBox_mt = {
  16.   __index = EventBox,
  17. }
  18.  
  19. function new()
  20.   local t = {
  21.     e = "",
  22.     a1 = "",
  23.     a2 = "",
  24.     a3 = ""
  25.   }
  26.   setmetatable(t, EventBox_mt)
  27.   return t
  28. end
Advertisement
Add Comment
Please, Sign In to add comment