entity_kit v0.1.0 Manganese.EntityKit.Structs.EntityReferencesCollection
Link to this section Summary
Functions
Check if an entity of the given type and ID are referenced in the collection.
Add an entity reference to the collection.
Add multiple entity references to the collection.
Link to this section Types
Link to this section Functions
Link to this function
has_entity?(entity_references_collection, entity_type, id)
has_entity?(t(), atom(), pos_integer()) :: t()
Check if an entity of the given type and ID are referenced in the collection.
Link to this function
merge(entity_references_collection1, entity_references_collection2)
Link to this function
put_entity_id(entity_references_collection, entity_type, id)
put_entity_id(t(), atom(), pos_integer()) :: t()
put_entity_id(t(), atom(), [pos_integer()]) :: t()
Add an entity reference to the collection.
Link to this function
put_entity_ids(entity_references_collection, entity_type, ids)
Add multiple entity references to the collection.