namespace NeonSprawl.Server.Game.Gathering;
/// Resets prototype resource-node instance capacity for Bruno and manual QA.
public static class ResourceNodeFixtureOperations
{
/// Sets each catalog node's remaining gathers to its maxGathers.
public static bool TryApply(
IResourceNodeDefinitionRegistry nodeRegistry,
IResourceNodeInstanceStore instanceStore)
{
foreach (var definition in nodeRegistry.GetDefinitionsInIdOrder())
{
if (!instanceStore.TrySetRemainingGathers(definition.NodeDefId, definition.MaxGathers))
{
return false;
}
}
return true;
}
}