//---readers

        void StartFightMessage_Reader(ReceivedMsg receivedMsg, StartFightMessage msg)
        {
            if (FightStart != null)
            {
                FightStart.Invoke();
            }
        }
Beispiel #2
0
 private void button_newCharOK_Click(object sender, EventArgs e)
 {
     if (maskedTextBox_nameCharacter.Text.Length == 0)
     {
         ClearForm();
         return;
     }
     CreateOponents();
     fightStart?.Invoke();
     ClearForm();
 }
Beispiel #3
0
        void StartFight()
        {
            timeEndFight = DateTime.Now + _fightLength;

            foreach (var gaemLoop in games)
            {
                gaemLoop.TimeEndFight = timeEndFight;
            }

            Timer.AddTimer(FightEnd_Timer, timeEndFight);

            FightStart?.Invoke(this);
        }