Skip to content

Commit

Permalink
Improve ergonomics of layer builder's new_batch.
Browse files Browse the repository at this point in the history
  • Loading branch information
StarArawn committed May 27, 2021
1 parent 01f8493 commit f771fff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/bench.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ fn startup(
),
&mut meshes,
material_handle,
|_| Some(TileBundle::default()),
0u16,
0u16,
|_| Some(TileBundle::default()),
);

// Create map entity and component:
Expand Down
2 changes: 1 addition & 1 deletion src/layer_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ where
mut settings: LayerSettings,
meshes: &mut ResMut<Assets<Mesh>>,
material_handle: Handle<ColorMaterial>,
mut f: F,
map_id: I,
layer_id: I,
mut f: F,
) -> Entity {
let layer_entity = commands.spawn().id();

Expand Down

0 comments on commit f771fff

Please sign in to comment.