diff --git a/SDK/include/NDK/LuaAPI.hpp b/SDK/include/NDK/LuaAPI.hpp index 277948bd5..e19458d3f 100644 --- a/SDK/include/NDK/LuaAPI.hpp +++ b/SDK/include/NDK/LuaAPI.hpp @@ -24,6 +24,8 @@ namespace Ndk LuaAPI() = delete; ~LuaAPI() = delete; + static inline LuaBinding* GetBinding(); + static bool Initialize(); static void RegisterClasses(Nz::LuaInstance& instance); diff --git a/SDK/include/NDK/LuaAPI.inl b/SDK/include/NDK/LuaAPI.inl index 5a6f9d147..708577e0e 100644 --- a/SDK/include/NDK/LuaAPI.inl +++ b/SDK/include/NDK/LuaAPI.inl @@ -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 #include #include #include @@ -23,6 +24,14 @@ #include #endif +namespace Ndk +{ + inline LuaBinding* LuaAPI::GetBinding() + { + return s_binding; + } +} + namespace Nz { inline unsigned int LuaImplQueryArg(const LuaInstance& instance, int index, Color* color, TypeTag)