public override bool HandToolAllowPlacementInSlot(IGameObject objectToPlaceInSlot, Slot slot, AdditionalSlotPlacementCheckResults checks)
 {
     bool flag = false;
     IUsesParkingSpace usesParkingSpace = objectToPlaceInSlot as IUsesParkingSpace;
     if (usesParkingSpace != null && (ulong)usesParkingSpace.NumParkingSpotsOccupied <= (ulong)((long)this.FillsNumSpaces))
     {
         flag = true;
     }
     checks.IgnoreSlotPlacementFlags = flag;
     return flag;
 }
Beispiel #2
0
 public override bool HandToolAllowPlacementInSlot(IGameObject objectToPlaceInSlot, Slot slot, AdditionalSlotPlacementCheckResults checks)
 {
     checks.IgnoreSlotPlacementFlags = true;
     return true;
 }
Beispiel #3
0
        public override bool HandToolAllowPlacementInSlot(IGameObject objectToPlaceInSlot, Slot slot, AdditionalSlotPlacementCheckResults checks)
        {
            bool flag = false;
            IUsesParkingSpace usesParkingSpace = objectToPlaceInSlot as IUsesParkingSpace;

            if (usesParkingSpace != null && (ulong)usesParkingSpace.NumParkingSpotsOccupied <= (ulong)((long)this.FillsNumSpaces))
            {
                flag = true;
            }
            checks.IgnoreSlotPlacementFlags = flag;
            return(flag);
        }
Beispiel #4
0
 public override bool HandToolAllowPlacementInSlot(IGameObject objectToPlaceInSlot, Slot slot, AdditionalSlotPlacementCheckResults checks)
 {
     checks.IgnoreSlotPlacementFlags = true;
     return(true);
 }