mirror of
https://gitee.com/cssfw/EasyTools.git
synced 2026-03-28 12:01:36 +08:00
feat: 玩家数据储存系统(序列化和反序列化部分)
This commit is contained in:
19
Configs/DataBaseConfig.cs
Normal file
19
Configs/DataBaseConfig.cs
Normal 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");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user