C# 클래스 BrashMonkey.Spriter.Data.ObjectModel.SpriterData

This class provides methods for importing and exporting Spriter data to various implementations.
파일 보기 프로젝트 열기: CptDefault/spriterdapi-unity 1 사용 예제들

공개 메소드들

메소드 설명
FindAtlas ( int ID ) : SpriterAtlas

Finds an atlas by its ID.

Returns null if no atlas is found or the IDs are invalid.

FindFile ( int folderID, int fileID ) : SpriterFile

Finds a file by its folder and file ID.

Returns null if no file is found or the IDs are invalid.

FindTimelineBone ( SpriterAnimation animation, int timelineID, int keyID, int time ) : SpriterTimelineBone

Finds a timeline bone for an animation by its ID and time.

Returns null if no bone is found or the IDs are invalid.

FindTimelineObject ( SpriterAnimation animation, int timelineID, int keyID, int time ) : SpriterTimelineObject

Finds a timeline object for an animation by its ID and time.

Returns null if no object is found or the IDs are invalid.

LoadData ( string path ) : void

Loads data from an SCML file.

Reset ( ) : void
SaveData ( string path ) : void

Saves data to an SCML file.

SpriterData ( ) : System.Collections.Generic

보호된 메소드들

메소드 설명
FromImplementation ( ) : void

Saves data from the specific implementation

ToImplementation ( ) : void

Sends the data to the specific implementation.

메소드 상세

FindAtlas() 공개 메소드

Finds an atlas by its ID.
Returns null if no atlas is found or the IDs are invalid.
public FindAtlas ( int ID ) : SpriterAtlas
ID int
리턴 SpriterAtlas

FindFile() 공개 메소드

Finds a file by its folder and file ID.
Returns null if no file is found or the IDs are invalid.
public FindFile ( int folderID, int fileID ) : SpriterFile
folderID int
fileID int
리턴 SpriterFile

FindTimelineBone() 공개 메소드

Finds a timeline bone for an animation by its ID and time.
Returns null if no bone is found or the IDs are invalid.
public FindTimelineBone ( SpriterAnimation animation, int timelineID, int keyID, int time ) : SpriterTimelineBone
animation SpriterAnimation
timelineID int
keyID int
time int
리턴 SpriterTimelineBone

FindTimelineObject() 공개 메소드

Finds a timeline object for an animation by its ID and time.
Returns null if no object is found or the IDs are invalid.
public FindTimelineObject ( SpriterAnimation animation, int timelineID, int keyID, int time ) : SpriterTimelineObject
animation SpriterAnimation
timelineID int
keyID int
time int
리턴 SpriterTimelineObject

FromImplementation() 보호된 추상적인 메소드

Saves data from the specific implementation
protected abstract FromImplementation ( ) : void
리턴 void

LoadData() 공개 메소드

Loads data from an SCML file.
public LoadData ( string path ) : void
path string
리턴 void

Reset() 공개 메소드

public Reset ( ) : void
리턴 void

SaveData() 공개 메소드

Saves data to an SCML file.
public SaveData ( string path ) : void
path string
리턴 void

SpriterData() 공개 메소드

public SpriterData ( ) : System.Collections.Generic
리턴 System.Collections.Generic

ToImplementation() 보호된 추상적인 메소드

Sends the data to the specific implementation.
protected abstract ToImplementation ( ) : void
리턴 void