Show / Hide Table of Contents

Class GasMixture

A general-purpose, variable volume gas mixture.

Inheritance
System.Object
GasMixture
Implements
Robust.Shared.Serialization.ISerializationHooks
Namespace: Content.Server.Atmos
Assembly: Content.Server.dll
Syntax
public sealed class GasMixture : IEquatable<GasMixture>, ISerializationHooks

Constructors

| Improve this Doc View Source

GasMixture()

Declaration
public GasMixture()
| Improve this Doc View Source

GasMixture(Single)

Declaration
public GasMixture(float volume = 0F)
Parameters
Type Name Description
System.Single volume

Fields

| Improve this Doc View Source

Moles

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

ReactionResults

Declaration
public readonly Dictionary<GasReaction, float> ReactionResults
Field Value
Type Description
Dictionary<GasReaction, System.Single>

Properties

| Improve this Doc View Source

Immutable

Declaration
public bool Immutable { get; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

Pressure

Declaration
public float Pressure { get; }
Property Value
Type Description
System.Single
| Improve this Doc View Source

SpaceGas

Declaration
public static GasMixture SpaceGas { get; }
Property Value
Type Description
GasMixture
| Improve this Doc View Source

Temperature

Declaration
public float Temperature { get; set; }
Property Value
Type Description
System.Single
| Improve this Doc View Source

TotalMoles

Declaration
public float TotalMoles { get; }
Property Value
Type Description
System.Single
| Improve this Doc View Source

Volume

Declaration
public float Volume { get; set; }
Property Value
Type Description
System.Single

Methods

| Improve this Doc View Source

AdjustMoles(Gas, Single)

Declaration
public void AdjustMoles(Gas gas, float moles)
Parameters
Type Name Description
Gas gas
System.Single moles
| Improve this Doc View Source

AdjustMoles(Int32, Single)

Declaration
public void AdjustMoles(int gasId, float quantity)
Parameters
Type Name Description
System.Int32 gasId
System.Single quantity
| Improve this Doc View Source

Clear()

Declaration
public void Clear()
| Improve this Doc View Source

Clone()

Declaration
public GasMixture Clone()
Returns
Type Description
GasMixture
| Improve this Doc View Source

CopyFromMutable(GasMixture)

Declaration
public void CopyFromMutable(GasMixture sample)
Parameters
Type Name Description
GasMixture sample
| Improve this Doc View Source

Equals(GasMixture)

Declaration
public bool Equals(GasMixture other)
Parameters
Type Name Description
GasMixture other
Returns
Type Description
System.Boolean
| Improve this Doc View Source

Equals(Nullable<Object>)

Declaration
public override bool Equals(object? obj)
Parameters
Type Name Description
System.Nullable<System.Object> obj
Returns
Type Description
System.Boolean
| Improve this Doc View Source

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32
| Improve this Doc View Source

GetMoles(Gas)

Declaration
public float GetMoles(Gas gas)
Parameters
Type Name Description
Gas gas
Returns
Type Description
System.Single
| Improve this Doc View Source

GetMoles(Int32)

Declaration
public float GetMoles(int gasId)
Parameters
Type Name Description
System.Int32 gasId
Returns
Type Description
System.Single
| Improve this Doc View Source

MarkImmutable()

Declaration
public void MarkImmutable()
| Improve this Doc View Source

Multiply(Single)

Declaration
public void Multiply(float multiplier)
Parameters
Type Name Description
System.Single multiplier
| Improve this Doc View Source

Remove(Single)

Declaration
public GasMixture Remove(float amount)
Parameters
Type Name Description
System.Single amount
Returns
Type Description
GasMixture
| Improve this Doc View Source

RemoveRatio(Single)

Declaration
public GasMixture RemoveRatio(float ratio)
Parameters
Type Name Description
System.Single ratio
Returns
Type Description
GasMixture
| Improve this Doc View Source

RemoveVolume(Single)

Declaration
public GasMixture RemoveVolume(float vol)
Parameters
Type Name Description
System.Single vol
Returns
Type Description
GasMixture
| Improve this Doc View Source

SetMoles(Gas, Single)

Declaration
public void SetMoles(Gas gas, float quantity)
Parameters
Type Name Description
Gas gas
System.Single quantity
| Improve this Doc View Source

SetMoles(Int32, Single)

Declaration
public void SetMoles(int gasId, float quantity)
Parameters
Type Name Description
System.Int32 gasId
System.Single quantity
| Improve this Doc View Source

ToPrettyString()

Declaration
public GasMixtureStringRepresentation ToPrettyString()
Returns
Type Description
Content.Server.Atmos.GasMixtureStringRepresentation

Explicit Interface Implementations

| Improve this Doc View Source

ISerializationHooks.AfterDeserialization()

Declaration
void ISerializationHooks.AfterDeserialization()

Implements

Robust.Shared.Serialization.ISerializationHooks
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾