-
Notifications
You must be signed in to change notification settings - Fork 4
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
Added Camera & Script type. Updated native parameters and return types. #11
Conversation
This changed Game does have a couple weird/misspelled natives there, maybe an "alias" field with a better name for those could be useful, then native.h generator could output invokers for both orig name + alias. |
I did change it as intended, I thought it was misspelled and I checked the string to hash it didn't match and must've made a mistake when checking, I just ran the hash again and matches. |
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.
Please add the suggestions in my comments so this pr can be merged
natives.json
Outdated
"type": "Any", | ||
"name": "p0" | ||
"type": "const char*", | ||
"name": "ActorSetName" |
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.
To maintain consistency with our coding standards, we require that all parameter names use camelCase. Parameters should not start with capital letters. Update the code to reflect this convention.
natives.json
Outdated
"type": "Any", | ||
"name": "p0" | ||
"type": "const char*", | ||
"name": "music_name" |
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.
Parameters should not include underscores. Please update the code to reflect this convention. Parameter names should use camelCase.
natives.json
Outdated
"type": "Any", | ||
"name": "p1" | ||
"type": "const char*", | ||
"name": "layout_name" |
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.
Use camelCase
natives.json
Outdated
}, | ||
{ | ||
"type": "const char*", | ||
"name": "input_string" |
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.
Use camelCase
natives.json
Outdated
"type": "Any", | ||
"name": "p0" | ||
"type": "Vector3*", | ||
"name": "in_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.
Use camelCase
natives.json
Outdated
"type": "Any", | ||
"name": "p2" | ||
"type": "Vector3", | ||
"name": "out_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.
Use camelCase
natives.json
Outdated
}, | ||
{ | ||
"type": "Vector3*", | ||
"name": "Direction" | ||
"type": "Vector3", |
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.
I'm not 100% sure but aren't Vector3 types are passed as dereference?
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.
Instead of Script and Script* we use ScrHandle so it's okay to get rid of type 'Script'
The same goes for Camera and Camera* we use Cam and Cam*
schema.json
Outdated
@@ -62,14 +63,15 @@ | |||
"Ped", "Ped*", | |||
"Player", "Player*", | |||
"ScrHandle", "ScrHandle*", | |||
"Script", "Script*", |
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.
Instead of Script and Script* we use ScrHandle so it's okay to get rid of type 'Script'
The same goes for Camera and Camera* we use Cam and Cam*
also please revert native _IS_ACCESSORY_EQUIPPED to it's original name |
No description provided.