34 nassertr(i >= 0 && i < (
int)_eggs.size(), (
EggData *)NULL);
53 nassertr(egg_index >= 0 && egg_index < (
int)_eggs.size(), 0);
54 return _eggs[egg_index]._first_model_index;
72 nassertr(egg_index >= 0 && egg_index < (
int)_eggs.size(), 0);
73 return _eggs[egg_index]._models.size();
85 return _characters.size();
96 return _characters[i];
107 nassertr(model_index >= 0 && model_index < (
int)_characters_by_model_index.size(),
109 return _characters_by_model_index[model_index];
117 INLINE EggCharacterCollection::ModelDescription::
EggData * get_egg(int i) const
Returns the ith egg file.
This is the primary interface into all the egg data, and the root of the egg file structure...
EggCharacterData * get_character_by_model_index(int model_index) const
Returns the character associated with the indicated model index.
int get_num_eggs() const
Returns the number of egg files that have successfully been added to the Character table...
int get_first_model_index(int egg_index) const
Returns the first model index associated with the indicated egg file.
int get_num_models(int egg_index) const
Returns the number of different models found in the indicated egg file.
Represents a single character, as read and collected from several models and animation files...
EggCharacterData * get_character(int i) const
Returns the ith character in the collection.
The highest-level base class in the egg directory.
int get_num_characters() const
Returns the number of separate Characters that have been discovered in the various egg files added to...