mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +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:
@@ -5,24 +5,18 @@
|
||||
</brief_description>
|
||||
<description>
|
||||
Base syntax highlighter resource all editor syntax highlighters extend from, it is used in the [ScriptEditor].
|
||||
Add a syntax highlighter to an individual script by calling [method ScriptEditorBase._add_syntax_highlighter]. To apply to all scripts on open, call [method ScriptEditor.register_syntax_highlighter]
|
||||
Add a syntax highlighter to an individual script by calling ScriptEditorBase._add_syntax_highlighter (currently not working). To apply to all scripts on open, call [method ScriptEditor.register_syntax_highlighter]
|
||||
</description>
|
||||
<tutorials>
|
||||
</tutorials>
|
||||
<methods>
|
||||
<method name="_get_name" qualifiers="virtual">
|
||||
<method name="_get_name" qualifiers="virtual const">
|
||||
<return type="String" />
|
||||
<description>
|
||||
Virtual method which can be overridden to return the syntax highlighter name.
|
||||
</description>
|
||||
</method>
|
||||
<method name="_get_supported_extentions" qualifiers="virtual">
|
||||
<return type="Array" />
|
||||
<description>
|
||||
Virtual method which can be overridden to return the supported file extensions.
|
||||
</description>
|
||||
</method>
|
||||
<method name="_get_supported_languages" qualifiers="virtual">
|
||||
<method name="_get_supported_languages" qualifiers="virtual const">
|
||||
<return type="Array" />
|
||||
<description>
|
||||
Virtual method which can be overridden to return the supported language names.
|
||||
|
||||
Reference in New Issue
Block a user