internal TransferPump(string resourceName, TypePump pumpType, TriggerButton trigger, double pumpAmount) { Resource = resourceName; PumpType = pumpType; PumpTrigger = trigger; PumpAmount = pumpAmount; }
internal static uint GetPumpIdFromHash(string resource, Part firstPart, Part lastPart, TypePump pumpType, TriggerButton trigger) { return firstPart.flightID + lastPart.flightID + (uint) pumpType.GetHashCode() + (uint) trigger.GetHashCode() + (uint) resource.GetHashCode(); }