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
| Member | What it is |
|---|
ProfessionsProgressShrine() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
6 private and internal fields
| Member | What it is |
|---|
private Dictionary<ProgressionPath, ExperienceFillVisualizer> availablePointsVisualizers | Path visuals by profession path. |
private BoughtSkillVisualizer boughtSkillsVisualizer | Visual for skills already bought. |
private ExperienceFillVisualizer pathVisualizerPrefab | Prefab made for each path. |
private float radius | Radius of the arc. |
private float spread | Angle the arc covers in degrees (default 270). |
private Transform treesVisualizerOrigin | Center and parent of the arc. |
Properties
| Member | What it is |
|---|
override IEnumerable<SkillShrineVisualizer> Visualizers { get; } | The bought skills visual, then every path visual. |
Methods
| Member | What 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
| Member | What 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. |