2017-09-12 22:42:36 +02:00
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
2017-11-15 18:37:54 +01:00
|
|
|
<class name="VisualScriptConstructor" inherits="VisualScriptNode" category="Core" version="3.0-alpha">
|
2017-09-12 22:42:36 +02:00
|
|
|
<brief_description>
|
2017-09-28 12:07:20 +02:00
|
|
|
A Visual Script node which calls a base type constructor.
|
2017-09-12 22:42:36 +02:00
|
|
|
</brief_description>
|
|
|
|
<description>
|
2017-09-28 12:07:20 +02:00
|
|
|
A Visual Script node which calls a base type constructor. It can be used for type conversion as well.
|
2017-09-12 22:42:36 +02:00
|
|
|
</description>
|
|
|
|
<tutorials>
|
|
|
|
</tutorials>
|
|
|
|
<demos>
|
|
|
|
</demos>
|
|
|
|
<methods>
|
|
|
|
<method name="get_constructor" qualifiers="const">
|
|
|
|
<return type="Dictionary">
|
|
|
|
</return>
|
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="get_constructor_type" qualifiers="const">
|
|
|
|
<return type="int" enum="Variant.Type">
|
|
|
|
</return>
|
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="set_constructor">
|
|
|
|
<return type="void">
|
|
|
|
</return>
|
|
|
|
<argument index="0" name="constructor" type="Dictionary">
|
|
|
|
</argument>
|
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="set_constructor_type">
|
|
|
|
<return type="void">
|
|
|
|
</return>
|
|
|
|
<argument index="0" name="type" type="int" enum="Variant.Type">
|
|
|
|
</argument>
|
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
</methods>
|
|
|
|
<members>
|
2017-09-13 08:49:40 +02:00
|
|
|
<member name="constructor" type="Dictionary" setter="set_constructor" getter="get_constructor">
|
2017-09-28 12:07:20 +02:00
|
|
|
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]
|
2017-09-12 22:42:36 +02:00
|
|
|
</member>
|
2017-09-13 08:49:40 +02:00
|
|
|
<member name="type" type="int" setter="set_constructor_type" getter="get_constructor_type" enum="Variant.Type">
|
2017-09-28 12:07:20 +02:00
|
|
|
The type to be constructed.
|
2017-09-12 22:42:36 +02:00
|
|
|
</member>
|
|
|
|
</members>
|
|
|
|
<constants>
|
|
|
|
</constants>
|
|
|
|
</class>
|