Created
September 26, 2013 16:40
-
-
Save makotok/6716797 to your computer and use it in GitHub Desktop.
This file contains 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
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 ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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!