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; }
static LuaStandardLibrary() { _G = new LuaExpression.GlobalAccess("_G"); Math = new LuaExpression.GlobalAccess("math"); Math_Pi = Math.MakeIndex("pi"); }