| 1234567891011121314151617181920212223242526272829 |
- using Robust.Shared.Prototypes;
- namespace Content.Shared.Body.Prototypes;
- [Prototype]
- public sealed partial class BodyPrototype : IPrototype
- {
- [IdDataField] public string ID { get; private set; } = default!;
- [DataField("name")]
- public string Name { get; private set; } = "";
- [DataField("root")] public string Root { get; private set; } = string.Empty;
- [DataField("slots")] public Dictionary<string, BodyPrototypeSlot> Slots { get; private set; } = new();
- private BodyPrototype() { }
- public BodyPrototype(string id, string name, string root, Dictionary<string, BodyPrototypeSlot> slots)
- {
- ID = id;
- Name = name;
- Root = root;
- Slots = slots;
- }
- }
- [DataRecord]
- public sealed partial record BodyPrototypeSlot(EntProtoId? Part, HashSet<string> Connections, Dictionary<string, string> Organs);
|