public void Run() { while (true) { semNewAlchemist.Wait(); dispatcher.DispatchDistribution(); } }
public void Run() { while (true) { semNewResources.Wait(); Print("NEW RESOURCE"); Print($"{Resource.Lead}: {Resources[Resource.Lead]}, {Resource.Sulfur}: {Resources[Resource.Sulfur]}, {Resource.Mercury}: {Resources[Resource.Mercury]}"); dispatcher.DispatchDistribution(); } }