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
@@ -3,7 +3,7 @@ using System.Runtime.InteropServices;
namespace Craftimizer.Simulator;
[StructLayout(LayoutKind.Auto)]
public struct SimulationState
public record struct SimulationState
{
public readonly SimulationInput Input;
@@ -42,7 +42,4 @@ public struct SimulationState
ActionCount = 0;
ActionStates = new();
}
public override readonly string ToString() =>
$"SimulationState {{ Input = {Input}, ActionCount = {ActionCount}, StepCount = {StepCount}, Progress = {Progress}, Quality = {Quality}, Durability = {Durability}, CP = {CP}, Condition = {Condition}, ActiveEffects = {ActiveEffects}, ActionStates = {ActionStates} }}";
}