CatStation/Content.Shared/Body/InitialBodyComponent.cs
pathetic meowmeow 63c90e4d4e
Organ relations (#44812)
* Organ relations

* address reviews
2026-07-26 09:20:50 +00:00

24 lines
806 B
C#

using Robust.Shared.Prototypes;
namespace Content.Shared.Body;
/// <summary>
/// On map initialization, spawns the given organs into the body.
/// Liable to change as the body becomes more complex.
/// </summary>
[RegisterComponent]
[Access(typeof(InitialBodySystem))]
public sealed partial class InitialBodyComponent : Component
{
/// <summary>
/// The organs to spawn based on their category.
/// </summary>
[DataField(required: true)]
public Dictionary<ProtoId<OrganCategoryPrototype>, EntProtoId<OrganComponent>> Organs;
/// <summary>
/// Organ relationships, based on their categories. Keys are parents to their values.
/// </summary>
[DataField]
public Dictionary<ProtoId<OrganCategoryPrototype>, HashSet<ProtoId<OrganCategoryPrototype>>>? Relationships;
}