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

Use enum classes for BitStream #1737

Merged
merged 1 commit into from
Oct 23, 2020

Conversation

qaisjp
Copy link
Contributor

@qaisjp qaisjp commented Oct 18, 2020

This pull request allows for querying BitStream compatibility by doing (for example) bitStream.Can(eBitStreamVersion::FakeLagCommand) instead of getting the number and doing comparisons. You just need to add to the enum list.

I propose that all future code uses this system as much as possible, instead of doing GetVersion.

There is a second pull request ready that applies the use of this feature to every change since the release of 1.5. I'll submit that pull request if/once this one merges.

Note: this pull request also increments the BitStream version. This is harmless, right?

@StrixG StrixG added this to the 1.6 milestone Oct 18, 2020
@qaisjp qaisjp requested a review from ccw808 October 19, 2020 09:33
Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: this pull request also increments the BitStream version. This is harmless, right?

I checked it. It should be okay.

@qaisjp qaisjp removed the request for review from ccw808 October 23, 2020 21:26
@qaisjp qaisjp merged commit ad8dac7 into multitheftauto:master Oct 23, 2020
@qaisjp qaisjp deleted the qaisjp/bitstream-enum-class branch October 23, 2020 21:28
@Dutchman101
Copy link
Member

I advise no one to use the latest nightly, as this change seems to have broken connecting to servers:

Untitled
@ccw808 was notified (we don't really need it on the tracker) - as it probably means he needs to update something in netc according to these changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants