@@ -156,39 +156,39 @@ impl<'w> UnsafeWorldCell<'w> {
156
156
pub fn entities ( self ) -> & ' w Entities {
157
157
// SAFETY:
158
158
// - we only access world metadata
159
- & unsafe { self . unsafe_world ( ) } . entities
159
+ & unsafe { self . world_metadata ( ) } . entities
160
160
}
161
161
162
162
/// Retrieves this world's [Archetypes] collection
163
163
#[ inline]
164
164
pub fn archetypes ( self ) -> & ' w Archetypes {
165
165
// SAFETY:
166
166
// - we only access world metadata
167
- & unsafe { self . unsafe_world ( ) } . archetypes
167
+ & unsafe { self . world_metadata ( ) } . archetypes
168
168
}
169
169
170
170
/// Retrieves this world's [Components] collection
171
171
#[ inline]
172
172
pub fn components ( self ) -> & ' w Components {
173
173
// SAFETY:
174
174
// - we only access world metadata
175
- & unsafe { self . unsafe_world ( ) } . components
175
+ & unsafe { self . world_metadata ( ) } . components
176
176
}
177
177
178
178
/// Retrieves this world's [Bundles] collection
179
179
#[ inline]
180
180
pub fn bundles ( self ) -> & ' w Bundles {
181
181
// SAFETY:
182
182
// - we only access world metadata
183
- & unsafe { self . unsafe_world ( ) } . bundles
183
+ & unsafe { self . world_metadata ( ) } . bundles
184
184
}
185
185
186
186
/// Reads the current change tick of this world.
187
187
#[ inline]
188
188
pub fn read_change_tick ( self ) -> u32 {
189
189
// SAFETY:
190
190
// - we only access world metadata
191
- unsafe { self . unsafe_world ( ) }
191
+ unsafe { self . world_metadata ( ) }
192
192
. change_tick
193
193
. load ( Ordering :: Acquire )
194
194
}
@@ -197,14 +197,14 @@ impl<'w> UnsafeWorldCell<'w> {
197
197
pub fn last_change_tick ( self ) -> u32 {
198
198
// SAFETY:
199
199
// - we only access world metadata
200
- unsafe { self . unsafe_world ( ) } . last_change_tick
200
+ unsafe { self . world_metadata ( ) } . last_change_tick
201
201
}
202
202
203
203
#[ inline]
204
204
pub fn increment_change_tick ( self ) -> u32 {
205
205
// SAFETY:
206
206
// - we only access world metadata
207
- unsafe { self . unsafe_world ( ) }
207
+ unsafe { self . world_metadata ( ) }
208
208
. change_tick
209
209
. fetch_add ( 1 , Ordering :: AcqRel )
210
210
}
@@ -217,7 +217,7 @@ impl<'w> UnsafeWorldCell<'w> {
217
217
) -> Option < ArchetypeComponentId > {
218
218
// SAFETY:
219
219
// - we only access world metadata
220
- let resource = unsafe { self . unsafe_world ( ) }
220
+ let resource = unsafe { self . world_metadata ( ) }
221
221
. storages
222
222
. resources
223
223
. get ( component_id) ?;
@@ -232,7 +232,7 @@ impl<'w> UnsafeWorldCell<'w> {
232
232
) -> Option < ArchetypeComponentId > {
233
233
// SAFETY:
234
234
// - we only access world metadata
235
- let resource = unsafe { self . unsafe_world ( ) }
235
+ let resource = unsafe { self . world_metadata ( ) }
236
236
. storages
237
237
. non_send_resources
238
238
. get ( component_id) ?;
0 commit comments