Adds already created animation to the animation collection.

Namespace:  SGP.XSpace
Assembly:  SGPRTL (in SGPRTL.dll)
Version: 1.2.3019.18825

Syntax

C#
[EditorBrowsableAttribute(EditorBrowsableState.Advanced)]
public XSimpleSpriteAnimator AddAnimation(
	Object animationIndex,
	XSimpleSpriteAnimator animation
)

Parameters

animationIndex
Type: System..::.Object
Key of the added animation, using which will be accessible through an iterator.
animation
Type: SGP.XSpace..::.XSimpleSpriteAnimator
Already created XSimpleSpriteAnimator animation.

Return Value

Returns the created XSimpleSpriteAnimator animation.

Exceptions

ExceptionCondition
System..::.ArgumentNullException animation is nullNothingnullptra null reference (Nothing in Visual Basic).

See Also