Dummy hand drawing

This commit is contained in:
Alexey 2025-02-16 21:29:52 +03:00
commit 19f9dc6e8d
6 changed files with 31 additions and 5 deletions

View file

@ -2,10 +2,14 @@ use bevy::prelude::*;
#[derive(Component)]
pub struct Hand {
pub name: String,
pub cards: Vec<Entity>,
pub animals: Vec<Entity>
pub name: String
}
impl Hand {
pub fn new(name: String) -> Hand {
Hand { name }
}
}
#[derive(Component)]
pub struct HandCard;
pub struct HandCard;