mirror of
https://github.com/godotengine/godot.git
synced 2026-01-05 06:11:29 +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:
@@ -17,9 +17,9 @@
|
||||
Override this method to define how the selected entry should be inserted. If [code]replace[/code] is true, any existing text should be replaced.
|
||||
</description>
|
||||
</method>
|
||||
<method name="_filter_code_completion_candidates" qualifiers="virtual">
|
||||
<method name="_filter_code_completion_candidates" qualifiers="virtual const">
|
||||
<return type="Array" />
|
||||
<argument index="0" name="candidates" type="Array" />
|
||||
<argument index="0" name="candidates" type="Dictionary[]" />
|
||||
<description>
|
||||
Override this method to define what items in [code]candidates[/code] should be displayed.
|
||||
Both [code]candidates[/code] and the return is a [Array] of [Dictionary], see [method get_code_completion_option] for [Dictionary] content.
|
||||
|
||||
Reference in New Issue
Block a user