Skip to content

Commit

Permalink
Add Deref to Terrain component
Browse files Browse the repository at this point in the history
  • Loading branch information
TheGrimsey committed Dec 6, 2024
1 parent ed08fc0 commit 5070a6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/terrain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ pub struct HoleEntry {
/// Marker component for the entity being a terrain tile.
///
/// Internal `IVec2` is updated based on `GlobalTransform` to the tile this terrain corresponds to.
#[derive(Reflect, Debug, Default, Clone, Copy)]
#[derive(Reflect, Deref, Debug, Default, Clone, Copy)]
#[reflect(Component)]
pub struct Terrain(pub(super) IVec2);
impl Terrain {
Expand Down

0 comments on commit 5070a6b

Please sign in to comment.