Files
DanhengServer-OpenSource/Common/Database/Player/PlayerData.cs
2024-04-03 23:16:51 +08:00

49 lines
1.8 KiB
C#

using EggLink.DanhengServer.Enums;
using EggLink.DanhengServer.Proto;
using EggLink.DanhengServer.Util;
using SqlSugar;
namespace EggLink.DanhengServer.Database.Player
{
[SugarTable("Player")]
public class PlayerData : BaseDatabaseData
{
public string? Name { get; set; } = "无名客";
public string? Signature { get; set; } = "";
public int Birthday { get; set; } = 0;
public int CurBasicType { get; set; } = 8001;
public int HeadIcon { get; set; } = 208001;
public int PhoneTheme { get; set; } = 221000;
public int ChatBubble { get; set; } = 222000;
public int CurrentBgm { get; set; } = 210000;
public Gender CurrentGender { get; set; } = Gender.Man;
public int Level { get; set; } = 1;
public int Exp { get; set; } = 0;
public int WorldLevel { get; set; } = 0;
public int Scoin { get; set; } = 0; // Credits
public int Hcoin { get; set; } = 0; // Jade
public int Mcoin { get; set; } = 0; // Crystals
public int TalentPoints { get; set; } = 0; // Rogue talent points
public int Stamina { get; set; } = 240;
public double StaminaReserve { get; set; } = 0;
public long NextStaminaRecover { get; set; } = 0;
[SugarColumn(IsNullable = true, IsJson = true)]
public Position? Pos { get; set; }
[SugarColumn(IsNullable = true, IsJson = true)]
public Position? Rot { get; set; }
[SugarColumn(IsNullable = true)]
public int PlaneId { get; set; }
[SugarColumn(IsNullable = true)]
public int FloorId { get; set; }
[SugarColumn(IsNullable = true)]
public int EntryId { get; set; }
[SugarColumn(IsNullable = true)]
public long LastActiveTime { get; set; }
}
}