Files
ss14-wega/Content.Server/Thief/Components/ThiefUndeterminedBackpackComponent.cs
imatsoup 62fbac7a13 Change thief backpack ui name and description with Component fields (#41583)
* Add new name and description fields to the thiefbackpack component and ui

* Change fields to locids, remove Title from menu.xaml, add comments to  thiefbackpackui.cs
2025-11-27 16:28:18 +00:00

52 lines
1.5 KiB
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 SoundCollectionSpecifier ApproveSound = new SoundCollectionSpecifier("storageRustle");
/// <summary>
/// Max number of sets you can select.
/// </summary>
[DataField]
public int MaxSelectedSets = 2;
/// <summary>
/// Title field for undetermined equipment ui.
/// </summary>
[DataField]
public LocId ToolName = "thief-backpack-window-title";
/// <summary>
/// Description field for undetermined equipment ui.
/// </summary>
[DataField]
public LocId ToolDesc = "thief-backpack-window-description";
/// <summary>
/// What entity all the spawned items will appear inside of
/// If null, will instead drop on the ground.
/// </summary>
[DataField]
public EntProtoId? SpawnedStoragePrototype;
}