axmol/tools/tolua++
minggo 333342afe2 fixed #892: update pkg and LuaCocos2d.cpp 2011-12-23 11:10:36 +08:00
..
CCAccelerometer.pkg add extensions & tools directory 2011-06-14 14:31:25 +08:00
CCAccelerometerDelegate.pkg Updating AccelerometerDelegate related classes 2011-09-18 18:18:02 +01:00
CCAction.pkg to commit some pkg files 2011-07-08 18:31:02 +08:00
CCActionCamera.pkg add extensions & tools directory 2011-06-14 14:31:25 +08:00
CCActionEase.pkg add extensions & tools directory 2011-06-14 14:31:25 +08:00
CCActionGrid.pkg add extensions & tools directory 2011-06-14 14:31:25 +08:00
CCActionGrid3D.pkg add extensions & tools directory 2011-06-14 14:31:25 +08:00
CCActionInstant.pkg to commit some pkg files 2011-07-08 18:31:02 +08:00
CCActionInterval.pkg to commit the rest pkg files 2011-07-11 14:00:55 +08:00
CCActionManager.pkg fixed #892: update pkg and LuaCocos2d.cpp 2011-12-23 11:10:36 +08:00
CCActionPageTurn3D.pkg add extensions & tools directory 2011-06-14 14:31:25 +08:00
CCActionProgressTimer.pkg add extensions & tools directory 2011-06-14 14:31:25 +08:00
CCActionTiledGrid.pkg add extensions & tools directory 2011-06-14 14:31:25 +08:00
CCAffineTransform.pkg add extensions & tools directory 2011-06-14 14:31:25 +08:00
CCAnimation.pkg fixed #645: update pkg file to v1.0.1 2011-08-02 16:21:23 +08:00
CCAnimationCache.pkg add extensions & tools directory 2011-06-14 14:31:25 +08:00
CCApplication.pkg add extensions & tools directory 2011-06-14 14:31:25 +08:00
CCArray.pkg to commit some pkg files 2011-07-08 18:31:02 +08:00
CCAtlasNode.pkg to commit some pkg files 2011-07-08 18:31:02 +08:00
CCAutoreleasePool.pkg add extensions & tools directory 2011-06-14 14:31:25 +08:00
CCCamera.pkg add extensions & tools directory 2011-06-14 14:31:25 +08:00
CCCommon.pkg issue #528: refactor ok on win32 2011-06-20 17:31:38 +08:00
CCData.pkg add extensions & tools directory 2011-06-14 14:31:25 +08:00
CCDirector.pkg commit some pkg files 2011-07-08 22:32:54 +08:00
CCDrawingPrimitives.pkg add extensions & tools directory 2011-06-14 14:31:25 +08:00
CCEGLView.pkg add extensions & tools directory 2011-06-14 14:31:25 +08:00
CCGL.pkg add extensions & tools directory 2011-06-14 14:31:25 +08:00
CCGeometry.pkg add extensions & tools directory 2011-06-14 14:31:25 +08:00
CCIMEDelegate.pkg add extensions & tools directory 2011-06-14 14:31:25 +08:00
CCIMEDispatcher.pkg add extensions & tools directory 2011-06-14 14:31:25 +08:00
CCKeypadDelegate.pkg issue #892: modify pkg for lua 2011-12-07 15:24:03 +08:00
CCKeypadDispatcher.pkg add extensions & tools directory 2011-06-14 14:31:25 +08:00
CCLabelAtlas.pkg fixed #645: update pkg file to v1.0.1 2011-08-02 16:21:23 +08:00
CCLabelBMFont.pkg fixed #645: update pkg file to v1.0.1 2011-08-02 16:21:23 +08:00
CCLabelTTF.pkg add extensions & tools directory 2011-06-14 14:31:25 +08:00
CCLayer.pkg issue #892: modify pkg for lua 2011-12-07 15:24:03 +08:00
CCMenu.pkg issue #892: modify pkg for lua 2011-12-07 15:24:03 +08:00
CCMenuItem.pkg fixed #611: add some functions for lua 2011-07-18 10:18:36 +08:00
CCMotionStreak.pkg commit some pkg files 2011-07-08 22:32:54 +08:00
CCMutableArray.pkg add extensions & tools directory 2011-06-14 14:31:25 +08:00
CCMutableDictionary.pkg add extensions & tools directory 2011-06-14 14:31:25 +08:00
CCNode.pkg issue #892: modify pkg for lua 2011-12-07 15:24:03 +08:00
CCObject.pkg add extensions & tools directory 2011-06-14 14:31:25 +08:00
CCParallaxNode.pkg commit some pkg files 2011-07-08 22:32:54 +08:00
CCParticleSystem.pkg Add support for particleWithFile for both Quad & Point Particle Systems 2011-09-27 23:15:54 +01:00
CCPointExtension.pkg commit some pkg files 2011-07-08 22:32:54 +08:00
CCProgressTimer.pkg add extensions & tools directory 2011-06-14 14:31:25 +08:00
CCProtocols.pkg add extensions & tools directory 2011-06-14 14:31:25 +08:00
CCRenderTexture.pkg add extensions & tools directory 2011-06-14 14:31:25 +08:00
CCRibbon.pkg add extensions & tools directory 2011-06-14 14:31:25 +08:00
CCScene.pkg issue #892: modify pkg for lua 2011-12-07 15:24:03 +08:00
CCScheduler.pkg fixed #653: add CCScheduler::unscheduleScriptFunc() 2011-08-03 14:15:35 +08:00
CCSet.pkg add extensions & tools directory 2011-06-14 14:31:25 +08:00
CCSprite.pkg fix type error according the change of CCSprite 2011-11-30 17:49:52 +08:00
CCSpriteBatchNode.pkg fixed #645: update pkg file to v1.0.1 2011-08-02 16:21:23 +08:00
CCSpriteFrame.pkg add extensions & tools directory 2011-06-14 14:31:25 +08:00
CCSpriteFrameCache.pkg fixed #645: update pkg file to v1.0.1 2011-08-02 16:21:23 +08:00
CCString.pkg add extensions & tools directory 2011-06-14 14:31:25 +08:00
CCTMXLayer.pkg to commit the rest pkg files 2011-07-11 14:00:55 +08:00
CCTMXObjectGroup.pkg add extensions & tools directory 2011-06-14 14:31:25 +08:00
CCTMXTiledMap.pkg fixed #645: update pkg file to v1.0.1 2011-08-02 16:21:23 +08:00
CCTMXXMLParser.pkg to commit the rest pkg files 2011-07-11 14:00:55 +08:00
CCTextFieldTTF.pkg add extensions & tools directory 2011-06-14 14:31:25 +08:00
CCTexture2D.pkg to commit the rest pkg files 2011-07-11 14:00:55 +08:00
CCTextureAtlas.pkg to commit the rest pkg files 2011-07-11 14:00:55 +08:00
CCTextureCache.pkg to commit the rest pkg files 2011-07-11 14:00:55 +08:00
CCTileMapAtlas.pkg add extensions & tools directory 2011-06-14 14:31:25 +08:00
CCTouch.pkg add extensions & tools directory 2011-06-14 14:31:25 +08:00
CCTouchDelegateProtocol.pkg issue #892: modify pkg for lua 2011-12-07 15:24:03 +08:00
CCTouchDispatcher.pkg issue #528: refactor ok on win32 2011-06-20 17:31:38 +08:00
CCTransition.pkg add extensions & tools directory 2011-06-14 14:31:25 +08:00
CCTransitionPageTurn.pkg add extensions & tools directory 2011-06-14 14:31:25 +08:00
CCTransitionRadial.pkg add extensions & tools directory 2011-06-14 14:31:25 +08:00
CCUserDefault.pkg add extensions & tools directory 2011-06-14 14:31:25 +08:00
Cocos2d.pkg issue #892: modify pkg for lua 2011-12-07 15:24:03 +08:00
README add tolua_usertype(tolua_S,"void*") to fix CCCallFuncND 2011-11-15 17:01:07 +08:00
SimpleAudioEngine.pkg Added CocsDenshion lua support and tested with HelloLua on iOS 2011-08-16 23:56:41 +08:00
build.xml Adding a build file that correctly generates LuaCocos2d.cpp 2011-09-18 18:29:17 +01:00
ccConfig.pkg to update lua support 2011-07-12 15:18:14 +08:00
ccTypes.pkg to commit the rest pkg files 2011-07-11 14:00:55 +08:00
selector_protocol.pkg fixed #892: update pkg and LuaCocos2d.cpp 2011-12-23 11:10:36 +08:00
tolua++.rar.REMOVED.git-id fixed #589 2011-07-08 15:28:13 +08:00

README

1. Generating the lua<-->C bindings with tolua++
tolua++.exe -tCocos2d -o LuaCocos2d.cpp Cocos2d.pkg

    An ant script has been provided to generate the relevant files, to do this after
    modifying the .pkg files you should use the following command in this directory:

    ant

    This will generate the bindings file, patch it to compile successfully and move it
    to the standard destination.

2. Writing .pkg files

    1) enum keeps the same
    2) remove CC_DLL for the class defines, pay attention to multi inherites
    3) remove inline keyword for declaration and implementation
    4) remove public protect and private
    5) remove the decalration of class member variable
    6) keep static keyword
    7) remove memeber functions that declared as private or protected