using Content.Server.Chemistry.EntitySystems;
using Content.Shared.FixedPoint;
using Content.Shared.Random;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
namespace Content.Server.Chemistry.Components.SolutionManager;
///
/// Fills a solution container randomly using a weighted random prototype
///
[RegisterComponent, Access(typeof(SolutionRandomFillSystem))]
public sealed class RandomFillSolutionComponent : Component
{
///
/// Solution name which to add reagents to.
///
[DataField("solution")]
public string Solution { get; set; } = "default";
///
/// Weighted random prototype Id. Used to pick reagent.
///
[DataField("weightedRandomId", required: true, customTypeSerializer: typeof(PrototypeIdSerializer))]
public string WeightedRandomId { get; set; } = "default";
///
/// Amount of reagent to add.
///
[DataField("quantity")]
public FixedPoint2 Quantity { get; set; } = 0;
}