Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 5, 2008, 11:07:16 PM (17 years ago)
Author:
landauf
Message:

loader seems to work now
added function/macro XMLPortObject to load objects as subobjects into another object (like attaching a weapon to a player) + nice debug output with indentation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core/src/orxonox/objects/WorldEntity.h

    r853 r856  
    2727            virtual Element& XMLPort(Element& xmlelement, bool loading);
    2828            bool create();
     29
     30            void attachWorldEntity(WorldEntity* entity);
     31            const WorldEntity* getAttachedWorldEntity(unsigned int index);
    2932
    3033            inline Ogre::SceneNode* getNode()
     
    156159            Ogre::SceneNode* node_;
    157160            bool bStatic_;
     161            std::vector<WorldEntity*> attachedWorldEntities_;
    158162    };
    159163}
Note: See TracChangeset for help on using the changeset viewer.