Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 14, 2008, 3:42:49 AM (16 years ago)
Author:
landauf
Message:

merged core2 back to trunk
there might be some errors, wasn't able to test it yet due to some strange g++ and linker behaviour.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/objects/Ambient.cc

    r1039 r1052  
    4242#include "GraphicsEngine.h"
    4343#include "core/XMLPort.h"
     44#include "core/ConsoleCommand.h"
    4445
    4546namespace orxonox
    4647{
     48    ConsoleCommand(Ambient, setAmbientLightTest, AccessLevel::Offline, false).setDefaultValues(ColourValue(1, 1, 1, 1));
     49
    4750    CreateFactory(Ambient);
     51
     52    Ambient* Ambient::instance_s;
    4853
    4954    Ambient::Ambient()
    5055    {
    5156        RegisterObject(Ambient);
     57        Ambient::instance_s = this;
    5258    }
    5359
     
    8490        @return The XML-element
    8591    */
    86     void Ambient::XMLPort(Element& xmlelement, bool loading)
     92    void Ambient::XMLPort(Element& xmlelement, XMLPort::Mode mode)
    8793    {
    88         BaseObject::XMLPort(xmlelement, loading);
     94        BaseObject::XMLPort(xmlelement, mode);
    8995
    90         XMLPortParamLoadOnly(Ambient, "colourvalue", setAmbientLight, xmlelement, loading);
     96        XMLPortParamLoadOnly(Ambient, "colourvalue", setAmbientLight, xmlelement, mode);
    9197    }
    9298}
Note: See TracChangeset for help on using the changeset viewer.