-
-
Notifications
You must be signed in to change notification settings - Fork 211
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
Implement ToGodot
/FromGodot
for Vec<T>
#263
Comments
|
I'd be interested to contribute if no one is on the case yet ! |
|
What would the semantics for Also, what's the motivation behind it? Might be more explicit to use |
@astrale-sharp any comments? 🙂 |
I don't understand what you mean there. If Actually I don't really care about Result but Option and Vec are definitly something I came across making my game |
Note: |
Suggestion:
We then have:
Additionally we should implement |
Sounds good, thanks for listing it up. I'm not sure about |
i think we'd probably implement it for each different option of |
Lately, I've made a wrapper for It implements It's because there were problems with extending the vector in the editor - otherwise, there will be a need to either create default I think I could whip up a more universal wrapper for |
To be clear, The former should not be implemented for things like Returning/accepting values in |
@Bromeon The special case for Though you are right, if any wrapper should be constructed at all, it should be done other way around. |
I'm changing the scope of this issue to Regarding the other types mentioned in the original title:
|
ToGodot
/FromGodot
for Vec<T>
For option Maybe returning
T::to_variant()
if option is some elseVariant::nil()
for
Result dict!("Ok" : T::to_variant() )
for
Vec
, returning a variant arrayThe text was updated successfully, but these errors were encountered: