Changeset 10570
- Timestamp:
- Sep 8, 2015, 10:47:36 PM (9 years ago)
- Location:
- code/branches/core7/src
- Files:
-
- 2 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); -
code/branches/core7/src/orxonox/Scene.cc
r10562 r10570 142 142 registerVariable(this->bHasPhysics_, VariableDirection::ToClient, new NetworkCallback<Scene>(this, &Scene::networkcallback_hasPhysics)); 143 143 registerVariable(this->bShadows_, VariableDirection::ToClient, new NetworkCallback<Scene>(this, &Scene::networkcallback_applyShadows)); 144 registerVariable(this->getLevel(), VariableDirection::ToClient, new NetworkCallback<Scene>(this, &Scene::changedLevel));145 144 } 146 145
Note: See TracChangeset
for help on using the changeset viewer.