Files
tbd-station-14/Content.Shared/Random/RandomFillSolution.cs
DrSmugleaf 00826aaad6 Replace usages of customTypeSerializer PrototypeIdListSerializer with something that doesn't take 20 separate words to type out (#37959)
* Replace usages of customTypeSerializer PrototypeIdListSerializer with something that doesn't take 20 separate words to type out

* Missed one

* Missed another

* Fix data field ids
2025-07-10 05:06:51 +02:00

33 lines
898 B
C#

using Content.Shared.Chemistry.Reagent;
using Content.Shared.FixedPoint;
using Robust.Shared.Prototypes;
using Robust.Shared.Serialization;
namespace Content.Shared.Random;
/// <summary>
/// Data that specifies reagents that share the same weight and quantity for use with WeightedRandomSolution.
/// </summary>
[Serializable, NetSerializable]
[DataDefinition]
public sealed partial class RandomFillSolution
{
/// <summary>
/// Quantity of listed reagents.
/// </summary>
[DataField("quantity")]
public FixedPoint2 Quantity = 0;
/// <summary>
/// Random weight of listed reagents.
/// </summary>
[DataField("weight")]
public float Weight = 0;
/// <summary>
/// Listed reagents that the weight and quantity apply to.
/// </summary>
[DataField(required: true)]
public List<ProtoId<ReagentPrototype>> Reagents = new();
}