public static int get_JoinMaxLevel(IntPtr l)
    {
        int result;

        try
        {
            TeamRoomSetting teamRoomSetting = (TeamRoomSetting)LuaObject.checkSelf(l);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, teamRoomSetting.JoinMaxLevel);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int get_GameFunctionTypeId(IntPtr l)
    {
        int result;

        try
        {
            TeamRoomSetting teamRoomSetting = (TeamRoomSetting)LuaObject.checkSelf(l);
            LuaObject.pushValue(l, true);
            LuaObject.pushEnum(l, (int)teamRoomSetting.GameFunctionTypeId);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int constructor(IntPtr l)
    {
        int result;

        try
        {
            TeamRoomSetting o = new TeamRoomSetting();
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
コード例 #4
0
        // Token: 0x06007736 RID: 30518 RVA: 0x002091DC File Offset: 0x002073DC
        public void JoinTeamRoom(TeamRoom room)
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_JoinTeamRoomTeamRoom_hotfix != null)
            {
                this.m_JoinTeamRoomTeamRoom_hotfix.call(new object[]
                {
                    this,
                    room
                });
                return;
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            this.Room = room;
            TeamRoomSetting setting = room.Setting;

            base.JoinTeamRoom(room.RoomId, setting.GameFunctionTypeId, setting.LocationId);
        }
コード例 #5
0
        // Token: 0x0600F7C5 RID: 63429 RVA: 0x00417088 File Offset: 0x00415288
        private void GuildMassiveCombatUIController_OnTeamBattle(GuildMassiveCombatStronghold strongHold)
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_GuildMassiveCombatUIController_OnTeamBattleGuildMassiveCombatStronghold_hotfix != null)
            {
                this.m_GuildMassiveCombatUIController_OnTeamBattleGuildMassiveCombatStronghold_hotfix.call(new object[]
                {
                    this,
                    strongHold
                });
                return;
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            IConfigDataLoader configDataLoader = GameManager.Instance.ConfigDataLoader as IConfigDataLoader;
            TeamRoomSetting   teamRoomSetting  = new TeamRoomSetting();

            teamRoomSetting.GameFunctionTypeId = GameFunctionType.GameFunctionType_GuildMassiveCombat;
            teamRoomSetting.LocationId         = strongHold.LevelId;
            teamRoomSetting.JoinMinLevel       = 1;
            teamRoomSetting.JoinMaxLevel       = configDataLoader.ConfigableConstId_PlayerLevelMaxLevel;
            teamRoomSetting.Authority          = TeamRoomAuthority.GuildMassiveCombat;
            ProjectLPlayerContext projectLPlayerContext = GameManager.Instance.PlayerContext as ProjectLPlayerContext;
            int num = projectLPlayerContext.CanCreateTeam(teamRoomSetting);

            if (num == 0)
            {
                TeamRoomCreateNetTask teamRoomCreateNetTask = new TeamRoomCreateNetTask(teamRoomSetting);
                teamRoomCreateNetTask.EventOnStop += delegate(Task task)
                {
                    TeamRoomCreateNetTask teamRoomCreateNetTask2 = task as TeamRoomCreateNetTask;
                    if (teamRoomCreateNetTask2.Result == 0)
                    {
                        this.StartTeamRoomInfoUITask();
                    }
                    else
                    {
                        CommonUIController.Instance.ShowErrorMessage(teamRoomCreateNetTask2.Result, 2f, null, true);
                    }
                };
                teamRoomCreateNetTask.Start(null);
            }
            else
            {
                WorldUITask.HandleAttackFailResult(num, this.m_currIntent);
            }
        }
    public static int PbTeamRoomSettingToTeamRoomSetting_s(IntPtr l)
    {
        int result;

        try
        {
            ProTeamRoomSetting pbSetting;
            LuaObject.checkType <ProTeamRoomSetting>(l, 1, out pbSetting);
            TeamRoomSetting o = TeamRoomSetting.PbTeamRoomSettingToTeamRoomSetting(pbSetting);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int set_Authority(IntPtr l)
    {
        int result;

        try
        {
            TeamRoomSetting   teamRoomSetting = (TeamRoomSetting)LuaObject.checkSelf(l);
            TeamRoomAuthority authority;
            LuaObject.checkEnum <TeamRoomAuthority>(l, 2, out authority);
            teamRoomSetting.Authority = authority;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int set_JoinMinLevel(IntPtr l)
    {
        int result;

        try
        {
            TeamRoomSetting teamRoomSetting = (TeamRoomSetting)LuaObject.checkSelf(l);
            int             joinMinLevel;
            LuaObject.checkType(l, 2, out joinMinLevel);
            teamRoomSetting.JoinMinLevel = joinMinLevel;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int set_LocationId(IntPtr l)
    {
        int result;

        try
        {
            TeamRoomSetting teamRoomSetting = (TeamRoomSetting)LuaObject.checkSelf(l);
            int             locationId;
            LuaObject.checkType(l, 2, out locationId);
            teamRoomSetting.LocationId = locationId;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int set_GameFunctionTypeId(IntPtr l)
    {
        int result;

        try
        {
            TeamRoomSetting  teamRoomSetting = (TeamRoomSetting)LuaObject.checkSelf(l);
            GameFunctionType gameFunctionTypeId;
            LuaObject.checkEnum <GameFunctionType>(l, 2, out gameFunctionTypeId);
            teamRoomSetting.GameFunctionTypeId = gameFunctionTypeId;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
コード例 #11
0
 // Token: 0x06013925 RID: 80165 RVA: 0x004FD5B4 File Offset: 0x004FB7B4
 public TeamRoomCreateNetTask(TeamRoomSetting setting) : base(10f, null, true)
 {
     this.m_setting = setting;
 }