C# 클래스 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
파일 보기 프로젝트 열기: schmelze/SpriterXNA

공개 메소드들

메소드 설명
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

메소드 상세

GetFrameDuration() 공개 메소드

Return the duration for a given animation frame
public GetFrameDuration ( int idx ) : float
idx int the animation frame to retrieve
리턴 float

GetFrameIdx() 공개 메소드

Return the frame definition index for a given animation frame
public GetFrameIdx ( int idx ) : int
idx int the animation frame to retrieve
리턴 int

GetTotalFrames() 공개 메소드

Return total number of frames in the animation
public GetTotalFrames ( ) : int
리턴 int