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;
 }
Example #2
0
 public override bool HandToolAllowPlacementInSlot(IGameObject objectToPlaceInSlot, Slot slot, AdditionalSlotPlacementCheckResults checks)
 {
     checks.IgnoreSlotPlacementFlags = true;
     return true;
 }
Example #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);
        }
Example #4
0
 public override bool HandToolAllowPlacementInSlot(IGameObject objectToPlaceInSlot, Slot slot, AdditionalSlotPlacementCheckResults checks)
 {
     checks.IgnoreSlotPlacementFlags = true;
     return(true);
 }