Replies: 1 comment 1 reply
-
You can do that by just adding #[derive(Component, Deref, DerefMut)]
struct PlayerXp(u32);
#[derive(Component, Deref, DerefMut)]
struct PlayerName(String); I don't think it's a good idea to make |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I was thinking if the component macro could automatically add Deref + DerefMut on singular tuples like:
This way you can don't have to use:
But you can use something like this:
Beta Was this translation helpful? Give feedback.
All reactions