File tree Expand file tree Collapse file tree 2 files changed +25
-2
lines changed Expand file tree Collapse file tree 2 files changed +25
-2
lines changed Original file line number Diff line number Diff line change 33 "version_major": 4,
44 "version_minor": 3,
55 "version_patch": 1,
6- "version_status": "beta ",
6+ "version_status": "rc ",
77 "version_status_version": 1,
88 "version_build": "official",
9- "version_full_name": "Redot Engine v4.3.1.beta .1.official"
9+ "version_full_name": "Redot Engine v4.3.1.rc .1.official"
1010 },
1111 "builtin_class_sizes": [
1212 {
Original file line number Diff line number Diff line change @@ -752,6 +752,19 @@ typedef struct {
752752 const char * string ;
753753} GDExtensionGodotVersion ;
754754
755+ typedef struct {
756+ uint32_t major ;
757+ uint32_t minor ;
758+ uint32_t patch ;
759+ uint32_t hex ; // Full version encoded as hexadecimal with one byte (2 hex digits) per number (e.g. for "3.1.12" it would be 0x03010C)
760+ const char * status ; // (e.g. "stable", "beta", "rc")
761+ uint32_t status_version ;
762+ const char * build ; // (e.g. "custom_build")
763+ const char * hash ; // Full Git commit hash.
764+ uint64_t timestamp ; // Git commit date UNIX timestamp in seconds, or 0 if unavailable.
765+ const char * string ; // (e.g. "Redot v3.1.4.stable.official.mono")
766+ } GDExtensionRedotVersion ;
767+
755768/**
756769 * @name get_godot_version
757770 * @since 4.1
@@ -762,6 +775,16 @@ typedef struct {
762775 */
763776typedef void (* GDExtensionInterfaceGetGodotVersion )(GDExtensionGodotVersion * r_godot_version );
764777
778+ /**
779+ * @name get_redot_version
780+ * @since 4.3
781+ *
782+ * Gets the Redot version that the GDExtension was loaded into.
783+ *
784+ * @param r_redot_version A pointer to the structure to write the version information into.
785+ */
786+ typedef void (* GDExtensionInterfaceGetRedotVersion )(GDExtensionRedotVersion * r_redot_version );
787+
765788/* INTERFACE: Memory */
766789
767790/**
You can’t perform that action at this time.
0 commit comments