Skip to content

Some proper pawn native param casts - #684

Merged
AmyrAhmady merged 8 commits into
masterfrom
amir/proper-param-casts
Jun 21, 2023
Merged

AmyrAhmady merged 8 commits into
masterfrom
amir/proper-param-casts

Conversation

@AmyrAhmady

Copy link
Copy Markdown
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 force-pushed the amir/proper-param-casts branch from 50876f9 to d9a7c77 Compare June 20, 2023 16:11
@AmyrAhmady
AmyrAhmady merged commit f6839d9 into master Jun 21, 2023
@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.

2 participants