Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 11, 2009, 6:03:40 PM (15 years ago)
Author:
danielh
Message:

Update

  • Minor changes in BaseItem
  • Updated to NotificationQueue from trunk (compile error with old)
  • Added PickupInventory for GUI handling
  • Added basic support for toLua++ methods
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/pickups2/src/orxonox/objects/pickup/BaseItem.cc

    r2917 r2972  
    3535
    3636#include "PickupCollection.h"
     37
     38#include "core/CoreIncludes.h"
     39#include "core/XMLPort.h"
    3740#include "objects/worldentities/pawns/Pawn.h"
    3841
     
    5457    {
    5558    }
     59
     60    /**
     61        @brief XMLPort for BaseItem.
     62        @param xmlelement Element of the XML-file.
     63        @param mode XMLPort mode to use.
     64    */
     65    void BaseItem::XMLPort(Element& xmlelement, XMLPort::Mode mode)
     66    {
     67        SUPER(BaseItem, XMLPort, xmlelement, mode);
     68
     69        XMLPortParam(BaseItem, "guiText", setGUIText, getGUIText, xmlelement, mode);
     70        XMLPortParam(BaseItem, "guiTooltip", setGUITooltip, getGUITooltip, xmlelement, mode);
     71        XMLPortParam(BaseItem, "guiImage", setGUIImage, getGUIImage, xmlelement, mode);
     72    }
     73
    5674    /**
    5775        @brief Method to add the item to a pawn.
Note: See TracChangeset for help on using the changeset viewer.