GDExtension: Add icon path to class creation info

Allows GDExtensions to set the icon of a class programmatically, which is useful for extensions that don't use a `.gdextension` file.
This commit is contained in:
Raul Santos
2024-10-11 20:57:13 +02:00
parent aa8d9b83f6
commit 69f1cc10b6
3 changed files with 17 additions and 0 deletions

View File

@ -368,6 +368,7 @@ typedef struct {
GDExtensionBool is_abstract;
GDExtensionBool is_exposed;
GDExtensionBool is_runtime;
GDExtensionConstStringPtr icon_path;
GDExtensionClassSet set_func;
GDExtensionClassGet get_func;
GDExtensionClassGetPropertyList get_property_list_func;