mirror of
https://github.com/edubart/otclient.git
synced 2025-12-21 16:07:12 +01:00
too many changes to list, many regressions were made, master will be UNSTABLE for a few days
This commit is contained in:
@@ -47,9 +47,6 @@ void LuaInterface::init()
|
||||
// register LuaObject, the base of all other objects
|
||||
registerClass<LuaObject>();
|
||||
bindClassMemberGetField<LuaObject>("use_count", &LuaObject::getUseCount);
|
||||
|
||||
// register the real script stuff
|
||||
registerFunctions();
|
||||
}
|
||||
|
||||
void LuaInterface::terminate()
|
||||
@@ -58,6 +55,14 @@ void LuaInterface::terminate()
|
||||
closeLuaState();
|
||||
}
|
||||
|
||||
void LuaInterface::registerStaticClass(const std::string& className)
|
||||
{
|
||||
newTable();
|
||||
pushValue();
|
||||
setGlobal(className);
|
||||
pop();
|
||||
}
|
||||
|
||||
void LuaInterface::registerClass(const std::string& className, const std::string& baseClass)
|
||||
{
|
||||
// creates the class table (that it's also the class methods table)
|
||||
|
||||
Reference in New Issue
Block a user