Switch back to record structs

This commit is contained in:
Asriel Camora
2023-07-21 15:53:50 +04:00
parent f1f60752b5
commit 0e6fbe5418
3 changed files with 3 additions and 12 deletions
+1 -4
View File
@@ -5,7 +5,7 @@ using System.Runtime.InteropServices;
namespace Craftimizer.Simulator;
[StructLayout(LayoutKind.Auto)]
public struct ActionStates
public record struct ActionStates
{
public byte TouchComboIdx;
public byte CarefulObservationCount;
@@ -30,7 +30,4 @@ public struct ActionStates
Observed = baseAction is Observe;
}
public override readonly string ToString() =>
$"ActionStates {{ TouchComboIdx = {TouchComboIdx}, CarefulObservationCount = {CarefulObservationCount}, UsedHeartAndSoul = {UsedHeartAndSoul}, Observed = {Observed} }}";
}