SkillOrbConnectionline
A class in Root.Township, the global namespace.
Line drawn between two skill orbs (or an orb and the shrine's ray origin) on a SkillShrine, coloured by the orb's buy status. Client visuals, made by the shrine.
- Listed in Global namespace: S
Constructors
| Member | What it is |
|---|---|
SkillOrbConnectionline(uint entityFromIdentifier, uint entityToIdentifier, SkillShrine shrine) | Creates a SkillOrbConnectionline from entityFromIdentifier, entityToIdentifier and shrine. |
Fields
11 private and internal fields
| Member | What it is |
|---|---|
private readonly int _TintColor | Shader id of _TintColor. |
private uint entityFromIdentifier | Entity id of the orb the line starts at. |
private uint entityToIdentifier | Entity id of the orb the line ends at, or 0 to end at the shrine's ray origin. |
private Transform from | Transform of the start orb, once found. |
private LineRenderer line | The LineRenderer on the pooled line. |
private Vector3 midPoint | Point the line shrinks to when destroyed. |
private PooledObject pooledLine | Pooled line object from the shrine's line definition. |
private Vector3[] positions | The two line end points. |
private SkillShrine shrine | The shrine this line belongs to. |
private Transform to | Transform of the end orb or the shrine's ray origin. |
private IUnityUpdateMethod updateMethod | Handle for whichever budgeted update is running (wait, update or shrink). |
Methods
2 private and internal methods
| Member | What it is |
|---|---|
private void UpdateColor(SkillOrb orb, SkillStatus status) | Sets the line tint from the orb's status. Orbs with no dependencies show as allowed instead of can't buy. |
private void WaitToSpawn() | Waits until both entities exist, then takes a pooled line, hooks the orb's status event and starts Update. |
Used in
Members of other types that take, return or hold a SkillOrbConnectionline: