QcAssetCatalog Class
What the client draws and plays (part of QcContentRegistry, synchronised with the content): textures, skeleton models, appearances (outfits, hair styles) and sounds, each replaced by name. More...
| Header: | #include <common/content/registry/QcAssetCatalog.h> |
Public Functions
| const QcAppearanceDefinition * | appearance(const QString &name) const |
| const QList<QcAppearanceDefinition> & | appearances() const |
| const QcModelDefinition * | model(const QString &name) const |
| const QList<QcModelDefinition> & | models() const |
| void | registerAppearance(QcAppearanceDefinition definition) |
| void | registerModel(QcModelDefinition definition) |
| void | registerSound(QcSoundDefinition definition) |
| void | registerTexture(QcTextureDefinition definition) |
| const QcSoundDefinition * | sound(const QString &name) const |
| const QList<QcSoundDefinition> & | sounds() const |
| const QcTextureDefinition * | texture(const QString &name) const |
| const QList<QcTextureDefinition> & | textures() const |
Detailed Description
Member Function Documentation
const QcAppearanceDefinition *QcAssetCatalog::appearance(const QString &name) const
Returns the appearance named name, or null if there is none.
const QList<QcAppearanceDefinition> &QcAssetCatalog::appearances() const
Returns the appearances in registration order.
const QcModelDefinition *QcAssetCatalog::model(const QString &name) const
Returns the skeleton model named name, or null if there is none.
const QList<QcModelDefinition> &QcAssetCatalog::models() const
Returns the skeleton models in registration order.
void QcAssetCatalog::registerAppearance(QcAppearanceDefinition definition)
Adds the appearance definition, replacing one of the same name.
void QcAssetCatalog::registerModel(QcModelDefinition definition)
Adds the skeleton model definition, replacing one of the same name.
void QcAssetCatalog::registerSound(QcSoundDefinition definition)
Adds the sound definition, replacing one of the same name.
void QcAssetCatalog::registerTexture(QcTextureDefinition definition)
Adds the texture definition, replacing one of the same name.
const QcSoundDefinition *QcAssetCatalog::sound(const QString &name) const
Returns the sound named name, or null if there is none.
const QList<QcSoundDefinition> &QcAssetCatalog::sounds() const
Returns the sounds in registration order.
const QcTextureDefinition *QcAssetCatalog::texture(const QString &name) const
Returns the texture named name, or null if there is none.
const QList<QcTextureDefinition> &QcAssetCatalog::textures() const
Returns the textures in registration order.