mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 18:31:17 +03:00
24 lines
806 B
C#
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;
|
|
}
|