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 Effects
public record struct Effects
{
public byte InnerQuiet;
public byte WasteNot;
@@ -113,7 +113,4 @@ public struct Effects
if (Manipulation > 0)
Manipulation--;
}
public override readonly string ToString() =>
$"Effects {{ InnerQuiet = {InnerQuiet}, WasteNot = {WasteNot}, Veneration = {Veneration}, GreatStrides = {GreatStrides}, Innovation = {Innovation}, FinalAppraisal = {FinalAppraisal}, WasteNot2 = {WasteNot2}, MuscleMemory = {MuscleMemory}, Manipulation = {Manipulation}, HeartAndSoul = {HeartAndSoul} }}";
}