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

Refactor planet XML load #1062

Merged
merged 7 commits into from
Oct 5, 2021
Merged

Refactor planet XML load #1062

merged 7 commits into from
Oct 5, 2021

Conversation

DanRStevens
Copy link
Member

Reference: #830

Refactor Planet XML loading code so for loops only iterate over XmlElement objects, and to make use of Dictionary.

@Brett208
Copy link
Member

Brett208 commented Oct 4, 2021

Looks much cleaner than how I originally wrote it. I like how the concept of pulling string data from either a element or an attribute is now possible which made reading the description string trivial in code.

@DanRStevens
Copy link
Member Author

Technically it uses custom code for Planet data loading, so it only supports sub-elements here, and not attributes. Took me a moment to remember this code was different. I originally tried to write the code assuming it was using attributes, which didn't exactly work. Thankfully it was a fairly small change to fix it from there.

@DanRStevens DanRStevens merged commit 7ccb4a2 into master Oct 5, 2021
@DanRStevens DanRStevens deleted the refactorPlanetXmlLoad branch October 5, 2021 00:08
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