AcademyRPG.Engine.HandleGathering C# (CSharp) Метод

HandleGathering() приватный Метод

private HandleGathering ( IGatherer gatherer, IResource resource ) : void
gatherer IGatherer
resource IResource
Результат void
        private void HandleGathering(IGatherer gatherer, IResource resource)
        {
            bool gatheringSuccess = gatherer.TryGather(resource);
            if (gatheringSuccess)
            {
                Console.WriteLine("{0} gathered {1} {2} from {3}", gatherer, resource.Quantity, resource.Type, resource);
                resource.HitPoints = 0;
            }


        }