Skip to content

Commit

Permalink
Merge branch 'NetStandard' of https://github.com/vchelaru/FlatRedBall
Browse files Browse the repository at this point in the history
…into NetStandard
  • Loading branch information
vchelaru committed Mar 30, 2024
2 parents 8dbd4e7 + 3b64e0b commit d314335
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Engines/FlatRedBallXNA/FlatRedBall/AI/Pathfinding/NodeNetwork.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1036,6 +1036,24 @@ public virtual void UpdateShapes()
}
}

public void SetNodeColor(PositionedNode node, Color color)
{
int index = mNodes.IndexOf(node);

if (index < 0)
throw new ArgumentException("Node does not belong to this NodeNetwork");

mNodeVisibleRepresentation[index].Color = color;
}

public void SetAllNodesColor(Color color)
{
mNodeColor = color;

for (int i = 0; i < mNodeVisibleRepresentation.Count; i++)
mNodeVisibleRepresentation[i].Color = color;
}

protected virtual void AdjustLinkRepresentation(PositionedNode sourceNode, Link link, Line line)
{

Expand Down

0 comments on commit d314335

Please sign in to comment.