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()); }
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); } }
///<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); }
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); }
public virtual void Avatars_OnLookAt(object sender, ViewerEffectLookAtEventArgs e) { OnEvent("On-Look-At", paramNamesOnLookAt, paramTypesOnLookAt, e); }