Class MaterialReclaimerComponent
This is a machine that handles converting entities into the raw materials and chemicals that make them up.
Inheritance
Namespace: Content.Shared.Materials
Assembly: Content.Shared.dll
Syntax
public sealed class MaterialReclaimerComponent : Component
Fields
| Improve this Doc View SourceBaseMaterialProcessRate
How quickly it takes to consume X amount of materials per second. For example, with a rate of 50, an entity with 100 total material takes 2 seconds to process.
Declaration
public float BaseMaterialProcessRate
Field Value
Type | Description |
---|---|
System. |
Blacklist
a blacklist for what entities cannot be inserted into this reclaimer
Declaration
public EntityWhitelist Blacklist
Field Value
Type | Description |
---|---|
Entity |
CutOffSound
whether or not we cut off the sound early when the reclaiming ends.
Declaration
public bool CutOffSound
Field Value
Type | Description |
---|---|
System. |
Efficiency
How efficiently the materials are reclaimed. In practice, a multiplier per material when calculating the output of the reclaimer.
Declaration
public float Efficiency
Field Value
Type | Description |
---|---|
System. |
Enabled
An "enable" toggle for things like interfacing with machine linking
Declaration
public bool Enabled
Field Value
Type | Description |
---|---|
System. |
ItemsProcessed
A counter of how many items have been processed
Declaration
public int ItemsProcessed
Field Value
Type | Description |
---|---|
System. |
Remarks
I saw this on the recycler and i'm porting it because it's cute af
MachinePartProcessRate
Machine part whose rating modifies Material
Declaration
public ProtoId<MachinePartPrototype> MachinePartProcessRate
Field Value
Type | Description |
---|---|
Robust. |
MaterialProcessRate
How quickly it takes to consume X amount of materials per second. For example, with a rate of 50, an entity with 100 total material takes 2 seconds to process.
Declaration
public float MaterialProcessRate
Field Value
Type | Description |
---|---|
System. |
MinimumProcessDuration
The minimum amount fo time it can take to process an entity.
this value supercedes the calculated one using Material
Declaration
public TimeSpan MinimumProcessDuration
Field Value
Type | Description |
---|---|
Time |
NextSound
When the next sound will be allowed to be played. Used to prevent spam.
Declaration
public TimeSpan NextSound
Field Value
Type | Description |
---|---|
Time |
OutputSolution
The solution itself.
Declaration
public Solution OutputSolution
Field Value
Type | Description |
---|---|
Solution |
PartRatingProcessRateMultiplier
How much the machine part quality affects the Material
Declaration
public float PartRatingProcessRateMultiplier
Field Value
Type | Description |
---|---|
System. |
Powered
Whether or not the machine has power. We put it here so we can network and predict it.
Declaration
public bool Powered
Field Value
Type | Description |
---|---|
System. |
ScaleProcessSpeed
Whether or not the process
speed scales with the amount of materials being processed
or if it's just Minimum
Declaration
public bool ScaleProcessSpeed
Field Value
Type | Description |
---|---|
System. |
SolutionContainerId
The id of our output solution
Declaration
public string SolutionContainerId
Field Value
Type | Description |
---|---|
System. |
Sound
The sound played when something is being processed.
Declaration
public SoundSpecifier Sound
Field Value
Type | Description |
---|---|
Robust. |
SoundCooldown
Minimum time inbetween each Sound
Declaration
public TimeSpan SoundCooldown
Field Value
Type | Description |
---|---|
Time |
Stream
Declaration
public IPlayingAudioStream Stream
Field Value
Type | Description |
---|---|
Robust. |
Whitelist
a whitelist for what entities can be inserted into this reclaimer
Declaration
public EntityWhitelist Whitelist
Field Value
Type | Description |
---|---|
Entity |