feat: add additional data to character
All checks were successful
Test if Server can be built / build-server (push) Successful in 21s
All checks were successful
Test if Server can be built / build-server (push) Successful in 21s
This commit is contained in:
parent
82e5cce676
commit
21c9d925f3
3 changed files with 47 additions and 0 deletions
|
@ -1,10 +1,19 @@
|
|||
namespace Server.DB.Documents;
|
||||
|
||||
using NpgsqlTypes;
|
||||
|
||||
public class Character
|
||||
{
|
||||
public byte ServerId { get; set; }
|
||||
public Guid AccountId { get; set; }
|
||||
public Account Account { get; set; } = null!;
|
||||
public Guid Id { get; set; }
|
||||
public ushort MapId { get; set; }
|
||||
public string Name { get; set; }
|
||||
public short LastXCoordinate { get; set; }
|
||||
public short LastYCoordinate { get; set; }
|
||||
public PvPLevel PvPLevel { get; set; }
|
||||
public Gender Gender { get; set; }
|
||||
public long Experience { get; set; }
|
||||
public byte Level { get; set; }
|
||||
}
|
||||
|
|
8
Server/DB/Documents/Gender.cs
Normal file
8
Server/DB/Documents/Gender.cs
Normal file
|
@ -0,0 +1,8 @@
|
|||
namespace Server.DB.Documents;
|
||||
|
||||
public enum Gender : byte
|
||||
{
|
||||
None = 0,
|
||||
Male = 1,
|
||||
Female = 2
|
||||
}
|
30
Server/DB/Documents/PvPLevel.cs
Normal file
30
Server/DB/Documents/PvPLevel.cs
Normal file
|
@ -0,0 +1,30 @@
|
|||
namespace Server.DB.Documents;
|
||||
|
||||
public enum PvPLevel : byte
|
||||
{
|
||||
None = 0,
|
||||
Dualer = 1,
|
||||
Challenger,
|
||||
Challenger2,
|
||||
Challenger3,
|
||||
Challenger4,
|
||||
Challenger5,
|
||||
Veteran1,
|
||||
Veteran2,
|
||||
Veteran3,
|
||||
Veteran4,
|
||||
Veteran5,
|
||||
Gladiator1,
|
||||
Gladiator2,
|
||||
Gladiator3,
|
||||
Gladiator4,
|
||||
Gladiator5,
|
||||
Vanquisher1,
|
||||
Vanquisher2,
|
||||
Vanquisher3,
|
||||
Vanquisher4,
|
||||
Vanquisher5,
|
||||
Hero,
|
||||
Champion,
|
||||
WonderKing
|
||||
}
|
Loading…
Reference in a new issue