C# Класс BrashMonkey.Spriter.Data.ObjectModel.SpriterData

This class provides methods for importing and exporting Spriter data to various implementations.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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