From 666c8798b676acdd5fb0c080084b89e6f17f4a05 Mon Sep 17 00:00:00 2001 From: Shawqeem <1004837646@qq.com> Date: Fri, 9 Dec 2022 22:21:22 +0800 Subject: [PATCH 1/4] chore : add map --- CAPI/API/include/structures.h | 2 +- dependency/proto/Proto.csproj | 35 +++++++++ dependency/proto/Proto.sln | 25 +++++++ format.sh | 21 ++++++ logic/Client/Client.csproj | 10 +++ logic/Client/Client.sln | 8 +- logic/Client/MainWindow.xaml | 4 +- logic/Client/MainWindow.xaml.cs | 127 +++++++++++++++++++++++++++++++- 8 files changed, 226 insertions(+), 6 deletions(-) create mode 100644 dependency/proto/Proto.csproj create mode 100644 dependency/proto/Proto.sln create mode 100644 format.sh diff --git a/CAPI/API/include/structures.h b/CAPI/API/include/structures.h index bdeab2e..8505e29 100644 --- a/CAPI/API/include/structures.h +++ b/CAPI/API/include/structures.h @@ -87,7 +87,7 @@ namespace THUAI6 ButcherBuffType4 = 4, }; - //人类状态枚举 + // 人类状态枚举 enum class HumanState : unsigned char { NullHumanState = 0, diff --git a/dependency/proto/Proto.csproj b/dependency/proto/Proto.csproj new file mode 100644 index 0000000..394d86e --- /dev/null +++ b/dependency/proto/Proto.csproj @@ -0,0 +1,35 @@ + + + + net6.0 + enable + enable + + + + + + + + + + + + + + + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + + + + + + + + diff --git a/dependency/proto/Proto.sln b/dependency/proto/Proto.sln new file mode 100644 index 0000000..2cdbe95 --- /dev/null +++ b/dependency/proto/Proto.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.1.32328.378 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Proto", "Proto.csproj", "{B9A3CDD7-7852-4220-A2AA-2B986E0C19E8}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {B9A3CDD7-7852-4220-A2AA-2B986E0C19E8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {B9A3CDD7-7852-4220-A2AA-2B986E0C19E8}.Debug|Any CPU.Build.0 = Debug|Any CPU + {B9A3CDD7-7852-4220-A2AA-2B986E0C19E8}.Release|Any CPU.ActiveCfg = Release|Any CPU + {B9A3CDD7-7852-4220-A2AA-2B986E0C19E8}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {CB1C0B2E-5D0E-4420-94B5-FE8AECC7E106} + EndGlobalSection +EndGlobal diff --git a/format.sh b/format.sh new file mode 100644 index 0000000..dba6115 --- /dev/null +++ b/format.sh @@ -0,0 +1,21 @@ +for i in {1..10} +do +find . -iname "*.cs" \ + -or -iname "*.c" \ + -or -iname "*.h" \ + -or -iname "*.C" \ + -or -iname "*.H" \ + -or -iname "*.cpp" \ + -or -iname "*.hpp" \ + -or -iname "*.cc" \ + -or -iname "*.hh" \ + -or -iname "*.c++" \ + -or -iname "*.h++" \ + -or -iname "*.cxx" \ + -or -iname "*.hxx" \ + -or -iname "*.i" \ + -or -iname "*.ixx" \ + -or -iname "*.ipp" \ + -or -iname "*.i++" \ + | xargs clang-format -i +done diff --git a/logic/Client/Client.csproj b/logic/Client/Client.csproj index f6e1da0..0de9ead 100644 --- a/logic/Client/Client.csproj +++ b/logic/Client/Client.csproj @@ -11,6 +11,16 @@ + + + + + + + + + + diff --git a/logic/Client/Client.sln b/logic/Client/Client.sln index 8a42788..626d667 100644 --- a/logic/Client/Client.sln +++ b/logic/Client/Client.sln @@ -3,7 +3,9 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 17 VisualStudioVersion = 17.1.32328.378 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Client", "Client.csproj", "{5AD8481D-90EF-410C-BD48-355DB97EEAB3}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Client", "Client.csproj", "{5AD8481D-90EF-410C-BD48-355DB97EEAB3}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Proto", "..\..\dependency\proto\Proto.csproj", "{E445B0DD-D0DF-4413-AE47-1748392843F7}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -15,6 +17,10 @@ Global {5AD8481D-90EF-410C-BD48-355DB97EEAB3}.Debug|Any CPU.Build.0 = Debug|Any CPU {5AD8481D-90EF-410C-BD48-355DB97EEAB3}.Release|Any CPU.ActiveCfg = Release|Any CPU {5AD8481D-90EF-410C-BD48-355DB97EEAB3}.Release|Any CPU.Build.0 = Release|Any CPU + {E445B0DD-D0DF-4413-AE47-1748392843F7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {E445B0DD-D0DF-4413-AE47-1748392843F7}.Debug|Any CPU.Build.0 = Debug|Any CPU + {E445B0DD-D0DF-4413-AE47-1748392843F7}.Release|Any CPU.ActiveCfg = Release|Any CPU + {E445B0DD-D0DF-4413-AE47-1748392843F7}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/logic/Client/MainWindow.xaml b/logic/Client/MainWindow.xaml index 0f9b41b..e1b69e6 100644 --- a/logic/Client/MainWindow.xaml +++ b/logic/Client/MainWindow.xaml @@ -31,8 +31,8 @@ - - + +