Nazara Engine  0.4
A fast, complete, cross-platform API designed for game development
Ndk::LuaBinding Class Reference

NDK class that represents the binding between the engine & the SDK with the Lua scripting. More...

Public Member Functions

 LuaBinding ()
 Binds modules to Lua.
 
template<typename T >
void BindComponent (const Nz::String &name)
 Binds a component to a name. More...
 
void RegisterClasses (Nz::LuaState &state)
 Registers the classes that will be used by the Lua instance. More...
 

Public Attributes

std::unique_ptr< LuaBinding_Base > core
 
std::unique_ptr< LuaBinding_Base > math
 
std::unique_ptr< LuaBinding_Base > network
 
std::unique_ptr< LuaBinding_Base > sdk
 
std::unique_ptr< LuaBinding_Base > utility
 
std::unique_ptr< LuaBinding_Base > audio
 
std::unique_ptr< LuaBinding_Base > graphics
 
std::unique_ptr< LuaBinding_Base > renderer
 
std::unique_ptr< LuaBinding_Base > platform
 

Friends

class LuaBinding_SDK
 

Detailed Description

NDK class that represents the binding between the engine & the SDK with the Lua scripting.

Member Function Documentation

◆ BindComponent()

template<typename T >
void Ndk::LuaBinding::BindComponent ( const Nz::String name)

Binds a component to a name.

Parameters
nameName used to retrieve the component
Remarks
Produces a NazaraAssert if name is empty

◆ RegisterClasses()

void Ndk::LuaBinding::RegisterClasses ( Nz::LuaState &  state)

Registers the classes that will be used by the Lua instance.

Parameters
instanceLua instance that will interact with the engine & SDK

The documentation for this class was generated from the following files: