issue #2244:Modify a function name to createCCBReader

This commit is contained in:
samuele3hu 2013-07-05 10:25:37 +08:00
parent c0e89a4ee9
commit bb244edae6
4 changed files with 10 additions and 9 deletions

View File

@ -509,8 +509,9 @@ CallFunc * CallFunc::clone() const
a->initWithTarget(_selectorTarget);
a->_callFunc = _callFunc;
}
else if( _function )
else if( _function ){
a->initWithFunction(_function);
}
else if (_scriptHandler > 0 ) {
a->_scriptHandler = cocos2d::ScriptEngineManager::sharedManager()->getScriptEngine()->reallocateScriptHandler(_scriptHandler);
}

View File

@ -24,7 +24,7 @@
#include "CCBProxy.h"
CCBReader* CCBProxy::createCCBreader()
CCBReader* CCBProxy::createCCBReader()
{
NodeLoaderLibrary *ccNodeLoaderLibrary = NodeLoaderLibrary::sharedNodeLoaderLibrary();

View File

@ -14,7 +14,7 @@ public:
CCBProxy() { }
virtual ~ CCBProxy(){ }
CCB_STATIC_NEW_AUTORELEASE_OBJECT_WITH_INIT_METHOD(CCBProxy, create);
CCBReader* createCCBreader();
CCBReader* createCCBReader();
Node* readCCBFromFile(const char *pszFileName,CCBReader* pCCBReader,bool bSetOwner = false);
const char* getNodeTypeName(Node* pNode);
void setCallback(Node* pNode,int nHandle);

View File

@ -1902,8 +1902,8 @@ tolua_lerror:
#endif //#ifndef TOLUA_DISABLE
/* method: getOwnerCallbackNodes of class CCBReader */
#ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBProxy_createCCBreader00
static int tolua_Cocos2d_CCBProxy_createCCBreader00(lua_State* tolua_S)
#ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBProxy_createCCBReader00
static int tolua_Cocos2d_CCBProxy_createCCBReader00(lua_State* tolua_S)
{
#ifndef TOLUA_RELEASE
tolua_Error tolua_err;
@ -1917,10 +1917,10 @@ static int tolua_Cocos2d_CCBProxy_createCCBreader00(lua_State* tolua_S)
{
CCBProxy* self = (CCBProxy*) tolua_tousertype(tolua_S,1,0);
#ifndef TOLUA_RELEASE
if (!self) tolua_error(tolua_S,"invalid 'self' in function 'createCCBreader'", NULL);
if (!self) tolua_error(tolua_S,"invalid 'self' in function 'createCCBReader'", NULL);
#endif
{
CCBReader* tolua_ret = (CCBReader*) self->createCCBreader();
CCBReader* tolua_ret = (CCBReader*) self->createCCBReader();
int nID = (tolua_ret) ? (int)tolua_ret->_ID : -1;
int* pLuaID = (tolua_ret) ? &tolua_ret->_luaID : NULL;
toluafix_pushusertype_ccobject(tolua_S, nID, pLuaID, (void*)tolua_ret,"CCBReader");
@ -1929,7 +1929,7 @@ static int tolua_Cocos2d_CCBProxy_createCCBreader00(lua_State* tolua_S)
return 1;
#ifndef TOLUA_RELEASE
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'createCCBreader'.",&tolua_err);
tolua_error(tolua_S,"#ferror in function 'createCCBReader'.",&tolua_err);
return 0;
#endif
}
@ -2133,7 +2133,7 @@ TOLUA_API int tolua_extensions_ccb_open(lua_State* tolua_S){
tolua_function(tolua_S,".call",tolua_Cocos2d_CCBProxy_new00_local);
tolua_function(tolua_S,"delete",tolua_Cocos2d_CCBProxy_delete00);
tolua_function(tolua_S, "create", tolua_Cocos2d_CCBProxy_create00);
tolua_function(tolua_S, "createCCBReader", tolua_Cocos2d_CCBProxy_createCCBreader00);
tolua_function(tolua_S, "createCCBReader", tolua_Cocos2d_CCBProxy_createCCBReader00);
tolua_function(tolua_S, "readCCBFromFile", tolua_Cocos2d_CCBProxy_readCCBFromFile00);
tolua_function(tolua_S, "getNodeTypeName", tolua_Cocos2d_CCBProxy_getNodeTypeName00);
tolua_function(tolua_S, "setCallback", tolua_Cocos2d_CCBProxy_setCallback00);