Use an enum for specifying play modes for animations.

This is an API change, so I understand if this is denied. However, I think this is a better choice as the user of the API cannot arbitrarily enter random values at will and narrows them to the valid ones written in the enum.

This way of doing play modes seems more 'solid' to me, but that's just my opinion.