Core - Add ResourcePackImporter.cs

This commit is contained in:
miku-666
2025-12-02 19:20:35 +01:00
parent 440dadec35
commit 8a8c4330fd
28 changed files with 3384 additions and 126 deletions

View File

@@ -0,0 +1,16 @@
using System;
namespace PckStudio.Core.IO.Java
{
class VersionRange(Version min, Version max) : IVersion
{
private readonly Version _min = min;
private readonly Version _max = max;
public VersionRange(string min, string max) : this(new Version(min), new Version(max)) { }
public bool Equals(Version other) => _min <= other && other <= _max;
public string ToString(string seperator) => $"{_min}{seperator}{_max}";
}
}