Exemple #1
0
 public void RemoveFromUpdateables(params IUpdateableSystem[] list)
 {
     for (int i = 0; i < list.Length; i++)
     {
         UpdateableSystems.ToList().Remove(list[i]);
     }
 }
Exemple #2
0
 public void AddToUpdateables(params IUpdateableSystem[] list)
 {
     for (int i = 0; i < list.Length; i++)
     {
         UpdateableSystems.Enqueue(list[i]);
     }
 }
Exemple #3
0
        public void Update(GameTime gameTime)
        {
            int size = UpdateableSystems.Count;

            for (int i = 0; i < size; i++)
            {
                IUpdateableSystem system = UpdateableSystems.Dequeue();
                system.Update(gameTime);
                UpdateableSystems.Enqueue(system);
            }
        }
Exemple #4
0
 public void ClearUpdateables()
 {
     UpdateableSystems.Clear();
 }