Nazara Engine  0.4
A fast, complete, cross-platform API designed for game development
LuaAPI.hpp
1 // Copyright (C) 2017 Jérôme Leclercq
2 // This file is part of the "Nazara Development Kit"
3 // For conditions of distribution and use, see copyright notice in Prerequesites.hpp
4 
5 #pragma once
6 
7 #ifndef NDK_LUAINTERFACE_HPP
8 #define NDK_LUAINTERFACE_HPP
9 
10 #include <NDK/Prerequesites.hpp>
11 
12 namespace Nz
13 {
14  class LuaState;
15 }
16 
17 namespace Ndk
18 {
19  class LuaBinding;
20 
21  class NDK_API LuaAPI
22  {
23  public:
24  LuaAPI() = delete;
25  ~LuaAPI() = delete;
26 
27  static LuaBinding* GetBinding();
28 
29  static bool Initialize();
30 
31  static void RegisterClasses(Nz::LuaState& state);
32 
33  static void Uninitialize();
34 
35  private:
36  static LuaBinding* s_binding;
37  };
38 }
39 
40 #include <NDK/LuaAPI.inl>
41 
42 #endif // NDK_LUAINTERFACE_HPP
TODO: For now is unable to display different color in the history, it needs a RichTextDrawer to do so...
Definition: Algorithm.hpp:12
TODO: Inherit SoundEmitter from Node.
Definition: Algorithm.hpp:12
NDK class that represents the api used for Lua.
Definition: LuaAPI.hpp:21
NDK class that represents the binding between the engine & the SDK with the Lua scripting.
Definition: LuaBinding.hpp:16