Exemplo n.º 1
0
 public void Run()
 {
     while (true)
     {
         semNewAlchemist.Wait();
         dispatcher.DispatchDistribution();
     }
 }
Exemplo n.º 2
0
        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();
            }
        }