Skip to content

Unify LambdaContainer and KtFunction #832

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

Open
CedNaru opened this issue May 11, 2025 · 0 comments
Open

Unify LambdaContainer and KtFunction #832

CedNaru opened this issue May 11, 2025 · 0 comments

Comments

@CedNaru
Copy link
Member

CedNaru commented May 11, 2025

While reworking callables, I noticed that the way we two classes we use for registering scripts methods to Godot and for custom callables are extremely similar.
They both use ParameterReader behind the hood to get the arguments from the sharer buffer using a list of VariantConverters and wrap a Kotlin KFunction.
We can probably merge the 2 together in a new abstract class/interface that would be part of the internal library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant