[Untested!] 添加short数据类型支持

This commit is contained in:
2026-03-10 11:45:01 +08:00
parent 8250aa657d
commit e225e85941
2 changed files with 18 additions and 18 deletions
+4
View File
@@ -139,6 +139,9 @@ namespace ExcelTool.Parser
else if (type.Equals("uint"))
{
sb.Append($"\t\t{name} = reader.ReadUInt32();\n");
}else if (type.Equals("short"))
{
sb.Append($"\t\t{name} = reader.ReadInt16();\n");
}
else if (type.Equals("ushort"))
{
@@ -354,6 +357,7 @@ namespace ExcelTool.Parser
type.Equals("string") ||
type.Equals("uint") ||
type.Equals("ushort") ||
type.Equals("short") ||
type.Equals("sbyte") ||
type.Equals("byte"))
{