// Shorthand to add entities to the SortedList->LinkedList structure private void addEntity(TabEntity entity, SortedList <float, LinkedList <TabEntity> > entities) { if (!entities.ContainsKey(entity.Time)) { entities[entity.Time] = new LinkedList <TabEntity>(); } entities[entity.Time].AddLast(entity); }
// Shorthand to add entities to the SortedList->LinkedList structure private void addEntity(TabEntity entity, SortedList<float, LinkedList<TabEntity>> entities) { if (!entities.ContainsKey(entity.Time)) entities[entity.Time] = new LinkedList<TabEntity>(); entities[entity.Time].AddLast(entity); }