2021-02-27 04:12:09 +01:00
|
|
|
using System;
|
2021-06-09 22:19:39 +02:00
|
|
|
using Content.Shared.Chemistry.Reagent;
|
2021-01-24 14:18:12 +01:00
|
|
|
using Robust.Shared.GameObjects;
|
2021-07-12 01:32:10 -07:00
|
|
|
using Robust.Shared.GameStates;
|
2021-01-24 14:18:12 +01:00
|
|
|
using Robust.Shared.Serialization;
|
|
|
|
|
|
2021-06-09 22:19:39 +02:00
|
|
|
namespace Content.Shared.Chemistry.Components
|
2021-01-24 14:18:12 +01:00
|
|
|
{
|
2021-07-12 01:32:10 -07:00
|
|
|
[NetworkedComponent()]
|
2021-01-24 14:18:12 +01:00
|
|
|
public abstract class SharedHyposprayComponent : Component
|
|
|
|
|
{
|
|
|
|
|
public sealed override string Name => "Hypospray";
|
2021-09-06 15:49:44 +02:00
|
|
|
public const string SolutionName = "hypospray";
|
2021-01-24 14:18:12 +01:00
|
|
|
|
|
|
|
|
[Serializable, NetSerializable]
|
|
|
|
|
protected sealed class HyposprayComponentState : ComponentState
|
|
|
|
|
{
|
|
|
|
|
public ReagentUnit CurVolume { get; }
|
|
|
|
|
public ReagentUnit MaxVolume { get; }
|
|
|
|
|
|
2021-07-12 01:32:10 -07:00
|
|
|
public HyposprayComponentState(ReagentUnit curVolume, ReagentUnit maxVolume)
|
2021-01-24 14:18:12 +01:00
|
|
|
{
|
|
|
|
|
CurVolume = curVolume;
|
|
|
|
|
MaxVolume = maxVolume;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|