Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10611 in orxonox.OLD for branches/scriptimprovements/src/lib


Ignore:
Timestamp:
Mar 29, 2007, 9:16:43 PM (18 years ago)
Author:
snellen
Message:

Triggers can now be creater from the xml file… again

Location:
branches/scriptimprovements/src/lib/script_engine
Files:
2 edited

Legend:

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

    r10584 r10611  
    407407
    408408   //this->registerClass(std::string("Vector"));
    409     this->registerClass("ScriptTrigger");
     409    this->registerClass("SpaceTrigger");
     410    this->registerClass("TickTrigger");
    410411  //  this->registerClass("AttractorMine");
    411412
  • branches/scriptimprovements/src/lib/script_engine/script_manager.cc

    r10606 r10611  
    2828#include "luaincl.h"
    2929#include "loading/load_param_xml.h"
     30#include "util/loading/factory.h"
    3031
    3132
     
    8586void ScriptManager::createTriggers(const TiXmlElement* triggers)
    8687{
     88   
    8789  LOAD_PARAM_START_CYCLE(triggers, object);
    8890  {
    89     new ScriptTrigger(object);
     91   Factory::fabricate(object);
     92 //   new ScriptTrigger(object);
    9093  }
    9194  LOAD_PARAM_END_CYCLE(object);
Note: See TracChangeset for help on using the changeset viewer.