Class StatusEffectState
Holds information about an active status effect.
Inheritance
System.Object
StatusEffectState
Namespace: Content.Shared.StatusEffect
Assembly: Content.Shared.dll
Syntax
public sealed class StatusEffectState : object
Constructors
| Improve this Doc View SourceStatusEffectState(StatusEffectState)
Declaration
public StatusEffectState(StatusEffectState toCopy)
Parameters
Type | Name | Description |
---|---|---|
StatusEffectState | toCopy |
StatusEffectState((TimeSpan, TimeSpan), Boolean, Nullable<String>)
Declaration
public StatusEffectState((TimeSpan, TimeSpan) cooldown, bool refresh, string? relevantComponent = null)
Parameters
Type | Name | Description |
---|---|---|
System.ValueTuple<TimeSpan, TimeSpan> | cooldown | |
System.Boolean | refresh | |
System.Nullable<System.String> | relevantComponent |
Fields
| Improve this Doc View SourceCooldown
The start and end times of the status effect.
Declaration
public (TimeSpan, TimeSpan) Cooldown
Field Value
Type | Description |
---|---|
System.ValueTuple<TimeSpan, TimeSpan> |
CooldownRefresh
Specifies whether to refresh or accumulate the cooldown of the status effect. true - refresh time, false - accumulate time.
Declaration
public bool CooldownRefresh
Field Value
Type | Description |
---|---|
System.Boolean |
RelevantComponent
The name of the relevant component that was added alongside the effect, if any.
Declaration
public string? RelevantComponent
Field Value
Type | Description |
---|---|
System.Nullable<System.String> |