Class StaminaComponent
Add to an entity to paralyze it whenever it reaches critical amounts of Stamina DamageType.
Inheritance
System.Object
StaminaComponent
Namespace: Content.Shared.Damage.Components
Assembly: Content.Shared.dll
Syntax
public sealed class StaminaComponent : Component
Fields
| Improve this Doc View SourceCooldown
How much time after receiving damage until stamina starts decreasing.
Declaration
public float Cooldown
Field Value
Type | Description |
---|---|
System.Single |
Critical
Have we reached peak stamina damage and been paralyzed?
Declaration
public bool Critical
Field Value
Type | Description |
---|---|
System.Boolean |
CritThreshold
How much stamina damage is required to entire stam crit.
Declaration
public float CritThreshold
Field Value
Type | Description |
---|---|
System.Single |
Decay
How much stamina reduces per second.
Declaration
public float Decay
Field Value
Type | Description |
---|---|
System.Single |
NextUpdate
To avoid continuously updating our data we track the last time we updated so we can extrapolate our current stamina.
Declaration
public TimeSpan NextUpdate
Field Value
Type | Description |
---|---|
TimeSpan |
StaminaDamage
How much stamina damage this entity has taken.
Declaration
public float StaminaDamage
Field Value
Type | Description |
---|---|
System.Single |
StunTime
How long will this mob be stunned for?
Declaration
public TimeSpan StunTime
Field Value
Type | Description |
---|---|
TimeSpan |