Show / Hide Table of Contents

Class ContainmentFieldGeneratorComponent

Inheritance
System.Object
ContainmentFieldGeneratorComponent
Namespace: Content.Shared.Singularity.Components
Assembly: Content.Shared.dll
Syntax
public sealed class ContainmentFieldGeneratorComponent : Component

Fields

| Improve this Doc View Source

Accumulator

Used to check if it's received power recently.

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

CollisionMask

The masks the raycast should not go through

Declaration
public int CollisionMask
Field Value
Type Description
System.Int32
| Improve this Doc View Source

Connections

A collection of connections that the generator has based on direction. Stores a list of fields connected between generators in this direction.

Declaration
public Dictionary<Direction, (ContainmentFieldGeneratorComponent, List<EntityUid>)> Connections
Field Value
Type Description
Dictionary<Direction, System.ValueTuple<ContainmentFieldGeneratorComponent, List<EntityUid>>>
| Improve this Doc View Source

CreatedField

What fields should this spawn?

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

Enabled

Is the generator toggled on?

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

IDTag

What collision should power this generator? It really shouldn't be anything but an emitter bolt but it's here for fun.

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

IsConnected

Is this generator connected to fields?

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

MaxLength

How many tiles should this field check before giving up?

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

PowerLoss

How much power should this field generator lose if not powered?

Declaration
public int PowerLoss
Field Value
Type Description
System.Int32
| Improve this Doc View Source

PowerMinimum

The minimum the field generator needs to start generating a connection

Declaration
public int PowerMinimum
Field Value
Type Description
System.Int32
| Improve this Doc View Source

PowerReceived

How much power should this field generator receive from a collision

Declaration
public int PowerReceived
Field Value
Type Description
System.Int32
| Improve this Doc View Source

Threshold

How many seconds should the generators wait before losing power?

Declaration
public float Threshold
Field Value
Type Description
System.Single

Properties

| Improve this Doc View Source

PowerBuffer

Store power with a cap. Decrease over time if not being powered from source.

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