示例#1
0
        ///<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);
            }
        }
示例#2
0
 ///<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);
 }
示例#3
0
 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);
 }
示例#4
0
        ///<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);
        }
示例#5
0
 public virtual void Sound_OnAttachSoundGainChange(object sender, AttachedSoundGainChangeEventArgs e) { OnEvent("On-Attach-Sound-Gain-Change", paramNamesOnAttachSoundGainChange, paramTypesOnAttachSoundGainChange, e); }