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);
|
||||
|
|
|
@ -55,6 +55,17 @@ public:
|
|||
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