c756479239
* Fix mod SptVersion to be a range - SptVersion and ModDependencies now use a Range instead of a set version - Remove IsValid and IsValidRange checks from ModValidator, as invalid values will fail to parse into the strong types before this method is called - Remove unused "AnySatisfies" and "IsValid*" methods from ISemVer - Update TestMod to use Range types * Formatting --------- Co-authored-by: DrakiaXYZ <565558+TheDgtl@users.noreply.github.com>
14 lines
452 B
C#
14 lines
452 B
C#
using Range = SemanticVersioning.Range;
|
|
using Version = SemanticVersioning.Version;
|
|
|
|
namespace SPTarkov.Common.Semver;
|
|
|
|
public interface ISemVer
|
|
{
|
|
string MaxSatisfying(List<Version> versions);
|
|
string MaxSatisfying(IEnumerable<Version> versions);
|
|
string MaxSatisfying(string version, List<Version> versions);
|
|
string MaxSatisfying(string version, IEnumerable<Version> versions);
|
|
bool Satisfies(Version version, Range testRange);
|
|
}
|