axmol/tools/tolua++
minggo 59db9f0c6f issue #1399:lua building works ok after adjusting directory structure 2012-07-23 17:14:18 +08:00
..
CCAction.pkg fixed #1327: Exported 'create' method for lua bindings. 2012-06-15 11:46:51 +08:00
CCActionCamera.pkg fixed #1327: Exported 'create' method for lua bindings. 2012-06-15 11:46:51 +08:00
CCActionEase.pkg fixed #1327: Exported 'create' method for lua bindings. 2012-06-15 11:46:51 +08:00
CCActionGrid.pkg fixed #1336: Updated lua bindings. 2012-06-20 11:59:35 +08:00
CCActionGrid3D.pkg fixed #1327: Exported 'create' method for lua bindings. 2012-06-15 11:46:51 +08:00
CCActionManager.pkg issue #1190: updated some pkg files for lua binding. 2012-04-26 09:34:42 +08:00
CCActionPageTurn3D.pkg fixed #1327: Exported 'create' method for lua bindings. 2012-06-15 11:46:51 +08:00
CCActionProgressTimer.pkg fixed #1327: Exported 'create' method for lua bindings. 2012-06-15 11:46:51 +08:00
CCActionTiledGrid.pkg fixed #1327: Exported 'create' method for lua bindings. 2012-06-15 11:46:51 +08:00
CCAffineTransform.pkg issue #1190: updated some pkg files for lua binding. 2012-04-26 09:34:42 +08:00
CCAnimation.pkg fixed #1367: Refactor "createWith***" to "create". 2012-06-27 14:21:29 +08:00
CCAnimationCache.pkg move SelectorProtocol to CCObject 2012-02-03 15:05:29 +08:00
CCApplication.pkg issue #1190: updated some pkg files for lua binding. 2012-04-26 09:34:42 +08:00
CCArray.pkg fixed #1367: Refactor "createWith***" to "create". 2012-06-27 14:21:29 +08:00
CCAtlasNode.pkg fixed #1327: Exported 'create' method for lua bindings. 2012-06-15 11:46:51 +08:00
CCCamera.pkg fixed #1292: Updated lua bindings. 2012-06-15 17:26:11 +08:00
CCCommon.pkg move SelectorProtocol to CCObject 2012-02-03 15:05:29 +08:00
CCDictionary.pkg fixed #1367: Refactor "createWith***" to "create". 2012-06-27 14:21:29 +08:00
CCDirector.pkg fixed #1326: The compilation of Hellolua and testjs project was broken after synchronizing to rc2. 2012-06-15 10:51:53 +08:00
CCDrawingPrimitives.pkg fixed #1270: Re-generated LuaCocos2d.cpp. 2012-05-29 17:25:18 +08:00
CCFileUtils.pkg fixed #1326: The compilation of Hellolua and testjs project was broken after synchronizing to rc2. 2012-06-15 10:51:53 +08:00
CCGeometry.pkg move SelectorProtocol to CCObject 2012-02-03 15:05:29 +08:00
CCLabelAtlas.pkg fixed #1327: Exported 'create' method for lua bindings. 2012-06-15 11:46:51 +08:00
CCLabelBMFont.pkg fixed #1327: Exported 'create' method for lua bindings. 2012-06-15 11:46:51 +08:00
CCLabelTTF.pkg fixed #1327: Exported 'create' method for lua bindings. 2012-06-15 11:46:51 +08:00
CCLayer.pkg fixed #1367: Refactor "createWith***" to "create". 2012-06-27 14:21:29 +08:00
CCMenu.pkg fixed #1327: Exported 'create' method for lua bindings. 2012-06-15 11:46:51 +08:00
CCMenuItem.pkg fixed #1292: Updated lua bindings. 2012-06-15 17:26:11 +08:00
CCMotionStreak.pkg fixed #1292: Updated lua bindings. 2012-06-15 17:26:11 +08:00
CCNode.pkg fixed #1369: Invoking CCLabelTTF:setPosition(x,y) in lua script causes crash. 2012-06-28 00:05:45 +08:00
CCObject.pkg issue #1399:lua building works ok after adjusting directory structure 2012-07-23 17:14:18 +08:00
CCParallaxNode.pkg fixed #1327: Exported 'create' method for lua bindings. 2012-06-15 11:46:51 +08:00
CCParticleBatchNode.pkg fixed #1367: Refactor "createWith***" to "create". 2012-06-27 14:21:29 +08:00
CCParticleSystem.pkg fixed #1292: Updated lua bindings. 2012-06-15 17:26:11 +08:00
CCPointExtension.pkg move SelectorProtocol to CCObject 2012-02-03 15:05:29 +08:00
CCProgressTimer.pkg fixed #1292: Updated lua bindings. 2012-06-15 17:26:11 +08:00
CCRenderTexture.pkg fixed #1327: Exported 'create' method for lua bindings. 2012-06-15 11:46:51 +08:00
CCRibbon.pkg fixed #1327: Exported 'create' method for lua bindings. 2012-06-15 11:46:51 +08:00
CCScene.pkg fixed #1327: Exported 'create' method for lua bindings. 2012-06-15 11:46:51 +08:00
CCScheduler.pkg fixed #1326: The compilation of Hellolua and testjs project was broken after synchronizing to rc2. 2012-06-15 10:51:53 +08:00
CCSprite.pkg fixed #1367: Refactor "createWith***" to "create". 2012-06-27 14:21:29 +08:00
CCSpriteBatchNode.pkg fixed #1367: Refactor "createWith***" to "create". 2012-06-27 14:21:29 +08:00
CCSpriteFrame.pkg fixed #1367: Refactor "createWith***" to "create". 2012-06-27 14:21:29 +08:00
CCSpriteFrameCache.pkg update for msvc2010 2012-04-09 00:10:12 +08:00
CCString.pkg fixed #1367: Refactor "createWith***" to "create". 2012-06-27 14:21:29 +08:00
CCTMXLayer.pkg fixed #1327: Exported 'create' method for lua bindings. 2012-06-15 11:46:51 +08:00
CCTMXObjectGroup.pkg fixed #1190: Updated some .pkg files. 2012-04-26 14:32:17 +08:00
CCTMXTiledMap.pkg fixed #1327: Exported 'create' method for lua bindings. 2012-06-15 11:46:51 +08:00
CCTMXXMLParser.pkg fixed #1190: Updated some .pkg files. 2012-04-26 14:32:17 +08:00
CCTextFieldTTF.pkg move SelectorProtocol to CCObject 2012-02-03 15:05:29 +08:00
CCTexture2D.pkg fixed #1292: Updated lua bindings. 2012-06-15 17:26:11 +08:00
CCTextureAtlas.pkg fixed #1367: Refactor "createWith***" to "create". 2012-06-27 14:21:29 +08:00
CCTextureCache.pkg move SelectorProtocol to CCObject 2012-02-03 15:05:29 +08:00
CCTileMapAtlas.pkg fixed #1327: Exported 'create' method for lua bindings. 2012-06-15 11:46:51 +08:00
CCTouch.pkg issue #1190: updated some pkg files for lua binding. 2012-04-26 09:34:42 +08:00
CCTransition.pkg fixed #1336: Updated lua bindings. 2012-06-20 11:59:35 +08:00
CCUserDefault.pkg move SelectorProtocol to CCObject 2012-02-03 15:05:29 +08:00
Cocos2d.pkg fixed #1367: Refactor "createWith***" to "create". 2012-06-27 14:21:29 +08:00
README move SelectorProtocol to CCObject 2012-02-03 15:05:29 +08:00
SimpleAudioEngine.pkg fixed #1201: simplify the writing of Android.mk and correct corresponding template 2012-05-02 17:29:16 +08:00
basic.lua fixed #1367: Refactor "createWith***" to "create". 2012-06-27 14:21:29 +08:00
build.xml issue #1399:lua building works ok after adjusting directory structure 2012-07-23 17:14:18 +08:00
build_macosx.xml issue #1399:lua building works ok after adjusting directory structure 2012-07-23 17:14:18 +08:00
ccTypes.pkg fixed #1326: The compilation of Hellolua and testjs project was broken after synchronizing to rc2. 2012-06-15 10:51:53 +08:00
tolua++.Mac.zip.REMOVED.git-id issue #973: add tool for mack 2012-02-10 10:43: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