2023-04-11 17:20:47 -07:00
|
|
|
namespace Content.Client.Inventory;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// A character UI which shows items the user has equipped within his inventory
|
|
|
|
|
/// </summary>
|
|
|
|
|
[RegisterComponent]
|
|
|
|
|
[Access(typeof(ClientInventorySystem))]
|
2023-08-22 18:14:33 -07:00
|
|
|
public sealed partial class InventorySlotsComponent : Component
|
2023-04-11 17:20:47 -07:00
|
|
|
{
|
|
|
|
|
[ViewVariables]
|
|
|
|
|
public readonly Dictionary<string, ClientInventorySystem.SlotData> SlotData = new ();
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Data about the current layers that have been added to the players sprite due to the items in each equipment slot.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[ViewVariables]
|
|
|
|
|
[Access(typeof(ClientInventorySystem), Other = AccessPermissions.ReadWriteExecute)] // FIXME Friends
|
|
|
|
|
public readonly Dictionary<string, HashSet<string>> VisualLayerKeys = new();
|
|
|
|
|
}
|