Fix some mispredict reconciliation issues. (#6319)

Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
This commit is contained in:
Leon Friedrich
2022-01-31 05:34:48 +13:00
committed by GitHub
parent 90b2f716a4
commit d40bcc9168
15 changed files with 110 additions and 71 deletions

View File

@@ -718,7 +718,7 @@ namespace Content.Shared.Hands.Components
}
[Serializable, NetSerializable]
public class HandsVisualState
public class HandsVisualState : ICloneable
{
public List<HandVisualState> Hands { get; } = new();
@@ -726,10 +726,15 @@ namespace Content.Shared.Hands.Components
{
Hands = hands;
}
public object Clone()
{
return new HandsVisualState(new List<HandVisualState>(Hands));
}
}
[Serializable, NetSerializable]
public class HandVisualState
public struct HandVisualState
{
public string RsiPath { get; }
public string? EquippedPrefix { get; }