mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
Replace BIND_VMETHOD by new GDVIRTUAL syntax
* New syntax is type safe. * New syntax allows for type safe virtuals in native extensions. * New syntax permits extremely fast calling. Note: Everything was replaced where possible except for `_gui_input` `_input` and `_unhandled_input`. These will require API rework on a separate PR as they work different than the rest of the functions. Added a new method flag METHOD_FLAG_OBJECT_CORE, used internally. Allows to not dump the core virtuals like `_notification` to the json API, since each language will implement those as it is best fits.
This commit is contained in:
@@ -9,118 +9,118 @@
|
||||
<tutorials>
|
||||
</tutorials>
|
||||
<methods>
|
||||
<method name="_get_caption" qualifiers="virtual">
|
||||
<method name="_get_caption" qualifiers="virtual const">
|
||||
<return type="String" />
|
||||
<description>
|
||||
Return the node's title.
|
||||
</description>
|
||||
</method>
|
||||
<method name="_get_category" qualifiers="virtual">
|
||||
<method name="_get_category" qualifiers="virtual const">
|
||||
<return type="String" />
|
||||
<description>
|
||||
Return the node's category.
|
||||
</description>
|
||||
</method>
|
||||
<method name="_get_input_value_port_count" qualifiers="virtual">
|
||||
<method name="_get_input_value_port_count" qualifiers="virtual const">
|
||||
<return type="int" />
|
||||
<description>
|
||||
Return the count of input value ports.
|
||||
</description>
|
||||
</method>
|
||||
<method name="_get_input_value_port_hint" qualifiers="virtual">
|
||||
<method name="_get_input_value_port_hint" qualifiers="virtual const">
|
||||
<return type="int" />
|
||||
<argument index="0" name="idx" type="int" />
|
||||
<argument index="0" name="input_idx" type="int" />
|
||||
<description>
|
||||
Return the specified input port's hint. See the [enum @GlobalScope.PropertyHint] hints.
|
||||
</description>
|
||||
</method>
|
||||
<method name="_get_input_value_port_hint_string" qualifiers="virtual">
|
||||
<method name="_get_input_value_port_hint_string" qualifiers="virtual const">
|
||||
<return type="String" />
|
||||
<argument index="0" name="idx" type="int" />
|
||||
<argument index="0" name="input_idx" type="int" />
|
||||
<description>
|
||||
Return the specified input port's hint string.
|
||||
</description>
|
||||
</method>
|
||||
<method name="_get_input_value_port_name" qualifiers="virtual">
|
||||
<method name="_get_input_value_port_name" qualifiers="virtual const">
|
||||
<return type="String" />
|
||||
<argument index="0" name="idx" type="int" />
|
||||
<argument index="0" name="input_idx" type="int" />
|
||||
<description>
|
||||
Return the specified input port's name.
|
||||
</description>
|
||||
</method>
|
||||
<method name="_get_input_value_port_type" qualifiers="virtual">
|
||||
<method name="_get_input_value_port_type" qualifiers="virtual const">
|
||||
<return type="int" />
|
||||
<argument index="0" name="idx" type="int" />
|
||||
<argument index="0" name="input_idx" type="int" />
|
||||
<description>
|
||||
Return the specified input port's type. See the [enum Variant.Type] values.
|
||||
</description>
|
||||
</method>
|
||||
<method name="_get_output_sequence_port_count" qualifiers="virtual">
|
||||
<method name="_get_output_sequence_port_count" qualifiers="virtual const">
|
||||
<return type="int" />
|
||||
<description>
|
||||
Return the amount of output [b]sequence[/b] ports.
|
||||
</description>
|
||||
</method>
|
||||
<method name="_get_output_sequence_port_text" qualifiers="virtual">
|
||||
<method name="_get_output_sequence_port_text" qualifiers="virtual const">
|
||||
<return type="String" />
|
||||
<argument index="0" name="idx" type="int" />
|
||||
<argument index="0" name="seq_idx" type="int" />
|
||||
<description>
|
||||
Return the specified [b]sequence[/b] output's name.
|
||||
</description>
|
||||
</method>
|
||||
<method name="_get_output_value_port_count" qualifiers="virtual">
|
||||
<method name="_get_output_value_port_count" qualifiers="virtual const">
|
||||
<return type="int" />
|
||||
<description>
|
||||
Return the amount of output value ports.
|
||||
</description>
|
||||
</method>
|
||||
<method name="_get_output_value_port_hint" qualifiers="virtual">
|
||||
<method name="_get_output_value_port_hint" qualifiers="virtual const">
|
||||
<return type="int" />
|
||||
<argument index="0" name="idx" type="int" />
|
||||
<argument index="0" name="output_idx" type="int" />
|
||||
<description>
|
||||
Return the specified output port's hint. See the [enum @GlobalScope.PropertyHint] hints.
|
||||
</description>
|
||||
</method>
|
||||
<method name="_get_output_value_port_hint_string" qualifiers="virtual">
|
||||
<method name="_get_output_value_port_hint_string" qualifiers="virtual const">
|
||||
<return type="String" />
|
||||
<argument index="0" name="idx" type="int" />
|
||||
<argument index="0" name="output_idx" type="int" />
|
||||
<description>
|
||||
Return the specified output port's hint string.
|
||||
</description>
|
||||
</method>
|
||||
<method name="_get_output_value_port_name" qualifiers="virtual">
|
||||
<method name="_get_output_value_port_name" qualifiers="virtual const">
|
||||
<return type="String" />
|
||||
<argument index="0" name="idx" type="int" />
|
||||
<argument index="0" name="output_idx" type="int" />
|
||||
<description>
|
||||
Return the specified output port's name.
|
||||
</description>
|
||||
</method>
|
||||
<method name="_get_output_value_port_type" qualifiers="virtual">
|
||||
<method name="_get_output_value_port_type" qualifiers="virtual const">
|
||||
<return type="int" />
|
||||
<argument index="0" name="idx" type="int" />
|
||||
<argument index="0" name="output_idx" type="int" />
|
||||
<description>
|
||||
Return the specified output port's type. See the [enum Variant.Type] values.
|
||||
</description>
|
||||
</method>
|
||||
<method name="_get_text" qualifiers="virtual">
|
||||
<method name="_get_text" qualifiers="virtual const">
|
||||
<return type="String" />
|
||||
<description>
|
||||
Return the custom node's text, which is shown right next to the input [b]sequence[/b] port (if there is none, on the place that is usually taken by it).
|
||||
</description>
|
||||
</method>
|
||||
<method name="_get_working_memory_size" qualifiers="virtual">
|
||||
<method name="_get_working_memory_size" qualifiers="virtual const">
|
||||
<return type="int" />
|
||||
<description>
|
||||
Return the size of the custom node's working memory. See [method _step] for more details.
|
||||
</description>
|
||||
</method>
|
||||
<method name="_has_input_sequence_port" qualifiers="virtual">
|
||||
<method name="_has_input_sequence_port" qualifiers="virtual const">
|
||||
<return type="bool" />
|
||||
<description>
|
||||
Return whether the custom node has an input [b]sequence[/b] port.
|
||||
</description>
|
||||
</method>
|
||||
<method name="_step" qualifiers="virtual">
|
||||
<method name="_step" qualifiers="virtual const">
|
||||
<return type="Variant" />
|
||||
<argument index="0" name="inputs" type="Array" />
|
||||
<argument index="1" name="outputs" type="Array" />
|
||||
|
||||
@@ -9,13 +9,6 @@
|
||||
<tutorials>
|
||||
</tutorials>
|
||||
<methods>
|
||||
<method name="_subcall" qualifiers="virtual">
|
||||
<return type="Variant" />
|
||||
<argument index="0" name="arguments" type="Variant" />
|
||||
<description>
|
||||
Called by this node.
|
||||
</description>
|
||||
</method>
|
||||
</methods>
|
||||
<constants>
|
||||
</constants>
|
||||
|
||||
Reference in New Issue
Block a user