Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 6, 2007, 6:54:15 PM (17 years ago)
Author:
snellen
Message:

merged scriptimprovements back to trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/script_engine/script_manager.cc

    r10618 r10622  
    2525
    2626#include "script.h"
    27 #include "tools/script_trigger.h"
     27#include "script_triggers/script_trigger.h"
    2828#include "luaincl.h"
    2929#include "loading/load_param_xml.h"
     30#include "util/loading/factory.h"
    3031
    3132
     
    5051{
    5152  BaseObject::loadParams(root);
    52   {
    53     LoadParamXML(root, "Scripts", this, ScriptManager, createScripts);
    5453
    55     LoadParamXML(root, "ScriptTriggers", this, ScriptManager, createTriggers);
    56   } // make shure that the loading process is finished
     54  LoadParamXML(root, "Scripts", this, ScriptManager, createScripts);
    5755
    58   // fill the scripts and triggers (doing that on runtime is very slow!)
     56  LoadParamXML(root, "ScriptTriggers", this, ScriptManager, createTriggers);
     57
    5958}
    6059
     
    8584void ScriptManager::createTriggers(const TiXmlElement* triggers)
    8685{
     86   
    8787  LOAD_PARAM_START_CYCLE(triggers, object);
    8888  {
    89     new ScriptTrigger(object);
     89   Factory::fabricate(object);
    9090  }
    9191  LOAD_PARAM_END_CYCLE(object);
Note: See TracChangeset for help on using the changeset viewer.