Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9020 in orxonox.OLD


Ignore:
Timestamp:
Jul 2, 2006, 4:42:20 PM (18 years ago)
Author:
snellen
Message:

made scripttrigger scriptable

Location:
branches/single_player_map/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/single_player_map/src/lib/script_engine/script.cc

    r9017 r9020  
    2424
    2525#include "class_list.h"
    26 // uncommet this when the std:string and the const bug is fixed
    2726CREATE_SCRIPTABLE_CLASS(Script, CL_SCRIPT,
    28                                addMethod("addObject", ExecutorLua2<Script,const std::string&, const std::string& >(&Script::addObject))
    29                                );
     27                    addMethod("addObject", ExecutorLua2<Script,const std::string&, const std::string& >(&Script::addObject))
     28                    //->addMethod("selectFunction", ExecutorLua2ret<Script, bool, const std::string&, int >(&Script::selectFunction))
     29                    ->addMethod("executeFunction", ExecutorLua0ret<Script,bool >(&Script::executeFunction))
     30                     );
    3031
    3132Script::Script(const TiXmlElement* root)
  • branches/single_player_map/src/world_entities/npcs/generic_npc.cc

    r9003 r9020  
    4949                        ->addMethod("setAbsCoor", ExecutorLua3<PNode,float,float,float>(&PNode::setAbsCoor))
    5050                        ->addMethod("setAbsDir", ExecutorLua4<PNode,float,float,float,float>(&PNode::setAbsDir))
    51 
    5251                       );
    5352
  • branches/single_player_map/src/world_entities/script_trigger.cc

    r9018 r9020  
    3838             ->addMethod("setDebugDraw", ExecutorLua1<ScriptTrigger, bool>(&ScriptTrigger::setDebugDraw))
    3939             ->addMethod("setAddToScript", ExecutorLua1<ScriptTrigger, bool>(&ScriptTrigger::setAddToScript))
    40                        );
     40             );
    4141
    4242
Note: See TracChangeset for help on using the changeset viewer.