PlaytimeHistory 0.1.0: sessions and team/alive segments in MySQL, DB-IP locations

This commit is contained in:
Astra 2026-10-04 17:45:48 +01:00
commit a56dbad03a
11 changed files with 1989 additions and 0 deletions

25
PlaytimeHistory.csproj Normal file
View file

@ -0,0 +1,25 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<AssemblyName>PlaytimeHistory</AssemblyName>
<RootNamespace>PlaytimeHistory</RootNamespace>
</PropertyGroup>
<ItemGroup>
<!-- Compile-time only: the server already has CounterStrikeSharp.API.dll -->
<PackageReference Include="CounterStrikeSharp.API" Version="1.0.376">
<PrivateAssets>none</PrivateAssets>
<ExcludeAssets>runtime</ExcludeAssets>
<IncludeAssets>compile; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<!-- The same MySQL driver and version as CS2-SimpleAdmin and GroupVerify; ships with the plugin -->
<PackageReference Include="MySqlConnector" Version="2.6.0" />
<!-- Reads DB-IP's location database (MaxMind DB format); the same version jRandomSkills ships -->
<PackageReference Include="MaxMind.Db" Version="5.1.0" />
</ItemGroup>
<ItemGroup>
<!-- Embedded, so the tables are created without any extra files on the server -->
<EmbeddedResource Include="Migrations/*.sql" LogicalName="PlaytimeHistory.Migrations.%(Filename)%(Extension)" />
</ItemGroup>
</Project>