Skip to content

Commit bfaa85b

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

6 files changed

Lines changed: 86 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
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}") = "DedicatedServer", "COTLMPServer\DedicatedServer\DedicatedServer.csproj", "{1D6C6C2A-38F4-4574-918D-24A33F1FB8C6}"
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+
{1D6C6C2A-38F4-4574-918D-24A33F1FB8C6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
27+
{1D6C6C2A-38F4-4574-918D-24A33F1FB8C6}.Debug|Any CPU.Build.0 = Debug|Any CPU
28+
{1D6C6C2A-38F4-4574-918D-24A33F1FB8C6}.Release|Any CPU.ActiveCfg = Release|Any CPU
29+
{1D6C6C2A-38F4-4574-918D-24A33F1FB8C6}.Release|Any CPU.Build.0 = Release|Any CPU
2430
EndGlobalSection
2531
GlobalSection(SolutionProperties) = preSolution
2632
HideSolutionNode = FALSE

COTLMP/COTLMP.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
https://nuget.samboy.dev/v3/index.json
1414
</RestoreAdditionalProjectSources>
1515
<RootNamespace>COTLMP</RootNamespace>
16+
<GenerateTargetFrameworkAttribute>false</GenerateTargetFrameworkAttribute>
1617
</PropertyGroup>
1718

1819
<ItemGroup>

COTLMPServer/COTLMPServer.csproj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
<PropertyGroup>
44
<TargetFramework>netstandard2.0</TargetFramework>
5+
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
6+
<GenerateTargetFrameworkAttribute>false</GenerateTargetFrameworkAttribute>
57
</PropertyGroup>
68

9+
<ItemGroup>
10+
<PackageReference Include="CommandLineParser" Version="2.9.1" />
11+
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
12+
</ItemGroup>
713
</Project>
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: Core dedicated server CLI 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 DedicatedServer
18+
{
19+
public static void Initialize(string[] Arguments)
20+
{
21+
Console.WriteLine(Arguments);
22+
}
23+
}
24+
}
25+
26+
/* EOF */
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<OutputType>Exe</OutputType>
5+
<TargetFramework>net10.0</TargetFramework>
6+
<AssemblyTitle>CultOfTheLambServer</AssemblyTitle>
7+
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
8+
<GenerateTargetFrameworkAttribute>false</GenerateTargetFrameworkAttribute>
9+
<AssemblyName>CultOfTheLambServer</AssemblyName>
10+
</PropertyGroup>
11+
12+
<ItemGroup>
13+
<ProjectReference Include="..\COTLMPServer.csproj" />
14+
</ItemGroup>
15+
16+
<ItemGroup>
17+
<PackageReference Include="CommandLineParser" Version="2.9.1" />
18+
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
19+
</ItemGroup>
20+
</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 entry point dedicated server 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.DedicatedServer.Initialize(args);
21+
}
22+
}
23+
}
24+
25+
/* EOF */

0 commit comments

Comments
 (0)