sandpypi/Sand.ChunkPrototype/ChunkStepScheduler.cs

10 lines
328 B
C#

namespace Sand.ChunkPrototype;
internal sealed class ChunkStepScheduler
{
private readonly ChunkActivityTracker _activityTracker = new();
public (IReadOnlyList<ChunkCoord> ActiveChunks, int SleepingChunks) BuildSchedule(IReadOnlyDictionary<ChunkCoord, ChunkCellPage> pages) =>
_activityTracker.Build(pages);
}