/// <summary> /// Initializes a new instance of the <see cref="MapEdge"/> class between the two given map nodes. The nodes' /// internal edge lists are updated to contain this instance. /// </summary> /// <param name='fromNode'> /// The "from" node. /// </param> /// <param name='toNode'> /// The "to" node. /// </param> public MapEdge(MapNode fromNode, MapNode toNode) { FromNode = fromNode; ToNode = toNode; fromNode.edges.Add(this); toNode.edges.Add(this); ruleType = toNode.ruleType; }
public RoadAtom(Vector3 forward, MapNode node, Rule.Type ruleType) { this.forward = forward.normalized; this.Node = node; this.ruleType = ruleType; }