(bytes: &'a [u8], cursor: &mut usize, len: usize)
| 588 | bytes: &[u8], |
| 589 | cursor: &mut usize, |
| 590 | ) -> Option<TileSetCollisionShape2D> { |
| 591 | match read_u8(bytes, cursor)? { |
| 592 | 0 => Some(TileSetCollisionShape2D::Auto), |
| 593 | 1 => { |
| 594 | let shape = match read_u8(bytes, cursor)? { |
| 595 | 0 => TileSetShape2D::Rect { |
| 596 | width: read_f32(bytes, cursor)?, |
| 597 | height: read_f32(bytes, cursor)?, |
| 598 | }, |
no test coverage detected