From 10469c1962172db954d02a3912053a99e2a0dfa3 Mon Sep 17 00:00:00 2001 From: Bojidar Marinov Date: Thu, 28 Sep 2017 13:07:20 +0300 Subject: Document some of the VisualScript classes. --- doc/classes/VisualScriptConstructor.xml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'doc/classes/VisualScriptConstructor.xml') diff --git a/doc/classes/VisualScriptConstructor.xml b/doc/classes/VisualScriptConstructor.xml index e8afd36b9..3b1fc5e38 100644 --- a/doc/classes/VisualScriptConstructor.xml +++ b/doc/classes/VisualScriptConstructor.xml @@ -1,8 +1,10 @@ + A Visual Script node which calls a base type constructor. + A Visual Script node which calls a base type constructor. It can be used for type conversion as well. @@ -40,8 +42,26 @@ + The constructor function's method info. Has roughly the following structure: + [codeblock] + { + name = "string", + args = [{ + name = "string" + class_name = "string" + type = TYPE_* + hint = PROPERTY_HINT_* + hint_string = "string" + }] + default_args = [] # Array of variants + flags = METHOD_FLAG_* + id = 0 + return = {type = TYPE_*} + } + [/codeblock] + The type to be constructed. -- cgit v1.2.3-70-g09d2