public void RemoveFromUpdateables(params IUpdateableSystem[] list) { for (int i = 0; i < list.Length; i++) { UpdateableSystems.ToList().Remove(list[i]); } }
public void AddToUpdateables(params IUpdateableSystem[] list) { for (int i = 0; i < list.Length; i++) { UpdateableSystems.Enqueue(list[i]); } }
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); } }
public void ClearUpdateables() { UpdateableSystems.Clear(); }