using Content.Server.Animals.Systems;
using Content.Shared.Chemistry.Reagent;
using Content.Shared.FixedPoint;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
namespace Content.Server.Animals.Components
{
[RegisterComponent, Access(typeof(UdderSystem))]
internal sealed class UdderComponent : Component
{
///
/// The reagent to produce.
///
[ViewVariables(VVAccess.ReadOnly)]
[DataField("reagentId", customTypeSerializer:typeof(PrototypeIdSerializer))]
public string ReagentId = "Milk";
///
/// The solution to add reagent to.
///
[ViewVariables(VVAccess.ReadOnly)]
[DataField("targetSolution")]
public string TargetSolutionName = "udder";
///
/// The amount of reagent to be generated on update.
///
[ViewVariables(VVAccess.ReadOnly)]
[DataField("quantity")]
public FixedPoint2 QuantityPerUpdate = 1;
///
/// The time between updates (in seconds).
///
[ViewVariables(VVAccess.ReadOnly)]
[DataField("updateRate")]
public float UpdateRate = 5;
public float AccumulatedFrameTime;
public bool BeingMilked;
}
}