using Content.Server.Animals.Systems;
using Content.Shared.Chemistry.Reagent;
using Content.Shared.FixedPoint;
using Robust.Shared.Prototypes;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom;
///
/// Lets an animal grow a wool solution when not hungry.
///
[RegisterComponent, Access(typeof(WoolySystem))]
public sealed partial class WoolyComponent : Component
{
///
/// What reagent to grow.
///
[DataField, ViewVariables(VVAccess.ReadWrite)]
public ProtoId ReagentId = "Fiber";
///
/// How much wool to grow at every growth cycle.
///
[DataField, ViewVariables(VVAccess.ReadWrite)]
public FixedPoint2 Quantity = 25;
///
/// What solution to add the wool reagent to.
///
[DataField, ViewVariables(VVAccess.ReadWrite)]
public string Solution = "wool";
///
/// How long to wait before growing wool.
///
[DataField, ViewVariables(VVAccess.ReadWrite)]
public TimeSpan GrowthDelay = TimeSpan.FromMinutes(1);
///
/// When to next try growing wool.
///
[DataField(customTypeSerializer: typeof(TimeOffsetSerializer)), ViewVariables(VVAccess.ReadWrite)]
public TimeSpan NextGrowth = TimeSpan.FromSeconds(0);
}