Esempio n. 1
0
 private void Avatars_ViewerEffectPointAt(object sender, ViewerEffectPointAtEventArgs e)
 {
     if (ShowEffects)
         WriteLine(
             "ViewerEffect [PointAt]: SourceID: {0} TargetID: {1} TargetPos: {2} Type: {3} Duration: {4} ID: {5}",
             e.SourceID.ToString(), e.TargetID.ToString(), e.TargetPosition, e.PointType, e.Duration,
             e.EffectID.ToString());
 }
Esempio n. 2
0
 void Avatars_ViewerEffectPointAt(object sender, ViewerEffectPointAtEventArgs e)
 {
     if (e.SourceID == Client.MasterKey)
     {
         //Client.DebugLog("Master is now selecting " + targetID.ToString());
         SelectedObject = e.TargetID;
     }
 }
Esempio n. 3
0
 void Avatars_ViewerEffectPointAt(object sender, ViewerEffectPointAtEventArgs e)
 {
     lock (m_AgentList)
     {
         if (m_AgentList.ContainsKey(e.SourceID))
             m_AgentList[e.SourceID] = true;
         else
             m_AgentList.Add(e.SourceID, true);
     }
 }
Esempio n. 4
0
 ///<summary>Raises the ViewerEffectPointAt Event</summary>
 /// <param name="e">A ViewerEffectPointAtEventArgs object containing
 /// the data sent from the simulator</param>
 protected virtual void OnViewerEffectPointAt(ViewerEffectPointAtEventArgs e)
 {
     EventHandler<ViewerEffectPointAtEventArgs> handler = m_ViewerEffectPointAt;
     if (handler != null)
         handler(this, e);
 }
Esempio n. 5
0
 void Avatars_ViewerEffectPointAt(object sender, ViewerEffectPointAtEventArgs e)
 {
     if (e.SourceID == avatar.ID && e.TargetID != UUID.Zero) {
         selectedID = e.TargetID;
         selectedPrim = client.Network.CurrentSim.ObjectsPrimitives.Find(
             delegate(Primitive prim) { return prim.ID == selectedID; }
         );
         if (selectedPrim != null) {
             client.Objects.SelectObject(client.Network.CurrentSim, selectedPrim.LocalID);
             UpdateLLUUID();
         }
     }
 }
Esempio n. 6
0
 public override void Avatars_OnPointAt(object sender, ViewerEffectPointAtEventArgs e)
 {
     // we have our own packet handler
     client.Avatars.ViewerEffectPointAt -= Avatars_OnPointAt;
     var sourceID = e.SourceID;
     var targetID = e.TargetID;
     var targetPos = e.TargetPosition;
     var lookType = e.PointType;
     var duration = e.Duration;
     var id = e.EffectID;
     if (!MaintainEffects) return;
     SendEffect(client.Network.CurrentSim, sourceID, targetID, targetPos, "PointAtType-" + lookType.ToString(), duration, id, PCode.Avatar);
 }
Esempio n. 7
0
 public virtual void Avatars_OnPointAt(object sender, ViewerEffectPointAtEventArgs e) { OnEvent("On-Point-At", paramNamesOnPointAt, paramTypesOnPointAt,e); }