Add resources system #111

Merged
CoCo_Sol merged 6 commits from add-resources-system into main 2024-04-06 11:24:35 +00:00
2 changed files with 17 additions and 0 deletions
Showing only changes of commit 1fa3c8f268 - Show all commits

View file

@ -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;

View 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,
}