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:
committed by
GitHub
parent
329926b175
commit
870d052354
@@ -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; }
|
||||
|
||||
}
|
||||
}
|
||||
@@ -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; }
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
using System;
|
||||
using Robust.Shared.Serialization;
|
||||
|
||||
namespace Content.Shared.GameObjects.Components.Atmos.GasTank
|
||||
{
|
||||
[Serializable, NetSerializable]
|
||||
public enum SharedGasTankUiKey
|
||||
{
|
||||
Key
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user