Represents a new SPA file.
Public Member Functions | |
SPA (Config config, string folder) | |
Creates a new SPA using graphics from the given folder. More... | |
SPA (Config config, string[] frameFiles) | |
Creates a new SPA from the given set of frame files. More... | |
bool | WriteOut () |
Builds this SPA based on current configuration settings, outputting an OK message to the log. More... | |
bool | Build () |
Builds this SPA based on the current configuration settings. No OK message is added to the log (see WriteOut). More... | |
Public Attributes | |
Log | Logger |
A log to which all output is added. More... | |
string | Folder |
The folder that the images are in if found. More... | |
int | FrameWidth |
<summary?The width of the frames of the animation. More... | |
int | FrameHeight |
<summary?The height of the frames of the animation. More... | |
string | OutputPath |
The path the spa file has been wrote to. More... | |
string | FolderName |
The name of the folder the frames were in, if any. More... | |
int | MaxFramesDown |
The number of frames that fit onto a single sprite vertically. More... | |
int | MaxFramesAcross |
The number of frames that fit onto a single sprite horizontally. More... | |
string[] | FrameFiles |
The set of all frames for the animation. More... | |
Config | Configuration |
The configuration to use while building this SPA. More... | |
SpriteFrame[] | Sprites |
The frames of the animation get compacted onto sprites. More... | |
Private Member Functions | |
void | SetLogging () |
Sets up the message logging for this animation. More... | |
void | SetFolderName (string fullPath) |
Sets the folder and folder name from the given full directory path. More... | |
int | GetMaxDimension (string type) |
Gets the maximum sprite dimension for the given direction (width or height). More... | |
|
inline |
Creates a new SPA using graphics from the given folder.
folder | The folder containing frame images. |
|
inline |
Creates a new SPA from the given set of frame files.
frameFiles | The frames of the animation. |
|
inline |
|
inlineprivate |
Gets the maximum sprite dimension for the given direction (width or height).
type | The dimension direction - either width or height. |
|
inlineprivate |
Sets the folder and folder name from the given full directory path.
fullPath | The directory path to use. |
|
inlineprivate |
Sets up the message logging for this animation.
|
inline |
string SPABuilder.SPA.Folder |
The folder that the images are in if found.
string SPABuilder.SPA.FolderName |
The name of the folder the frames were in, if any.
string [] SPABuilder.SPA.FrameFiles |
The set of all frames for the animation.
int SPABuilder.SPA.FrameHeight |
<summary?The height of the frames of the animation.
int SPABuilder.SPA.FrameWidth |
<summary?The width of the frames of the animation.
Log SPABuilder.SPA.Logger |
A log to which all output is added.
int SPABuilder.SPA.MaxFramesAcross |
The number of frames that fit onto a single sprite horizontally.
int SPABuilder.SPA.MaxFramesDown |
The number of frames that fit onto a single sprite vertically.
string SPABuilder.SPA.OutputPath |
The path the spa file has been wrote to.
SpriteFrame [] SPABuilder.SPA.Sprites |
The frames of the animation get compacted onto sprites.