Skip to content

Update leisure and highway element processing #425

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

Merged
merged 14 commits into from
May 3, 2025

Conversation

GMart
Copy link
Contributor

@GMart GMart commented Apr 27, 2025

Hi Louis,
This is my first time contributing to a Rust project.
I noticed a few things I could add while still learning the Rust syntax.

  • Fix 'Mincraft' typo (Code still works the same so not sure what that prefix does)
  • Add additional types for leisure
    • I tested this on an ice rink, but it still generated the normal building over it. Ice-rink generation may need to be moved to buildings.rs
    • Will test slipway and nature reserve
  • Add additional types for highway

Fix 'Mincraft' typo (Code still works so not sure what that prefix did)
Add additional types for leisure
@XianlinSheng
Copy link
Contributor

Seems that you need to run cargo fmt to format the files, and also run cargo clippy to check for any verbose or discouraged logic.

@GMart GMart changed the title Update element processing Update leisure element processing Apr 28, 2025
@GMart GMart marked this pull request as ready for review April 28, 2025 21:37
Remove marina from water. It was making entire marina areas water, which was not intended. Add some block types to highways
@GMart GMart changed the title Update leisure element processing Update leisure and highway element processing Apr 29, 2025
Fix nature_reserve
Add more leisure values.
GMart added 2 commits April 30, 2025 19:24
Fix GRASS to GRASS_BLOCK
Remove ladder type as it would have to have special properties to work properly
@louis-e
Copy link
Owner

louis-e commented May 1, 2025

Hi there, thanks a lot for your first contribution! :)
I will test everything locally and then follow up with questions or merge it directly.

Fix 'Mincraft' typo

Woah, I have no clue when that typo was introduced. Never noticed that before in the code. Thanks!

what I have done with underground structures

Nice, underground structures? If you want to get this PR merged sooner, feel free to open that in a seperate PR. Otherwise you can also mark this PR as a draft and push your other updates into this.

@louis-e
Copy link
Owner

louis-e commented May 1, 2025

retrigger-benchmark

Copy link

github-actions bot commented May 1, 2025

⏱️ Benchmark run finished in 2m 14s
🧠 Peak memory usage: 1964 MB

📈 Compared against baseline: 130s
🧮 Delta: 4s
🔢 Commit: 7ae6dc8

🟢 Generation time is unchanged.

You can retrigger the benchmark by commenting retrigger-benchmark.

@GMart
Copy link
Contributor Author

GMart commented May 1, 2025

@louis-e,
Thanks!
The underground structures are in another one of my forks, here: https://github.com/GMart/arnis/tree/add-subways-and-layers and I have some screenshots here: #418
I tried to separate the PRs ahead of time.

GMart added 4 commits May 1, 2025 18:36
In Leisure, soccer golf is used less than 1000 time worldwide. Removed since it will rarely be used.
in highways, changes stairs to be GRAY_CONCRETE for now, until they are properly added.
Add comments to code, add dirt to option for dog park, playground, etc.
@GMart
Copy link
Contributor Author

GMart commented May 2, 2025

retrigger-benchmark

hmmm... Didn't work.

@louis-e
Copy link
Owner

louis-e commented May 3, 2025

FYI the trigger updates the last benchmark comment.
LGTM, thanks! :)

@louis-e louis-e merged commit 922e752 into louis-e:main May 3, 2025
3 checks passed
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.

4 participants