private void BeforeUpdate() { TimeActive += Engine.Engine.DeltaTime; Entities.UpdateLists(); TagLists.UpdateLists(); }
internal void SetActualDepth(Entity entity) { const double theta = .000001f; double add = 0; if (actualDepthLookup.TryGetValue(entity.depth, out add) == true) { actualDepthLookup[entity.depth] += theta; } else { actualDepthLookup.Add(entity.depth, theta); } entity.actualDepth = entity.depth - add; Entities.MarkUnsorted(); foreach (int tag in entity.Tags) { TagLists.MarkUnsorted(tag); } }