Esempio n. 1
0
        private void BeforeUpdate()
        {
            TimeActive += Engine.Engine.DeltaTime;

            Entities.UpdateLists();
            TagLists.UpdateLists();
        }
Esempio n. 2
0
        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);
            }
        }