Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-12-20 14:54:17 +0000
committerStijn Buys <ingar@osirion.org>2008-12-20 14:54:17 +0000
commitf36ec64b08c791e7b907ed8efd9a2baa44e7f8fd (patch)
treed86d6d948fa35b58b0955d994291e27910355a40 /src/model/model.h
parent34747fcb6a29ee573cf432611359ef34fe680dec (diff)
initial support for func_rotate and friends
Diffstat (limited to 'src/model/model.h')
-rw-r--r--src/model/model.h15
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;
};
}