Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip map vote if only one map is configured #33

Merged
merged 6 commits into from
Nov 15, 2023
Merged

Conversation

MD-V
Copy link
Contributor

@MD-V MD-V commented Nov 15, 2023

Fixes #32

@MD-V MD-V requested a review from TheR00st3r November 15, 2023 12:57
.OnEntry(StartWarmup)
.OnEntry(SetAllPlayersNotReady)
.OnEntry(StartReadyReminder)
.OnExit(StopReadyReminder);

_MatchStateMachine.Configure(MatchState.PreMapVote)
.PermitDynamicIf(MatchCommand.MapListCheckCompleted, () => OneMapConfigured() ? MatchState.TeamVote : MatchState.MapVote)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would be better to do the check and state transition in the state WaitingForPlayersConnectedReady and also split the dynamic permit into two transitions

Copy link

sonarcloud bot commented Nov 15, 2023

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 4 Code Smells

73.1% 73.1% Coverage
0.0% 0.0% Duplication

idea Catch issues before they fail your Quality Gate with our IDE extension sonarlint SonarLint

@MD-V MD-V merged commit 3c9381e into main Nov 15, 2023
6 of 7 checks passed
@MD-V MD-V deleted the feature/fix_issue_32 branch November 15, 2023 19:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

If 1 map given in maplist it shows a map veto and nothing happens after ban
2 participants