Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 15, 2008, 11:38:47 PM (17 years ago)
Author:
bknecht
Message:

created Script object and renamed old Script class to LuaBind

Location:
code/branches/script_trigger
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • code/branches/script_trigger/bin/levels/sample.oxw

    r1293 r1307  
    1212<Skybox src="Orxonox/StarSkyBox" />
    1313<SpaceShip camera="true" position="0,0,0" scale="10" yawpitchroll="-90,-90,0" mesh="assff.mesh" maxSpeed="500" maxSideAndBackSpeed="50" maxRotation="1.0" transAcc="200" rotAcc="3.0" transDamp="75" rotDamp="1.0" />
     14<Script>
     15  print("****")
     16  print("Hello Scripting World")
     17  print("****")
     18</Script>
    1419
    1520<NPC position="0,100,400" scale="1" mesh="razor.mesh"/>
  • code/branches/script_trigger/src/core/CMakeLists.txt

    r1224 r1307  
    2121  OrxonoxClass.cc
    2222  OutputHandler.cc
    23   Script.cc
     23  LuaBind.cc
    2424  SignalHandler.cc
    2525  TclBind.cc
  • code/branches/script_trigger/src/core/Loader.cc

    r1209 r1307  
    3434#include "Debug.h"
    3535#include "CoreIncludes.h"
    36 #include "Script.h"
     36#include "LuaBind.h"
    3737#include "Namespace.h"
    3838
     
    111111
    112112        // let Lua work this out:
    113         //Script* lua;
    114         /*Script::loadFile(level->getFile(), true);
    115         Script::init(Script::getLuaState());
    116         Script::run();*/
    117         Script* lua = Script::getInstance();
     113        LuaBind* lua = LuaBind::getInstance();
    118114        lua->loadFile(level->getFile(), true);
    119115        lua->run();
  • code/branches/script_trigger/src/core/tolua/tolua.pkg

    r1153 r1307  
    1 $cfile "../../src/core/Script_clean.h"
     1$cfile "../../src/core/LuaBind_clean.h"
  • code/branches/script_trigger/src/orxonox/CMakeLists.txt

    r1293 r1307  
    2424  objects/SpaceShip.cc
    2525  objects/WorldEntity.cc
     26  objects/Script.cc
    2627
    2728#  objects/weapon/AmmunitionDump.cc
     
    4041  WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/bin/lib
    4142)
    42        
     43
    4344ADD_EXECUTABLE( orxonox ${ORXONOX_SRC_FILES} )
    4445
Note: See TracChangeset for help on using the changeset viewer.