From df32db9a60b9acf6d7ed1a7637205a744e82bfdd Mon Sep 17 00:00:00 2001 From: rafi1212122 Date: Tue, 23 May 2023 21:20:51 +0700 Subject: [PATCH] Add project files. --- Common/Common.csproj | 13 +++++++++++++ Common/Program.cs | 25 +++++++++++++++++++++++++ PemukulPaku.csproj | 24 ++++++++++++++++++++++++ PemukulPaku.sln | 31 +++++++++++++++++++++++++++++++ Program.cs | 16 ++++++++++++++++ Resources/.gitkeep | 1 + 6 files changed, 110 insertions(+) create mode 100644 Common/Common.csproj create mode 100644 Common/Program.cs create mode 100644 PemukulPaku.csproj create mode 100644 PemukulPaku.sln create mode 100644 Program.cs create mode 100644 Resources/.gitkeep diff --git a/Common/Common.csproj b/Common/Common.csproj new file mode 100644 index 0000000..059ef88 --- /dev/null +++ b/Common/Common.csproj @@ -0,0 +1,13 @@ + + + + net6.0 + enable + enable + + + + + + + diff --git a/Common/Program.cs b/Common/Program.cs new file mode 100644 index 0000000..932db59 --- /dev/null +++ b/Common/Program.cs @@ -0,0 +1,25 @@ +using Config.Net; + +namespace Common +{ + public static class Global + { + public static IConfig config = new ConfigurationBuilder().UseJsonFile("config.json").Build(); + } + + public interface IConfig + { + [Option(DefaultValue = VerboseLevel.Normal)] + VerboseLevel VerboseLevel { get; } + + [Option(DefaultValue = "mongodb://localhost:27017/crepebh")] + string DatabaseUri { get; } + + } + + public enum VerboseLevel + { + Normal = 0, + Debug = 1 + } +} \ No newline at end of file diff --git a/PemukulPaku.csproj b/PemukulPaku.csproj new file mode 100644 index 0000000..b3e7e06 --- /dev/null +++ b/PemukulPaku.csproj @@ -0,0 +1,24 @@ + + + + Exe + net6.0 + enable + enable + + + + + + + + + + + + + + + + + diff --git a/PemukulPaku.sln b/PemukulPaku.sln new file mode 100644 index 0000000..213d62d --- /dev/null +++ b/PemukulPaku.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.4.33205.214 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PemukulPaku", "PemukulPaku.csproj", "{7D6FBA7C-137B-43A9-B7CE-0932277AC202}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Common", "Common\Common.csproj", "{226D0356-65DE-4DBD-9FF4-7D4B527B02E0}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {7D6FBA7C-137B-43A9-B7CE-0932277AC202}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {7D6FBA7C-137B-43A9-B7CE-0932277AC202}.Debug|Any CPU.Build.0 = Debug|Any CPU + {7D6FBA7C-137B-43A9-B7CE-0932277AC202}.Release|Any CPU.ActiveCfg = Release|Any CPU + {7D6FBA7C-137B-43A9-B7CE-0932277AC202}.Release|Any CPU.Build.0 = Release|Any CPU + {226D0356-65DE-4DBD-9FF4-7D4B527B02E0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {226D0356-65DE-4DBD-9FF4-7D4B527B02E0}.Debug|Any CPU.Build.0 = Debug|Any CPU + {226D0356-65DE-4DBD-9FF4-7D4B527B02E0}.Release|Any CPU.ActiveCfg = Release|Any CPU + {226D0356-65DE-4DBD-9FF4-7D4B527B02E0}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {899AE63B-ADA9-4F9F-B78D-B7B20546F58C} + EndGlobalSection +EndGlobal diff --git a/Program.cs b/Program.cs new file mode 100644 index 0000000..aaec4df --- /dev/null +++ b/Program.cs @@ -0,0 +1,16 @@ +using PemukulPaku.Resources.Proto; + +namespace PemukulPaku +{ + class Program + { + public static void Main() + { + Console.WriteLine("Hello!"); + GetPlayerTokenRsp getPlayerTokenRsp = new() + { + Msg = "Hello!" + }; + } + } +} \ No newline at end of file diff --git a/Resources/.gitkeep b/Resources/.gitkeep new file mode 100644 index 0000000..5f28270 --- /dev/null +++ b/Resources/.gitkeep @@ -0,0 +1 @@ + \ No newline at end of file