/// <summary> /// Initiates a new Battle, when a new battle is ready. /// </summary> /// <param name="sender">The sender of the BattleReady event.</param> /// <param name="e">The event arguments.</param> private void MatchMaker_BattleIsReady(object sender, BattleReadyEventArgs e) { this.battleManager.InitiateBattle(e.CompetitorA, e.CompetitorB); }
/// <summary> /// Fires the battle ready event. /// </summary> /// <param name="sender">The sender.</param> /// <param name="args">The <see cref="BattleReadyEventArgs"/> instance containing the event data.</param> protected virtual void FireBattleReady(object sender, BattleReadyEventArgs args) { this.BattleIsReady?.Invoke(sender, args); }