diff options
author | HampusM <hampus@hampusmat.com> | 2025-08-20 14:17:14 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2025-08-20 14:17:14 +0200 |
commit | 5c9113431ea22c53cc59324c93ec3dc6efdfe926 (patch) | |
tree | 3218de3310339878a25b26ac957e0b2d54e7be49 /ecs/src/uid.rs | |
parent | fb9263ff3fd6211d5ca19e182094e25835886503 (diff) |
feat(ecs): add support for pairs with target component as data
Diffstat (limited to 'ecs/src/uid.rs')
-rw-r--r-- | ecs/src/uid.rs | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/ecs/src/uid.rs b/ecs/src/uid.rs index feed62c..a361882 100644 --- a/ecs/src/uid.rs +++ b/ecs/src/uid.rs @@ -218,7 +218,7 @@ pub struct PairParams pub target: Uid, } -pub trait With: 'static +pub trait With { fn uid() -> Uid; } @@ -230,14 +230,3 @@ impl<ComponentT: Component> With for ComponentT Self::id() } } - -#[derive(Debug)] -pub enum Wildcard {} - -impl With for Wildcard -{ - fn uid() -> Uid - { - Uid::wildcard() - } -} |