mirror of https://github.com/axmolengine/axmol.git
restore CCLuaEngine missed methods
This commit is contained in:
parent
f8c372ca9b
commit
74e497bb2b
|
@ -54,6 +54,16 @@ bool CCLuaEngine::init(void)
|
|||
return true;
|
||||
}
|
||||
|
||||
void CCLuaEngine::addSearchPath(const char* path)
|
||||
{
|
||||
m_stack->addSearchPath(path);
|
||||
}
|
||||
|
||||
void CCLuaEngine::addLuaLoader(lua_CFunction func)
|
||||
{
|
||||
m_stack->addLuaLoader(func);
|
||||
}
|
||||
|
||||
void CCLuaEngine::removeScriptObjectByCCObject(CCObject* pObj)
|
||||
{
|
||||
m_stack->removeScriptObjectByCCObject(pObj);
|
||||
|
|
|
@ -54,7 +54,18 @@ public:
|
|||
CCLuaStack *getLuaStack(void) {
|
||||
return m_stack;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
@brief Add a path to find lua files in
|
||||
@param path to be added to the Lua path
|
||||
*/
|
||||
virtual void addSearchPath(const char* path);
|
||||
|
||||
/**
|
||||
@brief Add lua loader, now it is used on android
|
||||
*/
|
||||
virtual void addLuaLoader(lua_CFunction func);
|
||||
|
||||
/**
|
||||
@brief Remove CCObject from lua state
|
||||
@param object to remove
|
||||
|
|
Loading…
Reference in New Issue