Example #1
0
        private static void onObjectProperties(object sender, ObjectPropertiesEventArgs e)
        {
            //Console.WriteLine("ObjectProperties @ " + DateTime.Now);
            //Console.WriteLine("\n=> Got prim properties <=\n");

            /*
             * Dictionary<UUID, Primitive2> PrimList = MasterObjectCaches.RegionPrims[e.Simulator.Name];
             * UUID id = e.Properties.ObjectID;
             * if (PrimList.ContainsKey(id))
             * {
             *
             *  Primitive2 prim = PrimList[id];
             *  if (prim.Properties != new Primitive2Properties(e.Properties))
             *  {
             *
             *      prim.Properties = new Primitive2Properties(e.Properties);
             *      PrimList[id] = prim;
             *      MasterObjectCaches.RegionPrims[e.Simulator.Name] = PrimList;
             *      MasterObjectCaches.MarkDirty();
             *  }
             * }
             * else
             * {
             *  // Skip. There is nothing we can do
             * }*/
            //ReqObjPropertiesData.Add(e.Properties.ObjectID, e.Properties);
            // This function is disabled until LibreMetaverse is fully tested
            //ReqObjProperties.Set();
        }
Example #2
0
 void Objects_OnObjectProperties(object sender, ObjectPropertiesEventArgs e)
 {
     lock (Waiting)
     {
         Waiting.Properties = e.Properties;
         PropertiesReceived.Set();
     }
 }
Example #3
0
 void Objects_ObjectProperties(object sender, ObjectPropertiesEventArgs e)
 {
     if (e.Properties.ObjectID == attachment.ID)
     {
         attachment.Properties = e.Properties;
         UpdateControls();
     }
 }
Example #4
0
 /// <summary>
 /// Raised when the simulator sends us data containing additional information
 /// The ObjectProperties event occurs when the simulator sends an ObjectPropertiesPacket containing additional details for a Primitive, Foliage data or Attachment data
 /// The ObjectProperties event is also raised when a SelectObject(Simulator, UInt32) request is made.
 /// </summary>
 /// <see cref="http://lib.openmetaverse.org/docs/trunk/html/E_OpenMetaverse_ObjectManager_ObjectProperties.htm"/>
 /// <param name="sender">Source of this event.</param>
 /// <param name="e">Provides additional primitive data for the ObjectProperties event</param>
 void Objects_ObjectProperties(object sender, ObjectPropertiesEventArgs e)
 {
     lock (greedyBotLock)
     {
         if (currentState == State.SearchingForGameBoard)
         {
             gameComponents.Objects_ObjectProperties(sender, e);
         }
     }
 }
        public override void Objects_OnObjectProperties(object sender, ObjectPropertiesEventArgs e)
        {
            var simulator = e.Simulator;
            var props     = e.Properties;

            //throw new InvalidOperationException("Objects_OnObjectProperties");
            CheckConnected(simulator);
            //NeverSelect(props.LocalID, simulator);
            PropertyQueue.Enqueue(delegate() { Objects_OnObjectProperties11(simulator, null, props); });
        }
Example #6
0
 void Objects_ObjectProperties(object sender, ObjectPropertiesEventArgs e)
 {
     if (selectedPrim != null)
     {
         if (selectedPrim.ID == e.Properties.ObjectID)
         {
             selectedPrim.Properties = e.Properties;
             UpdateDisplay();
         }
     }
 }
        void Objects_ObjectProperties(object sender, ObjectPropertiesEventArgs e)
        {
            lock (PrimsWaiting)
            {
                PrimsWaiting.Remove(e.Properties.ObjectID);

                if (PrimsWaiting.Count == 0)
                {
                    AllPropertiesReceived.Set();
                }
            }
        }
Example #8
0
        public void Objects_ObjectProperties(object sender, ObjectPropertiesEventArgs e)
        {
            if (e.Properties.ObjectID == Preferences.Primitive)
            {
                Preferences = new AutoSitPreferences
                {
                    Primitive     = Preferences.Primitive,
                    PrimitiveName = e.Properties.Name,
                    Enabled       = Preferences.Enabled
                };

                m_instance.Client.Objects.ObjectProperties -= Objects_ObjectProperties;
            }
        }
 static void Objects_OnObjectProperties(object sender, ObjectPropertiesEventArgs e)
 {
     lock (PrimsWaiting) {
         Primitive prim;
         if (PrimsWaiting.TryGetValue(e.Properties.ObjectID, out prim))
         {
             prim.Properties = e.Properties;
         }
         PrimsWaiting.Remove(e.Properties.ObjectID);
         if (PrimsWaiting.Count == 0)
         {
             AllPropertiesReceived.Set();
         }
     }
 }
Example #10
0
        public void Objects_ObjectProperties(object sender, ObjectPropertiesEventArgs e)
        {
            //if (currentState != GreedyBotPlugin.State.RetrievingGameObjectProperties)
            //{
            //	return;
            //}



            CheckPropsForGameComponents(e.Properties);
            if (HasFoundAllGameComponents())
            {
                AllComponentsFound();
            }
        }
        void Objects_OnObjectProperties(object sender, ObjectPropertiesEventArgs e)
        {
            if (PermsSent)
            {
                if (Objects.ContainsKey(e.Properties.ObjectID))
                {
                    // FIXME: Confirm the current operation against properties.Permissions.NextOwnerMask

                    ++PermCount;
                    if (PermCount >= Objects.Count)
                    {
                        GotPermissionsEvent.Set();
                    }
                }
            }
        }
Example #12
0
            private void TaskInventoryItemReceived(object sender, ObjectPropertiesEventArgs e)
            {
                if (e.Properties.ObjectID != NewID)
                {
                    return;
                }
                short newSerial = e.Properties.InventorySerial;

                if (TaskSerial < newSerial)
                {
                    sourceObjectinventory = null;
                    if (TaskInvChanged != null)
                    {
                        TaskInvChanged();
                    }
                }
                TaskSerial = newSerial;
            }
Example #13
0
        private void Objects_OnObjectProperties(object sender, ObjectPropertiesEventArgs e)
        {
            if (e.Properties.ObjectID != prim.ID)
            {
                return;
            }

            try
            {
                gettingProperties = false;
                gotProperties     = true;
                prim.Properties   = e.Properties;

                listBox.BeginInvoke(
                    new OnPropReceivedRaise(OnPropertiesReceived),
                    new object[] { EventArgs.Empty });
            }
            catch
            {
                ;
            }
        }
Example #14
0
        void Objects_OnObjectProperties(object sender, ObjectPropertiesEventArgs e)
        {
            if (e.Properties.ObjectID == Properties.ObjectID)
            {
                if (e.Properties.CreatorID != UUID.Zero)
                {
                    Properties.CreatorID   = e.Properties.CreatorID;
                    Properties.Permissions = e.Properties.Permissions;
                    GotPermissions         = true;
                    GotPermissionsEvent.Set();
                }
            }
            lock (PrimsWaiting)
            {
                PrimsWaiting.Remove(e.Properties.ObjectID);

                if (PrimsWaiting.Count == 0)
                {
                    AllPropertiesReceived.Set();
                }
            }
        }
        void Objects_OnObjectProperties(object sender, ObjectPropertiesEventArgs e)
        {
            if (PermsSent)
            {
                if (Objects.ContainsKey(e.Properties.ObjectID))
                {
                    // FIXME: Confirm the current operation against properties.Permissions.NextOwnerMask

                    ++PermCount;
                    if (PermCount >= Objects.Count)
                        GotPermissionsEvent.Set();
                }
            }
        }