Class GasMixture
A general-purpose, variable volume gas mixture.
Inheritance
System.Object
GasMixture
Implements
Robust.Shared.Serialization.ISerializationHooks
Assembly: Content.Server.dll
Syntax
public sealed class GasMixture : IEquatable<GasMixture>, ISerializationHooks
Constructors
|
Improve this Doc
View Source
GasMixture()
Declaration
|
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
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
|
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
|
Improve this Doc
View Source
Clone()
Declaration
public GasMixture Clone()
Returns
|
Improve this Doc
View Source
CopyFromMutable(GasMixture)
Declaration
public void CopyFromMutable(GasMixture sample)
Parameters
|
Improve this Doc
View Source
Equals(GasMixture)
Declaration
public bool Equals(GasMixture other)
Parameters
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
|
Improve this Doc
View Source
RemoveRatio(Single)
Declaration
public GasMixture RemoveRatio(float ratio)
Parameters
Type |
Name |
Description |
System.Single |
ratio |
|
Returns
|
Improve this Doc
View Source
RemoveVolume(Single)
Declaration
public GasMixture RemoveVolume(float vol)
Parameters
Type |
Name |
Description |
System.Single |
vol |
|
Returns
|
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