Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 4, 2006, 11:15:53 AM (19 years ago)
Author:
hdavid
Message:

branches/mountain_lake

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/mountain_lake/src/lib/graphics/effects/lightning_effect.cc

    r9028 r9109  
    2929#include "light.h"
    3030#include "cloud_effect.h"
     31#include "script_class.h"
    3132
    3233SHELL_COMMAND(activate, LightningEffect, activateLightning);
     
    3435
    3536using namespace std;
     37
     38CREATE_SCRIPTABLE_CLASS(LightningEffect, CL_LIGHTNING_EFFECT,
     39                        addMethod("activate", ExecutorLua0<LightningEffect>(&LightningEffect::activate))
     40                            ->addMethod("deactivate", ExecutorLua0<LightningEffect>(&LightningEffect::deactivate))
     41                       );
    3642
    3743CREATE_FACTORY(LightningEffect, CL_LIGHTNING_EFFECT);
Note: See TracChangeset for help on using the changeset viewer.