Show / Hide Table of Contents

Class ReactionPrototype

Prototype for chemical reaction definitions

Inheritance
System.Object
ReactionPrototype
Implements
Robust.Shared.Prototypes.IPrototype
IComparable<ReactionPrototype>
Namespace: Content.Shared.Chemistry.Reaction
Assembly: Content.Shared.dll
Syntax
public sealed class ReactionPrototype : object, IPrototype, IComparable<ReactionPrototype>

Fields

| Improve this Doc View Source

ConserveEnergy

If true, this reaction will attempt to conserve thermal energy.

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

Effects

Effects to be triggered when the reaction occurs.

Declaration
public List<ReagentEffect> Effects
Field Value
Type Description
List<ReagentEffect>
| Improve this Doc View Source

Impact

How dangerous is this effect? Stuff like bicaridine should be low, while things like methamphetamine or potas/water should be high.

Declaration
public LogImpact Impact
Field Value
Type Description
Content.Shared.Database.LogImpact
| Improve this Doc View Source

MaximumTemperature

The maximum temperature the reaction can occur at.

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

MinimumTemperature

The minimum temperature the reaction can occur at.

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

MixingCategories

The required mixing categories for an entity to mix the solution with for the reaction to occur

Declaration
public List<string>? MixingCategories
Field Value
Type Description
System.Nullable<List<System.String>>
| Improve this Doc View Source

Priority

Determines the order in which reactions occur. This should used to ensure that (in general) descriptive / pop-up generating and explosive reactions occur before things like foam/area effects.

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

Products

Reagents created when the reaction occurs.

Declaration
public Dictionary<string, FixedPoint2> Products
Field Value
Type Description
Dictionary<System.String, FixedPoint2>
| Improve this Doc View Source

Quantized

If true, this reaction will only consume only integer multiples of the reactant amounts. If there are not enough reactants, the reaction does not occur. Useful for spawn-entity reactions (e.g. creating cheese).

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

Reactants

Reactants required for the reaction to occur.

Declaration
public Dictionary<string, ReactantPrototype> Reactants
Field Value
Type Description
Dictionary<System.String, ReactantPrototype>

Properties

| Improve this Doc View Source

ID

Declaration
public string ID { get; }
Property Value
Type Description
System.String
| Improve this Doc View Source

Name

Declaration
public string Name { get; }
Property Value
Type Description
System.String
| Improve this Doc View Source

Sound

Declaration
public SoundSpecifier Sound { get; }
Property Value
Type Description
Robust.Shared.Audio.SoundSpecifier

Methods

| Improve this Doc View Source

CompareTo(ReactionPrototype)

Comparison for creating a sorted set of reactions. Determines the order in which reactions occur.

Declaration
public int CompareTo(ReactionPrototype other)
Parameters
Type Name Description
ReactionPrototype other
Returns
Type Description
System.Int32

Implements

Robust.Shared.Prototypes.IPrototype
IComparable<>
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾