mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 10:21:18 +03:00
* giant protoid cleanup * yml changes * ! --------- Co-authored-by: deltanedas <@deltanedas:goida.zip>
31 lines
1.1 KiB
C#
31 lines
1.1 KiB
C#
using Content.Shared.Chemistry.Reagent;
|
|
using Content.Shared.FixedPoint;
|
|
using Robust.Shared.Prototypes;
|
|
|
|
namespace Content.Shared.Materials;
|
|
|
|
/// <summary>
|
|
/// This is used for assigning an innate material/chemical composition to an entity.
|
|
/// These aren't materials per se, but rather the materials which "make up" an entity.
|
|
/// This also isn't something that should exist simultaneously with <see cref="MaterialComponent"/>.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// The reason for duel material/chemical is for the eventual
|
|
/// combination of the two systems.
|
|
/// </remarks>
|
|
[RegisterComponent]
|
|
public sealed partial class PhysicalCompositionComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// The materials that "make up" this entity
|
|
/// </summary>
|
|
[DataField]
|
|
public Dictionary<ProtoId<MaterialPrototype>, int> MaterialComposition = new();
|
|
|
|
/// <summary>
|
|
/// The chemicals that "make up" this entity
|
|
/// </summary>
|
|
[DataField]
|
|
public Dictionary<ProtoId<ReagentPrototype>, FixedPoint2> ChemicalComposition = new();
|
|
// TODO use ReagentQuantity[]
|
|
}
|