using ViaFerrea.Core.Persistence; namespace ViaFerrea.Core.Simulation.Systems; /// Ultimo sistema: una volta al giorno calcola l'hash dello stato (resoconto giornaliero e test di determinismo). public sealed class HashSystem : ISimSystem { public string Name => "Hash"; public void Step(WorldContext ctx) { if (!ctx.IsNewDay) return; var w = ctx.World; w.LastStateHash = StateHasher.Compute(w); w.LastHashDay = ctx.Day; } }