Skip to content

Relationships clarification #67

Answered by friflo
KieranFleckney asked this question in Q&A
Discussion options

You must be logged in to vote

hi @KieranFleckney,

The "hard" stuff about this topic is the terminology.
I tried to be conform to the term relation used for relational databases.
A relation - my understanding - is a tuple of two things.

Relationship - is a directed link between two entities. So relationship is more specific.
Both things of a relationship (a relation) are entities.

If only one thing of a relation is an entity. It is not a relationship.

In this ECS relationships are represented by either ILinkRelation or ILinkComponent.

  1. ILinkComponent An entity can have only one link component per type at a time.
  2. ILinkRelation An entity can have multiple link relations - one per target entity.

ILinkComponent are compon…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@KieranFleckney
Comment options

@friflo
Comment options

Answer selected by KieranFleckney
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants