ProfessionSkill.ActiveEffect
A private class in Root.Township, the global namespace. Reach it through att-stubs' publicized assemblies or Harmony's AccessTools.
Tracks the pooled tool glow effect on one entity and which profession skills currently want it. ProfessionSkill.RequestEffect and ReleaseEffect keep one per entity identifier in a static map.
Constructors
Fields
2 private and internal fields
| Member | What it is |
|---|
private NetworkEntity entity | The entity the effect belongs to. |
private HashSet<ProfessionSkill> requestedSkills | The skills currently asking for this effect. The effect is freed when this empties. |
Properties
Methods
| Member | What it is |
|---|
void ForceRelease() | Returns the pooled effect to its pool no matter how many skills still want it, and unhooks the destroy event. |
bool Release(ProfessionSkill skill) | Removes one skill's request. When none are left it returns the effect to the pool and returns true. |
bool Request(ProfessionSkill skill) | Adds a skill to the set wanting the effect. Returns false if that skill had already asked. |
1 private and internal method
| Member | What it is |
|---|
private void DestroyRelease(NetworkEntity entity, bool isUnload) | Runs when the entity is destroyed by the scene and force-releases its effect through ReleaseEffect. |
Used in
Members of other types that take, return or hold a ActiveEffect: