mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/PCK-Studio.git
synced 2026-05-22 23:35:30 +00:00
Core - Add ResourcePackImporter.cs
This commit is contained in:
16
PckStudio.Core/IO/Java/VersionRange.cs
Normal file
16
PckStudio.Core/IO/Java/VersionRange.cs
Normal 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}";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user