Dummy hand drawing
This commit is contained in:
parent
78af40ba77
commit
19f9dc6e8d
6 changed files with 31 additions and 5 deletions
12
src/hand.rs
12
src/hand.rs
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue