Changeset 977 for code/branches/network/src/orxonox/objects/Ambient.cc
- Timestamp:
- Apr 3, 2008, 2:12:10 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/network/src/orxonox/objects/Ambient.cc
r871 r977 51 51 { 52 52 RegisterObject(Ambient); 53 registerAllVariables(); 53 54 } 54 55 … … 57 58 } 58 59 60 bool Ambient::create(){ 61 Orxonox::getSingleton()->getSceneManager()->setAmbientLight(ambientLight_); 62 return true; 63 } 64 65 void Ambient::registerAllVariables(){ 66 registerVar(&ambientLight_, sizeof(ColourValue), network::DATA); 67 68 } 69 59 70 void Ambient::loadParams(TiXmlElement* xmlElem) 60 71 { … … 76 87 void Ambient::setAmbientLight(const ColourValue& colour) 77 88 { 78 Orxonox::getSingleton()->getSceneManager()->setAmbientLight(colour);89 ambientLight_=colour; 79 90 } 80 91 … … 90 101 91 102 XMLPortParamLoadOnly(Ambient, "colourvalue", setAmbientLight, xmlelement, loading); 103 create(); 92 104 } 93 105 }
Note: See TracChangeset
for help on using the changeset viewer.