ItemBlock.cs 908 B

123456789101112131415161718192021222324252627282930313233343536
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace SOTF_Struct.Generic {
  7. /// <summary>
  8. ///
  9. /// </summary>
  10. public class UniqueItem {
  11. public List<Module> Modules { get; set; } = new List<Module>();
  12. }
  13. /// <summary>
  14. /// The ItemBlock class. It is used in inventory, storages, ....
  15. /// </summary>
  16. public class ItemBlock {
  17. /// <summary>
  18. /// The item ID. Sea "items_v2.json" for a list of Items
  19. /// </summary>
  20. public int ItemId { get; set; } = 0;
  21. /// <summary>
  22. /// The amount of this item
  23. /// </summary>
  24. public int TotalCount { get; set; } = 0;
  25. /// <summary>
  26. /// A list of each items value
  27. /// </summary>
  28. public List<UniqueItem> UniqueItems { get; set; } = new List<UniqueItem>();
  29. }
  30. }