Beispiel #1
0
    static int set_onComplete(IntPtr L)
    {
        object             o   = LuaScriptMgr.GetLuaObject(L, 1);
        UIChallengeLoading obj = (UIChallengeLoading)o;

        if (obj == null)
        {
            LuaTypes types = LuaDLL.lua_type(L, 1);

            if (types == LuaTypes.LUA_TTABLE)
            {
                LuaDLL.luaL_error(L, "unknown member name onComplete");
            }
            else
            {
                LuaDLL.luaL_error(L, "attempt to index onComplete on a nil value");
            }
        }

        LuaTypes funcType = LuaDLL.lua_type(L, 3);

        if (funcType != LuaTypes.LUA_TFUNCTION)
        {
            obj.onComplete = (Action)LuaScriptMgr.GetNetObject(L, 3, typeof(Action));
        }
        else
        {
            LuaFunction func = LuaScriptMgr.ToLuaFunction(L, 3);
            obj.onComplete = () =>
            {
                func.Call();
            };
        }
        return(0);
    }
Beispiel #2
0
    static int LoadScene(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 1);
        UIChallengeLoading obj = (UIChallengeLoading)LuaScriptMgr.GetUnityObjectSelf(L, 1, "UIChallengeLoading");

        obj.LoadScene();
        return(0);
    }
Beispiel #3
0
    static int LoadUI(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 2);
        UIChallengeLoading obj  = (UIChallengeLoading)LuaScriptMgr.GetUnityObjectSelf(L, 1, "UIChallengeLoading");
        GameMatch          arg0 = (GameMatch)LuaScriptMgr.GetNetObject(L, 2, typeof(GameMatch));

        obj.LoadUI(arg0);
        return(0);
    }
Beispiel #4
0
    static int Refresh(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 2);
        UIChallengeLoading obj = (UIChallengeLoading)LuaScriptMgr.GetUnityObjectSelf(L, 1, "UIChallengeLoading");
        bool arg0 = LuaScriptMgr.GetBoolean(L, 2);

        obj.Refresh(arg0);
        return(0);
    }
Beispiel #5
0
    static int LoadCharacter(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 3);
        UIChallengeLoading obj  = (UIChallengeLoading)LuaScriptMgr.GetUnityObjectSelf(L, 1, "UIChallengeLoading");
        PlayerManager      arg0 = (PlayerManager)LuaScriptMgr.GetNetObject(L, 2, typeof(PlayerManager));
        GameMatch          arg1 = (GameMatch)LuaScriptMgr.GetNetObject(L, 3, typeof(GameMatch));

        obj.LoadCharacter(arg0, arg1);
        return(0);
    }
Beispiel #6
0
    static int LoadFromMatch(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 3);
        UIChallengeLoading obj  = (UIChallengeLoading)LuaScriptMgr.GetUnityObjectSelf(L, 1, "UIChallengeLoading");
        string             arg0 = LuaScriptMgr.GetLuaString(L, 2);
        GameMatch          arg1 = (GameMatch)LuaScriptMgr.GetNetObject(L, 3, typeof(GameMatch));

        obj.LoadFromMatch(arg0, arg1);
        return(0);
    }
Beispiel #7
0
    static int set_matchType(IntPtr L)
    {
        object             o   = LuaScriptMgr.GetLuaObject(L, 1);
        UIChallengeLoading obj = (UIChallengeLoading)o;

        if (obj == null)
        {
            LuaTypes types = LuaDLL.lua_type(L, 1);

            if (types == LuaTypes.LUA_TTABLE)
            {
                LuaDLL.luaL_error(L, "unknown member name matchType");
            }
            else
            {
                LuaDLL.luaL_error(L, "attempt to index matchType on a nil value");
            }
        }

        obj.matchType = (GameMatch.Type)LuaScriptMgr.GetNetObject(L, 3, typeof(GameMatch.Type));
        return(0);
    }
Beispiel #8
0
    static int set_session_id(IntPtr L)
    {
        object             o   = LuaScriptMgr.GetLuaObject(L, 1);
        UIChallengeLoading obj = (UIChallengeLoading)o;

        if (obj == null)
        {
            LuaTypes types = LuaDLL.lua_type(L, 1);

            if (types == LuaTypes.LUA_TTABLE)
            {
                LuaDLL.luaL_error(L, "unknown member name session_id");
            }
            else
            {
                LuaDLL.luaL_error(L, "attempt to index session_id on a nil value");
            }
        }

        obj.session_id = (ulong)LuaScriptMgr.GetNumber(L, 3);
        return(0);
    }
Beispiel #9
0
    static int set_scene_name(IntPtr L)
    {
        object             o   = LuaScriptMgr.GetLuaObject(L, 1);
        UIChallengeLoading obj = (UIChallengeLoading)o;

        if (obj == null)
        {
            LuaTypes types = LuaDLL.lua_type(L, 1);

            if (types == LuaTypes.LUA_TTABLE)
            {
                LuaDLL.luaL_error(L, "unknown member name scene_name");
            }
            else
            {
                LuaDLL.luaL_error(L, "attempt to index scene_name on a nil value");
            }
        }

        obj.scene_name = LuaScriptMgr.GetString(L, 3);
        return(0);
    }
Beispiel #10
0
    static int set_wait_loading_seconds(IntPtr L)
    {
        object             o   = LuaScriptMgr.GetLuaObject(L, 1);
        UIChallengeLoading obj = (UIChallengeLoading)o;

        if (obj == null)
        {
            LuaTypes types = LuaDLL.lua_type(L, 1);

            if (types == LuaTypes.LUA_TTABLE)
            {
                LuaDLL.luaL_error(L, "unknown member name wait_loading_seconds");
            }
            else
            {
                LuaDLL.luaL_error(L, "attempt to index wait_loading_seconds on a nil value");
            }
        }

        obj.wait_loading_seconds = (float)LuaScriptMgr.GetNumber(L, 3);
        return(0);
    }
Beispiel #11
0
    static int get_pvpQualifyingEndResp(IntPtr L)
    {
        object             o   = LuaScriptMgr.GetLuaObject(L, 1);
        UIChallengeLoading obj = (UIChallengeLoading)o;

        if (obj == null)
        {
            LuaTypes types = LuaDLL.lua_type(L, 1);

            if (types == LuaTypes.LUA_TTABLE)
            {
                LuaDLL.luaL_error(L, "unknown member name pvpQualifyingEndResp");
            }
            else
            {
                LuaDLL.luaL_error(L, "attempt to index pvpQualifyingEndResp on a nil value");
            }
        }

        LuaScriptMgr.PushObject(L, obj.pvpQualifyingEndResp);
        return(1);
    }
Beispiel #12
0
    static int get_disConnected(IntPtr L)
    {
        object             o   = LuaScriptMgr.GetLuaObject(L, 1);
        UIChallengeLoading obj = (UIChallengeLoading)o;

        if (obj == null)
        {
            LuaTypes types = LuaDLL.lua_type(L, 1);

            if (types == LuaTypes.LUA_TTABLE)
            {
                LuaDLL.luaL_error(L, "unknown member name disConnected");
            }
            else
            {
                LuaDLL.luaL_error(L, "attempt to index disConnected on a nil value");
            }
        }

        LuaScriptMgr.Push(L, obj.disConnected);
        return(1);
    }
Beispiel #13
0
    static int set_pvpQualifyingEndResp(IntPtr L)
    {
        object             o   = LuaScriptMgr.GetLuaObject(L, 1);
        UIChallengeLoading obj = (UIChallengeLoading)o;

        if (obj == null)
        {
            LuaTypes types = LuaDLL.lua_type(L, 1);

            if (types == LuaTypes.LUA_TTABLE)
            {
                LuaDLL.luaL_error(L, "unknown member name pvpQualifyingEndResp");
            }
            else
            {
                LuaDLL.luaL_error(L, "attempt to index pvpQualifyingEndResp on a nil value");
            }
        }

        obj.pvpQualifyingEndResp = (fogs.proto.msg.PVPEndQualifyingResp)LuaScriptMgr.GetNetObject(L, 3, typeof(fogs.proto.msg.PVPEndQualifyingResp));
        return(0);
    }
Beispiel #14
0
    static int set_gameModeID(IntPtr L)
    {
        object             o   = LuaScriptMgr.GetLuaObject(L, 1);
        UIChallengeLoading obj = (UIChallengeLoading)o;

        if (obj == null)
        {
            LuaTypes types = LuaDLL.lua_type(L, 1);

            if (types == LuaTypes.LUA_TTABLE)
            {
                LuaDLL.luaL_error(L, "unknown member name gameModeID");
            }
            else
            {
                LuaDLL.luaL_error(L, "attempt to index gameModeID on a nil value");
            }
        }

        obj.gameModeID = (uint)LuaScriptMgr.GetNumber(L, 3);
        return(0);
    }
Beispiel #15
0
    static int get_my_role_score_list(IntPtr L)
    {
        object             o   = LuaScriptMgr.GetLuaObject(L, 1);
        UIChallengeLoading obj = (UIChallengeLoading)o;

        if (obj == null)
        {
            LuaTypes types = LuaDLL.lua_type(L, 1);

            if (types == LuaTypes.LUA_TTABLE)
            {
                LuaDLL.luaL_error(L, "unknown member name my_role_score_list");
            }
            else
            {
                LuaDLL.luaL_error(L, "attempt to index my_role_score_list on a nil value");
            }
        }

        LuaScriptMgr.PushObject(L, obj.my_role_score_list);
        return(1);
    }
Beispiel #16
0
    static int set_needPlayPlot(IntPtr L)
    {
        object             o   = LuaScriptMgr.GetLuaObject(L, 1);
        UIChallengeLoading obj = (UIChallengeLoading)o;

        if (obj == null)
        {
            LuaTypes types = LuaDLL.lua_type(L, 1);

            if (types == LuaTypes.LUA_TTABLE)
            {
                LuaDLL.luaL_error(L, "unknown member name needPlayPlot");
            }
            else
            {
                LuaDLL.luaL_error(L, "attempt to index needPlayPlot on a nil value");
            }
        }

        obj.needPlayPlot = LuaScriptMgr.GetBoolean(L, 3);
        return(0);
    }
Beispiel #17
0
    static int set_my_role_name_list(IntPtr L)
    {
        object             o   = LuaScriptMgr.GetLuaObject(L, 1);
        UIChallengeLoading obj = (UIChallengeLoading)o;

        if (obj == null)
        {
            LuaTypes types = LuaDLL.lua_type(L, 1);

            if (types == LuaTypes.LUA_TTABLE)
            {
                LuaDLL.luaL_error(L, "unknown member name my_role_name_list");
            }
            else
            {
                LuaDLL.luaL_error(L, "attempt to index my_role_name_list on a nil value");
            }
        }

        obj.my_role_name_list = (List <string>)LuaScriptMgr.GetNetObject(L, 3, typeof(List <string>));
        return(0);
    }