* unhardcode thief MaxSelectedSets * we do a little copy paste :trollface: * :trollface: --------- Co-authored-by: deltanedas <@deltanedas:kde.org>
33 lines
932 B
C#
33 lines
932 B
C#
using Content.Server.Thief.Systems;
|
|
using Content.Shared.Thief;
|
|
using Robust.Shared.Audio;
|
|
using Robust.Shared.Prototypes;
|
|
|
|
namespace Content.Server.Thief.Components;
|
|
|
|
/// <summary>
|
|
/// This component stores the possible contents of the backpack,
|
|
/// which can be selected via the interface.
|
|
/// </summary>
|
|
[RegisterComponent, Access(typeof(ThiefUndeterminedBackpackSystem))]
|
|
public sealed partial class ThiefUndeterminedBackpackComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// List of sets available for selection
|
|
/// </summary>
|
|
[DataField]
|
|
public List<ProtoId<ThiefBackpackSetPrototype>> PossibleSets = new();
|
|
|
|
[DataField]
|
|
public List<int> SelectedSets = new();
|
|
|
|
[DataField]
|
|
public SoundSpecifier ApproveSound = new SoundPathSpecifier("/Audio/Effects/rustle1.ogg");
|
|
|
|
/// <summary>
|
|
/// Max number of sets you can select.
|
|
/// </summary>
|
|
[DataField]
|
|
public int MaxSelectedSets = 2;
|
|
}
|