Initial attempt at road generation

This commit is contained in:
2015-05-26 19:36:44 +03:00
parent b6b2dce32e
commit 22f1905b1b
10 changed files with 239 additions and 10 deletions

View File

@ -84,6 +84,16 @@ namespace TransportGame.Model.Road
}
}
/// <summary>
/// Initializes the road network
/// </summary>
public RoadNetwork()
{
Nodes = new Dictionary<int, RoadNode>();
ArticulationSegments = new Dictionary<int,RoadSegment>();
IntersectionSegments = new Dictionary<int,RoadSegment>();
}
/// <summary>
/// Creates a node and returns it
/// </summary>