-
-
Notifications
You must be signed in to change notification settings - Fork 98
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
Add ability for host to change game name #662
base: develop
Are you sure you want to change the base?
Conversation
Add game lobby name change command
Nightly build for this pull request:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting feature!
yeah, the CnCNet lobby is different from a game (game room) |
Add example to chatbox command list
please double check the lobby stuffs in the git diff. I saw this word again in the XML comment. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
empty lines
/// what is wrong with the name.</returns> | ||
public static string IsGameNameValid(string gameName) | ||
{ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -239,17 +240,14 @@ private void BtnLoadMPGame_LeftClick(object sender, EventArgs e) | |||
|
|||
private void BtnCreateGame_LeftClick(object sender, EventArgs e) | |||
{ | |||
string gameName = tbGameName.Text.Replace(";", string.Empty); | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adds the ability for the host to change a game's lobby name from within the lobby itself. The host can type:
/gamename <newname>
The new name is validated, then broadcast to all online players, and all players in the channel.
I've moved the lobby name validation checks to the NameValidator.cs file.