Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/model/model.h')
-rw-r--r--src/model/model.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/model/model.h b/src/model/model.h
index c15213c..a33e365 100644
--- a/src/model/model.h
+++ b/src/model/model.h
@@ -51,6 +51,9 @@ public:
/// type definition for a list of model sound tags
typedef std::list<Sound *> Sounds;
+
+ /// type definition for a list of model weapon tags
+ typedef std::list<Weapon *> Weapons;
/// type definition for a list of FragmentGroups
typedef std::list<FragmentGroup *> Groups;
@@ -99,6 +102,11 @@ public:
inline Sounds & sounds() {
return model_sounds;
}
+
+ /// list of model weapon tags
+ inline Weapons & weapons() {
+ return model_weapons;
+ }
/// list of model particle system tags
inline ParticleSystems & particles() {
@@ -140,6 +148,9 @@ public:
/// add a docking location tag to the model
void add_dock(Dock *dock);
+
+ /// add a weapon slot tag to the model
+ void add_weapon(Weapon *weapon);
/// add a sound tag to the model
void add_sound(Sound *sound);
@@ -203,6 +214,7 @@ private:
Sounds model_sounds;
Lights model_lights;
ParticleSystems model_particles;
+ Weapons model_weapons;
Groups model_groups;
float model_radius;
static Registry model_registry;