public ObjectTranslator( Lua interpreter, IntPtr luaState ) { this.interpreter = interpreter; typeChecker = new CheckType( this ); metaFunctions = new MetaFunctions( this ); assemblies = new List<Assembly>(); importTypeFunction = new LuaCSFunction( this.importType ); loadAssemblyFunction = new LuaCSFunction( this.loadAssembly ); registerTableFunction = new LuaCSFunction( this.registerTable ); unregisterTableFunction = new LuaCSFunction( this.unregisterTable ); getMethodSigFunction = new LuaCSFunction( this.getMethodSignature ); getConstructorSigFunction = new LuaCSFunction( this.getConstructorSignature ); createLuaObjectList( luaState ); createIndexingMetaFunction( luaState ); createBaseClassMetatable( luaState ); createClassMetatable( luaState ); createFunctionMetatable( luaState ); setGlobalFunctions( luaState ); }
//internal int _Reference; //private Lua _Interpreter; public LuaUserData( int reference, Lua interpreter ) { _Reference = reference; _Interpreter = interpreter; }
public LuaFunction( LuaCSFunction function, Lua interpreter ) { _Reference = 0; this.function = function; _Interpreter = interpreter; }
//internal int _Reference; //private Lua _Interpreter; public LuaTable( int reference, Lua interpreter ) { _Reference = reference; _Interpreter = interpreter; }
//internal int reference; public LuaFunction( int reference, Lua interpreter ) { _Reference = reference; this.function = null; _Interpreter = interpreter; }