Changeset 5654 in orxonox.OLD for trunk/src/lib
- Timestamp:
- Nov 20, 2005, 9:12:50 PM (19 years ago)
- Location:
- trunk/src/lib
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/coord/p_node.cc
r5652 r5654 162 162 if (root != NULL) 163 163 { 164 const TiXmlElement* element = root->FirstChildElement(); 165 while (element != NULL) 164 LOAD_PARAM_START_CYCLE(root, element); 166 165 { 167 LoadParam <PNode>(element, "parent", this, &PNode::addChild, true)166 LoadParam_CYCLE(element, "parent", this, PNode, addChild) 168 167 .describe("adds a new Child to the current Node."); 169 168 170 element = element->NextSiblingElement();171 169 } 170 LOAD_PARAM_END_CYCLE(element); 172 171 } 173 172 } -
trunk/src/lib/graphics/render2D/element_2d.cc
r5652 r5654 165 165 if (root != NULL) 166 166 { 167 const TiXmlElement* element = root->FirstChildElement(); 168 while (element != NULL) 169 { 170 LoadParam<Element2D>(root, "parent", this, &Element2D::addChild2D, true) 167 LOAD_PARAM_START_CYCLE(root, element); 168 { 169 LoadParam_CYCLE(element, "parent", this, Element2D, addChild2D) 171 170 .describe("adds a new Child to the current Node."); 172 173 element = element->NextSiblingElement(); 174 } 171 } 172 LOAD_PARAM_END_CYCLE(element); 175 173 } 176 174 } -
trunk/src/lib/particles/particle_engine.cc
r5447 r5654 90 90 void ParticleEngine::loadParams(const TiXmlElement* root) 91 91 { 92 const TiXmlElement* element = root->FirstChildElement(); 93 while( element != NULL) 94 { 95 LoadParam<ParticleEngine>(element, "connect", this, &ParticleEngine::addConnection, true) 92 LOAD_PARAM_START_CYCLE(root, element); 93 { 94 LoadParam_CYCLE(element, "connect", this, ParticleEngine, addConnection) 96 95 .describe("connects an Emitter to a System (emitterName, systemName)"); 97 element = element->NextSiblingElement();98 }96 } 97 LOAD_PARAM_END_CYCLE(element); 99 98 } 100 99 -
trunk/src/lib/particles/particle_system.cc
r5652 r5654 122 122 .describe("the maximal count of Particles, that can be emitted into this system"); 123 123 124 //LoadParam<ParticleSystem>(root, "type", this, &ParticleSystem::setType);125 124 LoadParamNEW(root, "life-span", this, ParticleSystem, setLifeSpan) 126 125 .describe("sets the life-span of the Particles."); … … 132 131 .describe("sets the type of the Particles, (dot, spark, sprite or model)"); 133 132 134 const TiXmlElement* element = root->FirstChildElement(); 135 while (element != NULL) 133 LOAD_PARAM_START_CYCLE(root, element); 136 134 { 137 135 element->ToText(); 138 136 // PER-PARTICLE-ATTRIBUTES: 139 LoadParam <ParticleSystem>(element, "radius", this, &ParticleSystem::setRadius, true)137 LoadParam_CYCLE(element, "radius", this, ParticleSystem, setRadius) 140 138 .describe("The Radius of each particle over time (TimeIndex [0-1], radius at TimeIndex, randomRadius at TimeIndex)"); 141 139 142 LoadParam <ParticleSystem>(element, "mass", this, &ParticleSystem::setMass, true)140 LoadParam_CYCLE(element, "mass", this, ParticleSystem, setMass) 143 141 .describe("The Mass of each particle over time (TimeIndex: [0-1], mass at TimeIndex, randomMass at TimeIndex)"); 144 142 145 LoadParam <ParticleSystem>(element, "color", this, &ParticleSystem::setColor, true)143 LoadParam_CYCLE(element, "color", this, ParticleSystem, setColor) 146 144 .describe("The Color of each particle over time (TimeIndex: [0-1], red: [0-1], green: [0-1], blue: [0-1], alpha: [0-1])"); 147 element = element->NextSiblingElement();148 145 } 146 LOAD_PARAM_END_CYCLE(element); 149 147 150 148 }
Note: See TracChangeset
for help on using the changeset viewer.