-
-
Notifications
You must be signed in to change notification settings - Fork 92
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
Enum types are not used for arguments and properties in the api.json #93
Comments
I'm guessing because behind the scenes they are integers and you need to dive deeper into the ClassDB data to retrieve the associated enum. This is rectified in the new GD Extensions btw. It will show the type as an enum and which enum it is and then leave it up to whomever parses the |
Yeah, but why it was done only for Anyway, if new info will be complete in that regard then i have no problem with closure of this issue. |
This was actually fixed by @raniejade in godotengine/godot#35847. However this created a regression which has still not been fixed: godotengine/godot#50388 So the fix hasn't been backported to the |
Excuse me for necroposting, but a heads-up that
this issue is closed, indeed as obsolete by the GDExtension rework.
As the (regressing) fix is not backported to 3.x, this issue can be closed either as not planned or by updating to 4.x (#107). |
Question about
api.json
:Why enum types are presented as such only in
return_type
and shown asint
everywhere else?Random example:
OS
hasscreen_orientation
property with type of enumOS.ScreenOrientation
, but this enum is presented only inreturn_type
for getter, whileset_screen_orientation
has an argumentorientation
of typeint
and property itself typed asint
too.In documentation there is no such discrepancy everything that is enum has
enum
attribute.The text was updated successfully, but these errors were encountered: