Пример #1
0
 private void Avatars_ViewerEffectLookAt(object sender, ViewerEffectLookAtEventArgs e)
 {
     if (ShowEffects)
         WriteLine(
             "ViewerEffect [LookAt]: SourceID: {0} TargetID: {1} TargetPos: {2} Type: {3} Duration: {4} ID: {5}",
             e.SourceID.ToString(), e.TargetID.ToString(), e.TargetPosition, e.LookType, e.Duration,
             e.EffectID.ToString());
 }
Пример #2
0
 void Avatars_ViewerEffectLookAt(object sender, ViewerEffectLookAtEventArgs e)
 {
     lock (m_AgentList)
     {
         if (m_AgentList.ContainsKey(e.SourceID))
             m_AgentList[e.SourceID] = true;
         else
             m_AgentList.Add(e.SourceID, true);
     }
 }
Пример #3
0
 ///<summary>Raises the ViewerEffectLookAt Event</summary>
 /// <param name="e">A ViewerEffectLookAtEventArgs object containing
 /// the data sent from the simulator</param>
 protected virtual void OnViewerEffectLookAt(ViewerEffectLookAtEventArgs e)
 {
     EventHandler<ViewerEffectLookAtEventArgs> handler = m_ViewerEffectLookAt;
     if (handler != null)
         handler(this, e);
 }
Пример #4
0
 public override void Avatars_OnLookAt(object sender, ViewerEffectLookAtEventArgs e)
 {
     // we have our own packet handler
     client.Avatars.ViewerEffectLookAt -= Avatars_OnLookAt;
     var sourceID = e.SourceID;
     var targetID = e.TargetID;
     var targetPos = e.TargetPosition;
     var lookType = e.LookType;
     var duration = e.Duration;
     var id = e.EffectID;
     if (!MaintainEffects) return;
     SendEffect(client.Network.CurrentSim, sourceID, targetID, targetPos, "LookAtType-" + lookType.ToString(), duration, id, PCode.Avatar);
 }
Пример #5
0
 public virtual void Avatars_OnLookAt(object sender, ViewerEffectLookAtEventArgs e) { OnEvent("On-Look-At", paramNamesOnLookAt, paramTypesOnLookAt, e); }