public bool TryGetMyAvatarData(out ObjectData objectData) { objectData = null; if (simCollection.TryGetObject(agent.SimID, agent.ID, out objectData)) return true; return false; }
public bool TryGet(string id, out ObjectData data) { data = null; if (!Contains(id)) return false; data = list[id]; return true; }
public bool TryGetObject(string id, string primID, out ObjectData data) { data = null; if (!Contains(id)) return false; SimData d = list[id]; if (d.AvatarCollection.TryGet(primID, out data)) return true; if (d.PrimCollection.TryGet(primID, out data)) return true; return false; }
public bool TryGetObject(string primID, out ObjectData data) { foreach (SimData sim in list.Values) { if (TryGetObject(sim.ID, primID, out data)) return true; } data = null; return false; }