Basic project structure

This commit is contained in:
Alexey 2025-02-15 18:07:20 +03:00
commit 542f0c07d5
4 changed files with 21 additions and 0 deletions

6
src/animal.rs Normal file
View file

@ -0,0 +1,6 @@
use bevy::prelude::*;
#[derive(Component)]
pub struct Animal {
//pub properties: Vec<тут крч пропертис>
}

8
src/hand.rs Normal file
View file

@ -0,0 +1,8 @@
use bevy::prelude::*;
#[derive(Component)]
pub struct Hand {
pub name: String,
pub cards: Vec<Entity>,
pub animals: Vec<Entity>
}

3
src/lib.rs Normal file
View file

@ -0,0 +1,3 @@
pub mod hand;
pub mod animal;
pub mod properties;

4
src/properties/mod.rs Normal file
View file

@ -0,0 +1,4 @@
pub trait Properties {
fn check_condition<T>(conditions: T) -> bool;
fn trigger<T>(data: T);
}