Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9017 in orxonox.OLD for branches


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

made script scriptable

Location:
branches/single_player_map/src
Files:
2 edited

Legend:

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

    r9016 r9017  
    9797     {
    9898      currentFile = filename;
    99       //this->addThisScript();
    100       //this->registerStandartClasses();
     99      this->addThisScript();
     100      this->registerStandartClasses();
    101101      return true;
    102102     }
  • branches/single_player_map/src/world_entities/script_trigger.cc

    r9006 r9017  
    2424CREATE_SCRIPTABLE_CLASS(ScriptTrigger, CL_SCRIPT_TRIGGER,
    2525                            addMethod("setAbsCoor", ExecutorLua3<PNode,float,float,float>(&PNode::setAbsCoor))
    26                                 ->addMethod("getAbsCoorX", ExecutorLua0ret<PNode, float>(&PNode::getAbsCoorX))
    27                                 ->addMethod("getAbsCoorY", ExecutorLua0ret<PNode, float>(&PNode::getAbsCoorY))
    28                                 ->addMethod("getAbsCoorZ", ExecutorLua0ret<PNode, float>(&PNode::getAbsCoorZ))
     26                            ->addMethod("getAbsCoorX", ExecutorLua0ret<PNode, float>(&PNode::getAbsCoorX))
     27                            ->addMethod("getAbsCoorY", ExecutorLua0ret<PNode, float>(&PNode::getAbsCoorY))
     28                            ->addMethod("getAbsCoorZ", ExecutorLua0ret<PNode, float>(&PNode::getAbsCoorZ))
    2929                       );
    3030
Note: See TracChangeset for help on using the changeset viewer.