Skip to content

Instantly share code, notes, and snippets.

@makotok
Created September 26, 2013 16:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save makotok/6716797 to your computer and use it in GitHub Desktop.
Save makotok/6716797 to your computer and use it in GitHub Desktop.
newInterface = {}
setmetatable(newInterface, newInterface)
newInterface.__index = MOAIProp2D.getInterfaceTable()
newInterface.test1 = 123
newInterface.test2 = "Hello"
newInterface.test3 = function() print("Hello") end
prop = MOAIProp2D.new ()
prop:setInterface(newInterface)
prop.test4 = "Member!"
print ( prop )
print ( prop.getBounds )
print ( prop.test1 )
print ( prop.test2 )
print ( prop.test3 )
print ( prop.test4 )
@makotok
Copy link
Author

makotok commented Sep 26, 2013

Moai SDK 1.4 (ad hoc build by )
DEBUG BUILD
Initializing Chipmunk v5.3.4 (Debug Enabled)
Compile with -DNDEBUG defined to disable debug mode and runtime assertion checks
0xc7f794
function: 0xc5e760
nil
nil
nil
Member!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment