Changeset 10570 for code/branches/core7/src/libraries
- Timestamp:
- Sep 8, 2015, 10:47:36 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core7/src/libraries/core/BaseObject.h
r10555 r10570 161 161 virtual void changedGametype() {} 162 162 163 inline void setLevel(const StrongPtr<Level>& level) 164 { 165 if (level != this->level_) 166 { 167 this->level_ = level; 168 this->changedLevel(); 169 } 170 } 163 inline void setLevel(const StrongPtr<Level>& level) { this->level_ = level; } 171 164 inline const StrongPtr<Level>& getLevel() const { return this->level_; } 172 virtual void changedLevel() {}173 165 174 166 void addEventSource(BaseObject* source, const std::string& state);
Note: See TracChangeset
for help on using the changeset viewer.