15 lines
210 B
Rust
15 lines
210 B
Rust
use bevy::prelude::*;
|
|
|
|
#[derive(Component)]
|
|
pub struct Hand {
|
|
pub name: String
|
|
}
|
|
|
|
impl Hand {
|
|
pub fn new(name: String) -> Hand {
|
|
Hand { name }
|
|
}
|
|
}
|
|
|
|
#[derive(Component)]
|
|
pub struct HandCard;
|