public void Add(LuaInteger Val) { NumIntegers += IntegersEncountered.Add(Val.Value) ? 1U : 0U; }
/// <summary> /// [-0, +1, -] int lua_rawgeti (lua_State *L, int index, lua_Integer n); /// /// Pushes onto the stack the value t[n], where t is the table at the given index. /// The access is raw, that is, it does not invoke the __index metamethod. /// </summary> /// <param name="L"></param> /// <param name="index"></param> /// <param name="n"></param> /// <returns>the type of the pushed value.</returns> public int rawgeti(LuaState L, int index, LuaInteger n) { return(bind <Func <LuaState, int, LuaInteger, int> >("rawgeti")(L, index, n)); }
/// <summary> /// [-1, +0, m] void lua_rawseti (lua_State *L, int index, lua_Integer i); /// /// Does the equivalent of t[i] = v, where t is the table at the given index /// and v is the value at the top of the stack. /// /// This function pops the value from the stack. /// The assignment is raw, that is, it does not invoke the __newindex metamethod. /// </summary> /// <param name="L"></param> /// <param name="index"></param> /// <param name="i"></param> public void rawseti(LuaState L, int index, LuaInteger i) { bind <Action <LuaState, int, LuaInteger> >("rawseti")(L, index, i); }
/// <summary> /// [-0, +1, -] void lua_pushinteger (lua_State *L, lua_Integer n); /// /// Pushes a number with value n onto the stack. /// </summary> /// <param name="L"></param> /// <param name="n"></param> public void pushinteger(LuaState L, LuaInteger n) { bind <Action <LuaState, LuaInteger> >("pushinteger")(L, n); }