OpenMiner/server/source/lua/LuaCore.cpp
2019-04-07 18:20:15 +02:00

29 lines
642 B
C++

/*
* =====================================================================================
*
* Filename: LuaCore.cpp
*
* Description:
*
* Created: 07/01/2019 04:41:11
*
* Author: Quentin Bazin, <quent42340@gmail.com>
*
* =====================================================================================
*/
#include "LuaCore.hpp"
#include "Registry.hpp"
#include "World.hpp"
Registry *LuaCore::registry() {
return &Registry::getInstance();
}
void LuaCore::initUsertype(sol::state &lua) {
lua.new_usertype<LuaCore>("LuaCore",
"world", &LuaCore::world,
"registry", &LuaCore::registry
);
}