Files
crystall-punk-14/Content.Shared/Chemistry/Components/SharedHyposprayComponent.cs

27 lines
721 B
C#
Raw Normal View History

using Content.Shared.FixedPoint;
using Robust.Shared.GameStates;
using Robust.Shared.Serialization;
2021-06-09 22:19:39 +02:00
namespace Content.Shared.Chemistry.Components
{
[NetworkedComponent()]
public abstract class SharedHyposprayComponent : Component
{
[DataField("solutionName")]
public string SolutionName = "hypospray";
2022-09-11 08:53:17 +02:00
}
2022-09-11 08:53:17 +02:00
[Serializable, NetSerializable]
public sealed class HyposprayComponentState : ComponentState
{
public FixedPoint2 CurVolume { get; }
public FixedPoint2 MaxVolume { get; }
2022-09-11 08:53:17 +02:00
public HyposprayComponentState(FixedPoint2 curVolume, FixedPoint2 maxVolume)
{
CurVolume = curVolume;
MaxVolume = maxVolume;
}
}
}