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

Update internal race value to 64 bit #127

Merged
merged 5 commits into from
Sep 3, 2022
Merged

Update internal race value to 64 bit #127

merged 5 commits into from
Sep 3, 2022

Conversation

edo9300
Copy link
Owner

@edo9300 edo9300 commented Apr 2, 2022

Bump the race value size from 32 to 64 bit, giving us 32 new race values.
This is needed to futureproof the new upcoming rush card types, that could end up making the card types become more than 32.
This change breaks both the core abi and the messages.
For the abi now the race field in the OCG_CardData struct changed from uint32_t to uint64_t.
For the messages, QUERY_RACE will now be an uint64_t instead of uint32_t, MSG_ANNOUNCE_RACE will send an uint64_t for the races that can be declared, and also will now expect an uint64_t as answer, also, the HINT_RACE property associated with MSG_HINT will be using the full uint64_t data field as well.

@edo9300 edo9300 added this to the API v10 milestone Apr 2, 2022
edo9300 added a commit to edo9300/edopro that referenced this pull request Aug 31, 2022
edo9300 added a commit to DyXel/Multirole that referenced this pull request Aug 31, 2022
@edo9300 edo9300 merged commit 0de9a3e into master Sep 3, 2022
@edo9300 edo9300 deleted the 64-bit-race branch September 3, 2022 20:46
edo9300 added a commit to edo9300/edopro that referenced this pull request Sep 3, 2022
Apply the required message changes needed to properly handle higher race values, to match with edo9300/ygopro-core#127
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.

1 participant