PlayerEffectManager.EffectPosition
A class in Root.Township, the global namespace.
A spot on a player's body where heat (smoke, burn) and stat effect particles are placed, tied to a HeatPoint.
- Listed in Global namespace: P
- Nested in
PlayerEffectManager
Constructors
| Member | What it is |
|---|---|
EffectPosition() | Creates a PlayerEffectManager.EffectPosition with default values. |
Fields
9 private and internal fields
| Member | What it is |
|---|---|
private PlayerEffectManager.OverrideSettings cullBurnEffect | Which players (local, remote or both) get no burn effect at this point. |
private PlayerEffectManager.OverrideSettings cullSmokeEffect | Which players (local, remote or both) get no smoke effect at this point. |
private PlayerEffectManager.OverrideSettings cullStatEffects | Which players (local, remote or both) get no stat buff or debuff effects at this point. |
private Transform parent | Body transform the effect is parented to. |
private Vector3 position | Local position of the effect under parent. |
private float radius | Radius passed to the effect particle, also used for the gizmo capsule. |
private Quaternion rotation | Local rotation of the effect under parent. |
private float size | Base scale of the effect; EffectApplication.SetSize multiplies it. |
private HeatPoint targetPoint | The HeatPoint whose temperature drives the smoke and burn effects here. |
Properties
| Member | What it is |
|---|---|
PlayerEffectManager.OverrideSettings CullBurnEffect { get; } | Turns off the burn effect here. Any value but none culls it for local and remote players alike, because local is 3. |
PlayerEffectManager.OverrideSettings CullSmokeEffect { get; } | Turns off the smoke effect here. Same culling rule as CullBurnEffect. |
PlayerEffectManager.OverrideSettings CullStatEffects { get; } | Turns off stat buff and debuff effects here. Same culling rule as CullBurnEffect. |
float Size { get; } | Scale of effects placed here. |
HeatPoint TargetPoint { get; } | The heat point whose temperature drives smoke and burn effects here. |
Methods
| Member | What it is |
|---|---|
void DrawGizmos() | Editor: draws a capsule showing the effect's size and radius. |
void Position(PlayerEffectParticle effect) | Parents an effect to this spot and sets its local position, rotation, scale and (for particles) radius. |
void Position(PooledObject pooledObject) | Parents an effect to this spot and sets its local position, rotation, scale and (for particles) radius. |
Used in
Members of other types that take, return or hold a EffectPosition: