-
Notifications
You must be signed in to change notification settings - Fork 85
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
ExtNetInfo class for lane grouping #1598
base: master
Are you sure you want to change the base?
ExtNetInfo class for lane grouping #1598
Conversation
using System.Linq; | ||
using System.Text; | ||
|
||
namespace CSModLib.GameObjects { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is a lot like TrackUtil.cs
but smaller.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure but IsRoadLane
might be ambiguous because does not tell us if it is only road lane or it includes road lane (like mixed tram+car lane). That is why I chose to use MatchesRoad()
and IsRoadOnly()
to differentiate.
Resolves #1589
This code analyzes NetInfo objects and groups lanes according to directionality and detected medians. It will be the foundation for new routing logic that is more median-aware.
This is all new code, not yet wired up to any existing features. I am submitting this work in stages.