/// <summary>Constructs a new SpriterPlayer object which animates the given Spriter entity. /// </summary> /// <remarks>Constructs a new SpriterPlayer object which animates the given Spriter entity. /// </remarks> /// <param name="data"> /// /// <see cref="Com.Brashmonkey.Spriter.Spriter">Com.Brashmonkey.Spriter.Spriter</see> /// which provides a method to load all needed data to animate. See /// <see cref="Spriter#getSpriter(String,com.spriter.file.FileLoader)">Spriter#getSpriter(String,com.spriter.file.FileLoader) /// </see> /// for mor information. /// </param> /// <param name="entityIndex">The index of the entity which should be handled by this player. /// </param> /// <param name="loader">The loader which has loaded all necessary sprites for the scml file. /// </param> public SpriterPlayer(Com.Brashmonkey.Spriter.Spriter spriter, int entityIndex, FileLoader loader) : this(spriter.getSpriterData(), spriter.getSpriterData().getEntity ()[entityIndex], loader) { }