Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 30, 2006, 11:03:53 AM (18 years ago)
Author:
hdavid
Message:

branches/mountain_lake: cloud effect is scriptable

File:
1 edited

Legend:

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

    r8946 r8947  
    2727#include "shell_command.h"
    2828#include "t_animation.h"
     29#include "script_class.h"
    2930
    3031#include "parser/tinyxml/tinyxml.h"
     
    4849SHELL_COMMAND(skyColor, CloudEffect, shellSkyColor);
    4950SHELL_COMMAND(cloudColor, CloudEffect, shellCloudColor);
     51
     52
     53CREATE_SCRIPTABLE_CLASS(CloudEffect, CL_CLOUD_EFFECT,
     54                        addMethod("shellSkyColor", ExecutorLua4<CloudEffect,float,float,float,float>(&CloudEffect::shellSkyColor))
     55                      ->addMethod("shellCloudColor", ExecutorLua4<CloudEffect,float,float,float,float>(&CloudEffect::shellCloudColor))
     56                       );
     57
    5058
    5159CREATE_FACTORY(CloudEffect, CL_CLOUD_EFFECT);
Note: See TracChangeset for help on using the changeset viewer.