Skip to content

Commit 36feac0

Browse files
committed
Update godot_nativescript.h (breaking changes in godot_property_hint)
GDNative API introduced breaking changes here by adding enum constants in the middle, severing compatibility of current godot-rust with Godot versions prior to 3.5(.1). This change was already applied to api.json, but not the C API itself.
1 parent 3805ea6 commit 36feac0

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

gdnative-sys/godot_headers/nativescript/godot_nativescript.h

+6-4
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
/* GODOT ENGINE */
66
/* https://godotengine.org */
77
/*************************************************************************/
8-
/* Copyright (c) 2007-2020 Juan Linietsky, Ariel Manzur. */
9-
/* Copyright (c) 2014-2020 Godot Engine contributors (cf. AUTHORS.md). */
8+
/* Copyright (c) 2007-2022 Juan Linietsky, Ariel Manzur. */
9+
/* Copyright (c) 2014-2022 Godot Engine contributors (cf. AUTHORS.md). */
1010
/* */
1111
/* Permission is hereby granted, free of charge, to any person obtaining */
1212
/* a copy of this software and associated documentation files (the */
@@ -61,8 +61,10 @@ typedef enum {
6161
GODOT_PROPERTY_HINT_FLAGS, ///< hint_text= "flag1,flag2,etc" (as bit flags)
6262
GODOT_PROPERTY_HINT_LAYERS_2D_RENDER,
6363
GODOT_PROPERTY_HINT_LAYERS_2D_PHYSICS,
64+
GODOT_PROPERTY_HINT_LAYERS_2D_NAVIGATION,
6465
GODOT_PROPERTY_HINT_LAYERS_3D_RENDER,
6566
GODOT_PROPERTY_HINT_LAYERS_3D_PHYSICS,
67+
GODOT_PROPERTY_HINT_LAYERS_3D_NAVIGATION,
6668
GODOT_PROPERTY_HINT_FILE, ///< a file path must be passed, hint_text (optionally) is a filter "*.png,*.wav,*.doc,"
6769
GODOT_PROPERTY_HINT_DIR, ///< a directory path must be passed
6870
GODOT_PROPERTY_HINT_GLOBAL_FILE, ///< a file path must be passed, hint_text (optionally) is a filter "*.png,*.wav,*.doc,"
@@ -145,7 +147,7 @@ typedef struct {
145147
} godot_method_attributes;
146148

147149
typedef struct {
148-
// instance pointer, method data, user data, num args, args - return result as varaint
150+
// instance pointer, method data, user data, num args, args - return result as variant
149151
GDCALLINGCONV godot_variant (*method)(godot_object *, void *, void *, int, godot_variant **);
150152
void *method_data;
151153
GDCALLINGCONV void (*free_func)(void *);
@@ -247,4 +249,4 @@ void GDAPI godot_nativescript_profiling_add_data(const char *p_signature, uint64
247249
}
248250
#endif
249251

250-
#endif
252+
#endif // GODOT_NATIVESCRIPT_H

0 commit comments

Comments
 (0)