FSO.SimAntics.VMContext.CheckWallValid C# (CSharp) Method

CheckWallValid() public method

public CheckWallValid ( FSO.LotView.Model.LotTilePos pos, FSO.LotView.Model.WallTile wall ) : bool
pos FSO.LotView.Model.LotTilePos
wall FSO.LotView.Model.WallTile
return bool
        public bool CheckWallValid(LotTilePos pos, WallTile wall)
        {
            var objs = SetToNextCache.GetObjectsAt(pos);
            if (objs == null) return true;
            foreach (var obj in objs)
            {
                if (obj.WallChangeValid(wall, obj.Direction, false) != VMPlacementError.Success) return false;
            }
            return true;
        }