Major rewrite of scripting support:
authorMatthias Braun <matze@braunis.de>
Mon, 10 Apr 2006 22:08:23 +0000 (22:08 +0000)
committerMatthias Braun <matze@braunis.de>
Mon, 10 Apr 2006 22:08:23 +0000 (22:08 +0000)
commitf3e5e57c9996168a4889ae8e195be25f8b7e629b
treeb2a2d1c07616254f286df4b93637078236c10008
parent750391ac93d6d3b6db1db22c3d1d381ae5b12331
Major rewrite of scripting support:
  - Add squirrel support to console
  - Reused ScriptManager from windstille (with some modifications now)
  - Added some new scripting commands (display, load_worldmap, load_level,
      wait_for_screenswitch, maybe others which I forgot)
  - Improved miniswig generated wrapper functions to check arguments passed and
    to catch exceptions and transform them into squirrel exceptions
  - All scripts are run as cooperative threads now
  - Sectors have a custom squirrel table now that contains all their objects and
    which has the (real) roottable set as parent. Sectorscripts use this
    sectortable as roottable.

SVN-Revision: 3287
53 files changed:
data/levels/test/default.nut
data/levels/test/intro.stl
data/levels/test/intro2.stl
data/levels/world1/world.nut [new file with mode: 0644]
data/levels/world2/default.nut
data/levels/world2/level2.stl
data/script/default.nut
src/badguy/yeti.cpp
src/console.cpp
src/console.hpp
src/control/controller.hpp
src/exceptions.hpp [deleted file]
src/game_session.cpp
src/gui/menu.cpp
src/main.cpp
src/mainloop.cpp
src/object/camera.cpp
src/object/camera.hpp
src/object/display_effect.cpp
src/object/display_effect.hpp
src/object/player.cpp
src/object/player.hpp
src/object/powerup.cpp
src/object/scripted_object.cpp
src/object/scripted_object.hpp
src/object/text_object.cpp
src/object/text_object.hpp
src/resources.cpp
src/screen.hpp
src/script_interface.hpp [new file with mode: 0644]
src/script_manager.cpp [new file with mode: 0644]
src/script_manager.hpp [new file with mode: 0644]
src/scripting/camera.cpp
src/scripting/functions.cpp
src/scripting/functions.hpp
src/scripting/script_interpreter.cpp [deleted file]
src/scripting/script_interpreter.hpp [deleted file]
src/scripting/sound.hpp
src/scripting/wrapper.cpp
src/scripting/wrapper.interface.hpp
src/scripting/wrapper_util.cpp
src/scripting/wrapper_util.hpp
src/sector.cpp
src/sector.hpp
src/textscroller.cpp
src/title.cpp
src/title.hpp
src/trigger/scripttrigger.cpp
src/video/font.cpp
src/world.cpp
src/worldmap.cpp
src/worldmap.hpp
tools/miniswig/create_wrapper.cpp