mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Promote Slot to DatItem
This commit is contained in:
@@ -155,6 +155,12 @@ namespace SabreTools.Library.DatFiles
|
||||
[JsonIgnore]
|
||||
public long SampleCount { get; private set; } = 0;
|
||||
|
||||
/// <summary>
|
||||
/// Number of Slot items
|
||||
/// </summary>
|
||||
[JsonIgnore]
|
||||
public long SlotCount { get; private set; } = 0;
|
||||
|
||||
/// <summary>
|
||||
/// Number of SoftwareList items
|
||||
/// </summary>
|
||||
@@ -558,6 +564,9 @@ namespace SabreTools.Library.DatFiles
|
||||
case ItemType.Sample:
|
||||
SampleCount++;
|
||||
break;
|
||||
case ItemType.Slot:
|
||||
SlotCount++;
|
||||
break;
|
||||
case ItemType.SoftwareList:
|
||||
SoftwareListCount++;
|
||||
break;
|
||||
@@ -705,6 +714,9 @@ namespace SabreTools.Library.DatFiles
|
||||
case ItemType.Sample:
|
||||
SampleCount--;
|
||||
break;
|
||||
case ItemType.Slot:
|
||||
SlotCount--;
|
||||
break;
|
||||
case ItemType.SoftwareList:
|
||||
SoftwareListCount--;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user