Show / Hide Table of Contents

Class MaterialReclaimerComponent

This is a machine that handles converting entities into the raw materials and chemicals that make them up.

Inheritance
System.Object
MaterialReclaimerComponent
Namespace: Content.Shared.Materials
Assembly: Content.Shared.dll
Syntax
public sealed class MaterialReclaimerComponent : Component

Fields

| Improve this Doc View Source

BaseMaterialProcessRate

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

Blacklist

a blacklist for what entities cannot be inserted into this reclaimer

Declaration
public EntityWhitelist Blacklist
Field Value
Type Description
EntityWhitelist
| Improve this Doc View Source

CutOffSound

whether or not we cut off the sound early when the reclaiming ends.

Declaration
public bool CutOffSound
Field Value
Type Description
System.Boolean
| Improve this Doc View Source

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

Enabled

An "enable" toggle for things like interfacing with machine linking

Declaration
public bool Enabled
Field Value
Type Description
System.Boolean
| Improve this Doc View Source

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

| Improve this Doc View Source

MachinePartProcessRate

Machine part whose rating modifies MaterialProcessRate

Declaration
public ProtoId<MachinePartPrototype> MachinePartProcessRate
Field Value
Type Description
Robust.Shared.Prototypes.ProtoId<MachinePartPrototype>
| Improve this Doc View Source

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

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

NextSound

When the next sound will be allowed to be played. Used to prevent spam.

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

OutputSolution

The solution itself.

Declaration
public Solution OutputSolution
Field Value
Type Description
Solution
| Improve this Doc View Source

PartRatingProcessRateMultiplier

How much the machine part quality affects the MaterialProcessRate

Declaration
public float PartRatingProcessRateMultiplier
Field Value
Type Description
System.Single
| Improve this Doc View Source

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

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

SolutionContainerId

The id of our output solution

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

Sound

The sound played when something is being processed.

Declaration
public SoundSpecifier Sound
Field Value
Type Description
Robust.Shared.Audio.SoundSpecifier
| Improve this Doc View Source

SoundCooldown

Minimum time inbetween each Sound

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

Stream

Declaration
public IPlayingAudioStream Stream
Field Value
Type Description
Robust.Shared.Audio.IPlayingAudioStream
| Improve this Doc View Source

Whitelist

a whitelist for what entities can be inserted into this reclaimer

Declaration
public EntityWhitelist Whitelist
Field Value
Type Description
EntityWhitelist
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾