Changeset 10576 for code/branches/core7/src/libraries/core/BaseObject.h
- Timestamp:
- Sep 9, 2015, 2:15:46 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core7/src/libraries/core/BaseObject.h
r10571 r10576 148 148 inline virtual uint32_t getSceneID() const { return this->sceneID_; } 149 149 150 inline void setGametype(const StrongPtr<Gametype>& gametype) 151 { 152 if (gametype != this->gametype_) 153 { 154 this->oldGametype_ = this->gametype_; 155 this->gametype_ = gametype; 156 this->changedGametype(); 157 } 158 } 150 inline void setGametype(const StrongPtr<Gametype>& gametype) { this->gametype_ = gametype; } 159 151 inline Gametype* getGametype() const { return this->gametype_; } 160 inline Gametype* getOldGametype() const { return this->oldGametype_; }161 virtual void changedGametype() {}162 152 163 153 inline void setLevel(const StrongPtr<Level>& level) { this->level_ = level; } … … 219 209 uint32_t sceneID_; 220 210 StrongPtr<Gametype> gametype_; 221 Gametype* oldGametype_;222 211 StrongPtr<Level> level_; 223 212 std::set<Template*> templates_; … … 235 224 SUPER_FUNCTION(4, BaseObject, XMLEventPort, false); 236 225 SUPER_FUNCTION(8, BaseObject, changedName, false); 237 SUPER_FUNCTION(9, BaseObject, changedGametype, false);238 226 } 239 227
Note: See TracChangeset
for help on using the changeset viewer.