-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added reflect support for std::HashSet, BTreeSet and BTreeMap. #12124
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm! the Map
trait is in my sights for a refactoring but this implementation fits it as it stands.
@@ -620,6 +622,220 @@ impl_type_path!(::bevy_utils::hashbrown::hash_map::DefaultHashBuilder); | |||
impl_type_path!(::bevy_utils::NoOpHash); | |||
impl_type_path!(::bevy_utils::hashbrown::HashMap<K, V, S>); | |||
|
|||
macro_rules! impl_reflect_for_btree_map { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was this macro really necessary? It's not like it will be used more than once, and it makes source navigation harder.
…ngine#12124) # Objective Added reflect support for `std::HashSet`, `BTreeSet` and `BTreeMap`. The set support is limited to `reflect_value` since that's the level of support prior art `bevy_util::HashSet` got. ## Changelog Dropped `Hash` Requirement on `MapInfo` since it's not needed on `BTreeMap`s.
…ngine#12124) # Objective Added reflect support for `std::HashSet`, `BTreeSet` and `BTreeMap`. The set support is limited to `reflect_value` since that's the level of support prior art `bevy_util::HashSet` got. ## Changelog Dropped `Hash` Requirement on `MapInfo` since it's not needed on `BTreeMap`s.
Objective
Added reflect support for
std::HashSet
,BTreeSet
andBTreeMap
.The set support is limited to
reflect_value
since that's the level of support prior artbevy_util::HashSet
got.Changelog
Dropped
Hash
Requirement onMapInfo
since it's not needed onBTreeMap
s.