Skip to main content

DynamicPathPart

A class in Root.Township, the global namespace.

Generation part that, during dynamic generation on a forest node map, spawns a network prefab at its position and initialises it with the node's edge as a dynamic path.

Constructors​

MemberWhat it is
DynamicPathPart()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

1 private and internal field
MemberWhat it is
private ObjectPipeline prefabPipeline that picks the network prefab to spawn.

Methods​

MemberWhat it is
override void GenerateDynamic(GenerationCore core)Gets a prefab from the pipeline, spawns it in the best location chunk and calls IDynamicPath.Initialize with the edge.