Esempio n. 1
0
 /// <summary>
 /// Create a new SpriteWrapper.
 /// </summary>
 /// <param name="spritestart">The Collection of ISprites to initialize Sprites with.</param>
 /// <param name="sb">The SpriteBatch to use.</param>
 /// <param name="updates">The Updater to use for updating ISprite objects (in addition to the Update() method).</param>
 public SpriteWrapper(ICollection<ISprite> spritestart, SpriteBatch sb, Updater updates)
     : this(sb, spritestart.ToArray<ISprite>())
 {
     if (updates == null)
     {
         throw new ArgumentNullException("updates");
     }
     Updater = updates;
 }
Esempio n. 2
0
 /// <summary>
 /// Create a new SpriteWrapper.
 /// </summary>
 /// <param name="spritestart">The Collection of ISprites to initialize Sprites with.</param>
 /// <param name="sb">The SpriteBatch to use.</param>
 /// <param name="updates">The Updater to use for updating ISprite objects (in addition to the Update() method).</param>
 public SpriteWrapper(ICollection<ISprite> spritestart, SpriteBatch sb, Updater updates)
     : this(sb, spritestart.ToArray<ISprite>())
 {
     Updater = updates;
 }