Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 30, 2008, 2:44:48 AM (17 years ago)
Author:
landauf
Message:

added two more graphical classes, ParticleEmitter and ParticleSpawner

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/objecthierarchy/src/core/XMLPort.h

    r2019 r2065  
    480480
    481481                                                BaseObject* newObject = identifier->fabricate((BaseObject*)object);
     482                                                assert(newObject);
    482483                                                newObject->setLoaderIndentation(((BaseObject*)object)->getLoaderIndentation() + "  ");
    483 //                                                newObject->setFile(((BaseObject*)object)->getFile());
    484 //                                                newObject->setNamespace(((BaseObject*)object)->getNamespace());
     484
     485                                                O* castedObject = dynamic_cast<O*>(newObject);
     486                                                assert(castedObject);
    485487
    486488                                                if (this->bLoadBefore_)
     
    495497
    496498                                                COUT(5) << ((BaseObject*)object)->getLoaderIndentation();
    497                                                 (*this->loadexecutor_)(object, newObject);
     499                                                (*this->loadexecutor_)(object, castedObject);
    498500
    499501                                                if (!this->bLoadBefore_)
Note: See TracChangeset for help on using the changeset viewer.