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/particles/particle_system.cc

    r9656 r9686  
    3232#include <algorithm>
    3333
     34NewObjectListDefinition(ParticleSystem);
    3435
    3536/**
     
    4041ParticleSystem::ParticleSystem (unsigned int maxCount)
    4142{
    42   this->setClassID(CL_PARTICLE_SYSTEM, "ParticleSystem");
     43  this->registerObject(this, ParticleSystem::_objectList);
    4344
    4445  this->setMaxCount(PARTICLE_DEFAULT_MAX_COUNT);
     
    134135    if (emitter != NULL)
    135136    {
    136       if (emitter->isA(CL_PARTICLE_EMITTER))
     137      if (emitter->isA(ParticleEmitter::classID()))
    137138        this->addEmitter(dynamic_cast<ParticleEmitter*>(emitter));
    138139      else
Note: See TracChangeset for help on using the changeset viewer.