Sdk/LuaAPI: Add accessor to internal LuaBinding

Former-commit-id: 3e93330d789cd5566cc50e26acb49970bde2c2bc
This commit is contained in:
Lynix 2016-04-24 20:08:01 +02:00
parent 44e20a5ba9
commit fa90d3fd69
2 changed files with 11 additions and 0 deletions

View File

@ -24,6 +24,8 @@ namespace Ndk
LuaAPI() = delete;
~LuaAPI() = delete;
static inline LuaBinding* GetBinding();
static bool Initialize();
static void RegisterClasses(Nz::LuaInstance& instance);

View File

@ -2,6 +2,7 @@
// This file is part of the "Nazara Development Kit"
// For conditions of distribution and use, see copyright notice in Prerequesites.hpp
#include <NDK/LuaAPI.hpp>
#include <Nazara/Core/Color.hpp>
#include <Nazara/Lua/LuaInstance.hpp>
#include <Nazara/Math/EulerAngles.hpp>
@ -23,6 +24,14 @@
#include <NDK/Console.hpp>
#endif
namespace Ndk
{
inline LuaBinding* LuaAPI::GetBinding()
{
return s_binding;
}
}
namespace Nz
{
inline unsigned int LuaImplQueryArg(const LuaInstance& instance, int index, Color* color, TypeTag<Color>)