-
-
Notifications
You must be signed in to change notification settings - Fork 21.3k
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
[GDNative] Add missing join
method for PoolStringArray class
#55826
[GDNative] Add missing join
method for PoolStringArray class
#55826
Conversation
modules/gdnative/gdnative_api.json
Outdated
{ | ||
"name": "godot_pool_string_array_join", | ||
"return_type": "godot_string", | ||
"arguments": [ | ||
["godot_pool_string_array *", "p_self"], | ||
["const godot_string *", "p_delimiter"] | ||
] | ||
}, |
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.
This would need to be defined in a new CORE API 1.3 here: https://github.com/godotengine/godot/blob/5dafc2cab1cad3d4022761619166e3502f63005e/modules/gdnative/gdnative_api.json#L20
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.
Thank you! Could you also check this PR: #55650 ? I guess I need to do the same there?..
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.
Done. I've updated gdnative_api.json
. I've added new CORE API 1.3 and put newly added method within it.
Please, review 🙂
71cb8d3
to
c58391c
Compare
5dafc2c
to
b67a36a
Compare
…ay class The class PoolStringArray in GDScript has `join` method, and it even has documentation. However, the corresponding definition of this method in GDNative headers were missing. In this commit, the missing GDNative definition of `join` method has been added. A new CORE API version 1.3 has been added with the new metod `join`.
b67a36a
to
bf60d65
Compare
Looks good to me overall. I'm not super familiar with GDNative so I don't know all the consequences of opening up a new CORE API. Would be good if @BastiaanOlij or other folks familiar with GDNative could have a look. If we do decide to add this as CORE API 1.3, we should merge this soon before the 3.5-stable release, so that this 1.3 API can match the 3.5 Godot release. There might also be more core type methods which have been added to the engine but not exposed to GDNative. If we do open up CORE API 1.3 for 3.5, we might as well want to make sure that we include those other missing methods. One such example is |
So I finally went through the list of all Variant methods in Here's the full list of methods in All Variant methods (minus constructors and operators)
I then grepped all methods from that list in
So there's quite a few! There's more than I expected and while that would be nice to have, I think implementing all those in a few days for Core API 1.3 in time for 3.5-stable would be a bit difficult. And since this is solved in Godot 4.0 (no longer needs manual reimplementation of those methods with GDExtension), I think we can keep it on an on-demand basis. So I think we can merge this PR and just have this tiny addition in Core API 1.3 for 3.5. And we can open Core API 1.4 for 3.6 if there's demand for more of these methods. Directly relevant to this PR though, implementing |
I can add Also, there is related PR #55650, but it has some merge conflicts that I have to resolve. If this PR is merged, I can put the methods in #55650 in the Core API 1.3 as well. So, if we merge this PR soon, we can still add some other methods in 1.3 😄 |
Alright, let's do that :) |
Thanks! |
The class PoolStringArray in GDScript has
join
method, and it even has documentation.However, the corresponding definition of this method in GDNative headers were missing.
In this PR, the missing GDNative definition of
join
method has been added to the corresponding source files.This PR fixes #53116