add heels to api
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
{
|
||||
public class Api
|
||||
{
|
||||
public const int Version = 13;
|
||||
public const int Version = 14;
|
||||
public const string Path = "/mare";
|
||||
|
||||
public const string SendFileAbortUpload = "AbortUpload";
|
||||
|
||||
@@ -16,6 +16,8 @@ namespace MareSynchronos.API
|
||||
+ string.Join(Environment.NewLine, FileReplacements.Select(g => g.Key + Environment.NewLine + string.Join(Environment.NewLine, g.Value)));
|
||||
}
|
||||
|
||||
public float HeelsOffset { get; set; } = 0.0f;
|
||||
|
||||
public static int GetOrderIndependentHashCode<T>(IEnumerable<T> source)
|
||||
{
|
||||
int hash = 0;
|
||||
@@ -44,7 +46,7 @@ namespace MareSynchronos.API
|
||||
glamourerHash = unchecked(glamourerHash + item.Value.GetHashCode());
|
||||
}
|
||||
|
||||
return HashCode.Combine(fileReplacementsHash, glamourerHash, ManipulationData);
|
||||
return HashCode.Combine(fileReplacementsHash, glamourerHash, ManipulationData, HeelsOffset);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace MareSynchronos.API
|
||||
public override bool Equals(object? otherObj)
|
||||
{
|
||||
if (otherObj == null || otherObj is not FileReplacementDto other) return false;
|
||||
return Hash == other.Hash && Enumerable.SequenceEqual(GamePaths, other.GamePaths);
|
||||
return Hash == other.Hash && Enumerable.SequenceEqual(GamePaths, other.GamePaths) && FileSwapPath == other.FileSwapPath;
|
||||
}
|
||||
|
||||
public override int GetHashCode()
|
||||
|
||||
Reference in New Issue
Block a user