@@ -943,32 +943,32 @@ fn contains_component_with_type(
943
943
}
944
944
945
945
/// # Safety
946
- /// `entity_location` must be within bounds of the given archetype and `entity` must exist inside
947
- /// the archetype
946
+ /// Caller must ensure that `relationship_id` is valid
948
947
#[ inline]
949
- unsafe fn get_component_with_type (
948
+ unsafe fn get_component_and_ticks_with_type (
950
949
world : & World ,
951
950
type_id : TypeId ,
952
951
target : Option < Entity > ,
953
952
entity : Entity ,
954
953
location : EntityLocation ,
955
- ) -> Option < * mut u8 > {
954
+ ) -> Option < ( * mut u8 , * mut ComponentTicks ) > {
956
955
let component_id = world. components . get_component_id ( type_id) ?;
957
- get_component ( world, component_id, target, entity, location)
956
+ get_component_and_ticks ( world, component_id, target, entity, location)
958
957
}
959
958
960
959
/// # Safety
961
- /// Caller must ensure that `relationship_id` is valid
960
+ /// `entity_location` must be within bounds of the given archetype and `entity` must exist inside
961
+ /// the archetype
962
962
#[ inline]
963
- unsafe fn get_component_and_ticks_with_type (
963
+ unsafe fn get_component_with_type (
964
964
world : & World ,
965
965
type_id : TypeId ,
966
966
target : Option < Entity > ,
967
967
entity : Entity ,
968
968
location : EntityLocation ,
969
- ) -> Option < ( * mut u8 , * mut ComponentTicks ) > {
969
+ ) -> Option < * mut u8 > {
970
970
let component_id = world. components . get_component_id ( type_id) ?;
971
- get_component_and_ticks ( world, component_id, target, entity, location)
971
+ get_component ( world, component_id, target, entity, location)
972
972
}
973
973
974
974
fn contains_component (
0 commit comments