Node
A class in Root.Township, Alta.Forests.
A point in the forest generator's graph, with a radius. Paths join it to other nodes, and it can be used for A* searches.
- Listed in World generation
- Inherits or implements
Node<Node, Path> - Derived types
Node,Path - Documented in Forest
Constructors
| Member | What it is |
|---|---|
Node(int index, Vector2 position, float height, float radius) | Creates a Node from index, position, height and radius. |
Properties
| Member | What it is |
|---|---|
float Radius { get; private set; } | The node's radius. |
Methods
| Member | What it is |
|---|---|
bool IsOn(SpaceType type) | True if the space to the right of any of its paths has any of the given SpaceType flags. |
Used in
Members of other types that take, return or hold a Node:
CutoutPathModifier.Flood, CutoutPathModifier.GetScore, CutoutPathModifier.output, CutoutPathModifier.strengths, Edge.A, Edge.B, Edge.Edge, ForestAttributeEvaluator.EvaluateNode, ForestGCoreInstruction.ForestGCoreInstruction, ForestGeneration.chunkNodes, ForestGeneration.ClosestNode, ForestGeneration.CreateEdge, ForestGeneration.DistanceToPathOrNode, ForestGeneration.entranceNodes, ForestGeneration.EntranceNodes, ForestGeneration.GetNodesWithinChunk, ForestGeneration.nodes, ForestGeneration.Nodes, ForestGeneration.sortedNodes, ForestGeneration.WorkingNodes, ForestGenerator.Carve, ForestGenerator.entranceNodes, ForestGenerator.Entrances, ForestGenerator.GetNext, ForestGenerator.Reproduce, ForestGenerator.usedNodes, Space.A, Space.B, Space.C, Space.Nodes, Space.Space, ForestNodeMapSpawnData.ForestNodeMapSpawnData, ForestNodeMapSpawnData.Node.