Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 30, 2017, 4:05:01 PM (7 years ago)
Author:
kohlia
Message:

Nothing to see yet, really.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/ScriptableController_HS17/src/orxonox/worldentities/WorldEntity.cc

    r11083 r11518  
    4545#include "Scene.h"
    4646#include "collisionshapes/WorldEntityCollisionShape.h"
     47#include "scriptablecontroller/scriptable_controller.h"
    4748
    4849namespace orxonox
     
    7980        this->parentID_ = OBJECTID_UNKNOWN;
    8081        this->bDeleteWithParent_ = true;
     82        this->id_ = -1;
    8183
    8284        this->node_->setPosition(Vector3::ZERO);
     
    160162        XMLPortParamTemplate(WorldEntity, "scale3D",     setScale3D,     getScale3D,     xmlelement, mode, const Vector3&);
    161163        XMLPortParam        (WorldEntity, "scale",       setScale,       getScale,       xmlelement, mode);
     164        XMLPortParamLoadOnly(WorldEntity, "id",          setID,                xmlelement, mode);
    162165        XMLPortParamLoadOnly(WorldEntity, "lookat",      lookAt_xmlport,       xmlelement, mode);
    163166        XMLPortParamLoadOnly(WorldEntity, "direction",   setDirection_xmlport, xmlelement, mode);
     
    275278    }
    276279
     280    void WorldEntity::registerToScriptableController(ScriptableController *controller)
     281    {
     282        controller->registerWorldEntity(this->id_, this);
     283    }
     284
    277285    /**
    278286    @brief
Note: See TracChangeset for help on using the changeset viewer.