Class EventHorizonComponent
A component that makes the associated entity destroy other within some distance of itself. Also makes the associated entity destroy other entities upon contact. Primarily managed by SharedEventHorizonSystem and its server/client versions.
Inheritance
Namespace: Content.Shared.Singularity.Components
Assembly: Content.Shared.dll
Syntax
public sealed class EventHorizonComponent : Component
Fields
| Improve this Doc View SourceBeingConsumedByAnotherEventHorizon
Whether the entity this event horizon is attached to is being consumed by another event horizon.
Declaration
public bool BeingConsumedByAnotherEventHorizon
Field Value
Type | Description |
---|---|
System.Boolean |
CanBreachContainment
Whether the event horizon can consume/destroy the devices built to contain it. If you want to set this go through SetCanBreachContainment(EntityUid, Boolean, Boolean, EventHorizonComponent).
Declaration
public bool CanBreachContainment
Field Value
Type | Description |
---|---|
System.Boolean |
ColliderFixtureId
The ID of the fixture used to detect if the event horizon has collided with any physics objects.
Can be set to null, in which case no such fixture is used.
If you want to set this go through
Declaration
public string? ColliderFixtureId
Field Value
Type | Description |
---|---|
System.Nullable<System.String> |
ConsumerFixtureId
The ID of the fixture used to detect if the event horizon has collided with any physics objects.
Can be set to null, in which case no such fixture is used.
If you want to set this go through
Declaration
public string? ConsumerFixtureId
Field Value
Type | Description |
---|---|
System.Nullable<System.String> |
NextConsumeWaveTime
The next time at which this consumed everything it overlapped with.
Declaration
public TimeSpan NextConsumeWaveTime
Field Value
Type | Description |
---|---|
TimeSpan |
Radius
The radius of the event horizon within which it will destroy all entities and tiles. If < 0.0 this behavior will not be active. If you want to set this go through SetRadius(EntityUid, Single, Boolean, EventHorizonComponent).
Declaration
public float Radius
Field Value
Type | Description |
---|---|
System.Single |
TargetConsumePeriod
The amount of time that should elapse between this event horizon consuming everything it overlaps with.
Declaration
public TimeSpan TargetConsumePeriod
Field Value
Type | Description |
---|---|
TimeSpan |