/// <summary> /// Applies the specified animation to this <see cref="Actor" />. /// </summary> /// <param name="library">The animation library from which to apply an animation.</param> /// <param name="name">The name of the animation to apply, within the specified library.</param> /// <param name="fDelta">The speed to play the animation.</param> /// <param name="loop">if set to <c>true</c> the animation will loop.</param> /// <param name="lockx">if set to <c>true</c> allow this Actor to move it's x-coordinate.</param> /// <param name="locky">if set to <c>true</c> allow this Actor to move it's y-coordinate.</param> /// <param name="freeze">if set to <c>true</c> freeze this Actor at the end of the animation.</param> /// <param name="time">The amount of time (in milliseconds) to play the animation.</param> /// <exception cref="System.ArgumentNullException"> /// animlib /// or /// animname /// </exception> public void ApplyAnimation(string library, string name, float fDelta, bool loop, bool lockx, bool locky, bool freeze, int time) { if (library == null) { throw new ArgumentNullException(nameof(library)); } if (name == null) { throw new ArgumentNullException(nameof(name)); } AssertNotDisposed(); Internal.ApplyActorAnimation(Id, library, name, fDelta, loop, lockx, locky, freeze, time); }