@@ -17,11 +17,7 @@ pub(crate) struct VersionedBlockMeshes<Vert, Tile> {
17
17
last_version_counter : NonZeroU32 ,
18
18
}
19
19
20
- impl < Vert , Tile > VersionedBlockMeshes < Vert , Tile >
21
- where
22
- Vert : GfxVertex < TexPoint = <Tile as TextureTile >:: Point > + PartialEq ,
23
- Tile : TextureTile + PartialEq ,
24
- {
20
+ impl < Vert , Tile > VersionedBlockMeshes < Vert , Tile > {
25
21
pub fn new ( ) -> Self {
26
22
Self {
27
23
meshes : Vec :: new ( ) ,
35
31
pub fn clear ( & mut self ) {
36
32
self . meshes . clear ( ) ;
37
33
}
34
+ }
38
35
36
+ impl < Vert , Tile > VersionedBlockMeshes < Vert , Tile >
37
+ where
38
+ Vert : GfxVertex < TexPoint = <Tile as TextureTile >:: Point > + PartialEq ,
39
+ Tile : TextureTile + PartialEq ,
40
+ {
39
41
/// Update block meshes based on the given [`Space`].
40
42
///
41
43
/// After this method returns, `self.meshes.len()` will
@@ -181,6 +183,12 @@ where
181
183
}
182
184
}
183
185
186
+ impl < Vert , Tile > Default for VersionedBlockMeshes < Vert , Tile > {
187
+ fn default ( ) -> Self {
188
+ Self :: new ( )
189
+ }
190
+ }
191
+
184
192
impl < ' a , Vert : ' static , Tile : ' static > GetBlockMesh < ' a , Vert , Tile >
185
193
for & ' a VersionedBlockMeshes < Vert , Tile >
186
194
{
0 commit comments