The Nebula Device 3: Characters::CharacterSkinLibrary Class Reference

The Nebula Device 3

Characters::CharacterSkinLibrary Class Reference

#include <characterskinlibrary.h>


Detailed Description

Library of all available skins of a character.

(C) 2008 Radon Labs GmbH

Public Member Functions

 CharacterSkinLibrary ()
 constructor
 ~CharacterSkinLibrary ()
 destructor
void ReserveSkins (SizeT numSkins)
 reserve skins (if number of skins is known beforehand)
void AddSkin (const CharacterSkin &skin)
 add a skin
void ReserveSkinLists (SizeT numSkinLists)
 reserve skin lists (if number of skins is known beforehand)
void AddSkinList (const CharacterSkinList &skinList)
 add a skin list
void Discard ()
 discard object (clears skins and skin lists)
SizeT GetNumSkins () const
 get number of skins in the library
const CharacterSkinGetSkin (IndexT i) const
 get skin at index
bool HasSkin (const Util::StringAtom &name) const
 return true if skin exists by name
const CharacterSkinGetSkinByName (const Util::StringAtom &name) const
 get skin by name
IndexT GetSkinIndexByName (const Util::StringAtom &name) const
 get skin index by name
SizeT GetNumSkinLists () const
 get number of skin lists in the library
const CharacterSkinListGetSkinList (IndexT i) const
 get skin list at index
bool HasSkinList (const Util::StringAtom &name) const
 return true if skin list exists by name
const CharacterSkinListGetSkinListByName (const Util::StringAtom &name) const
 get skin list by name
IndexT GetSkinListIndexByName (const Util::StringAtom &name) const
 get skin list index by name