Skip to content

Commit

Permalink
add entity relation docs
Browse files Browse the repository at this point in the history
  • Loading branch information
friflo committed Dec 1, 2024
1 parent b30cc46 commit dbf9309
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ECS/Relations/EntityRelations.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
// ReSharper disable once CheckNamespace
namespace Friflo.Engine.ECS;

/// <summary>
/// Storage for all entity relations of the specified <typeparamref name="TRelation"/> type.
/// </summary>
/// <typeparam name="TRelation"></typeparam>
public readonly struct EntityRelations <TRelation>
where TRelation : struct, IRelation
{
Expand Down
3 changes: 3 additions & 0 deletions src/ECS/Relations/RelationExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ public static EntityLinks<TRelation> GetIncomingLinks<TRelation>(this Entity tar
#endregion

#region EntityStore
/// <summary>
/// Return the storage for all entity relations of the specified <typeparamref name="TRelation"/> type.
/// </summary>
public static EntityRelations<TRelation> EntityRelations<TRelation>(this EntityStore store)
where TRelation : struct, IRelation
{
Expand Down

0 comments on commit dbf9309

Please sign in to comment.