36 lines
653 B
Plaintext
36 lines
653 B
Plaintext
using MemoryPack;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
|
|
|
|
namespace ExcelConfig
|
|
{
|
|
[MemoryPackable]
|
|
public partial class (ConfigName)Category : ExcelConfigBase
|
|
{
|
|
[MemoryPackInclude]
|
|
public static Dictionary<int, (ConfigName)> Dict { get; set; } = new();
|
|
|
|
|
|
public override void Init(byte[] data)
|
|
{
|
|
Dict = (Dictionary<int, (ConfigName)>)MemoryPackSerializer.Deserialize(typeof(Dictionary<int, (ConfigName)>), data)!;
|
|
}
|
|
}
|
|
|
|
|
|
[MemoryPackable]
|
|
public partial class (ConfigName)
|
|
{
|
|
(Fields)
|
|
|
|
[MemoryPackConstructor]
|
|
public (ConfigName)()
|
|
{
|
|
|
|
}
|
|
}
|
|
}
|
|
|
|
|