overworld_components 0.3.0

A library for adding game systems useful for incremental and management games
Documentation
1
2
3
4
5
6
7
8
9
use overworld_components::component::resource::{GameResource, Resource};

fn main() {
    let resource: GameResource = GameResource::new("Money".to_string(), 100);

    println!("Resource name: {}", resource.name());
    println!("Resource value: {}", resource.value());
    println!("Resource display: {}", resource);
}