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

Rename TopologyMode to TopologyTypeSet #3156

Conversation

kwvanderlinde
Copy link
Collaborator

@kwvanderlinde kwvanderlinde commented Nov 9, 2021

Identify the Bug or Feature request

Addresses backwards compat issue for #2755

Description of the Change

Campaigns that predate terrain VBL could not be loaded without error due to the refactoring in #3148. This was because the old Zone.topologyMode field has the same name and type name as before the refactoring, but is structurally distinct and so could not be correctly deserialized.

To avoid this, and to avoid potential other confusions with the previous enum TopologyMode, the new class has been renamed to TopologyTypeSet and methods and variable names have been updated accordingly.

Possible Drawbacks

None expected

Documentation Notes

Release Notes


This change is Reviewable

Campaigns that predate terrain VBL could not be loaded without error due to the refactoring in RPTools#3148. This was because
the old `Zone.topologyMode` field has the same name and type name as before the refactoring, but was structurally
distinct and so could not be correctly deserialized.

To avoid this, and to avoid potential other confusions with the previous enum `TopologyMode`, the new class has been
renamed to `TopologyTypeSet` and methods and variable names have been updated accordingly.
Copy link
Member

@cwisniew cwisniew left a comment

Choose a reason for hiding this comment

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

Reviewed 15 of 15 files at r1, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @kwvanderlinde)

@cwisniew cwisniew merged commit df57271 into RPTools:develop Nov 10, 2021
@kwvanderlinde kwvanderlinde deleted the issue-2755-hill-and-pit-vbl-backwards-compat-campaign-loading branch November 10, 2021 00:35
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