-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathHero.cs
More file actions
25 lines (23 loc) · 936 Bytes
/
Hero.cs
File metadata and controls
25 lines (23 loc) · 936 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
using System.ComponentModel.DataAnnotations;
namespace EntglDb.Demo.Game;
public class Hero
{
[Key]
public string Id { get; set; } = Guid.NewGuid().ToString();
public string Name { get; set; } = string.Empty;
public string NodeId { get; set; } = string.Empty;
public int Level { get; set; } = 1;
public int Hp { get; set; } = 100;
public int MaxHp { get; set; } = 100;
public int Attack { get; set; } = 15;
public int Defense { get; set; } = 5;
public int Gold { get; set; } = 0;
public int Xp { get; set; } = 0;
public int MonstersKilled { get; set; } = 0;
public bool IsAlive { get; set; } = true;
public HeroClass HeroClass { get; set; } = HeroClass.Warrior;
public int Mp { get; set; } = 50;
public int MaxMp { get; set; } = 50;
public int MagicAttack { get; set; } = 10;
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
}