Skip to content
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

[Godot 4] Add support for delete_account_sync() and other API changes that were added in Nakama v3.15.0 #150

Merged
merged 1 commit into from
Jan 30, 2023

Conversation

dsnopek
Copy link
Contributor

@dsnopek dsnopek commented Jan 20, 2023

This is the Godot 4 version of PR #146

@dsnopek dsnopek requested a review from lugehorsam January 20, 2023 20:12
var _authoritative
var authoritative : bool:
get:
return false if not _authoritative is bool else bool(_authoritative)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there a GDScript equivalent for something just like _return authoritative?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code generator does these type checks for some reason. I suspect it was to avoid errors and just return false if _authoritative contains something other than bool? If it just did return _authoritative and it wasn't bool, there'd be a fatal error.

We could certainly change the code generator to produce less verbose code, but that would affect everything in the NakamaAPI.gd file, and that seems like it probably deserves it's own separate PR.

@dsnopek dsnopek merged commit 19e1281 into heroiclabs:godot-4 Jan 30, 2023
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

Successfully merging this pull request may close these issues.

2 participants