コード例 #1
0
 internal TransferPump(string resourceName, TypePump pumpType, TriggerButton trigger, double pumpAmount)
 {
     Resource = resourceName;
       PumpType = pumpType;
       PumpTrigger = trigger;
       PumpAmount = pumpAmount;
 }
コード例 #2
0
   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();
   }