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

Add priority system for rail blocks #46

Merged
merged 2 commits into from Jun 9, 2019

Conversation

Projects
None yet
2 participants
@mayant15
Copy link
Contributor

commented Jun 7, 2019

When multiple blocks can be placed at a particular location, the module
now selects an appropriate one according to a specified priority order.

Also reformatted the code in RailBlockFamily.

Should fix #43 and #15

TO TEST:

  • Start a game with Rails enabled
  • Arrange the some rail blocks as shown in #43
  • Try to place the rail in between. A turn should be placed.

43

Add priority system
When multiple blocks can be placed at a particular location, the module
now selects an appropriate one according to a specified priority order.

Also reformatted the code in RailBlockFamily.
@iaronaraujo
Copy link
Contributor

left a comment

I didn't get to test it ingame, but everything looks nice! I especially liked the small changes that improved the code quaility

@iaronaraujo
Copy link
Contributor

left a comment

Tested it and everything is working! Nice job!

@iaronaraujo iaronaraujo merged commit a5a0b10 into Terasology:master Jun 9, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.