ThiefUndeterminedBackpackComponent.cs 932 B

1234567891011121314151617181920212223242526272829303132
  1. using Content.Server.Thief.Systems;
  2. using Content.Shared.Thief;
  3. using Robust.Shared.Audio;
  4. using Robust.Shared.Prototypes;
  5. namespace Content.Server.Thief.Components;
  6. /// <summary>
  7. /// This component stores the possible contents of the backpack,
  8. /// which can be selected via the interface.
  9. /// </summary>
  10. [RegisterComponent, Access(typeof(ThiefUndeterminedBackpackSystem))]
  11. public sealed partial class ThiefUndeterminedBackpackComponent : Component
  12. {
  13. /// <summary>
  14. /// List of sets available for selection
  15. /// </summary>
  16. [DataField]
  17. public List<ProtoId<ThiefBackpackSetPrototype>> PossibleSets = new();
  18. [DataField]
  19. public List<int> SelectedSets = new();
  20. [DataField]
  21. public SoundSpecifier ApproveSound = new SoundPathSpecifier("/Audio/Effects/rustle1.ogg");
  22. /// <summary>
  23. /// Max number of sets you can select.
  24. /// </summary>
  25. [DataField]
  26. public int MaxSelectedSets = 2;
  27. }