29 using System.Collections;
30 using System.Collections.Generic;
31 using System.Reflection;
34 using OpenSim.Framework;
36 namespace OpenSim.
Region.Framework.Scenes
42 private readonly DoubleDictionaryThreadAbortSafe<UUID, uint, EntityBase> m_entities
43 =
new DoubleDictionaryThreadAbortSafe<UUID, uint, EntityBase>();
47 get {
return m_entities.Count; }
52 m_entities.Add(entity.UUID, entity.LocalId, entity);
62 return m_entities.ContainsKey(id);
67 return m_entities.ContainsKey(localID);
72 return m_entities.Remove(localID);
77 return m_entities.Remove(id);
82 List<EntityBase> tmp =
new List<EntityBase>();
97 List<EntityBase> tmp =
new List<EntityBase>(m_entities.Count);
98 ForEach(delegate(
EntityBase entity) { tmp.Add(entity); });
102 public void ForEach(Action<EntityBase> action)
104 m_entities.ForEach(action);
109 return m_entities.FindValue(predicate);
117 m_entities.TryGetValue(id, out entity);
131 m_entities.TryGetValue(localID, out entity);
142 return m_entities.TryGetValue(
key, out obj);
147 return m_entities.TryGetValue(
key, out obj);
bool ContainsKey(UUID id)
bool TryGetValue(UUID key, out EntityBase obj)
bool Remove(uint localID)
OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLString key
EntityBase[] GetEntities()
void ForEach(Action< EntityBase > action)
bool ContainsKey(uint localID)
EntityBase Find(Predicate< EntityBase > predicate)
void Add(EntityBase entity)
bool TryGetValue(uint key, out EntityBase obj)