This commit is contained in:
nora 2023-04-17 20:11:37 +02:00
parent 59c63ab233
commit e662cc9172
2 changed files with 3 additions and 46 deletions

View file

@ -22,13 +22,13 @@ impl<Layer> Clone for TileId<Layer> {
}
impl<Layer> Debug for TileId<Layer> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
f.debug_tuple("TileId").field(&self.0).finish()
loop {}
}
}
impl<Layer> TileId<Layer> {
pub fn empty(&self) -> bool {
self.0 == 0
loop {}
}
pub const EMPTY: Self = Self(0, PhantomData);
}