generated from tipragot/rust
Add resources system #111
|
@ -8,6 +8,7 @@ use serde::{Deserialize, Serialize};
|
||||||
pub mod camera;
|
pub mod camera;
|
||||||
pub mod map;
|
pub mod map;
|
||||||
pub mod networking;
|
pub mod networking;
|
||||||
|
pub mod resources;
|
||||||
pub mod scenes;
|
pub mod scenes;
|
||||||
pub mod ui;
|
pub mod ui;
|
||||||
|
|
||||||
|
|
16
crates/border-wars/src/resources.rs
Normal file
16
crates/border-wars/src/resources.rs
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
//! ToDo
|
||||||
|
|
||||||
|
use bevy::prelude::*;
|
||||||
|
|
||||||
|
/// The resources of the game.
|
||||||
|
#[derive(Resource, Default)]
|
||||||
|
pub struct Resources {
|
||||||
|
/// The stone resource.
|
||||||
|
pub stone: u32,
|
||||||
|
|
||||||
|
/// The wood resource.
|
||||||
|
pub wood: u32,
|
||||||
|
|
||||||
|
/// The food resource.
|
||||||
|
pub food: u32,
|
||||||
|
}
|
Loading…
Reference in a new issue