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.
Namespace: Content.Server.Chemistry.Components
Assembly: Content.Server.dll
Syntax
public sealed class InjectorComponent : SharedInjectorComponent
Fields
| Improve this Doc View SourceDelay
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.
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
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 |
SolutionName
Declaration
public const string SolutionName = null
Field Value
Type | Description |
---|---|
System.String |
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 SourceMaximumTransferAmount
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 |
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 |
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 |