Gas tanks and masks (#2409)

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>
This commit is contained in:
Víctor Aguilera Puerto
2020-10-27 20:53:44 +01:00
committed by GitHub
parent 329926b175
commit 870d052354
77 changed files with 1653 additions and 58 deletions

View File

@@ -0,0 +1,16 @@
using System;
using Robust.Shared.GameObjects.Components.UserInterface;
using Robust.Shared.Serialization;
namespace Content.Shared.GameObjects.Components.Atmos.GasTank
{
[Serializable, NetSerializable]
public class GasTankBoundUserInterfaceState : BoundUserInterfaceState
{
public float TankPressure { get; set; }
public float? OutputPressure { get; set; }
public bool InternalsConnected { get; set; }
public bool CanConnectInternals { get; set; }
}
}

View File

@@ -0,0 +1,12 @@
using System;
using Robust.Shared.GameObjects.Components.UserInterface;
using Robust.Shared.Serialization;
namespace Content.Shared.GameObjects.Components.Atmos.GasTank
{
[Serializable, NetSerializable]
public class GasTankSetPressureMessage : BoundUserInterfaceMessage
{
public float Pressure { get; set; }
}
}

View File

@@ -0,0 +1,11 @@
using System;
using Robust.Shared.GameObjects.Components.UserInterface;
using Robust.Shared.Serialization;
namespace Content.Shared.GameObjects.Components.Atmos.GasTank
{
[Serializable, NetSerializable]
public class GasTankToggleInternalsMessage : BoundUserInterfaceMessage
{
}
}

View File

@@ -0,0 +1,10 @@
using Robust.Shared.GameObjects;
namespace Content.Shared.GameObjects.Components.Atmos.GasTank
{
public class SharedGasTankComponent : Component
{
public override string Name => "GasTank";
public override uint? NetID => ContentNetIDs.GAS_TANK;
}
}

View File

@@ -0,0 +1,11 @@
using System;
using Robust.Shared.Serialization;
namespace Content.Shared.GameObjects.Components.Atmos.GasTank
{
[Serializable, NetSerializable]
public enum SharedGasTankUiKey
{
Key
}
}