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.Single |
Blacklist
a blacklist for what entities cannot be inserted into this reclaimer
Declaration
public EntityWhitelist Blacklist
Field Value
Type | Description |
---|---|
EntityWhitelist |
CutOffSound
whether or not we cut off the sound early when the reclaiming ends.
Declaration
public bool CutOffSound
Field Value
Type | Description |
---|---|
System.Boolean |
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.Single |
Enabled
An "enable" toggle for things like interfacing with machine linking
Declaration
public bool Enabled
Field Value
Type | Description |
---|---|
System.Boolean |
ItemsProcessed
A counter of how many items have been processed
Declaration
public int ItemsProcessed
Field Value
Type | Description |
---|---|
System.Int32 |
Remarks
I saw this on the recycler and i'm porting it because it's cute af
MachinePartProcessRate
Machine part whose rating modifies MaterialProcessRate
Declaration
public ProtoId<MachinePartPrototype> MachinePartProcessRate
Field Value
Type | Description |
---|---|
Robust.Shared.Prototypes.ProtoId<MachinePartPrototype> |
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.Single |
MinimumProcessDuration
The minimum amount fo time it can take to process an entity. this value supercedes the calculated one using MaterialProcessRate
Declaration
public TimeSpan MinimumProcessDuration
Field Value
Type | Description |
---|---|
TimeSpan |
NextSound
When the next sound will be allowed to be played. Used to prevent spam.
Declaration
public TimeSpan NextSound
Field Value
Type | Description |
---|---|
TimeSpan |
OutputSolution
The solution itself.
Declaration
public Solution OutputSolution
Field Value
Type | Description |
---|---|
Solution |
PartRatingProcessRateMultiplier
How much the machine part quality affects the MaterialProcessRate
Declaration
public float PartRatingProcessRateMultiplier
Field Value
Type | Description |
---|---|
System.Single |
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.Boolean |
ScaleProcessSpeed
Whether or not the process speed scales with the amount of materials being processed or if it's just MinimumProcessDuration
Declaration
public bool ScaleProcessSpeed
Field Value
Type | Description |
---|---|
System.Boolean |
SolutionContainerId
The id of our output solution
Declaration
public string SolutionContainerId
Field Value
Type | Description |
---|---|
System.String |
Sound
The sound played when something is being processed.
Declaration
public SoundSpecifier Sound
Field Value
Type | Description |
---|---|
Robust.Shared.Audio.SoundSpecifier |
SoundCooldown
Minimum time inbetween each Sound
Declaration
public TimeSpan SoundCooldown
Field Value
Type | Description |
---|---|
TimeSpan |
Stream
Declaration
public IPlayingAudioStream Stream
Field Value
Type | Description |
---|---|
Robust.Shared.Audio.IPlayingAudioStream |
Whitelist
a whitelist for what entities can be inserted into this reclaimer
Declaration
public EntityWhitelist Whitelist
Field Value
Type | Description |
---|---|
EntityWhitelist |