添加返回列表
This commit is contained in:
Binary file not shown.
@@ -64,6 +64,7 @@
|
|||||||
<Reference Include="System.Xml" />
|
<Reference Include="System.Xml" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
<Compile Include="avatarguideTest.cs" />
|
||||||
<Compile Include="ConsoleHelper.cs" />
|
<Compile Include="ConsoleHelper.cs" />
|
||||||
<Compile Include="CsvHelper.cs" />
|
<Compile Include="CsvHelper.cs" />
|
||||||
<Compile Include="ExcelHelper.cs" />
|
<Compile Include="ExcelHelper.cs" />
|
||||||
|
|||||||
@@ -477,6 +477,12 @@ namespace ExcelTool
|
|||||||
sb.Append("{\n");
|
sb.Append("{\n");
|
||||||
// sb.Append($"\tpublic List<{excelName}> {excelName}Infos = new List<{excelName}>();\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($"\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($"\tpublic void DeSerialize(BinaryReader reader)\n");
|
||||||
sb.Append("\t{\n");
|
sb.Append("\t{\n");
|
||||||
sb.Append($"\t\tint count = reader.ReadInt32();\n");
|
sb.Append($"\t\tint count = reader.ReadInt32();\n");
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -116,6 +116,12 @@ public partial class avatarguideTest : IBinarySerializable
|
|||||||
public partial class avatarguideTestConfig : IBinarySerializable
|
public partial class avatarguideTestConfig : IBinarySerializable
|
||||||
{
|
{
|
||||||
Dictionary<int,avatarguideTest> avatarguideTestInfos = new Dictionary<int,avatarguideTest>();
|
Dictionary<int,avatarguideTest> avatarguideTestInfos = new Dictionary<int,avatarguideTest>();
|
||||||
|
|
||||||
|
public List<avatarguideTest> avatarguideTestList()
|
||||||
|
{
|
||||||
|
return new List<avatarguideTest>(avatarguideTestInfos.Values);
|
||||||
|
}
|
||||||
|
|
||||||
public void DeSerialize(BinaryReader reader)
|
public void DeSerialize(BinaryReader reader)
|
||||||
{
|
{
|
||||||
int count = reader.ReadInt32();
|
int count = reader.ReadInt32();
|
||||||
|
|||||||
@@ -145,6 +145,12 @@ public partial class battleScene : IBinarySerializable
|
|||||||
public partial class battleSceneConfig : IBinarySerializable
|
public partial class battleSceneConfig : IBinarySerializable
|
||||||
{
|
{
|
||||||
Dictionary<int,battleScene> battleSceneInfos = new Dictionary<int,battleScene>();
|
Dictionary<int,battleScene> battleSceneInfos = new Dictionary<int,battleScene>();
|
||||||
|
|
||||||
|
public List<battleScene> battleSceneList()
|
||||||
|
{
|
||||||
|
return new List<battleScene>(battleSceneInfos.Values);
|
||||||
|
}
|
||||||
|
|
||||||
public void DeSerialize(BinaryReader reader)
|
public void DeSerialize(BinaryReader reader)
|
||||||
{
|
{
|
||||||
int count = reader.ReadInt32();
|
int count = reader.ReadInt32();
|
||||||
|
|||||||
@@ -218,6 +218,12 @@ public partial class official_room : IBinarySerializable
|
|||||||
public partial class official_roomConfig : IBinarySerializable
|
public partial class official_roomConfig : IBinarySerializable
|
||||||
{
|
{
|
||||||
Dictionary<int,official_room> official_roomInfos = new Dictionary<int,official_room>();
|
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)
|
public void DeSerialize(BinaryReader reader)
|
||||||
{
|
{
|
||||||
int count = reader.ReadInt32();
|
int count = reader.ReadInt32();
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
@@ -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\Microsoft.mshtml.dll
|
||||||
D:\study\github\ExcelTool\ExcelTool\bin\Debug\Spire.Pdf.xml
|
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\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.CoreCompileInputs.cache
|
||||||
D:\study\github\ExcelTool\ExcelTool\obj\Debug\ExcelTool.csproj.CopyComplete
|
D:\study\github\ExcelTool\ExcelTool\obj\Debug\ExcelTool.csproj.CopyComplete
|
||||||
D:\study\github\ExcelTool\ExcelTool\obj\Debug\ExcelTool.exe
|
D:\study\github\ExcelTool\ExcelTool\obj\Debug\ExcelTool.exe
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user