C# Класс Sphere.Core.Spriteset

A Sphere spriteset object
Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Dispose ( ) : void

Disposes and clears this object.

GetDirections ( ) : string[]

Returns an array of the directions in this spriteset.

GetImage ( int index ) : Image

Returns an image based on the given index.

GetImage ( string direction, int frame ) : Image

Attempts to grab an image by using a direction and frame.

Load ( String filename ) : bool

Attempts to load the spriteset from the given filename.

MakeNew ( ) : void

Populates this spriteset with default info.

RemoveFrameReference ( int reference ) : void

Removes the frame from the spriteset and its image array.

Save ( string filename ) : void

Saves the Spriteset to the filename.

Приватные методы

Метод Описание
Dispose ( bool disposing ) : void
Purge ( ) : void

Описание методов

Dispose() публичный Метод

Disposes and clears this object.
public Dispose ( ) : void
Результат void

GetDirections() публичный Метод

Returns an array of the directions in this spriteset.
public GetDirections ( ) : string[]
Результат string[]

GetImage() публичный Метод

Returns an image based on the given index.
public GetImage ( int index ) : Image
index int The image index to use.
Результат Image

GetImage() публичный Метод

Attempts to grab an image by using a direction and frame.
public GetImage ( string direction, int frame ) : Image
direction string The name of the direction to get an image from.
frame int The frame in the direction to use.
Результат Image

Load() публичный Метод

Attempts to load the spriteset from the given filename.
public Load ( String filename ) : bool
filename String The filename of the Spriteset to load.
Результат bool

MakeNew() публичный Метод

Populates this spriteset with default info.
public MakeNew ( ) : void
Результат void

RemoveFrameReference() публичный Метод

Removes the frame from the spriteset and its image array.
public RemoveFrameReference ( int reference ) : void
reference int
Результат void

Save() публичный Метод

Saves the Spriteset to the filename.
public Save ( string filename ) : void
filename string The filename to store the spriteset.
Результат void