1-46
This commit is contained in:
parent
e8f09190d6
commit
5b51d6f393
46 changed files with 83 additions and 65 deletions
|
|
@ -36,6 +36,7 @@ const Character = struct {
|
|||
role: Role,
|
||||
gold: u32,
|
||||
experience: u32,
|
||||
health: u8,
|
||||
};
|
||||
|
||||
pub fn main() void {
|
||||
|
|
@ -44,6 +45,7 @@ pub fn main() void {
|
|||
.role = Role.wizard,
|
||||
.gold = 20,
|
||||
.experience = 10,
|
||||
.health = 100,
|
||||
};
|
||||
|
||||
// Glorp gains some gold.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue