Ejemplo n.º 1
0
    static int Refresh(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 1)
            {
                GameFramework.UIEffectDepth obj = (GameFramework.UIEffectDepth)ToLua.CheckObject <GameFramework.UIEffectDepth>(L, 1);
                obj.Refresh();
                return(0);
            }
            else if (count == 2)
            {
                GameFramework.UIEffectDepth obj = (GameFramework.UIEffectDepth)ToLua.CheckObject <GameFramework.UIEffectDepth>(L, 1);
                int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
                obj.Refresh(arg0);
                return(0);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: GameFramework.UIEffectDepth.Refresh"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }