Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 13, 2005, 1:23:55 PM (18 years ago)
Author:
patrick
Message:

network: loadparams for the spawning point

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/network/src/world_entities/spawning_point.cc

    r6084 r6086  
    1616
    1717#include "spawning_point.h"
    18 
     18#include "load_param.h"
    1919
    2020
     
    5252SpawningPoint::~SpawningPoint ()
    5353{}
     54
     55
     56/**
     57 * loads the WorldEntity Specific Parameters.
     58 * @param root: the XML-Element to load the Data From
     59 */
     60void SpawningPoint::loadParams(const TiXmlElement* root)
     61{
     62  // Do the PNode loading stuff
     63  static_cast<PNode*>(this)->loadParams(root);
     64
     65  // Model Loading
     66  LoadParam(root, "model", this, WorldEntity, loadModel)
     67      .describe("the fileName of the model, that should be loaded onto this world-entity. (must be relative to the data-dir)")
     68      .defaultValues(3, NULL, 1.0f, 0);
     69
     70}
    5471
    5572
Note: See TracChangeset for help on using the changeset viewer.