mirror of
https://github.com/corvax-team/ss14-wl.git
synced 2026-02-15 03:31:38 +01:00
* 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
52 lines
1.5 KiB
C#
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;
|
|
}
|