542e6e8ca6
* Extensions are now scanned and loaded on demand. * Extensions found are cached into a file that is used to load them (which is also exported). * Editor will ask to restart when an extension requires core functionality. * Editor will attempt to load extensions always before importing or loading scenes. This ensures extensions can register the relevant types.
58 lines
1.7 KiB
XML
58 lines
1.7 KiB
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<class name="NativeExtensionManager" inherits="Object" version="4.0">
|
|
<brief_description>
|
|
</brief_description>
|
|
<description>
|
|
</description>
|
|
<tutorials>
|
|
</tutorials>
|
|
<methods>
|
|
<method name="get_extension">
|
|
<return type="NativeExtension" />
|
|
<argument index="0" name="path" type="String" />
|
|
<description>
|
|
</description>
|
|
</method>
|
|
<method name="get_loaded_extensions" qualifiers="const">
|
|
<return type="PackedStringArray" />
|
|
<description>
|
|
</description>
|
|
</method>
|
|
<method name="is_extension_loaded" qualifiers="const">
|
|
<return type="bool" />
|
|
<argument index="0" name="path" type="String" />
|
|
<description>
|
|
</description>
|
|
</method>
|
|
<method name="load_extension">
|
|
<return type="int" enum="NativeExtensionManager.LoadStatus" />
|
|
<argument index="0" name="path" type="String" />
|
|
<description>
|
|
</description>
|
|
</method>
|
|
<method name="reload_extension">
|
|
<return type="int" enum="NativeExtensionManager.LoadStatus" />
|
|
<argument index="0" name="path" type="String" />
|
|
<description>
|
|
</description>
|
|
</method>
|
|
<method name="unload_extension">
|
|
<return type="int" enum="NativeExtensionManager.LoadStatus" />
|
|
<argument index="0" name="path" type="String" />
|
|
<description>
|
|
</description>
|
|
</method>
|
|
</methods>
|
|
<constants>
|
|
<constant name="LOAD_STATUS_OK" value="0" enum="LoadStatus">
|
|
</constant>
|
|
<constant name="LOAD_STATUS_FAILED" value="1" enum="LoadStatus">
|
|
</constant>
|
|
<constant name="LOAD_STATUS_ALREADY_LOADED" value="2" enum="LoadStatus">
|
|
</constant>
|
|
<constant name="LOAD_STATUS_NOT_LOADED" value="3" enum="LoadStatus">
|
|
</constant>
|
|
<constant name="LOAD_STATUS_NEEDS_RESTART" value="4" enum="LoadStatus">
|
|
</constant>
|
|
</constants>
|
|
</class>
|