C# Class Schumix.Components.LuaEngine.LuaFunctionAttribute

Attribute used to mark functions which are exposed to the Lua VM.
Inheritance: System.Attribute
Mostra file Open project: Schumix/Schumix2

Public Methods

Method Description
LuaFunctionAttribute ( string functionName, string functionDoc ) : System

Creates a new attribute marking the function to be registered by the Lua VM.

Method Details

LuaFunctionAttribute() public method

Creates a new attribute marking the function to be registered by the Lua VM.
public LuaFunctionAttribute ( string functionName, string functionDoc ) : System
functionName string Name of the function. Will be used in Lua (does not have to be the same as the C# function name).
functionDoc string Function documentation
return System