Changeset 1052 for code/trunk/src/orxonox/objects/Ambient.cc
- Timestamp:
- Apr 14, 2008, 3:42:49 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/objects/Ambient.cc
r1039 r1052 42 42 #include "GraphicsEngine.h" 43 43 #include "core/XMLPort.h" 44 #include "core/ConsoleCommand.h" 44 45 45 46 namespace orxonox 46 47 { 48 ConsoleCommand(Ambient, setAmbientLightTest, AccessLevel::Offline, false).setDefaultValues(ColourValue(1, 1, 1, 1)); 49 47 50 CreateFactory(Ambient); 51 52 Ambient* Ambient::instance_s; 48 53 49 54 Ambient::Ambient() 50 55 { 51 56 RegisterObject(Ambient); 57 Ambient::instance_s = this; 52 58 } 53 59 … … 84 90 @return The XML-element 85 91 */ 86 void Ambient::XMLPort(Element& xmlelement, bool loading)92 void Ambient::XMLPort(Element& xmlelement, XMLPort::Mode mode) 87 93 { 88 BaseObject::XMLPort(xmlelement, loading);94 BaseObject::XMLPort(xmlelement, mode); 89 95 90 XMLPortParamLoadOnly(Ambient, "colourvalue", setAmbientLight, xmlelement, loading);96 XMLPortParamLoadOnly(Ambient, "colourvalue", setAmbientLight, xmlelement, mode); 91 97 } 92 98 }
Note: See TracChangeset
for help on using the changeset viewer.