From 58f4139164552793bfb16065e31388cdd2481492 Mon Sep 17 00:00:00 2001 From: Emmanuel Leblond Date: Sun, 9 Oct 2022 22:03:59 +0200 Subject: Add Engine::unregister_script_language and make Engine::register_script_language returns a Error --- doc/classes/Engine.xml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'doc/classes') diff --git a/doc/classes/Engine.xml b/doc/classes/Engine.xml index d583e07f59..461ffcb2e0 100644 --- a/doc/classes/Engine.xml +++ b/doc/classes/Engine.xml @@ -244,10 +244,14 @@ - + Registers a [ScriptLanguage] instance to be available with [code]ScriptServer[/code]. + Returns: + - [constant OK] on success + - [constant ERR_UNAVAILABLE] if [code]ScriptServer[/code] has reached it limit and cannot register any new language + - [constant ERR_ALREADY_EXISTS] if [code]ScriptServer[/code] already contains a language with similar extension/name/type @@ -258,6 +262,16 @@ Registers the given object as a singleton, globally available under [param name]. + + + + + Unregisters the [ScriptLanguage] instance from [code]ScriptServer[/code]. + Returns: + - [constant OK] on success + - [constant ERR_DOES_NOT_EXIST] if the language is already not registered in [code]ScriptServer[/code] + + -- cgit v1.2.3