Files
tbd-station-14/Content.Shared/Chemistry/Components/SharedHyposprayComponent.cs
mirrorcult e2205e418b Epinephrine + epipen (#5444)
* add sprite and basic entity, no reagent or testing

* actually implement epinephrine and add it to the box

* allow creating it

* add it to nanomed

* fig
2021-11-22 23:51:51 -07:00

33 lines
969 B
C#

using System;
using Content.Shared.Chemistry.Reagent;
using Content.Shared.FixedPoint;
using Robust.Shared.GameObjects;
using Robust.Shared.GameStates;
using Robust.Shared.Serialization;
using Robust.Shared.Serialization.Manager.Attributes;
namespace Content.Shared.Chemistry.Components
{
[NetworkedComponent()]
public abstract class SharedHyposprayComponent : Component
{
public sealed override string Name => "Hypospray";
[DataField("solutionName")]
public string SolutionName = "hypospray";
[Serializable, NetSerializable]
protected sealed class HyposprayComponentState : ComponentState
{
public FixedPoint2 CurVolume { get; }
public FixedPoint2 MaxVolume { get; }
public HyposprayComponentState(FixedPoint2 curVolume, FixedPoint2 maxVolume)
{
CurVolume = curVolume;
MaxVolume = maxVolume;
}
}
}
}