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/cloud_effect.cc

    r9406 r9686  
    2929#include "script_class.h"
    3030
    31 #include "parser/tinyxml/tinyxml.h"
     31#include "class_id.h"
    3232
    3333Vector    CloudEffect::cloudColor;
     
    4848
    4949
    50 CREATE_SCRIPTABLE_CLASS(CloudEffect, CL_CLOUD_EFFECT,
     50CREATE_SCRIPTABLE_CLASS(CloudEffect, CloudEffect::classID(),
    5151                        addMethod("skyColor", ExecutorLua4<CloudEffect,float,float,float,float>(&CloudEffect::shellSkyColor))
    5252                        ->addMethod("cloudColor", ExecutorLua4<CloudEffect,float,float,float,float>(&CloudEffect::shellCloudColor))
     
    5757
    5858CREATE_FACTORY(CloudEffect, CL_CLOUD_EFFECT);
     59NewObjectListDefinitionID(CloudEffect, CL_CLOUD_EFFECT);
    5960
    6061CloudEffect::CloudEffect(const TiXmlElement* root) {
    61     this->setClassID(CL_CLOUD_EFFECT, "CloudEffect");
     62  this->registerObject(this, CloudEffect::_objectList);
    6263
    6364    this->init();
Note: See TracChangeset for help on using the changeset viewer.