-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Add proper description for IsEntityOnScreen #964
Conversation
You need to add the ## Return value and specify what information is returning this native |
@@ -8,13 +8,9 @@ ns: ENTITY | |||
BOOL IS_ENTITY_ON_SCREEN(Entity entity); | |||
``` | |||
|
|||
``` | |||
Returns true if the entity is in between the minimum and maximum values for the 2d screen coords. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be on the return value instead of deleting.
ENTITY/IsEntityOnScreen.md
Outdated
|
||
## Return value | ||
|
||
Returns `true` if the the entity is in between the minimum and maximum values for the 2d screen coord; otherwise, `false`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Return value need to be after param. Please refer to https://github.com/citizenfx/natives/blob/master/.github/CONTRIBUTING.md
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Look's good. Please squash it like this to make it cleaner..
Slight nitpick.
Adds a properly formatted description for
IsEntityOnScreen
.I do not consider an example would be needed for this native considering how simple is the native is, and the new description means about the same thing as of the old imported description.
Feel free to edit this PR if you think something is wrong.