Skip to main content

Crate bevy_many_relationships

Crate bevy_many_relationships 

Source

Modules§

prelude
Convenience re-exports for typical use bevy_many_relationships::prelude::* imports.

Structs§

AddOutgoingRelationships
Bevy-style construction component for adding outgoing relationships on spawn/insert.
IncomingRelationships
Tracks all incoming relationships of type R to this entity.
ManyRelatedSpawnerCommands
Spawns many-related source entities targeting a specific entity.
ManyRelationshipsPlugin
A plugin that enables many-relationship behavior.
OnManyRelationshipAdded
Event fired when a many-to-many relationship of type R is added.
OnManyRelationshipRemoved
Event fired when a many-to-many relationship of type R is removed.
OutgoingRelationships
Tracks all outgoing relationships of type R from this entity.

Traits§

ManyRelatedEntityCommands
Extension trait on EntityCommands for many-relationship ergonomics.

Functions§

add_many_relationship
get_relationship_payload
Returns the relationship payload for an incoming edge by reading the source’s outgoing map. Payloads are stored once on OutgoingRelationships; this is the supported way to resolve payload data from the target side.
remove_many_relationship
set_many_relationship