Class SalvageMagnetComponent
A salvage magnet.
Namespace: Content.Server.Salvage
Assembly: Content.Server.dll
Syntax
public sealed class SalvageMagnetComponent : SharedSalvageMagnetComponent
Fields
| Improve this Doc View SourceAsteroidChance
The chance that a random procgen asteroid will be generated rather than a static salvage prototype.
Declaration
public float AsteroidChance
Field Value
Type | Description |
---|---|
System.Single |
AsteroidPool
A weighted random prototype corresponding to what asteroid entities will be generated.
Declaration
public string AsteroidPool
Field Value
Type | Description |
---|---|
System.String |
AttachedEntity
The entity attached to the magnet
Declaration
public EntityUid? AttachedEntity
Field Value
Type | Description |
---|---|
System.Nullable<EntityUid> |
AttachingTime
How long it actually takes for the magnet to pull in the debris
Declaration
public TimeSpan AttachingTime
Field Value
Type | Description |
---|---|
TimeSpan |
BaseAttachingTime
How long it takes for the magnet to pull in the debris
Declaration
public TimeSpan BaseAttachingTime
Field Value
Type | Description |
---|---|
TimeSpan |
BaseCooldownTime
How long the magnet has to cool down for after use
Declaration
public TimeSpan BaseCooldownTime
Field Value
Type | Description |
---|---|
TimeSpan |
ChargeCapacity
How much capacity the magnet can hold
Declaration
public int ChargeCapacity
Field Value
Type | Description |
---|---|
System.Int32 |
ChargeRemaining
Current how much charge the magnet currently has
Declaration
public int ChargeRemaining
Field Value
Type | Description |
---|---|
System.Int32 |
CooldownTime
How long the magnet actually has to cool down for after use
Declaration
public TimeSpan CooldownTime
Field Value
Type | Description |
---|---|
TimeSpan |
DetachingTime
How long the magnet can hold the debris while losing the lock
Declaration
public TimeSpan DetachingTime
Field Value
Type | Description |
---|---|
TimeSpan |
HoldTime
How long the magnet can hold the debris until it starts losing the lock
Declaration
public TimeSpan HoldTime
Field Value
Type | Description |
---|---|
TimeSpan |
MagnetState
Current state of this magnet
Declaration
public MagnetState MagnetState
Field Value
Type | Description |
---|---|
Content.Server.Salvage.MagnetState |
OffsetRadiusMax
Maximum distance from the offset position that will be used as a salvage's spawnpoint.
Declaration
public float OffsetRadiusMax
Field Value
Type | Description |
---|---|
System.Single |
PreviousCharge
Used as a guard to prevent spamming the appearance system
Declaration
public int PreviousCharge
Field Value
Type | Description |
---|---|
System.Int32 |
SalvageChannel
Declaration
public string SalvageChannel
Field Value
Type | Description |
---|---|
System.String |