C# Class SpriterBetaRuntime.SpriterAnimation

Class containing all data for a given animation An animation is conceptually a number of frames that loop An eye-blink might look like: Frame 1: Frame Definition 1, 500 msec (open eye) Frame 2: Frame Definition 2, 10 msec (eye partially closed) Frame 3: Frame Definition 3, 20 msec (eye closed) Frame 4: Frame Definition 2, 10 msec (eye partially closed, again) The class is a parallel list of frame definition indicies, frame durations
Afficher le fichier Open project: schmelze/SpriterXNA

Méthodes publiques

Méthode Description
GetFrameDuration ( int idx ) : float

Return the duration for a given animation frame

GetFrameIdx ( int idx ) : int

Return the frame definition index for a given animation frame

GetTotalFrames ( ) : int

Return total number of frames in the animation

Method Details

GetFrameDuration() public méthode

Return the duration for a given animation frame
public GetFrameDuration ( int idx ) : float
idx int the animation frame to retrieve
Résultat float

GetFrameIdx() public méthode

Return the frame definition index for a given animation frame
public GetFrameIdx ( int idx ) : int
idx int the animation frame to retrieve
Résultat int

GetTotalFrames() public méthode

Return total number of frames in the animation
public GetTotalFrames ( ) : int
Résultat int