NLua.LuaRegistrationHelper Class Reference

Static Public Member Functions

static void TaggedInstanceMethods (Lua lua, object o)
 Registers all public instance methods in an object tagged with LuaGlobalAttribute as Lua global functions More...
 
static void TaggedStaticMethods (Lua lua, Type type)
 Registers all public static methods in a class tagged with LuaGlobalAttribute as Lua global functions More...
 
static void Enumeration< T > (Lua lua)
 Registers an enumeration's values for usage as a Lua variable table More...
 

Member Function Documentation

◆ Enumeration< T >()

static void NLua.LuaRegistrationHelper.Enumeration< T > ( Lua  lua)
static

Registers an enumeration's values for usage as a Lua variable table

Template Parameters
TThe enum type to register
Parameters
luaThe Lua VM to add the enum to

◆ TaggedInstanceMethods()

static void NLua.LuaRegistrationHelper.TaggedInstanceMethods ( Lua  lua,
object  o 
)
static

Registers all public instance methods in an object tagged with LuaGlobalAttribute as Lua global functions

Parameters
luaThe Lua VM to add the methods to
oThe object to get the methods from

◆ TaggedStaticMethods()

static void NLua.LuaRegistrationHelper.TaggedStaticMethods ( Lua  lua,
Type  type 
)
static

Registers all public static methods in a class tagged with LuaGlobalAttribute as Lua global functions

Parameters
luaThe Lua VM to add the methods to
typeThe class type to get the methods from

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