feat: 玩家数据储存系统(序列化和反序列化部分)

This commit is contained in:
3cxc
2026-02-12 17:23:09 +08:00
parent 69163b619a
commit 31d1d1c971
7 changed files with 185 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
using LiteDB;
using System;
namespace EasyTools.DataBase.Serialization
{
[Serializable]
public class PlayerData
{
public string NickName { get; set; }
public DateTime LastJoinedTime { get; set; }
public DateTime LastLeftTime { get; set; }
public int PlayedTimes { get; set; }
public int PlayerKills { get; set; }
public int PlayerDeath { get; set; }
public int PlayerSCPKills { get; set; }
public float PlayerDamage { get; set; }
public int RolePlayed { get; set; }
public int PlayerShot { get; set; }
[BsonId]
public string ID { get; set; }
}
}