add heels to api

This commit is contained in:
Stanley Dimant
2022-09-10 13:23:26 +02:00
parent 9bb99a5e68
commit 9dc1e901aa
3 changed files with 5 additions and 3 deletions

View File

@@ -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";

View File

@@ -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);
}
}
}

View File

@@ -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()