Sdk/LuaAPI: Add accessor to internal LuaBinding
Former-commit-id: 3e93330d789cd5566cc50e26acb49970bde2c2bc
This commit is contained in:
parent
44e20a5ba9
commit
fa90d3fd69
|
|
@ -24,6 +24,8 @@ namespace Ndk
|
||||||
LuaAPI() = delete;
|
LuaAPI() = delete;
|
||||||
~LuaAPI() = delete;
|
~LuaAPI() = delete;
|
||||||
|
|
||||||
|
static inline LuaBinding* GetBinding();
|
||||||
|
|
||||||
static bool Initialize();
|
static bool Initialize();
|
||||||
|
|
||||||
static void RegisterClasses(Nz::LuaInstance& instance);
|
static void RegisterClasses(Nz::LuaInstance& instance);
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@
|
||||||
// This file is part of the "Nazara Development Kit"
|
// This file is part of the "Nazara Development Kit"
|
||||||
// For conditions of distribution and use, see copyright notice in Prerequesites.hpp
|
// For conditions of distribution and use, see copyright notice in Prerequesites.hpp
|
||||||
|
|
||||||
|
#include <NDK/LuaAPI.hpp>
|
||||||
#include <Nazara/Core/Color.hpp>
|
#include <Nazara/Core/Color.hpp>
|
||||||
#include <Nazara/Lua/LuaInstance.hpp>
|
#include <Nazara/Lua/LuaInstance.hpp>
|
||||||
#include <Nazara/Math/EulerAngles.hpp>
|
#include <Nazara/Math/EulerAngles.hpp>
|
||||||
|
|
@ -23,6 +24,14 @@
|
||||||
#include <NDK/Console.hpp>
|
#include <NDK/Console.hpp>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
namespace Ndk
|
||||||
|
{
|
||||||
|
inline LuaBinding* LuaAPI::GetBinding()
|
||||||
|
{
|
||||||
|
return s_binding;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
namespace Nz
|
namespace Nz
|
||||||
{
|
{
|
||||||
inline unsigned int LuaImplQueryArg(const LuaInstance& instance, int index, Color* color, TypeTag<Color>)
|
inline unsigned int LuaImplQueryArg(const LuaInstance& instance, int index, Color* color, TypeTag<Color>)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue