You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// [`RelationshipTarget`] methods that create a [`Bundle`] with a [`DynamicBundle::Effect`] that:
282
-
///
283
-
/// 1. Contains the [`RelationshipTarget`] component, pre-allocated with the necessary space for spawned entities.
284
-
/// 2. Spawns an entity (or a list of entities) that relate to the entity the [`Bundle`] is added to via the [`RelationshipTarget::Relationship`].
262
+
/// [`RelationshipTarget`] methods that create a [`Bundle`] with a [`DynamicBundle::Effect`] that
263
+
/// spawns an entity (or a list of entities) that relate to the entity the [`Bundle`] is added to via the [`RelationshipTarget::Relationship`].
285
264
pubtraitSpawnRelated:RelationshipTarget{
286
-
/// Returns a [`Bundle`] containing this [`RelationshipTarget`] component. It also spawns a [`SpawnableList`] of entities, each related to the bundle's entity
287
-
/// via [`RelationshipTarget::Relationship`]. The [`RelationshipTarget`] (when possible) will pre-allocate space for the related entities.
265
+
/// Returns a [`Bundle`] that spawns a [`SpawnableList`] of entities, each related to the bundle's entity
266
+
/// via [`RelationshipTarget::Relationship`].
288
267
///
289
268
/// See [`Spawn`], [`SpawnIter`], and [`SpawnWith`] for usage examples.
290
269
fnspawn<L:SpawnableList<Self::Relationship>>(
291
270
list:L,
292
271
) -> SpawnRelatedBundle<Self::Relationship,L>;
293
272
294
-
/// Returns a [`Bundle`] containing this [`RelationshipTarget`] component. It also spawns a single entity containing [`Bundle`] that is related to the bundle's entity
273
+
/// Returns a [`Bundle`] that spawns a single entity containing [`Bundle`] that is related to the bundle's entity
295
274
/// via [`RelationshipTarget::Relationship`].
296
275
///
297
276
/// ```
@@ -326,8 +305,8 @@ impl<T: RelationshipTarget> SpawnRelated for T {
326
305
}
327
306
}
328
307
329
-
/// Returns a [`SpawnRelatedBundle`] that will insert the given [`RelationshipTarget`], spawn a [`SpawnableList`] of entities with given bundles that
330
-
/// relate to the [`RelationshipTarget`] entity via the [`RelationshipTarget::Relationship`] component, and reserve space in the [`RelationshipTarget`] for each spawned entity.
308
+
/// Returns a [`SpawnRelatedBundle`] that will spawn a [`SpawnableList`] of entities with given bundles that
309
+
/// relate to the [`RelationshipTarget`] entity via the [`RelationshipTarget::Relationship`] component.
331
310
///
332
311
/// The first argument is the [`RelationshipTarget`] type. Any additional arguments will be interpreted as bundles to be spawned.
0 commit comments