Skip to main content

ProfessionsProgressShrine

A class in Root.Township, the global namespace.

Skill shrine that shows an available-points visual for every enabled profession path in an arc, plus the bought skills.

Constructors​

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

Fields​

6 private and internal fields
MemberWhat it is
private Dictionary<ProgressionPath, ExperienceFillVisualizer> availablePointsVisualizersPath visuals by profession path.
private BoughtSkillVisualizer boughtSkillsVisualizerVisual for skills already bought.
private ExperienceFillVisualizer pathVisualizerPrefabPrefab made for each path.
private float radiusRadius of the arc.
private float spreadAngle the arc covers in degrees (default 270).
private Transform treesVisualizerOriginCenter and parent of the arc.

Properties​

MemberWhat it is
override IEnumerable<SkillShrineVisualizer> Visualizers { get; }The bought skills visual, then every path visual.

Methods​

MemberWhat it is
override ExperienceFillVisualizer GetVisualizer(ProgressionPath path)Returns the visual for a path, or null.
protected override void CloseInternal()Does nothing.
protected override void OpenOnClient()Does nothing.
protected override void OpenOnServer()Server: updates the visuals for the player using the shrine, starting from the Forging path.
2 private and internal methods
MemberWhat it is
private void Awake()Makes a visual per enabled profession path and places them in an arc around treesVisualizerOrigin.
private void OnDrawGizmosSelected()Draws where the path visuals will go.