Co-authored-by: a.rudenko <creadth@gmail.com> Co-authored-by: creadth <creadth@users.noreply.github.com> Co-authored-by: DrSmugleaf <DrSmugleaf@users.noreply.github.com>
26 lines
702 B
C#
26 lines
702 B
C#
using Content.Server.Atmos;
|
|
using Content.Server.Interfaces;
|
|
using Robust.Shared.GameObjects;
|
|
using Robust.Shared.Serialization;
|
|
using Robust.Shared.ViewVariables;
|
|
|
|
namespace Content.Server.GameObjects.Components.Atmos
|
|
{
|
|
[RegisterComponent]
|
|
public class GasMixtureHolderComponent : Component, IGasMixtureHolder
|
|
{
|
|
public override string Name => "GasMixtureHolder";
|
|
|
|
[ViewVariables] public GasMixture Air { get; set; }
|
|
|
|
public override void ExposeData(ObjectSerializer serializer)
|
|
{
|
|
base.ExposeData(serializer);
|
|
|
|
Air = new GasMixture();
|
|
|
|
serializer.DataField(this, x => x.Air, "air", new GasMixture());
|
|
}
|
|
}
|
|
}
|