| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- using Robust.Shared.Prototypes;
- namespace Content.Shared.Preferences.Loadouts;
- /// <summary>
- /// Corresponds to a set of loadouts for a particular slot.
- /// </summary>
- [Prototype]
- public sealed partial class LoadoutGroupPrototype : IPrototype
- {
- [IdDataField]
- public string ID { get; private set; } = string.Empty;
- /// <summary>
- /// User-friendly name for the group.
- /// </summary>
- [DataField(required: true)]
- public LocId Name;
- /// <summary>
- /// Minimum number of loadouts that need to be specified for this category.
- /// </summary>
- [DataField]
- public int MinLimit = 1;
- /// <summary>
- /// Maximum limit for the category.
- /// </summary>
- [DataField]
- public int MaxLimit = 1;
- /// <summary>
- /// Hides the loadout group from the player.
- /// </summary>
- [DataField]
- public bool Hidden;
- [DataField(required: true)]
- public List<ProtoId<LoadoutPrototype>> Loadouts = new();
- }
|