diff options
author | HampusM <hampus@hampusmat.com> | 2024-12-09 14:05:33 +0100 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2024-12-09 14:05:33 +0100 |
commit | dcc40c9205e5f4cf484523f97eb12a561d7b2b22 (patch) | |
tree | 2908b6ca3b2fa390a45b383b91edf7a72c42ef4b /ecs/src/relationship.rs | |
parent | 158e36bf6bfcbc2ed0ffc670788ed8c0abd3f282 (diff) |
refactor(ecs): use phases for system ordering
Diffstat (limited to 'ecs/src/relationship.rs')
-rw-r--r-- | ecs/src/relationship.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ecs/src/relationship.rs b/ecs/src/relationship.rs index 44ed93a..7088613 100644 --- a/ecs/src/relationship.rs +++ b/ecs/src/relationship.rs @@ -422,3 +422,11 @@ where self.relation.get(index) } } + +/// Relationship kind denoting a dependency to another entity +#[derive(Debug, Default, Clone, Copy)] +pub struct DependsOn; + +/// Relationship kind denoting being the child of another entity. +#[derive(Debug, Default, Clone, Copy)] +pub struct ChildOf; |