Moves SolutionContainerManagerComponent to Shared. (#20944)

This commit is contained in:
TemporalOroboros
2023-10-14 09:45:28 -07:00
committed by GitHub
parent 546fa44526
commit 0775ab6a14
91 changed files with 200 additions and 211 deletions

View File

@@ -0,0 +1,24 @@
using Content.Server.Chemistry.EntitySystems;
using Content.Shared.Random;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
namespace Content.Server.Chemistry.Components;
/// <summary>
/// Fills a solution container randomly using a weighted random prototype
/// </summary>
[RegisterComponent, Access(typeof(SolutionRandomFillSystem))]
public sealed partial class RandomFillSolutionComponent : Component
{
/// <summary>
/// Solution name which to add reagents to.
/// </summary>
[DataField("solution")]
public string Solution { get; set; } = "default";
/// <summary>
/// Weighted random fill prototype Id. Used to pick reagent and quantity.
/// </summary>
[DataField("weightedRandomId", required: true, customTypeSerializer: typeof(PrototypeIdSerializer<WeightedRandomFillSolutionPrototype>))]
public string? WeightedRandomId;
}