| | |
| | | fairyLeagueWeekTime.AddStage(configs[i]);
|
| | | }
|
| | | }
|
| | | fairyLeagueWeekTime.Sort();
|
| | | var specialStateTimes = DungeonSpecialStateTimeConfig.GetDungeonTimes(FAIRY_LEAGUE_DUNGEON);
|
| | | for (int i = 0; i < specialStateTimes.Count; i++)
|
| | | {
|
| | |
| | | dict.Add(index, leagueTime);
|
| | | }
|
| | | leagueTime.AddStage(specialConfig, dayOfWeek);
|
| | | }
|
| | | }
|
| | | foreach (var dict in specialLeagueTimes.Values)
|
| | | {
|
| | | foreach (var leagueTime in dict.Values)
|
| | | {
|
| | | leagueTime.Sort();
|
| | | }
|
| | | }
|
| | | cfg = Config.Instance.Get<FuncConfigConfig>("FamilyMatchResourcePoint");
|
| | |
| | |
|
| | | public void Sort()
|
| | | {
|
| | | var fightStage = stages.Find((x) =>
|
| | | {
|
| | | return x.stage == FairyLeagueStage.Fight;
|
| | | });
|
| | | var overStage = stages.Find((x) =>
|
| | | {
|
| | | return x.stage == FairyLeagueStage.Over;
|
| | | });
|
| | | overStage.startHour = fightStage.endHour;
|
| | | overStage.startMinute = fightStage.endMinute;
|
| | | stages.Sort(Compare);
|
| | | }
|
| | |
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | public struct Stage
|
| | | public class Stage
|
| | | {
|
| | | public FairyLeagueStage stage;
|
| | | public int dayOfWeek;
|
| | |
| | | {
|
| | | return false;
|
| | | }
|
| | | if (time.Hour == endHour && time.Minute > endMinute)
|
| | | if (time.Hour == endHour && time.Minute >= endMinute)
|
| | | {
|
| | | return false;
|
| | | }
|
| | |
| | | {
|
| | | return true;
|
| | | }
|
| | | if (time.Hour == endHour && time.Minute > endMinute)
|
| | | if (time.Hour == endHour && time.Minute >= endMinute)
|
| | | {
|
| | | return true;
|
| | | }
|