Changeset 1020 for code/branches/core2/src/orxonox/core/CoreIncludes.h
- Timestamp:
- Apr 10, 2008, 4:39:06 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core2/src/orxonox/core/CoreIncludes.h
r957 r1020 50 50 #include "OrxonoxClass.h" 51 51 #include "ConfigValueContainer.h" 52 #include "ConfigFileManager.h" 52 53 #include "Debug.h" 53 54 … … 120 121 if (!container##varname) \ 121 122 { \ 122 container##varname = new orxonox::ConfigValueContainer( this->getIdentifier(), #varname, varname = defvalue); \123 container##varname = new orxonox::ConfigValueContainer(CFT_Settings, this->getIdentifier(), #varname, varname = defvalue); \ 123 124 this->getIdentifier()->addConfigValueContainer(#varname, container##varname); \ 124 125 } \ … … 139 140 COUT(2) << "Warning: Couldn't reset variable " << #varname << ", corresponding container doesn't exist." << std::endl 140 141 142 /** 143 @brief Assigns the command, defined in the keybind-file, to the key-variable (or an empty string, if there is no entry in the file). 144 @param varname The name of the key-variable 145 */ 146 #define SetKeybind(keyname) \ 147 orxonox::ConfigValueContainer* container##keyname = this->getIdentifier()->getConfigValueContainer(#keyname); \ 148 if (!container##keyname) \ 149 { \ 150 container##keyname = new orxonox::ConfigValueContainer(CFT_Keybindings, this->getIdentifier(), #keyname, keyname = ""); \ 151 this->getIdentifier()->addConfigValueContainer(#keyname, container##keyname); \ 152 } \ 153 container##keyname->getValue(&varname) 154 141 155 #endif /* _CoreIncludes_H__ */
Note: See TracChangeset
for help on using the changeset viewer.