C# Class LuaInterface.CodeGeneration

Afficher le fichier Open project: unityluainterface/unityluainterface Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

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

GetClassInstance() public méthode

public GetClassInstance ( Type klass, LuaTable luaTable ) : object
klass System.Type
luaTable LuaTable
Résultat object

GetDelegate() public méthode

public GetDelegate ( Type delegateType, LuaFunction luaFunc ) : Delegate
delegateType System.Type
luaFunc LuaFunction
Résultat System.Delegate

GetEvent() public méthode

public GetEvent ( Type eventHandlerType, LuaFunction eventHandler ) : LuaInterface.LuaEventHandler
eventHandlerType System.Type
eventHandler LuaFunction
Résultat LuaInterface.LuaEventHandler