Skip to content

Commit 4dcdd79

Browse files
committed
[COTLMPSERVER] Initial implementation of the dedicated server command line parser
1 parent ebf21b5 commit 4dcdd79

5 files changed

Lines changed: 76 additions & 2 deletions

File tree

COTLMP.sln

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio Version 17
4-
VisualStudioVersion = 17.14.36310.24
3+
# Visual Studio Version 18
4+
VisualStudioVersion = 18.5.11723.231 stable
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "COTLMP", "COTLMP\COTLMP.csproj", "{75CAB2D0-F823-DEFE-5EF0-A25BC117280F}"
77
EndProject
88
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "COTLMPServer", "COTLMPServer\COTLMPServer.csproj", "{9476AA40-C94F-43C7-BF81-9427F4329E8F}"
99
EndProject
10+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ServerParser", "COTLMPServer\ServerParser\ServerParser.csproj", "{5F8D0FDB-1CD8-4C91-989E-A13990541CE5}"
11+
EndProject
1012
Global
1113
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1214
Debug|Any CPU = Debug|Any CPU
@@ -21,6 +23,10 @@ Global
2123
{9476AA40-C94F-43C7-BF81-9427F4329E8F}.Debug|Any CPU.Build.0 = Debug|Any CPU
2224
{9476AA40-C94F-43C7-BF81-9427F4329E8F}.Release|Any CPU.ActiveCfg = Release|Any CPU
2325
{9476AA40-C94F-43C7-BF81-9427F4329E8F}.Release|Any CPU.Build.0 = Release|Any CPU
26+
{5F8D0FDB-1CD8-4C91-989E-A13990541CE5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
27+
{5F8D0FDB-1CD8-4C91-989E-A13990541CE5}.Debug|Any CPU.Build.0 = Debug|Any CPU
28+
{5F8D0FDB-1CD8-4C91-989E-A13990541CE5}.Release|Any CPU.ActiveCfg = Release|Any CPU
29+
{5F8D0FDB-1CD8-4C91-989E-A13990541CE5}.Release|Any CPU.Build.0 = Release|Any CPU
2430
EndGlobalSection
2531
GlobalSection(SolutionProperties) = preSolution
2632
HideSolutionNode = FALSE

COTLMPServer/COTLMPServer.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,8 @@
44
<TargetFramework>netstandard2.0</TargetFramework>
55
</PropertyGroup>
66

7+
<ItemGroup>
8+
<PackageReference Include="CommandLineParser" Version="2.9.1" />
9+
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
10+
</ItemGroup>
711
</Project>
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/*
2+
* PROJECT: Cult of the Lamb Multiplayer Mod
3+
* LICENSE: MIT (https://spdx.org/licenses/MIT)
4+
* PURPOSE: Main command line launcher
5+
* COPYRIGHT: Copyright 2026 GeoB99 <geobman1999@gmail.com>
6+
*/
7+
8+
/* IMPORTS ********************************************************************/
9+
10+
using System;
11+
12+
/* CLASSES & CODE *************************************************************/
13+
14+
namespace COTLMPServer
15+
{
16+
internal static class Launcher
17+
{
18+
public static void Main(string[] args)
19+
{
20+
COTLMPServer.ServerParser.ParseArgs(args);
21+
}
22+
}
23+
}
24+
25+
/* EOF */
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/*
2+
* PROJECT: Cult of the Lamb Multiplayer Mod
3+
* LICENSE: MIT (https://spdx.org/licenses/MIT)
4+
* PURPOSE: Dedicated server command line parser
5+
* COPYRIGHT: Copyright 2026 GeoB99 <geobman1999@gmail.com>
6+
*/
7+
8+
/* IMPORTS ********************************************************************/
9+
10+
using System;
11+
using CommandLine;
12+
13+
/* CLASSES & CODE *************************************************************/
14+
15+
namespace COTLMPServer
16+
{
17+
internal static class ServerParser
18+
{
19+
public static void ParseArgs(string[] Arguments)
20+
{
21+
Console.WriteLine(Arguments);
22+
}
23+
}
24+
}
25+
26+
/* EOF */
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<AssemblyName>CultOfTheLambServer</AssemblyName>
5+
<OutputType>Exe</OutputType>
6+
<TargetFramework>netstandard2.0</TargetFramework>
7+
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
8+
</PropertyGroup>
9+
10+
<ItemGroup>
11+
<ProjectReference Include="..\COTLMPServer.csproj" />
12+
</ItemGroup>
13+
</Project>

0 commit comments

Comments
 (0)