28 nassertr(i >= 0 && i < (
int)_eggs.size(),
nullptr);
42 nassertr(egg_index >= 0 && egg_index < (
int)_eggs.size(), 0);
43 return _eggs[egg_index]._first_model_index;
56 nassertr(egg_index >= 0 && egg_index < (
int)_eggs.size(), 0);
57 return _eggs[egg_index]._models.size();
66 return _characters.size();
74 nassertr(i >= 0 && i < (
int)_characters.size(),
nullptr);
75 return _characters[i];
83 nassertr(model_index >= 0 && model_index < (
int)_characters_by_model_index.size(),
85 return _characters_by_model_index[model_index];
91 INLINE EggCharacterCollection::ModelDescription::
int get_num_models(int egg_index) const
Returns the number of different models found in the indicated egg file.
This is the primary interface into all the egg data, and the root of the egg file structure.
EggData * get_egg(int i) const
Returns the ith egg file.
int get_num_characters() const
Returns the number of separate Characters that have been discovered in the various egg files added to...
EggCharacterData * get_character(int i) const
Returns the ith character in the collection.
int get_first_model_index(int egg_index) const
Returns the first model index associated with the indicated egg file.
Represents a single character, as read and collected from several models and animation files.
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.