/// <summary> Invoke certain events </summary> /// <param name="sender"> Sender </param> /// <param name="e"> Arguments </param> private void OnRouletteSpin(object sender, RouletteEventArgs e) { RouletteSpin?.Invoke(sender, e); if (e.IsZero) { ZeroHit?.Invoke(sender, e); } else { OnColorCheck(sender, e); OnDozenCheck(sender, e); OnParityCheck(sender, e); OnRangeCheck(sender, e); } }
protected virtual void OnRouletteSpin(object sender, RouletteEventArgs e) { RouletteSpin?.Invoke(sender, e); }