Changeset 9629 for code/branches/core6/src/libraries/core/class
- Timestamp:
- Aug 9, 2013, 9:26:46 PM (11 years ago)
- Location:
- code/branches/core6/src/libraries/core/class
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core6/src/libraries/core/class/Identifier.cc
r9606 r9629 174 174 @return The new object 175 175 */ 176 OrxonoxClass* Identifier::fabricate( BaseObject* creator)176 OrxonoxClass* Identifier::fabricate(Context* context) 177 177 { 178 178 if (this->factory_) 179 179 { 180 return this->factory_->fabricate(c reator);180 return this->factory_->fabricate(context); 181 181 } 182 182 else -
code/branches/core6/src/libraries/core/class/Identifier.h
r9626 r9629 125 125 inline bool hasFactory() const { return (this->factory_ != 0); } 126 126 127 OrxonoxClass* fabricate( BaseObject* creator);127 OrxonoxClass* fabricate(Context* context); 128 128 129 129 /// Returns true if the class can be loaded through XML. -
code/branches/core6/src/libraries/core/class/SubclassIdentifier.h
r9563 r9629 163 163 164 164 /// Creates a new object of the type of the assigned Identifier and dynamic_casts it to the minimal type given by T. 165 T* fabricate( BaseObject* creator) const166 { 167 OrxonoxClass* newObject = this->identifier_->fabricate(c reator);165 T* fabricate(Context* context) const 166 { 167 OrxonoxClass* newObject = this->identifier_->fabricate(context); 168 168 169 169 // Check if the creation was successful
Note: See TracChangeset
for help on using the changeset viewer.