Пример #1
0
        /// <summary>
        /// Inicia o jogo.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        public static void Start_MouseUp(object sender, EventArgs e)
        {
            if (EngineMessageBox.Visible)
            {
                return;
            }
            if (EngineInputBox.Visible)
            {
                return;
            }

            EngineMultimedia.Play(EngineSoundEnum.Click);

            if (Player[SelectedIndex].Name.Length <= 0)
            {
                return;
            }

            EngineMessageBox.Enabled = false;
            EngineMessageBox.Show("Aguardando conexão");

            WorldPacket.StartGame((byte)SelectedIndex);
        }