MakeIndex() public method

public MakeIndex ( string index ) : LuaExpression
index string
return LuaExpression
コード例 #1
0
        static LuaBitLibrary()
        {
            Bit = new LuaExpression.GlobalAccess("bit");
            Bit_LShift = Bit.MakeIndex("lshift");
            Bit_RShift = Bit.MakeIndex("rshift");
            Bit_BXor = Bit.MakeIndex("bxor");
            Bit_BAnd = Bit.MakeIndex("band");
            Bit_BOr = Bit.MakeIndex("bor");

            Bit_LShift.ReturnType = LuaValueType.Integer;
        }
コード例 #2
0
        static LuaStandardLibrary()
        {
            _G = new LuaExpression.GlobalAccess("_G");

            Math = new LuaExpression.GlobalAccess("math");
            Math_Pi = Math.MakeIndex("pi");
        }