| | |
| | | public bool TryGetNewCampRound(out FairySiegeCampRound fairySiegeCampRound)
|
| | | {
|
| | | fairySiegeCampRound = null;
|
| | |
|
| | | if (campRoundDict == null || campRoundDict.Count == 0)
|
| | | if (campRoundDict.IsNullOrEmpty())
|
| | | return false;
|
| | | var keys = campRoundDict.Keys.ToList();
|
| | | keys.Sort();
|
| | | int latestRoundKey = keys[keys.Count - 1];
|
| | | fairySiegeCampRound = campRoundDict[latestRoundKey];
|
| | | return fairySiegeCampRound != null;
|
| | | if (campRoundDict.TryGetValue(matchRound, out var round))
|
| | | {
|
| | | fairySiegeCampRound = round;
|
| | | return round != null;
|
| | | }
|
| | | return false;
|
| | | }
|
| | |
|
| | | public int GetAllScore()
|