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

19
Configs/DataBaseConfig.cs Normal file
View File

@@ -0,0 +1,19 @@
using LabApi.Loader.Features.Paths;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace EasyTools.Configs
{
public class DataBaseConfig
{
[Description("是否启用玩家数据储存系统")]
public bool database_enable { get; set; } = true;
[Description("数据库存储路径")]
public string database_path { get; set; } = Path.Combine(PathManager.Configs.FullName ?? Environment.CurrentDirectory, @"EasyTools.db");
}
}