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 );
        }
Ejemplo n.º 2
0
 //internal int _Reference;
 //private Lua _Interpreter;
 public LuaUserData( int reference, Lua interpreter )
 {
     _Reference = reference;
     _Interpreter = interpreter;
 }
Ejemplo n.º 3
0
 public LuaFunction( LuaCSFunction function, Lua interpreter )
 {
     _Reference = 0;
     this.function = function;
     _Interpreter = interpreter;
 }
Ejemplo n.º 4
0
 //internal int _Reference;
 //private Lua _Interpreter;
 public LuaTable( int reference, Lua interpreter )
 {
     _Reference = reference;
     _Interpreter = interpreter;
 }
Ejemplo n.º 5
0
        //internal int reference;

        public LuaFunction( int reference, Lua interpreter )
        {
            _Reference = reference;
            this.function = null;
            _Interpreter = interpreter;
        }