Changeset 9709 in orxonox.OLD for branches/new_class_id/src/world_entities/environments/mapped_water.cc
- Timestamp:
- Aug 31, 2006, 10:51:08 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/new_class_id/src/world_entities/environments/mapped_water.cc
r9406 r9709 25 25 #include "script_class.h" 26 26 27 CREATE_FACTORY(MappedWater, CL_MAPPED_WATER); 27 #include "class_id.h" 28 NewObjectListDefinitionID(MappedWater, CL_MAPPED_WATER); 29 CREATE_FACTORY(MappedWater); 28 30 29 31 SHELL_COMMAND(gui, MappedWater, toggleGui); 30 32 SHELL_COMMAND(output, MappedWater, saveParams); 31 33 32 CREATE_SCRIPTABLE_CLASS(MappedWater, CL_MAPPED_WATER,34 CREATE_SCRIPTABLE_CLASS(MappedWater, MappedWater::classID(), 33 35 addMethod("waterUV", ExecutorLua2<MappedWater, float, float>(&MappedWater::fadeWaterUV)) 34 36 ->addMethod("waterFlow", ExecutorLua2<MappedWater, float, float>(&MappedWater::fadeWaterFlow)) … … 47 49 MappedWater::MappedWater(const TiXmlElement* root) 48 50 { 49 this-> setClassID(CL_MAPPED_WATER, "MappedWater");51 this->registerObject(this, MappedWater::_objectList); 50 52 this->toList(OM_ENVIRON); 51 53
Note: See TracChangeset
for help on using the changeset viewer.