-
-
Notifications
You must be signed in to change notification settings - Fork 212
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
Static methods in Godot API #43
Comments
Bromeon
added
feature
Adds functionality to the library
c: engine
Godot classes (nodes, resources, ...)
labels
Dec 8, 2022
For starters, we could skip generating wrappers for static methods, to avoid accidents. Right now, this compiles even though
Instead of initializing
|
bors bot
added a commit
that referenced
this issue
Feb 5, 2023
115: Implement static methods for class + builtin methods r=Bromeon a=Bromeon Also fixes a memory leak when `RefCounted` instances are returned from engine methods. Closes #43. Co-authored-by: Jan Haller <[email protected]>
Great work! 👏 |
ttencate
pushed a commit
to ttencate/gdext
that referenced
this issue
Feb 5, 2023
115: Implement static methods for engine + builtin classes r=Bromeon a=Bromeon Also fixes a memory leak when `RefCounted` instances are returned from engine methods. Closes godot-rust#43. Co-authored-by: Jan Haller <[email protected]>
ttencate
pushed a commit
to ttencate/gdext
that referenced
this issue
Feb 5, 2023
115: Implement static methods for engine + builtin classes r=Bromeon a=Bromeon Also fixes a memory leak when `RefCounted` instances are returned from engine methods. Closes godot-rust#43. Co-authored-by: Jan Haller <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Some Godot types are only constructible through static factory methods, e.g.
DirAccess.open()
.We could provide a method without
self
parameter, possibly reusing the singleton functionality.We could in a later step also consider static user-provided methods (
#[func]
), in case GDExtension allows that.The text was updated successfully, but these errors were encountered: