Files
Fishing2Server/Tools/ConfigBuilder/NBConfigBuilder/Exporter/ExcelTable.cs
2025-10-09 17:55:51 +08:00

39 lines
1.0 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using OfficeOpenXml;
namespace NBConfigBuilder;
/// <summary>
/// Excel表格类用于存储表格的名称和列信息。
/// </summary>
public sealed class ExcelTable
{
/// <summary>
/// 表格的名称。
/// </summary>
public readonly string Name;
/// <summary>
/// 客户端列信息,使用排序字典存储列名和列索引列表。
/// </summary>
public readonly SortedDictionary<string, List<int>> ClientColInfos = new();
/// <summary>
/// 服务器端列信息,使用排序字典存储列名和列索引列表。
/// </summary>
public readonly SortedDictionary<string, List<int>> ServerColInfos = new();
/// <summary>
/// 表数据
/// </summary>
public readonly ExcelWorksheet Sheet;
/// <summary>
/// 构造函数初始化Excel表格对象并设置表格名称。
/// </summary>
/// <param name="sheet">表格。</param>
public ExcelTable(ExcelWorksheet sheet)
{
Name = sheet.Name;
Sheet = sheet;
}
}