mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/PCK-Studio.git
synced 2026-08-02 15:42:36 +00:00
Core - Move InvalidDLCPackage class into DLCPackage.cs
This commit is contained in:
@@ -10,6 +10,7 @@ namespace PckStudio.Core.DLC
|
||||
{
|
||||
public abstract class DLCPackage : IDLCPackage
|
||||
{
|
||||
public static IDLCPackage Invalid = new InvalidDLCPackage();
|
||||
protected DLCPackage(string name, int identifier, IDLCPackage parentPackage)
|
||||
{
|
||||
Name = name;
|
||||
@@ -17,6 +18,13 @@ namespace PckStudio.Core.DLC
|
||||
ParentPackage = parentPackage;
|
||||
}
|
||||
|
||||
private sealed class InvalidDLCPackage : DLCPackage
|
||||
{
|
||||
internal InvalidDLCPackage() : base(nameof(InvalidDLCPackage), -1, null) { }
|
||||
|
||||
public override DLCPackageType GetDLCPackageType() => DLCPackageType.Invalid;
|
||||
}
|
||||
|
||||
public int Identifier { get; }
|
||||
|
||||
public string Name { get; } = string.Empty;
|
||||
|
||||
Reference in New Issue
Block a user