Show / Hide Table of Contents

Class SalvageMagnetComponent

A salvage magnet.

Inheritance
System.Object
SharedSalvageMagnetComponent
SalvageMagnetComponent
Namespace: Content.Server.Salvage
Assembly: Content.Server.dll
Syntax
public sealed class SalvageMagnetComponent : SharedSalvageMagnetComponent

Fields

| Improve this Doc View Source

AsteroidChance

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
| Improve this Doc View Source

AsteroidPool

A weighted random prototype corresponding to what asteroid entities will be generated.

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

AttachedEntity

The entity attached to the magnet

Declaration
public EntityUid? AttachedEntity
Field Value
Type Description
System.Nullable<EntityUid>
| Improve this Doc View Source

AttachingTime

How long it actually takes for the magnet to pull in the debris

Declaration
public TimeSpan AttachingTime
Field Value
Type Description
TimeSpan
| Improve this Doc View Source

BaseAttachingTime

How long it takes for the magnet to pull in the debris

Declaration
public TimeSpan BaseAttachingTime
Field Value
Type Description
TimeSpan
| Improve this Doc View Source

BaseCooldownTime

How long the magnet has to cool down for after use

Declaration
public TimeSpan BaseCooldownTime
Field Value
Type Description
TimeSpan
| Improve this Doc View Source

ChargeCapacity

How much capacity the magnet can hold

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

ChargeRemaining

Current how much charge the magnet currently has

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

CooldownTime

How long the magnet actually has to cool down for after use

Declaration
public TimeSpan CooldownTime
Field Value
Type Description
TimeSpan
| Improve this Doc View Source

DetachingTime

How long the magnet can hold the debris while losing the lock

Declaration
public TimeSpan DetachingTime
Field Value
Type Description
TimeSpan
| Improve this Doc View Source

HoldTime

How long the magnet can hold the debris until it starts losing the lock

Declaration
public TimeSpan HoldTime
Field Value
Type Description
TimeSpan
| Improve this Doc View Source

MagnetState

Current state of this magnet

Declaration
public MagnetState MagnetState
Field Value
Type Description
Content.Server.Salvage.MagnetState
| Improve this Doc View Source

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
| Improve this Doc View Source

PreviousCharge

Used as a guard to prevent spamming the appearance system

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

SalvageChannel

Declaration
public string SalvageChannel
Field Value
Type Description
System.String
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾