- Timestamp:
- Dec 8, 2007, 5:37:26 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/objecthierarchy/src/orxonox/core/IdentifierIncludes.h
r365 r434 16 16 #include "Iterator.h" 17 17 #include "OrxonoxClass.h" 18 #include "ConfigValueContainer.h" 18 19 20 #include "OgreVector3.h" 21 #include "OgreColourValue.h" 22 23 namespace orxonox 24 { 25 typedef Ogre::Vector3 Vector3; 26 typedef Ogre::ColourValue ColourValue; 27 } 19 28 20 29 // Intern macro, containing the common parts of RegisterObject and RegisterRootObject … … 62 71 #define ID(StringOrInt) \ 63 72 Factory::getIdentifier(StringOrInt) 73 74 // bla 75 #define SetConfigValue(varname, defvalue) \ 76 ConfigValueContainer* container##varname = this->getIdentifier()->getConfigValueContainer(#varname); \ 77 if (!container##varname) \ 78 { \ 79 container##varname = new ConfigValueContainer(this->getIdentifier()->getName(), #varname, defvalue); \ 80 this->getIdentifier()->setConfigValueContainer(#varname, container##varname); \ 81 } \ 82 this->varname = container##varname->getValue(varname)
Note: See TracChangeset
for help on using the changeset viewer.