Esempio n. 1
0
        public void YieldAnimation()
        {
            awaited--;

            if (awaited == 0 && currentAnimationEntity != null)
            {
                game.MarkRemovalEntity(currentAnimationEntity);
                currentAnimationEntity = null;
            }
        }
Esempio n. 2
0
 public void Step(bool removeFromFront = false)
 {
     if (!gameplayEventQueue.IsEmpty)
     {
         VEntity e = removeFromFront ? gameplayEventQueue.RemoveFront() : gameplayEventQueue.RemoveBack();
         game.RunSystems(VLifecycle.OnBeforeEvent, false, new VEntity[] {
             e
         });
         game.RunSystems(VLifecycle.OnExecuteEvent, false, new VEntity[] {
             e
         });
         game.RunSystems(VLifecycle.OnAfterEvent, false, new VEntity[] {
             e
         });
         game.MarkRemovalEntity(e);
         game.DoRemove();
     }
 }