Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9016 in orxonox.OLD for branches


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

made script scriptable

File:
1 edited

Legend:

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

    r9003 r9016  
    2525#include "class_list.h"
    2626// uncommet this when the std:string and the const bug is fixed
    27 //CREATE_SCRIPTABLE_CLASS(Script, CL_SCRIPT,
    28 //                               addMethod("addObject", ExecutorLua2<Script,std::string,std::string>(&Script::addObject))
    29 //                               ):
     27CREATE_SCRIPTABLE_CLASS(Script, CL_SCRIPT,
     28                               addMethod("addObject", ExecutorLua2<Script,const std::string&, const std::string& >(&Script::addObject))
     29                               );
    3030
    3131Script::Script(const TiXmlElement* root)
     
    9898      currentFile = filename;
    9999      //this->addThisScript();
     100      //this->registerStandartClasses();
    100101      return true;
    101102     }
     
    356357   
    357358   //success = this->registerClass(std::string("Vector"));
     359    success = this->registerClass("ScriptTrigger");
     360    success = this->registerClass("Script");
    358361   
    359362   return success;
Note: See TracChangeset for help on using the changeset viewer.