2012-02-02 14:26:38 +08:00
|
|
|
|
|
|
|
_is_functions = _is_functions or {}
|
|
|
|
_to_functions = _to_functions or {}
|
|
|
|
_push_functions = _push_functions or {}
|
|
|
|
|
|
|
|
local CCObjectTypes = {
|
|
|
|
"CCObject",
|
|
|
|
"CCAction",
|
|
|
|
"CCFiniteTimeAction",
|
|
|
|
"CCActionInstant",
|
|
|
|
"CCCallFunc",
|
|
|
|
"CCCallFuncN",
|
|
|
|
"CCFlipX",
|
|
|
|
"CCFlipY",
|
|
|
|
"CCHide",
|
|
|
|
"CCPlace",
|
|
|
|
"CCReuseGrid",
|
|
|
|
"CCShow",
|
|
|
|
"CCStopGrid",
|
|
|
|
"CCToggleVisibility",
|
|
|
|
"CCActionInterval",
|
|
|
|
"CCAccelAmplitude",
|
|
|
|
"CCAccelDeccelAmplitude",
|
|
|
|
"CCActionCamera",
|
|
|
|
"CCOrbitCamera",
|
2012-08-10 18:14:04 +08:00
|
|
|
"CCCardinalSplineTo",
|
|
|
|
"CCCardinalSplineBy",
|
|
|
|
"CCCatmullRomTo",
|
|
|
|
"CCCatmullRomBy",
|
2012-02-02 14:26:38 +08:00
|
|
|
"CCActionEase",
|
|
|
|
"CCEaseBackIn",
|
|
|
|
"CCEaseBackInOut",
|
|
|
|
"CCEaseBackOut",
|
|
|
|
"CCEaseBounce",
|
|
|
|
"CCEaseElastic",
|
|
|
|
"CCEaseExponentialIn",
|
|
|
|
"CCEaseExponentialInOut",
|
|
|
|
"CCEaseExponentialOut",
|
|
|
|
"CCEaseRateAction",
|
|
|
|
"CCEaseSineIn",
|
|
|
|
"CCEaseSineInOut",
|
|
|
|
"CCEaseSineOut",
|
|
|
|
"CCAnimate",
|
|
|
|
"CCBezierBy",
|
|
|
|
"CCBezierTo",
|
|
|
|
"CCBlink",
|
|
|
|
"CCDeccelAmplitude",
|
|
|
|
"CCDelayTime",
|
|
|
|
"CCFadeIn",
|
|
|
|
"CCFadeOut",
|
|
|
|
"CCFadeTo",
|
|
|
|
"CCGridAction",
|
|
|
|
"CCJumpBy",
|
|
|
|
"CCJumpTo",
|
|
|
|
"CCMoveTo",
|
|
|
|
"CCMoveBy",
|
|
|
|
"CCProgressFromTo",
|
|
|
|
"CCProgressTo",
|
|
|
|
"CCRepeat",
|
|
|
|
"CCRepeatForever",
|
|
|
|
"CCReverseTime",
|
|
|
|
"CCRotateBy",
|
|
|
|
"CCRotateTo",
|
|
|
|
"CCScaleTo",
|
|
|
|
"CCScaleBy",
|
|
|
|
"CCSequence",
|
|
|
|
"CCSkewTo",
|
|
|
|
"CCSkewBy",
|
|
|
|
"CCSpawn",
|
|
|
|
"CCTintBy",
|
|
|
|
"CCTintTo",
|
|
|
|
"CCActionManager",
|
|
|
|
"CCAnimation",
|
|
|
|
"CCAnimationCache",
|
|
|
|
"CCArray",
|
|
|
|
"CCAsyncObject",
|
|
|
|
"CCAutoreleasePool",
|
|
|
|
"CCBMFontConfiguration",
|
|
|
|
"CCCamera",
|
|
|
|
"CCConfiguration",
|
|
|
|
"CCData",
|
|
|
|
"CCDirector",
|
|
|
|
"CCDisplayLinkDirector",
|
|
|
|
"CCEvent",
|
|
|
|
"CCGrabber",
|
|
|
|
"CCGrid3D",
|
|
|
|
"CCTiledGrid3D",
|
|
|
|
"CCKeypadDispatcher",
|
|
|
|
"CCKeypadHandler",
|
2012-04-26 09:34:42 +08:00
|
|
|
"CCDictionary",
|
2012-02-02 14:26:38 +08:00
|
|
|
"CCNode",
|
|
|
|
"CCAtlasNode",
|
|
|
|
"CCLabelAtlas",
|
|
|
|
"CCTileMapAtlas",
|
|
|
|
"CCLayer",
|
|
|
|
"CCLayerColor",
|
|
|
|
"CCLayerGradient",
|
|
|
|
"CCLayerMultiplex",
|
|
|
|
"CCMenu",
|
|
|
|
"CCMenuItem",
|
|
|
|
"CCMenuItemLabel",
|
|
|
|
"CCMenuItemAtlasFont",
|
|
|
|
"CCMenuItemFont",
|
|
|
|
"CCMenuItemSprite",
|
|
|
|
"CCMenuItemImage",
|
|
|
|
"CCMenuItemToggle",
|
|
|
|
"CCMotionStreak",
|
|
|
|
"CCParallaxNode",
|
|
|
|
"CCParticleSystem",
|
2012-06-27 14:21:29 +08:00
|
|
|
"CCParticleBatchNode",
|
2012-02-02 14:26:38 +08:00
|
|
|
"CCParticleSystemQuad",
|
|
|
|
"CCProgressTimer",
|
|
|
|
"CCRenderTexture",
|
|
|
|
"CCRibbon",
|
|
|
|
"CCScene",
|
|
|
|
"CCTransitionScene",
|
|
|
|
"CCTransitionCrossFade",
|
|
|
|
"CCTransitionFade",
|
|
|
|
"CCTransitionFadeTR",
|
|
|
|
"CCTransitionFadeBL",
|
|
|
|
"CCTransitionFadeDown",
|
|
|
|
"CCTransitionFadeUp",
|
|
|
|
"CCTransitionJumpZoom",
|
|
|
|
"CCTransitionMoveInL",
|
|
|
|
"CCTransitionMoveInB",
|
|
|
|
"CCTransitionMoveInR",
|
|
|
|
"CCTransitionMoveInT",
|
|
|
|
"CCTransitionPageTurn",
|
|
|
|
"CCTransitionRotoZoom",
|
|
|
|
"CCTransitionSceneOriented",
|
|
|
|
"CCTransitionFlipAngular",
|
|
|
|
"CCTransitionFlipX",
|
|
|
|
"CCTransitionFlipY",
|
|
|
|
"CCTransitionZoomFlipAngular",
|
|
|
|
"CCTransitionZoomFlipX",
|
|
|
|
"CCTransitionZoomFlipY",
|
|
|
|
"CCTransitionShrinkGrow",
|
|
|
|
"CCTransitionSlideInL",
|
|
|
|
"CCTransitionSlideInB",
|
|
|
|
"CCTransitionSlideInR",
|
|
|
|
"CCTransitionSlideInT",
|
|
|
|
"CCTransitionSplitCols",
|
|
|
|
"CCTransitionSplitRows",
|
|
|
|
"CCTransitionTurnOffTiles",
|
2012-08-21 18:42:35 +08:00
|
|
|
"CCTransitionProgress",
|
|
|
|
"CCTransitionProgressRadialCCW",
|
|
|
|
"CCTransitionProgressRadialCW",
|
|
|
|
"CCTransitionProgressHorizontal",
|
|
|
|
"CCTransitionProgressVertical",
|
|
|
|
"CCTransitionProgressInOut",
|
|
|
|
"CCTransitionProgressOutIn",
|
2012-02-02 14:26:38 +08:00
|
|
|
"CCSprite",
|
|
|
|
"CCLabelTTF",
|
|
|
|
"CCTextFieldTTF",
|
|
|
|
"CCSpriteBatchNode",
|
|
|
|
"CCLabelBMFont",
|
|
|
|
"CCTMXLayer",
|
|
|
|
"CCTMXTiledMap",
|
|
|
|
"CCPointObject",
|
|
|
|
"CCProjectionProtocol",
|
|
|
|
"CCRibbonSegment",
|
|
|
|
"CCScheduler",
|
|
|
|
"CCSet",
|
|
|
|
"CCSpriteFrame",
|
|
|
|
"CCSpriteFrameCache",
|
|
|
|
"CCString",
|
|
|
|
"CCTexture2D",
|
|
|
|
"CCTextureAtlas",
|
|
|
|
"CCTextureCache",
|
|
|
|
"CCTexturePVR",
|
|
|
|
"CCTimer",
|
|
|
|
"CCTMXLayerInfo",
|
|
|
|
"CCTMXMapInfo",
|
|
|
|
"CCTMXObjectGroup",
|
|
|
|
"CCTMXTilesetInfo",
|
|
|
|
"CCTouch",
|
|
|
|
"CCTouchDispatcher",
|
|
|
|
"CCTouchHandler",
|
2012-08-29 17:10:06 +08:00
|
|
|
"CCParticleFire",
|
|
|
|
"CCParticleFireworks",
|
|
|
|
"CCParticleSun",
|
|
|
|
"CCParticleGalaxy",
|
|
|
|
"CCParticleFlower",
|
|
|
|
"CCParticleMeteor",
|
|
|
|
"CCParticleSpiral",
|
|
|
|
"CCParticleExplosion",
|
|
|
|
"CCParticleSmoke",
|
|
|
|
"CCParticleSnow",
|
|
|
|
"CCParticleRain",
|
2012-02-02 14:26:38 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
-- register CCObject types
|
|
|
|
for i = 1, #CCObjectTypes do
|
2012-08-28 14:53:52 +08:00
|
|
|
_push_functions[CCObjectTypes[i]] = "toluafix_pushusertype_ccobject"
|
2012-02-02 14:26:38 +08:00
|
|
|
end
|
|
|
|
|
2012-08-28 14:53:52 +08:00
|
|
|
-- register LUA_FUNCTION, LUA_TABLE, LUA_HANDLE type
|
|
|
|
_to_functions["LUA_FUNCTION"] = "toluafix_ref_function"
|
|
|
|
_is_functions["LUA_FUNCTION"] = "toluafix_isfunction"
|
|
|
|
_to_functions["LUA_TABLE"] = "toluafix_totable"
|
|
|
|
_is_functions["LUA_TABLE"] = "toluafix_istable"
|