Changeset 10440 in orxonox.OLD for trunk/src/world_entities/weapons/weapon_slot.cc
- Timestamp:
- Jan 28, 2007, 2:09:09 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/weapons/weapon_slot.cc
r10437 r10440 19 19 #include "weapon_slot.h" 20 20 #include "util/loading/factory.h" 21 #include "util/loading/load_param.h" 21 22 22 23 … … 27 28 { 28 29 this->registerObject(this, WeaponSlot::_objectList); 29 30 30 } 31 31 … … 34 34 this->registerObject(this, WeaponSlot::_objectList); 35 35 36 if( root != NULL) 37 this->loadParams( root); 36 38 } 37 39 … … 39 41 WeaponSlot::~WeaponSlot() 40 42 {} 43 44 45 46 void WeaponSlot::loadParams(const TiXmlElement* root) 47 { 48 PNode::loadParams( root); 49 50 // now check for the orx class to create 51 LoadParam(root, "WeaponClass", this, WeaponSlot, setWeaponClass) 52 .describe("Sets the class this mount points should host"); 53 } 54 55 56 57 58 void WeaponSlot::setWeaponClass() 59 { 60 61 } 62
Note: See TracChangeset
for help on using the changeset viewer.