Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 22, 2006, 2:36:54 PM (18 years ago)
Author:
bensch
Message:

new_class_id: many more classes done

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/new_class_id/src/lib/graphics/effects/rain_effect.cc

    r9406 r9686  
    3131#include "script_class.h"
    3232
    33 #include "parser/tinyxml/tinyxml.h"
     33#include "class_id.h"
    3434
    3535// Define shell commands
     
    4141
    4242
    43 CREATE_SCRIPTABLE_CLASS(RainEffect, CL_RAIN_EFFECT,
     43CREATE_SCRIPTABLE_CLASS(RainEffect, RainEffect::classID(),
    4444                        addMethod("startRaining", ExecutorLua0<RainEffect>(&RainEffect::startRaining))
    4545                            ->addMethod("stopRaining", ExecutorLua0<RainEffect>(&RainEffect::stopRaining))
     
    4949
    5050CREATE_FACTORY(RainEffect, CL_RAIN_EFFECT);
     51NewObjectListDefinitionID(RainEffect, CL_RAIN_EFFECT);
    5152
    5253/**
     
    5455 */
    5556RainEffect::RainEffect(const TiXmlElement* root) {
    56     this->setClassID(CL_RAIN_EFFECT, "RainEffect");
    57 
     57  this->registerObject(this, RainEffect::_objectList);
    5858    this->init();
    5959
Note: See TracChangeset for help on using the changeset viewer.