forked from 2ndbeam/evolution-rs
Basic project structure
This commit is contained in:
parent
6f35fc9908
commit
542f0c07d5
4 changed files with 21 additions and 0 deletions
6
src/animal.rs
Normal file
6
src/animal.rs
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
use bevy::prelude::*;
|
||||||
|
|
||||||
|
#[derive(Component)]
|
||||||
|
pub struct Animal {
|
||||||
|
//pub properties: Vec<тут крч пропертис>
|
||||||
|
}
|
||||||
8
src/hand.rs
Normal file
8
src/hand.rs
Normal 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
3
src/lib.rs
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
pub mod hand;
|
||||||
|
pub mod animal;
|
||||||
|
pub mod properties;
|
||||||
4
src/properties/mod.rs
Normal file
4
src/properties/mod.rs
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
pub trait Properties {
|
||||||
|
fn check_condition<T>(conditions: T) -> bool;
|
||||||
|
fn trigger<T>(data: T);
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue