-
-
Notifications
You must be signed in to change notification settings - Fork 21.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add GDExtension function to get Object class name #73511
Conversation
b034f23
to
431cbc0
Compare
431cbc0
to
294aea4
Compare
Now that Godot 4.0 stable has happened, and merging this as-is would break the GDExtension ABI, I'd love some advice on how we plan on making those sort of changes in a "safe-ish" :-) way. All we need to do here is add another function pointer to If this hasn't been figured out yet, and there's a discussion about it, I'd love to be a part of that! |
Converting this to a draft while PR #76406 is in progress. If that gets merged, then I'll update this PR to add the new function to GDExtension's interface using the new mechanism |
294aea4
to
bfdbf58
Compare
I've updated this to be based on #76406 So, this'll need to wait until at least that one is merged before this can come out of draft again.
Update: This last bit is now in too! |
bfdbf58
to
6a74662
Compare
Alright, I just got in the last thing I wanted to add here! So, now this one is just waiting on PR #76406 in order to come out of draft. |
6a74662
to
38122aa
Compare
This is finally really ready for review! I've also put it on the agenda for the next GDExtension meeting :-) |
38122aa
to
174cdc7
Compare
Isn't the class name already accessible through the macro functions added to the class? cc @vnen |
We can't use that in this case for two reasons:
|
@dsnopek ah I get it, damn thats funky |
Discussed at the GDExtension meeting, and we think this solution makes sense. It is a problem that has also come up in the Python and Rust bindings. |
174cdc7
to
97e7e00
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🥳
97e7e00
to
c6b0d4a
Compare
Thanks! |
This adds a function for GDExtension to get the class name of an Object, in order to support a fix to godot-cpp: godotengine/godot-cpp#1050
Please see that PR for the full details!
This is draft, because that PR is still a draft, and this PR may be updated before it's ready.The other PR is out of draft, so taking this one out of draft too!Back in draft, since I'm rebasing this on #76406UPDATE: #76406 was merged, so I'm taking this out of draft!