C# Class BrashMonkey.Spriter.Data.ObjectModel.SpriterData

This class provides methods for importing and exporting Spriter data to various implementations.
Afficher le fichier Open project: CptDefault/spriterdapi-unity Class Usage Examples

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
FromImplementation ( ) : void

Saves data from the specific implementation

ToImplementation ( ) : void

Sends the data to the specific implementation.

Method Details

FindAtlas() public méthode

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
Résultat SpriterAtlas

FindFile() public méthode

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
Résultat SpriterFile

FindTimelineBone() public méthode

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
Résultat SpriterTimelineBone

FindTimelineObject() public méthode

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
Résultat SpriterTimelineObject

FromImplementation() protected abstract méthode

Saves data from the specific implementation
protected abstract FromImplementation ( ) : void
Résultat void

LoadData() public méthode

Loads data from an SCML file.
public LoadData ( string path ) : void
path string
Résultat void

Reset() public méthode

public Reset ( ) : void
Résultat void

SaveData() public méthode

Saves data to an SCML file.
public SaveData ( string path ) : void
path string
Résultat void

SpriterData() public méthode

public SpriterData ( ) : System.Collections.Generic
Résultat System.Collections.Generic

ToImplementation() protected abstract méthode

Sends the data to the specific implementation.
protected abstract ToImplementation ( ) : void
Résultat void