Debian Codegraph @

doc/classes/GDExtension.xml

raw symbols SCIP
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <class name="GDExtension" inherits="Resource" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
3 <brief_description>
4 A native library for GDExtension.
5 </brief_description>
6 <description>
7 The [GDExtension] resource type represents a [url=https://en.wikipedia.org/wiki/Shared_library]shared library[/url] which can expand the functionality of the engine. The [GDExtensionManager] singleton is responsible for loading, reloading, and unloading [GDExtension] resources.
8 [b]Note:[/b] GDExtension itself is not a scripting language and has no relation to [GDScript] resources.
9 </description>
10 <tutorials>
11 <link title="GDExtension overview">$DOCS_URL/tutorials/scripting/gdextension/what_is_gdextension.html</link>
12 <link title="GDExtension example in C++">$DOCS_URL/tutorials/scripting/cpp/gdextension_cpp_example.html</link>
13 </tutorials>
14 <methods>
15 <method name="get_minimum_library_initialization_level" qualifiers="const">
16 <return type="int" enum="GDExtension.InitializationLevel" />
17 <description>
18 Returns the lowest level required for this extension to be properly initialized (see the [enum InitializationLevel] enum).
19 </description>
20 </method>
21 <method name="is_library_open" qualifiers="const">
22 <return type="bool" />
23 <description>
24 Returns [code]true[/code] if this extension's library has been opened.
25 </description>
26 </method>
27 </methods>
28 <constants>
29 <constant name="INITIALIZATION_LEVEL_CORE" value="0" enum="InitializationLevel">
30 The library is initialized at the same time as the core features of the engine.
31 </constant>
32 <constant name="INITIALIZATION_LEVEL_SERVERS" value="1" enum="InitializationLevel">
33 The library is initialized at the same time as the engine's servers (such as [RenderingServer] or [PhysicsServer3D]).
34 </constant>
35 <constant name="INITIALIZATION_LEVEL_SCENE" value="2" enum="InitializationLevel">
36 The library is initialized at the same time as the engine's scene-related classes.
37 </constant>
38 <constant name="INITIALIZATION_LEVEL_EDITOR" value="3" enum="InitializationLevel">
39 The library is initialized at the same time as the engine's editor classes. Only happens when loading the GDExtension in the editor.
40 </constant>
41 </constants>
42 </class>