summaryrefslogtreecommitdiff
path: root/ecs/examples/multiple_queries.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ecs/examples/multiple_queries.rs')
-rw-r--r--ecs/examples/multiple_queries.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/ecs/examples/multiple_queries.rs b/ecs/examples/multiple_queries.rs
index a4a5d2d..4f4198a 100644
--- a/ecs/examples/multiple_queries.rs
+++ b/ecs/examples/multiple_queries.rs
@@ -1,18 +1,21 @@
use std::fmt::Display;
-use ecs::{Query, World};
+use ecs::{Component, Query, World};
+#[derive(Component)]
struct Health
{
health: u32,
}
+#[derive(Component)]
enum AttackStrength
{
Strong,
Weak,
}
+#[derive(Component)]
struct EnemyName
{
name: String,