/// <summary>
 /// Initializes a new instance of the <see cref="XnaEntity"/> class.
 /// </summary>
 /// <param name="animationcache">The animationcache.</param>
 /// <param name="hitbox">The hitbox.</param>
 /// <param name="spritebatchdata">The spritebatchdata.</param>
 public XnaEntity(AnimationCache animationcache, Rectangle hitbox, SpriteBatchData spritebatchdata)
     : base(animationcache, hitbox)
 {
     SpriteBatchData = spritebatchdata;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="XnaEntity"/> class.
 /// </summary>
 /// <param name="animationcache">The cache holding all the entities animations.</param>
 /// <param name="hitbox">The hitbox that causes interactions with the world.</param>
 public XnaEntity(AnimationCache animationcache, Rectangle hitbox)
     : this(animationcache, hitbox, new SpriteBatchData())
 {
 }
        /// <summary>
        /// Initializes a new instance of the <see cref="Entity"/> class.
        /// </summary>
        /// <param name="animationcache">The cache holding all the entities animations.</param>
        /// <param name="hitbox">The hitbox that causes interactions with the world.</param>
        public Entity(AnimationCache animationcache, Rectangle hitbox)
        {
            AnimationCache = animationcache;
            Hitbox = hitbox;

            Components = new Dictionary<string, Component>();
            Logics = new Dictionary<string, Logic>();
            Tags = new List<string>();
            ComponentsToAdd = new Dictionary<string, Component>();
            LogicsToAdd = new Dictionary<string, Logic>();

            HandleDerivedAnimation();
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="XnaEntity"/> class.
 /// </summary>
 /// <param name="animationcache">The cache holding all the entities animations.</param>
 public XnaEntity(AnimationCache animationcache)
     : this(animationcache, new Rectangle(0,0,1,1))
 {
 }
 public Entity()
 {
     Components = new Dictionary<string, Component>();
     Logics = new Dictionary<string, Logic>();
     Tags = new List<string>();
     ComponentsToAdd = new Dictionary<string, Component>();
     LogicsToAdd = new Dictionary<string, Logic>();
     AnimationCache = new AnimationCache();
 }