/// <summary> /// Display message. /// </summary> /// <param name="sender">Sender.</param> /// <param name="e">E.</param> void PlayerMsgOnCol(object sender, RouletteSpinEventArgs e) { if (e.Color == Color) { Console.WriteLine($"GOTCHA! {Name} got the color!"); } }
/// <summary> /// Display message. /// </summary> /// <param name="sender">Sender.</param> /// <param name="e">E.</param> void PlayerMsgOnNum(object sender, RouletteSpinEventArgs e) { if (e.Number == Number) { Console.WriteLine($"GOTCHA! {Name} got the number!"); } }
protected virtual void OnNewSpecifiedCol(object sender, RouletteSpinEventArgs e) { OnSpecColor?.Invoke(sender, e); }
protected virtual void OnNewSpin(object sender, RouletteSpinEventArgs e) { OnNewSpecifiedCol(this, new RouletteSpinEventArgs(number, color)); OnNewSpecifiedNumber(this, new RouletteSpinEventArgs(number, color)); }