mirror of
https://github.com/guezoloic/BakersAdventure.git
synced 2026-01-25 01:34:06 +00:00
feat(character): init Character struct
- u8 life, damage, and mana - rodata string name
This commit is contained in:
6
src/character.rs
Normal file
6
src/character.rs
Normal file
@@ -0,0 +1,6 @@
|
||||
struct Character {
|
||||
life: u8,
|
||||
damage: u8,
|
||||
mana: u8,
|
||||
name: &'static str,
|
||||
}
|
||||
@@ -1,3 +1 @@
|
||||
fn main() {
|
||||
println!("Hello, world!");
|
||||
}
|
||||
fn main() {}
|
||||
|
||||
Reference in New Issue
Block a user