C# Class LuaInterface.CodeGeneration

ファイルを表示 Open project: unityluainterface/unityluainterface Class Usage Examples

Public Methods

Method Description
GenerateClass ( Type klass, Type &newType, Type &returnTypes, LuaTable luaTable ) : void
GetClassInstance ( Type klass, LuaTable luaTable ) : object
GetDelegate ( Type delegateType, LuaFunction luaFunc ) : Delegate
GetEvent ( Type eventHandlerType, LuaFunction eventHandler ) : LuaInterface.LuaEventHandler

Private Methods

Method Description
CodeGeneration ( ) : System
GenerateDelegate ( Type delegateType ) : Type
GenerateEvent ( Type eventHandlerType ) : Type
GenerateMethod ( TypeBuilder myType, MethodInfo method, MethodAttributes attributes, int methodIndex, FieldInfo luaTableField, FieldInfo returnTypesField, bool generateBase, Type &returnTypes ) : void

Method Details

GenerateClass() public method

public GenerateClass ( Type klass, Type &newType, Type &returnTypes, LuaTable luaTable ) : void
klass System.Type
newType System.Type
returnTypes System.Type
luaTable LuaTable
return void

GetClassInstance() public method

public GetClassInstance ( Type klass, LuaTable luaTable ) : object
klass System.Type
luaTable LuaTable
return object

GetDelegate() public method

public GetDelegate ( Type delegateType, LuaFunction luaFunc ) : Delegate
delegateType System.Type
luaFunc LuaFunction
return System.Delegate

GetEvent() public method

public GetEvent ( Type eventHandlerType, LuaFunction eventHandler ) : LuaInterface.LuaEventHandler
eventHandlerType System.Type
eventHandler LuaFunction
return LuaInterface.LuaEventHandler