添加返回列表

This commit is contained in:
dingxiaowei
2024-07-20 14:11:14 +08:00
parent 821a1d481c
commit a32a20401f
16 changed files with 26 additions and 3 deletions
Binary file not shown.
+1
View File
@@ -64,6 +64,7 @@
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="avatarguideTest.cs" />
<Compile Include="ConsoleHelper.cs" />
<Compile Include="CsvHelper.cs" />
<Compile Include="ExcelHelper.cs" />
+6
View File
@@ -477,6 +477,12 @@ namespace ExcelTool
sb.Append("{\n");
// sb.Append($"\tpublic List<{excelName}> {excelName}Infos = new List<{excelName}>();\n");
sb.Append($"\tDictionary<int,{excelName}> {excelName}Infos = new Dictionary<int,{excelName}>();\n");
sb.Append("\n");
sb.Append($"\tpublic List<{excelName}> {excelName}List()\n");
sb.Append("\t{\n");
sb.Append($"\t\treturn new List<{excelName}>({excelName}Infos.Values);\n");
sb.Append("\t}\n");
sb.Append("\n");
sb.Append($"\tpublic void DeSerialize(BinaryReader reader)\n");
sb.Append("\t{\n");
sb.Append($"\t\tint count = reader.ReadInt32();\n");
Binary file not shown.
Binary file not shown.
Binary file not shown.
+6
View File
@@ -116,6 +116,12 @@ public partial class avatarguideTest : IBinarySerializable
public partial class avatarguideTestConfig : IBinarySerializable
{
Dictionary<int,avatarguideTest> avatarguideTestInfos = new Dictionary<int,avatarguideTest>();
public List<avatarguideTest> avatarguideTestList()
{
return new List<avatarguideTest>(avatarguideTestInfos.Values);
}
public void DeSerialize(BinaryReader reader)
{
int count = reader.ReadInt32();
+6
View File
@@ -145,6 +145,12 @@ public partial class battleScene : IBinarySerializable
public partial class battleSceneConfig : IBinarySerializable
{
Dictionary<int,battleScene> battleSceneInfos = new Dictionary<int,battleScene>();
public List<battleScene> battleSceneList()
{
return new List<battleScene>(battleSceneInfos.Values);
}
public void DeSerialize(BinaryReader reader)
{
int count = reader.ReadInt32();
+6
View File
@@ -218,6 +218,12 @@ public partial class official_room : IBinarySerializable
public partial class official_roomConfig : IBinarySerializable
{
Dictionary<int,official_room> official_roomInfos = new Dictionary<int,official_room>();
public List<official_room> official_roomList()
{
return new List<official_room>(official_roomInfos.Values);
}
public void DeSerialize(BinaryReader reader)
{
int count = reader.ReadInt32();
@@ -1 +1 @@
437758f1983b3631650720a6b12c64139816a676
f9568ef42d2d08917776e58ac01f34159ad429ba
@@ -47,8 +47,6 @@ D:\study\github\ExcelTool\ExcelTool\bin\Debug\Spire.XLS.dll
D:\study\github\ExcelTool\ExcelTool\bin\Debug\Microsoft.mshtml.dll
D:\study\github\ExcelTool\ExcelTool\bin\Debug\Spire.Pdf.xml
D:\study\github\ExcelTool\ExcelTool\bin\Debug\Spire.XLS.xml
D:\study\github\ExcelTool\ExcelTool\obj\Debug\ExcelTool.csproj.AssemblyReference.cache
D:\study\github\ExcelTool\ExcelTool\obj\Debug\ExcelTool.csproj.SuggestedBindingRedirects.cache
D:\study\github\ExcelTool\ExcelTool\obj\Debug\ExcelTool.csproj.CoreCompileInputs.cache
D:\study\github\ExcelTool\ExcelTool\obj\Debug\ExcelTool.csproj.CopyComplete
D:\study\github\ExcelTool\ExcelTool\obj\Debug\ExcelTool.exe
Binary file not shown.
Binary file not shown.