﻿using System.Collections.Generic;
using System.Diagnostics.Contracts;
using Microsoft.Xna.Framework;

namespace MonoGameUtils.Extensions
{
    public static class GameComponentCollectionExtensions
    {
        public static void AddRange(this GameComponentCollection gameComponents, IEnumerable<GameComponent> collection)
        {
            Contract.Requires(gameComponents != null);
            Contract.Requires(collection != null);

            foreach (GameComponent component in collection)
            {
                gameComponents.Add(component);
            }
        }
    }
}

Add the ability to add a set of gamecomponents to a game collection, rather than having to add each component individually.
Add the ability to add a set of gamecomponents to a game collection, rather than having to add each component individually.
