mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Rename all gdnative occurences to gdextension
Non-exhaustive list of case-sensitive renames: GDExtension -> GDNative GDNATIVE -> GDEXTENSION gdextension -> gdnative ExtensionExtension ->Extension (for where there was GDNativeExtension) EXTENSION_EXTENSION ->EXTENSION (for where there was GDNATIVE_EXTENSION) gdnlib -> gdextension gdn_interface -> gde_interface gdni -> gde_interface
This commit is contained in:
parent
c241f1c523
commit
be1c9d677d
66 changed files with 2191 additions and 2192 deletions
|
|
@ -71,11 +71,11 @@ import javax.microedition.khronos.opengles.GL10;
|
|||
* - 'plugin.init.ClassFullName' is the full name (package + class name) of the plugin class
|
||||
* extending {@link GodotPlugin}.
|
||||
*
|
||||
* A plugin can also define and provide c/c++ gdnative libraries and nativescripts for the target
|
||||
* A plugin can also define and provide c/c++ gdextension libraries and nativescripts for the target
|
||||
* app/game to leverage.
|
||||
* The shared library for the gdnative library will be automatically bundled by the aar build
|
||||
* The shared library for the gdextension library will be automatically bundled by the aar build
|
||||
* system.
|
||||
* Godot '*.gdnlib' and '*.gdns' resource files must however be manually defined in the project
|
||||
* Godot '*.gdextension' resource files must however be manually defined in the project
|
||||
* 'assets' directory. The recommended path for these resources in the 'assets' directory should be:
|
||||
* 'godot/plugin/v1/[PluginName]/'
|
||||
*/
|
||||
|
|
@ -112,7 +112,7 @@ public abstract class GodotPlugin {
|
|||
public final void onRegisterPluginWithGodotNative() {
|
||||
registeredSignals.putAll(
|
||||
registerPluginWithGodotNative(this, getPluginName(), getPluginMethods(), getPluginSignals(),
|
||||
getPluginGDNativeLibrariesPaths()));
|
||||
getPluginGDExtensionLibrariesPaths()));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -124,7 +124,7 @@ public abstract class GodotPlugin {
|
|||
GodotPluginInfoProvider pluginInfoProvider) {
|
||||
registerPluginWithGodotNative(pluginObject, pluginInfoProvider.getPluginName(),
|
||||
Collections.emptyList(), pluginInfoProvider.getPluginSignals(),
|
||||
pluginInfoProvider.getPluginGDNativeLibrariesPaths());
|
||||
pluginInfoProvider.getPluginGDExtensionLibrariesPaths());
|
||||
|
||||
// Notify that registration is complete.
|
||||
pluginInfoProvider.onPluginRegistered();
|
||||
|
|
@ -132,7 +132,7 @@ public abstract class GodotPlugin {
|
|||
|
||||
private static Map<String, SignalInfo> registerPluginWithGodotNative(Object pluginObject,
|
||||
String pluginName, List<String> pluginMethods, Set<SignalInfo> pluginSignals,
|
||||
Set<String> pluginGDNativeLibrariesPaths) {
|
||||
Set<String> pluginGDExtensionLibrariesPaths) {
|
||||
nativeRegisterSingleton(pluginName, pluginObject);
|
||||
|
||||
Set<Method> filteredMethods = new HashSet<>();
|
||||
|
|
@ -176,9 +176,9 @@ public abstract class GodotPlugin {
|
|||
registeredSignals.put(signalName, signalInfo);
|
||||
}
|
||||
|
||||
// Get the list of gdnative libraries to register.
|
||||
if (!pluginGDNativeLibrariesPaths.isEmpty()) {
|
||||
nativeRegisterGDNativeLibraries(pluginGDNativeLibrariesPaths.toArray(new String[0]));
|
||||
// Get the list of gdextension libraries to register.
|
||||
if (!pluginGDExtensionLibrariesPaths.isEmpty()) {
|
||||
nativeRegisterGDExtensionLibraries(pluginGDExtensionLibrariesPaths.toArray(new String[0]));
|
||||
}
|
||||
|
||||
return registeredSignals;
|
||||
|
|
@ -304,12 +304,12 @@ public abstract class GodotPlugin {
|
|||
}
|
||||
|
||||
/**
|
||||
* Returns the paths for the plugin's gdnative libraries.
|
||||
* Returns the paths for the plugin's gdextension libraries.
|
||||
*
|
||||
* The paths must be relative to the 'assets' directory and point to a '*.gdnlib' file.
|
||||
* The paths must be relative to the 'assets' directory and point to a '*.gdextension' file.
|
||||
*/
|
||||
@NonNull
|
||||
protected Set<String> getPluginGDNativeLibrariesPaths() {
|
||||
protected Set<String> getPluginGDExtensionLibrariesPaths() {
|
||||
return Collections.emptySet();
|
||||
}
|
||||
|
||||
|
|
@ -420,10 +420,10 @@ public abstract class GodotPlugin {
|
|||
private static native void nativeRegisterMethod(String p_sname, String p_name, String p_ret, String[] p_params);
|
||||
|
||||
/**
|
||||
* Used to register gdnative libraries bundled by the plugin.
|
||||
* @param gdnlibPaths Paths to the libraries relative to the 'assets' directory.
|
||||
* Used to register gdextension libraries bundled by the plugin.
|
||||
* @param gdextensionPaths Paths to the libraries relative to the 'assets' directory.
|
||||
*/
|
||||
private static native void nativeRegisterGDNativeLibraries(String[] gdnlibPaths);
|
||||
private static native void nativeRegisterGDExtensionLibraries(String[] gdextensionPaths);
|
||||
|
||||
/**
|
||||
* Used to complete registration of the {@link GodotPlugin} instance's methods.
|
||||
|
|
|
|||
|
|
@ -54,12 +54,12 @@ public interface GodotPluginInfoProvider {
|
|||
}
|
||||
|
||||
/**
|
||||
* Returns the paths for the plugin's gdnative libraries (if any).
|
||||
* Returns the paths for the plugin's gdextension libraries (if any).
|
||||
*
|
||||
* The paths must be relative to the 'assets' directory and point to a '*.gdnlib' file.
|
||||
* The paths must be relative to the 'assets' directory and point to a '*.gdextension' file.
|
||||
*/
|
||||
@NonNull
|
||||
default Set<String> getPluginGDNativeLibrariesPaths() {
|
||||
default Set<String> getPluginGDExtensionLibrariesPaths() {
|
||||
return Collections.emptySet();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue