ObjectManager::ObjectManager() : Mutex("ObjectManager"), Logger("ObjectManager") { luaMutex.lock(); if (luaInstance == NULL) { luaInstance = new Lua(); luaInstance->init(); info("loading object templates..."); registerFunctions(); luaInstance->runFile("scripts/object/clientmain.lua"); registerObjectTypes(); } luaMutex.unlock(); objectMap = new ObjectMap(); zone = NULL; }
int loadSnowfeetModule_ModRender(ModuleLoadArgs args) { registerObjectTypes(*(args.objectTypeDatabase)); sn::bindRenderModule(args.squirrelVM); return 0; }