InventorySlotsComponent.cs 754 B

12345678910111213141516171819
  1. namespace Content.Client.Inventory;
  2. /// <summary>
  3. /// A character UI which shows items the user has equipped within his inventory
  4. /// </summary>
  5. [RegisterComponent]
  6. [Access(typeof(ClientInventorySystem))]
  7. public sealed partial class InventorySlotsComponent : Component
  8. {
  9. [ViewVariables]
  10. public readonly Dictionary<string, ClientInventorySystem.SlotData> SlotData = new ();
  11. /// <summary>
  12. /// Data about the current layers that have been added to the players sprite due to the items in each equipment slot.
  13. /// </summary>
  14. [ViewVariables]
  15. [Access(typeof(ClientInventorySystem), Other = AccessPermissions.ReadWriteExecute)] // FIXME Friends
  16. public readonly Dictionary<string, HashSet<string>> VisualLayerKeys = new();
  17. }