Show / Hide Table of Contents

Class InjectorComponent

Server behavior for reagent injectors and syringes. Can optionally support both injection and drawing or just injection. Can inject/draw reagents from solution containers, and can directly inject into a mobs bloodstream.

Inheritance
System.Object
SharedInjectorComponent
InjectorComponent
Namespace: Content.Server.Chemistry.Components
Assembly: Content.Server.dll
Syntax
public sealed class InjectorComponent : SharedInjectorComponent

Fields

| Improve this Doc View Source

Delay

Injection delay (seconds) when the target is a mob.

Declaration
public float Delay
Field Value
Type Description
System.Single
Remarks

The base delay has a minimum of 1 second, but this will still be modified if the target is incapacitated or in combat mode.

| Improve this Doc View Source

IgnoreMobs

Whether or not the injector is able to draw from or inject from mobs

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

for example: droppers would ignore mobs

| Improve this Doc View Source

InjectOnly

Whether or not the injector is able to draw from containers or if it's a single use device that can only inject.

Declaration
public bool InjectOnly
Field Value
Type Description
System.Boolean
| Improve this Doc View Source

SolutionName

Declaration
public const string SolutionName = null
Field Value
Type Description
System.String
| Improve this Doc View Source

TransferAmount

Amount to inject or draw on each usage. If the injector is inject only, it will attempt to inject it's entire contents upon use.

Declaration
public FixedPoint2 TransferAmount
Field Value
Type Description
FixedPoint2

Properties

| Improve this Doc View Source

MaximumTransferAmount

The maximum amount of solution that can be transferred at once from this solution.

Declaration
public FixedPoint2 MaximumTransferAmount { get; set; }
Property Value
Type Description
FixedPoint2
| Improve this Doc View Source

MinimumTransferAmount

The minimum amount of solution that can be transferred at once from this solution.

Declaration
public FixedPoint2 MinimumTransferAmount { get; set; }
Property Value
Type Description
FixedPoint2
| Improve this Doc View Source

ToggleState

The state of the injector. Determines it's attack behavior. Containers must have the right SolutionCaps to support injection/drawing. For InjectOnly injectors this should only ever be set to Inject

Declaration
public SharedInjectorComponent.InjectorToggleMode ToggleState { get; set; }
Property Value
Type Description
SharedInjectorComponent.InjectorToggleMode
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾