Exemple #1
0
        static bool Prefix(ushort buildingID, ref Building data, TransferManager.TransferReason material, TransferManager.TransferOffer offer)
        {
            if (DistrictChecker.IsBuildingTransferAllowed(buildingID, ref data, material, offer))
            {
                return(true);
            }

            BuildingHelper.delegateToAnotherBuilding(buildingID, ref data, material, offer);
            return(false);
        }
Exemple #2
0
 public override void StartTransfer(ushort buildingID, ref Building data,
                                    TransferManager.TransferReason material, TransferManager.TransferOffer offer)
 {
     if (triggered)
     {
         return;
     }
     else if (DistrictChecker.IsBuildingTransferAllowed(buildingID, ref data, material, offer))
     {
         base.StartTransfer(buildingID, ref data, material, offer);
         //triggered = true;
     }
     else
     {
         if (BuildingHelper.delegateToAnotherBuilding(buildingID, ref data, material, offer))
         {
             //triggered = true;
         }
     }
 }