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

Some proper pawn native param casts #684

Merged
merged 8 commits into from
Jun 21, 2023
Merged

Conversation

AmyrAhmady
Copy link
Member

This PR declares IPickup , IPlayerPickup, IGangZone and IPlayerGangZone in SDK, derived from a base class now, so it can be used in ParamCast mechanism. Before that in our native declaration files we were using raw int32 params and having repetitive code to fetch related entity with it and do the checks in each native code block, so now using two newly provided macros, we can have param cast for entities in mixed pools.

Note: This is the first step for me to add per-player actors easier.

Also there are some player data param casts for less repetitive code in many other places.

@AmyrAhmady AmyrAhmady merged commit f6839d9 into master Jun 21, 2023
14 checks passed
@AmyrAhmady AmyrAhmady deleted the amir/proper-param-casts branch June 21, 2023 10:51
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.

None yet

2 participants