Provides additional primitive data for the ObjectManager.ObjectPropertiesUpdated event

The ObjectManager.ObjectPropertiesUpdated event occurs when the simulator sends an ObjectPropertiesPacket containing additional details for a Primitive or Foliage data that is currently being tracked in the Simulator.ObjectsPrimitives dictionary

The ObjectManager.ObjectPropertiesUpdated event is also raised when a ObjectManager.SelectObject request is made and Settings.OBJECT_TRACKING is enabled

Inheritance: ObjectPropertiesEventArgs
コード例 #1
0
        public void Objects_OnPrimitiveProperties(object sender, ObjectPropertiesUpdatedEventArgs e)
        {
            var prim = e.Prim;
            var props = e.Properties;
            var simulator = e.Simulator;
            if (ScriptHolder == null && prim.ParentID != 0 && prim.ParentID == client.Self.LocalID)
            {
                if ("ScriptHolder" == props.Name)
                {
                    Debug("!!!!!XOXOX!!! Found our ScriptHolder " + prim);
                    ScriptHolder = prim;
                    ScriptHolderAttached = true;
                    ScriptHolderAttachWaiting.Set();
                }
            }
            CheckConnected(simulator);
            EnsureSimulator(simulator);
            NeverSelect(prim.LocalID, simulator);

            if (!MaintainPropertiesFromQueue)
                Objects_OnObjectProperties11(simulator, prim, props);
            else                
                PropertyQueue.Enqueue(() => Objects_OnObjectProperties11(simulator, prim, props));
        }
コード例 #2
0
ファイル: ObjectManager.cs プロジェクト: RavenB/gridsearch
 ///<summary>Raises the ObjectPropertiesUpdated Event</summary>
 /// <param name="e">A ObjectPropertiesUpdatedEventArgs object containing
 /// the data sent from the simulator</param>
 protected virtual void OnObjectPropertiesUpdated(ObjectPropertiesUpdatedEventArgs e)
 {
     EventHandler<ObjectPropertiesUpdatedEventArgs> handler = m_ObjectPropertiesUpdated;
     if (handler != null)
         handler(this, e);
 }