2023-12-27 23:42:15 +03:00
|
|
|
using Content.Server.Thief.Systems;
|
2023-12-24 12:58:28 +03:00
|
|
|
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>
|
2023-12-27 23:42:15 +03:00
|
|
|
[RegisterComponent, Access(typeof(ThiefUndeterminedBackpackSystem))]
|
2023-12-24 12:58:28 +03:00
|
|
|
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]
|
2025-04-01 00:32:31 +02:00
|
|
|
public SoundCollectionSpecifier ApproveSound = new SoundCollectionSpecifier("storageRustle");
|
2024-06-19 00:29:06 +00:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Max number of sets you can select.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField]
|
|
|
|
|
public int MaxSelectedSets = 2;
|
2025-04-01 00:32:31 +02:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// What entity all the spawned items will appear inside of
|
|
|
|
|
/// If null, will instead drop on the ground.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField]
|
|
|
|
|
public EntProtoId? SpawnedStoragePrototype;
|
2023-12-24 12:58:28 +03:00
|
|
|
}
|