/// <summary> /// Plays the good item. /// </summary> /// <param name="volume">The volume.</param> /// <returns>The good item alert.</returns> public WaveOutEvent PlayItemAlert(float volume) { if (AssetService.Exists(ItemAlertFileName)) { return(this.Play(File.OpenRead(AssetService.GetFilePath(ItemAlertFileName)), volume)); } var stream = System.Reflection.Assembly.GetExecutingAssembly().GetManifestResourceStream("Lurker.Assets.ItemAlert.mp3"); return(this.Play(stream, volume)); }
/// <summary> /// Determines whether [has custom trade alert]. /// </summary> /// <returns> /// <c>true</c> if [has custom trade alert]; otherwise, <c>false</c>. /// </returns> public bool HasCustomItemAlert() { return(AssetService.Exists(ItemAlertFileName)); }
/// <summary> /// Determines whether [has custom trade alert]. /// </summary> /// <returns> /// <c>true</c> if [has custom trade alert]; otherwise, <c>false</c>. /// </returns> public bool HasCustomTradeAlert() { return(AssetService.Exists(TradeAlertFileName)); }