diff options
Diffstat (limited to 'src/model/model.h')
-rw-r--r-- | src/model/model.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/model/model.h b/src/model/model.h index 5b52fde..bdaa74a 100644 --- a/src/model/model.h +++ b/src/model/model.h @@ -44,6 +44,9 @@ public: /// type definition for a list of model particles typedef std::list<Particles *> ParticleSystems; + + /// type definition for a list of FragmentGroups + typedef std::list<FragmentGroup *> Groups; /// create a model with a name Model(std::string const & name); @@ -63,10 +66,10 @@ public: return model_radius; } - /// the worldspawn fragment group - inline FragmentGroup & worldspawn() + /// additional model fragment groups + inline Groups & groups() { - return model_worldspawn; + return model_groups; } /// list of lights @@ -131,6 +134,9 @@ public: /// add a docking location to the model void add_dock(Dock *dock); + + /// add a fragment group to the model + void add_group(FragmentGroup *group); float model_radius; @@ -179,12 +185,11 @@ private: std::string model_name; - FragmentGroup model_worldspawn; - Docks model_docks; Flares model_flares; Lights model_lights; ParticleSystems model_particles; + Groups model_groups; }; } |