From abbea4d945bbb1114570c3b6c7f649e01ca8ebb8 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Thu, 13 Nov 2014 00:53:12 -0300 Subject: UDP Fixes -=-=-=-=- Curse the day I decided to port UDP code, as it ended up being two nights of work. At least It's done now (I hope). -Fixed UDP Support, API seems stable -Added UDP Chat demo (chat that can lose your packets, heh) -Added helpers to areas and bodies to get list of collided bodies and contained bodies. -Sped up screen/viewport capture code. -Added code to save an image as PNG -Small fix so scripts register their singletons after modules did. --- core/script_language.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'core/script_language.cpp') diff --git a/core/script_language.cpp b/core/script_language.cpp index ad93fca4b..81a9e2b06 100644 --- a/core/script_language.cpp +++ b/core/script_language.cpp @@ -85,6 +85,13 @@ void ScriptServer::register_language(ScriptLanguage *p_language) { _languages[_language_count++]=p_language; } +void ScriptServer::init_languages() { + + for(int i=0;i<_language_count;i++) { + _languages[i]->init(); + } +} + Variant ScriptInstance::call(const StringName& p_method,VARIANT_ARG_DECLARE) { VARIANT_ARGPTRS; -- cgit v1.2.3-70-g09d2