Show / Hide Table of Contents

Class GenericStatusEffect

Adds a generic status effect to the entity, not worrying about things like how to affect the time it lasts for or component fields or anything. Just adds a component to an entity for a given time. Easy.

Inheritance
System.Object
ReagentEffect
GenericStatusEffect
Namespace: Content.Server.Chemistry.ReagentEffects.StatusEffects
Assembly: Content.Server.dll
Syntax
public sealed class GenericStatusEffect : ReagentEffect
Remarks

Can be used for things like adding accents or something. I don't know. Go wild.

Fields

| Improve this Doc View Source

Component

Declaration
public string Component
Field Value
Type Description
System.String
| Improve this Doc View Source

Key

Declaration
public string Key
Field Value
Type Description
System.String
| Improve this Doc View Source

Refresh

Declaration
public bool Refresh
Field Value
Type Description
System.Boolean
Remarks

true - refresh status effect time, false - accumulate status effect time

| Improve this Doc View Source

Time

Declaration
public float Time
Field Value
Type Description
System.Single
| Improve this Doc View Source

Type

Should this effect add the status effect, remove time from it, or set its cooldown?

Declaration
public StatusEffectMetabolismType Type
Field Value
Type Description
StatusEffectMetabolismType

Methods

| Improve this Doc View Source

Effect(ReagentEffectArgs)

Declaration
public override void Effect(ReagentEffectArgs args)
Parameters
Type Name Description
Content.Shared.Chemistry.Reagent.ReagentEffectArgs args
| Improve this Doc View Source

ReagentEffectGuidebookText(IPrototypeManager, IEntitySystemManager)

Declaration
protected override string? ReagentEffectGuidebookText(IPrototypeManager prototype, IEntitySystemManager entSys)
Parameters
Type Name Description
Robust.Shared.Prototypes.IPrototypeManager prototype
IEntitySystemManager entSys
Returns
Type Description
System.Nullable<System.String>
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾