#include <boxresource.h>
Inheritance diagram for KrBoxResource::
Public Methods | |
KrBoxResource (const std::string &name, int width, int height, const KrRGBA *colorArray, int numColors, int boxtype) | |
A box resource is NOT created by a dat file, but is created by the client program. More... | |
virtual U32 | Type () |
The type of the resource. ( ex, KYRATAG_SPRITE ). | |
virtual const std::string & | TypeName () |
The name of the type. ( ex, "Sprite" ). | |
virtual KrBoxResource * | ToBoxResource () |
Return a pointer if this is a box resource. | |
int | Width () const |
Width. | |
int | Height () const |
Height. |
Which seems a bit odd, granted, but from a certain point of view they are all the same thing.
|
A box resource is NOT created by a dat file, but is created by the client program. Once a box resource is created (and normally placed in the vault) it is used like any other resource.
|