コード例 #1
0
 static int LoadingManager(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 0);
         VisowFrameWork.LoadingManager o = VisowFrameWork.Util.LoadingManager();
         ToLua.Push(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
コード例 #2
0
    static int LoadSceneByName(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 2)
            {
                VisowFrameWork.LoadingManager obj = (VisowFrameWork.LoadingManager)ToLua.CheckObject <VisowFrameWork.LoadingManager>(L, 1);
                string arg0 = ToLua.CheckString(L, 2);
                obj.LoadSceneByName(arg0);
                return(0);
            }
            else if (count == 3)
            {
                VisowFrameWork.LoadingManager obj = (VisowFrameWork.LoadingManager)ToLua.CheckObject <VisowFrameWork.LoadingManager>(L, 1);
                string      arg0 = ToLua.CheckString(L, 2);
                LuaFunction arg1 = ToLua.CheckLuaFunction(L, 3);
                obj.LoadSceneByName(arg0, arg1);
                return(0);
            }
            else if (count == 4)
            {
                VisowFrameWork.LoadingManager obj = (VisowFrameWork.LoadingManager)ToLua.CheckObject <VisowFrameWork.LoadingManager>(L, 1);
                string      arg0 = ToLua.CheckString(L, 2);
                LuaFunction arg1 = ToLua.CheckLuaFunction(L, 3);
                LuaFunction arg2 = ToLua.CheckLuaFunction(L, 4);
                obj.LoadSceneByName(arg0, arg1, arg2);
                return(0);
            }
            else if (count == 5)
            {
                VisowFrameWork.LoadingManager obj = (VisowFrameWork.LoadingManager)ToLua.CheckObject <VisowFrameWork.LoadingManager>(L, 1);
                string      arg0 = ToLua.CheckString(L, 2);
                LuaFunction arg1 = ToLua.CheckLuaFunction(L, 3);
                LuaFunction arg2 = ToLua.CheckLuaFunction(L, 4);
                LuaFunction arg3 = ToLua.CheckLuaFunction(L, 5);
                obj.LoadSceneByName(arg0, arg1, arg2, arg3);
                return(0);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: VisowFrameWork.LoadingManager.LoadSceneByName"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
コード例 #3
0
 static int LoadSceneAddtiveByName(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         VisowFrameWork.LoadingManager obj = (VisowFrameWork.LoadingManager)ToLua.CheckObject <VisowFrameWork.LoadingManager>(L, 1);
         string arg0 = ToLua.CheckString(L, 2);
         obj.LoadSceneAddtiveByName(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
コード例 #4
0
 static int GetDisplayProgress(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         VisowFrameWork.LoadingManager obj = (VisowFrameWork.LoadingManager)ToLua.CheckObject <VisowFrameWork.LoadingManager>(L, 1);
         int o = obj.GetDisplayProgress();
         LuaDLL.lua_pushinteger(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }