Compare commits

...

4 Commits

Author SHA1 Message Date
Serhii Snitsaruk e3a0603f8b
Merge a490ce25f6 into 36847f6af0 2024-01-30 08:28:30 -07:00
David Snopek 36847f6af0
Merge pull request #1370 from MJacred/patch-1
Update README: fix godot-cpp issue tracker url
2024-01-22 08:57:08 -06:00
MJacred 8a535d0ecc
Update README: fix godot-cpp issue tracker url 2024-01-22 10:50:27 +01:00
Serhii Snitsaruk a490ce25f6 Add `is_class_static` virtual method to GDCLASS macro. 2024-01-10 13:12:22 +01:00
2 changed files with 9 additions and 1 deletions

View File

@ -58,7 +58,7 @@ first-party `godot-cpp` extension.
Some compatibility breakage is to be expected as GDExtension and `godot-cpp`
get more used, documented, and critical issues get resolved. See the
[Godot issue tracker](https://github.com/godotengine/godot/issues?q=is%3Aissue+is%3Aopen+label%3Atopic%3Agdextension)
and the [godot-cpp issue tracker](https://github.com/godotengine/godot/issues)
and the [godot-cpp issue tracker](https://github.com/godotengine/godot-cpp/issues)
for a list of known issues, and be sure to provide feedback on issues and PRs
which affect your use of this extension.

View File

@ -99,6 +99,10 @@ public:
return string_name;
}
virtual bool is_class_static(const StringName &p_string_name) const {
return p_string_name == get_class_static();
}
uint64_t get_instance_id() const {
return 0;
}
@ -212,6 +216,10 @@ public:
return string_name; \
} \
\
virtual bool is_class_static(const StringName &p_string_name) const override { \
return get_class_static() == p_string_name; \
} \
\
static ::godot::StringName &get_parent_class_static() { \
return m_inherits::get_class_static(); \
} \