private void MessageBoxNickName(ConfirmNickNameMessageEnum msgType, string nickname) { Console.WriteLine(DateTime.Now.ToString() + $" CONFIRM_NICK: {msgType}"); Player.Response.Write(new byte[] { 0x0E, 0x00 }); Player.Response.WriteUInt32((int)msgType); if (msgType == ConfirmNickNameMessageEnum.Disponivel) { Player.Response.WritePStr(nickname); } Player.SendResponse(); }
void HandleMessageBoxNickName(ConfirmNickNameMessageEnum msgType, string nickname) { Response.Clear(); Response.Write(new byte[] { 0x0E, 0x00 }); Response.WriteUInt32((uint)msgType); //Nickname disponivel if (msgType == ConfirmNickNameMessageEnum.Disponivel) { Response.WritePStr(nickname); } SendResponse(); }