public void AddChild(ILinkable child) { lock (m_syncRoot) { if (m_children == null) m_children = new MapAndArray<UUID, ILinkable>(); m_children.Add(child.ID, child); } }
private void EntityAddOrUpdateHandler(object sender, EntityAddOrUpdateArgs e) { // Add all entities with dynamics enabled to our dictionary if (e.UpdateFlags.HasFlag(UpdateFlags.PhysicalStatus) && !(e.Entity is IScenePresence) && e.Entity is IPhysical) { IPhysical physical = (IPhysical)e.Entity; if (physical.DynamicsEnabled) { m_activePhysicsEntities.Add(physical.LocalID, physical); } else { m_activePhysicsEntities.Remove(physical.LocalID); } } }