Move ItemType to untyped base class

This commit is contained in:
Matt Nadareski
2024-03-10 20:45:54 -04:00
parent 97542bf966
commit 49b7a5b273
7 changed files with 34 additions and 14 deletions

View File

@@ -84,6 +84,11 @@ namespace SabreTools.DatItems
#region Fields
/// <summary>
/// Item type for the object
/// </summary>
protected abstract ItemType ItemType { get; }
/// <summary>
/// Internal model wrapped by this DatItem
/// </summary>
@@ -703,14 +708,8 @@ namespace SabreTools.DatItems
/// </summary>
public abstract class DatItem<T> : DatItem, IEquatable<DatItem<T>>, IComparable<DatItem<T>>, ICloneable where T : Models.Metadata.DatItem
{
// TODO: Move to base class after implementation
#region Fields
/// <summary>
/// Item type for the object
/// </summary>
protected abstract ItemType ItemType { get; }
/// <summary>
/// Key for accessing the item name, if it exists
/// </summary>
@@ -765,7 +764,6 @@ namespace SabreTools.DatItems
#endregion
// TODO: Figure out how to replace individual versions with this
#region Cloning Methods
/// <summary>