///<summary>Raises the AttachedSoundGainChange Event</summary> /// <param name="e">A AttachedSoundGainChangeEventArgs object containing /// the data sent from the simulator</param> protected virtual void OnAttachedSoundGainChange(AttachedSoundGainChangeEventArgs e) { EventHandler <AttachedSoundGainChangeEventArgs> handler = m_AttachedSoundGainChange; if (handler != null) { handler(this, e); } }
///<summary>Raises the AttachedSoundGainChange Event</summary> /// <param name="e">A AttachedSoundGainChangeEventArgs object containing /// the data sent from the simulator</param> protected virtual void OnAttachedSoundGainChange(AttachedSoundGainChangeEventArgs e) { EventHandler<AttachedSoundGainChangeEventArgs> handler = m_AttachedSoundGainChange; if (handler != null) handler(this, e); }
public override void Sound_OnAttachSoundGainChange(object sender, AttachedSoundGainChangeEventArgs e) { var gain = e.Gain; var objectID = e.ObjectID; if (!MaintainSounds) return; EventQueue.Enqueue(() => { OnObjectSound(objectID, UUID.Zero, gain); }); //base.Sound_OnAttachSoundGainChange(objectID, gain); }
///<summary>Raises the AttachedSoundGainChange Event</summary> /// <param name="e">A AttachedSoundGainChangeEventArgs object containing /// the data sent from the simulator</param> protected virtual void OnAttachedSoundGainChange(AttachedSoundGainChangeEventArgs e) { EventHandler <AttachedSoundGainChangeEventArgs> handler = m_AttachedSoundGainChange; handler?.Invoke(this, e); }
public virtual void Sound_OnAttachSoundGainChange(object sender, AttachedSoundGainChangeEventArgs e) { OnEvent("On-Attach-Sound-Gain-Change", paramNamesOnAttachSoundGainChange, paramTypesOnAttachSoundGainChange, e); }