public bool TryGetCurrentSim(out SimData data) { if (simCollection.TryGet(agent.SimID, out data)) return true; return false; }
public bool TryGet(string id, out SimData data) { data = null; if (!Contains(id)) return false; data = list[id]; return true; }