From 885239fb09da503472bb4def4754036e70b43f1a Mon Sep 17 00:00:00 2001 From: Karroffel Date: Mon, 24 Apr 2017 00:29:17 +0200 Subject: re-added MultiScript The very first Godot version (when it was open sourced) had "MultiScript" which lets you use multiple scripts on one object. With the addition of mulitple new scripting languages (VisualScript, soon C# and GDNative) it can be of use to combine scripts rather than delegating (with huge maintainance cost) or creating child nodes which could impact performance. I used the code from 0b806ee as the base and made it work with the current master. --- modules/gdscript/gd_script.cpp | 4 +- modules/multiscript/SCsub | 7 + modules/multiscript/config.py | 8 + modules/multiscript/multiscript.cpp | 750 +++++++++++++++++++++++++++++++++ modules/multiscript/multiscript.h | 200 +++++++++ modules/multiscript/register_types.cpp | 51 +++ modules/multiscript/register_types.h | 31 ++ 7 files changed, 1049 insertions(+), 2 deletions(-) create mode 100644 modules/multiscript/SCsub create mode 100644 modules/multiscript/config.py create mode 100644 modules/multiscript/multiscript.cpp create mode 100644 modules/multiscript/multiscript.h create mode 100644 modules/multiscript/register_types.cpp create mode 100644 modules/multiscript/register_types.h (limited to 'modules') diff --git a/modules/gdscript/gd_script.cpp b/modules/gdscript/gd_script.cpp index 2367f60740..fe20a842cf 100644 --- a/modules/gdscript/gd_script.cpp +++ b/modules/gdscript/gd_script.cpp @@ -1696,9 +1696,9 @@ void GDScriptLanguage::reload_tool_script(const Ref