godotengine / godotengine/godot-headers

Enum types are not used for arguments and properties in the api.json

Open
#93 4 comments 1 reaction 0 assignees View on GitHub
bug
Dominant language
C
Stars
407
Forks
98
PR merge metrics
No merged PRs in 30d

Description

Question about `api.json`:
Why enum types are presented as such only in `return_type` and shown as `int` everywhere else?

Random example: `OS` has [`screen_orientation`](https://github.com/godotengine/godot/blob/87aa694ae5003af797b3a1de56f6d4579997bb47/doc/classes/OS.xml#L1093) property with type of enum `OS.ScreenOrientation`, but this enum is presented only in `return_type` for getter, while `set_screen_orientation` has an argument `orientation` of type `int` and property itself typed as `int` too.

In documentation there is no such discrepancy everything that is enum has `enum` attribute.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.