LuaInterface.LuaDLL.lua_pushinteger C# (CSharp) Method

lua_pushinteger() private method

private lua_pushinteger ( IntPtr luaState, System.Int64 i ) : void
luaState System.IntPtr
i System.Int64
return void
        public static extern void lua_pushinteger(IntPtr luaState, Int64 i);

Same methods

LuaDLL::lua_pushinteger ( IntPtr luaState, IntPtr i ) : void
LuaDLL::lua_pushinteger ( IntPtr luaState, int i ) : void

Usage Example

示例#1
0
        public static void Push(IntPtr L, Touch t, int flag)
        {
            LuaStatic.GetPackTouch(L);
            LuaDLL.lua_pushinteger(L, t.fingerId);

            if ((flag & TouchBits.Position) != 0)
            {
                Push(L, t.position);
            }
            else
            {
                LuaDLL.lua_pushnil(L);
            }

            if ((flag & TouchBits.RawPosition) != 0)
            {
                Push(L, t.rawPosition);
            }
            else
            {
                LuaDLL.lua_pushnil(L);
            }

            if ((flag & TouchBits.DeltaPosition) != 0)
            {
                Push(L, t.deltaPosition);
            }
            else
            {
                LuaDLL.lua_pushnil(L);
            }

            LuaDLL.lua_pushnumber(L, t.deltaTime);
            LuaDLL.lua_pushinteger(L, t.tapCount);
            LuaDLL.lua_pushinteger(L, (int)t.phase);

            if (LuaDLL.lua_pcall(L, 7, -1, 0) != 0)
            {
                string error = LuaDLL.lua_tostring(L, -1);
                throw new LuaException(error);
            }
        }
All Usage Examples Of LuaInterface.LuaDLL::lua_pushinteger
LuaDLL