feat: add BasePower abstraction

This commit is contained in:
admin
2026-07-26 23:47:38 +02:00
commit 6dbbfc0dde
83 changed files with 7587 additions and 0 deletions
@@ -0,0 +1,67 @@
{
"format": 1,
"restore": {
"/root/cs2-super-powers/src/Cs2SuperPowers/Cs2SuperPowers.csproj": {}
},
"projects": {
"/root/cs2-super-powers/src/Cs2SuperPowers/Cs2SuperPowers.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "/root/cs2-super-powers/src/Cs2SuperPowers/Cs2SuperPowers.csproj",
"projectName": "Cs2SuperPowersPlugin",
"projectPath": "/root/cs2-super-powers/src/Cs2SuperPowers/Cs2SuperPowers.csproj",
"packagesPath": "/root/.nuget/packages/",
"outputPath": "/root/cs2-super-powers/src/Cs2SuperPowers/obj/",
"projectStyle": "PackageReference",
"configFilePaths": [
"/root/.nuget/NuGet/NuGet.Config"
],
"originalTargetFrameworks": [
"net8.0"
],
"sources": {
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net8.0": {
"targetAlias": "net8.0",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"net8.0": {
"targetAlias": "net8.0",
"dependencies": {
"CounterStrikeSharp.API": {
"target": "Package",
"version": "[1.0.340, )"
}
},
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48",
"net481"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "/usr/lib/dotnet/sdk/8.0.129/PortableRuntimeIdentifierGraph.json"
}
}
}
}
}
+21
View File
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">/root/.nuget/packages/</NuGetPackageRoot>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">/root/.nuget/packages/</NuGetPackageFolders>
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.8.2</NuGetToolVersion>
</PropertyGroup>
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<SourceRoot Include="/root/.nuget/packages/" />
</ItemGroup>
<ImportGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<Import Project="$(NuGetPackageRoot)microsoft.extensions.configuration.usersecrets/8.0.0/buildTransitive/net6.0/Microsoft.Extensions.Configuration.UserSecrets.props" Condition="Exists('$(NuGetPackageRoot)microsoft.extensions.configuration.usersecrets/8.0.0/buildTransitive/net6.0/Microsoft.Extensions.Configuration.UserSecrets.props')" />
</ImportGroup>
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<PkgMicrosoft_DotNet_ApiCompat_Task Condition=" '$(PkgMicrosoft_DotNet_ApiCompat_Task)' == '' ">/root/.nuget/packages/microsoft.dotnet.apicompat.task/8.0.203</PkgMicrosoft_DotNet_ApiCompat_Task>
</PropertyGroup>
</Project>
+10
View File
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ImportGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<Import Project="$(NuGetPackageRoot)system.text.json/8.0.0/buildTransitive/net6.0/System.Text.Json.targets" Condition="Exists('$(NuGetPackageRoot)system.text.json/8.0.0/buildTransitive/net6.0/System.Text.Json.targets')" />
<Import Project="$(NuGetPackageRoot)microsoft.extensions.options/8.0.0/buildTransitive/net6.0/Microsoft.Extensions.Options.targets" Condition="Exists('$(NuGetPackageRoot)microsoft.extensions.options/8.0.0/buildTransitive/net6.0/Microsoft.Extensions.Options.targets')" />
<Import Project="$(NuGetPackageRoot)microsoft.extensions.logging.abstractions/8.0.0/buildTransitive/net6.0/Microsoft.Extensions.Logging.Abstractions.targets" Condition="Exists('$(NuGetPackageRoot)microsoft.extensions.logging.abstractions/8.0.0/buildTransitive/net6.0/Microsoft.Extensions.Logging.Abstractions.targets')" />
<Import Project="$(NuGetPackageRoot)microsoft.extensions.configuration.binder/8.0.0/buildTransitive/netstandard2.0/Microsoft.Extensions.Configuration.Binder.targets" Condition="Exists('$(NuGetPackageRoot)microsoft.extensions.configuration.binder/8.0.0/buildTransitive/netstandard2.0/Microsoft.Extensions.Configuration.Binder.targets')" />
<Import Project="$(NuGetPackageRoot)microsoft.extensions.configuration.usersecrets/8.0.0/buildTransitive/net6.0/Microsoft.Extensions.Configuration.UserSecrets.targets" Condition="Exists('$(NuGetPackageRoot)microsoft.extensions.configuration.usersecrets/8.0.0/buildTransitive/net6.0/Microsoft.Extensions.Configuration.UserSecrets.targets')" />
</ImportGroup>
</Project>
@@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v8.0", FrameworkDisplayName = ".NET 8.0")]
@@ -0,0 +1,22 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("Cs2SuperPowersPlugin")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+6b9188af13e48a65cfefd8729e5e5469a0b35c1e")]
[assembly: System.Reflection.AssemblyProductAttribute("Cs2SuperPowersPlugin")]
[assembly: System.Reflection.AssemblyTitleAttribute("Cs2SuperPowersPlugin")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
// Generated by the MSBuild WriteCodeFragment class.
@@ -0,0 +1 @@
fc9824fdd39076879a9102cc1b172ceb7340b30cd70e3dd0cdc1e76853ff07aa
@@ -0,0 +1,13 @@
is_global = true
build_property.TargetFramework = net8.0
build_property.TargetPlatformMinVersion =
build_property.UsingMicrosoftNETSdkWeb =
build_property.ProjectTypeGuids =
build_property.InvariantGlobalization =
build_property.PlatformNeutralAssembly =
build_property.EnforceExtendedAnalyzerRules =
build_property._SupportedPlatformList = Linux,macOS,Windows
build_property.RootNamespace = Cs2SuperPowers
build_property.ProjectDir = /root/cs2-super-powers/src/Cs2SuperPowers/
build_property.EnableComHosting =
build_property.EnableGeneratedComInterfaceComImportInterop =
@@ -0,0 +1,8 @@
// <auto-generated/>
global using global::System;
global using global::System.Collections.Generic;
global using global::System.IO;
global using global::System.Linq;
global using global::System.Net.Http;
global using global::System.Threading;
global using global::System.Threading.Tasks;
Binary file not shown.
@@ -0,0 +1 @@
5eefefd3a6dc2eb1c4e2012b99d9fde56476ddbf4a1872eb47da73d9bc38b56a
@@ -0,0 +1,13 @@
/root/cs2-super-powers/src/Cs2SuperPowers/bin/Debug/net8.0/Cs2SuperPowersPlugin.deps.json
/root/cs2-super-powers/src/Cs2SuperPowers/bin/Debug/net8.0/Cs2SuperPowersPlugin.dll
/root/cs2-super-powers/src/Cs2SuperPowers/bin/Debug/net8.0/Cs2SuperPowersPlugin.pdb
/root/cs2-super-powers/src/Cs2SuperPowers/obj/Debug/net8.0/Cs2SuperPowers.csproj.AssemblyReference.cache
/root/cs2-super-powers/src/Cs2SuperPowers/obj/Debug/net8.0/Cs2SuperPowers.GeneratedMSBuildEditorConfig.editorconfig
/root/cs2-super-powers/src/Cs2SuperPowers/obj/Debug/net8.0/Cs2SuperPowers.AssemblyInfoInputs.cache
/root/cs2-super-powers/src/Cs2SuperPowers/obj/Debug/net8.0/Cs2SuperPowers.AssemblyInfo.cs
/root/cs2-super-powers/src/Cs2SuperPowers/obj/Debug/net8.0/Cs2SuperPowers.csproj.CoreCompileInputs.cache
/root/cs2-super-powers/src/Cs2SuperPowers/obj/Debug/net8.0/Cs2SuperPowers.sourcelink.json
/root/cs2-super-powers/src/Cs2SuperPowers/obj/Debug/net8.0/Cs2SuperPowersPlugin.dll
/root/cs2-super-powers/src/Cs2SuperPowers/obj/Debug/net8.0/refint/Cs2SuperPowersPlugin.dll
/root/cs2-super-powers/src/Cs2SuperPowers/obj/Debug/net8.0/Cs2SuperPowersPlugin.pdb
/root/cs2-super-powers/src/Cs2SuperPowers/obj/Debug/net8.0/ref/Cs2SuperPowersPlugin.dll
@@ -0,0 +1 @@
{"documents":{"/root/cs2-super-powers/*":"https://raw.githubusercontent.com/daniel-Jones/cs2-super-powers/6b9188af13e48a65cfefd8729e5e5469a0b35c1e/*"}}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v8.0", FrameworkDisplayName = ".NET 8.0")]
@@ -0,0 +1,22 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("Cs2SuperPowersPlugin")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+6b9188af13e48a65cfefd8729e5e5469a0b35c1e")]
[assembly: System.Reflection.AssemblyProductAttribute("Cs2SuperPowersPlugin")]
[assembly: System.Reflection.AssemblyTitleAttribute("Cs2SuperPowersPlugin")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
// Generated by the MSBuild WriteCodeFragment class.
@@ -0,0 +1 @@
fc9824fdd39076879a9102cc1b172ceb7340b30cd70e3dd0cdc1e76853ff07aa
@@ -0,0 +1,13 @@
is_global = true
build_property.TargetFramework = net8.0
build_property.TargetPlatformMinVersion =
build_property.UsingMicrosoftNETSdkWeb =
build_property.ProjectTypeGuids =
build_property.InvariantGlobalization =
build_property.PlatformNeutralAssembly =
build_property.EnforceExtendedAnalyzerRules =
build_property._SupportedPlatformList = Linux,macOS,Windows
build_property.RootNamespace = Cs2SuperPowers
build_property.ProjectDir = /root/cs2-super-powers/src/Cs2SuperPowers/
build_property.EnableComHosting =
build_property.EnableGeneratedComInterfaceComImportInterop =
@@ -0,0 +1,8 @@
// <auto-generated/>
global using global::System;
global using global::System.Collections.Generic;
global using global::System.IO;
global using global::System.Linq;
global using global::System.Net.Http;
global using global::System.Threading;
global using global::System.Threading.Tasks;
Binary file not shown.
@@ -0,0 +1 @@
62926f76f909b1bea4bedcdd9f0707f28f15895e174e05e2e35caa7566aa82f1
@@ -0,0 +1,13 @@
/root/cs2-super-powers/src/Cs2SuperPowers/obj/linux/Debug/net8.0/Cs2SuperPowers.csproj.AssemblyReference.cache
/root/cs2-super-powers/src/Cs2SuperPowers/obj/linux/Debug/net8.0/Cs2SuperPowers.GeneratedMSBuildEditorConfig.editorconfig
/root/cs2-super-powers/src/Cs2SuperPowers/obj/linux/Debug/net8.0/Cs2SuperPowers.AssemblyInfoInputs.cache
/root/cs2-super-powers/src/Cs2SuperPowers/obj/linux/Debug/net8.0/Cs2SuperPowers.AssemblyInfo.cs
/root/cs2-super-powers/src/Cs2SuperPowers/obj/linux/Debug/net8.0/Cs2SuperPowers.csproj.CoreCompileInputs.cache
/root/cs2-super-powers/src/Cs2SuperPowers/obj/linux/Debug/net8.0/Cs2SuperPowers.sourcelink.json
/root/cs2-super-powers/src/Cs2SuperPowers/bin/linux/Debug/net8.0/Cs2SuperPowersPlugin.deps.json
/root/cs2-super-powers/src/Cs2SuperPowers/bin/linux/Debug/net8.0/Cs2SuperPowersPlugin.dll
/root/cs2-super-powers/src/Cs2SuperPowers/bin/linux/Debug/net8.0/Cs2SuperPowersPlugin.pdb
/root/cs2-super-powers/src/Cs2SuperPowers/obj/linux/Debug/net8.0/Cs2SuperPowersPlugin.dll
/root/cs2-super-powers/src/Cs2SuperPowers/obj/linux/Debug/net8.0/refint/Cs2SuperPowersPlugin.dll
/root/cs2-super-powers/src/Cs2SuperPowers/obj/linux/Debug/net8.0/Cs2SuperPowersPlugin.pdb
/root/cs2-super-powers/src/Cs2SuperPowers/obj/linux/Debug/net8.0/ref/Cs2SuperPowersPlugin.dll
@@ -0,0 +1 @@
{"documents":{"/root/cs2-super-powers/*":"https://raw.githubusercontent.com/daniel-Jones/cs2-super-powers/6b9188af13e48a65cfefd8729e5e5469a0b35c1e/*"}}
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large Load Diff
+57
View File
@@ -0,0 +1,57 @@
{
"version": 2,
"dgSpecHash": "1KtfxQ9lBL5TWB2RIU02GzpC6CvxvF3J6VAPEJSeMxUm6URxUqqCEht3e11SKXOPO8Yyn73BP4NWeIyQhjkZbQ==",
"success": true,
"projectFilePath": "/root/cs2-super-powers/src/Cs2SuperPowers/Cs2SuperPowers.csproj",
"expectedPackageFiles": [
"/root/.nuget/packages/counterstrikesharp.api/1.0.340/counterstrikesharp.api.1.0.340.nupkg.sha512",
"/root/.nuget/packages/mcmaster.netcore.plugins/1.4.0/mcmaster.netcore.plugins.1.4.0.nupkg.sha512",
"/root/.nuget/packages/microsoft.csharp/4.7.0/microsoft.csharp.4.7.0.nupkg.sha512",
"/root/.nuget/packages/microsoft.dotnet.apicompat.task/8.0.203/microsoft.dotnet.apicompat.task.8.0.203.nupkg.sha512",
"/root/.nuget/packages/microsoft.dotnet.platformabstractions/3.1.6/microsoft.dotnet.platformabstractions.3.1.6.nupkg.sha512",
"/root/.nuget/packages/microsoft.extensions.configuration/8.0.0/microsoft.extensions.configuration.8.0.0.nupkg.sha512",
"/root/.nuget/packages/microsoft.extensions.configuration.abstractions/8.0.0/microsoft.extensions.configuration.abstractions.8.0.0.nupkg.sha512",
"/root/.nuget/packages/microsoft.extensions.configuration.binder/8.0.0/microsoft.extensions.configuration.binder.8.0.0.nupkg.sha512",
"/root/.nuget/packages/microsoft.extensions.configuration.commandline/8.0.0/microsoft.extensions.configuration.commandline.8.0.0.nupkg.sha512",
"/root/.nuget/packages/microsoft.extensions.configuration.environmentvariables/8.0.0/microsoft.extensions.configuration.environmentvariables.8.0.0.nupkg.sha512",
"/root/.nuget/packages/microsoft.extensions.configuration.fileextensions/8.0.0/microsoft.extensions.configuration.fileextensions.8.0.0.nupkg.sha512",
"/root/.nuget/packages/microsoft.extensions.configuration.json/8.0.0/microsoft.extensions.configuration.json.8.0.0.nupkg.sha512",
"/root/.nuget/packages/microsoft.extensions.configuration.usersecrets/8.0.0/microsoft.extensions.configuration.usersecrets.8.0.0.nupkg.sha512",
"/root/.nuget/packages/microsoft.extensions.dependencyinjection/8.0.0/microsoft.extensions.dependencyinjection.8.0.0.nupkg.sha512",
"/root/.nuget/packages/microsoft.extensions.dependencyinjection.abstractions/8.0.0/microsoft.extensions.dependencyinjection.abstractions.8.0.0.nupkg.sha512",
"/root/.nuget/packages/microsoft.extensions.dependencymodel/6.0.0/microsoft.extensions.dependencymodel.6.0.0.nupkg.sha512",
"/root/.nuget/packages/microsoft.extensions.diagnostics/8.0.0/microsoft.extensions.diagnostics.8.0.0.nupkg.sha512",
"/root/.nuget/packages/microsoft.extensions.diagnostics.abstractions/8.0.0/microsoft.extensions.diagnostics.abstractions.8.0.0.nupkg.sha512",
"/root/.nuget/packages/microsoft.extensions.fileproviders.abstractions/8.0.0/microsoft.extensions.fileproviders.abstractions.8.0.0.nupkg.sha512",
"/root/.nuget/packages/microsoft.extensions.fileproviders.physical/8.0.0/microsoft.extensions.fileproviders.physical.8.0.0.nupkg.sha512",
"/root/.nuget/packages/microsoft.extensions.filesystemglobbing/8.0.0/microsoft.extensions.filesystemglobbing.8.0.0.nupkg.sha512",
"/root/.nuget/packages/microsoft.extensions.hosting/8.0.0/microsoft.extensions.hosting.8.0.0.nupkg.sha512",
"/root/.nuget/packages/microsoft.extensions.hosting.abstractions/8.0.0/microsoft.extensions.hosting.abstractions.8.0.0.nupkg.sha512",
"/root/.nuget/packages/microsoft.extensions.localization.abstractions/8.0.3/microsoft.extensions.localization.abstractions.8.0.3.nupkg.sha512",
"/root/.nuget/packages/microsoft.extensions.logging/8.0.0/microsoft.extensions.logging.8.0.0.nupkg.sha512",
"/root/.nuget/packages/microsoft.extensions.logging.abstractions/8.0.0/microsoft.extensions.logging.abstractions.8.0.0.nupkg.sha512",
"/root/.nuget/packages/microsoft.extensions.logging.configuration/8.0.0/microsoft.extensions.logging.configuration.8.0.0.nupkg.sha512",
"/root/.nuget/packages/microsoft.extensions.logging.console/8.0.0/microsoft.extensions.logging.console.8.0.0.nupkg.sha512",
"/root/.nuget/packages/microsoft.extensions.logging.debug/8.0.0/microsoft.extensions.logging.debug.8.0.0.nupkg.sha512",
"/root/.nuget/packages/microsoft.extensions.logging.eventlog/8.0.0/microsoft.extensions.logging.eventlog.8.0.0.nupkg.sha512",
"/root/.nuget/packages/microsoft.extensions.logging.eventsource/8.0.0/microsoft.extensions.logging.eventsource.8.0.0.nupkg.sha512",
"/root/.nuget/packages/microsoft.extensions.options/8.0.0/microsoft.extensions.options.8.0.0.nupkg.sha512",
"/root/.nuget/packages/microsoft.extensions.options.configurationextensions/8.0.0/microsoft.extensions.options.configurationextensions.8.0.0.nupkg.sha512",
"/root/.nuget/packages/microsoft.extensions.primitives/8.0.0/microsoft.extensions.primitives.8.0.0.nupkg.sha512",
"/root/.nuget/packages/scrutor/4.2.2/scrutor.4.2.2.nupkg.sha512",
"/root/.nuget/packages/serilog/3.1.1/serilog.3.1.1.nupkg.sha512",
"/root/.nuget/packages/serilog.extensions.logging/8.0.0/serilog.extensions.logging.8.0.0.nupkg.sha512",
"/root/.nuget/packages/serilog.sinks.console/5.0.0/serilog.sinks.console.5.0.0.nupkg.sha512",
"/root/.nuget/packages/serilog.sinks.file/5.0.0/serilog.sinks.file.5.0.0.nupkg.sha512",
"/root/.nuget/packages/system.buffers/4.5.1/system.buffers.4.5.1.nupkg.sha512",
"/root/.nuget/packages/system.data.datasetextensions/4.5.0/system.data.datasetextensions.4.5.0.nupkg.sha512",
"/root/.nuget/packages/system.diagnostics.diagnosticsource/8.0.0/system.diagnostics.diagnosticsource.8.0.0.nupkg.sha512",
"/root/.nuget/packages/system.diagnostics.eventlog/8.0.0/system.diagnostics.eventlog.8.0.0.nupkg.sha512",
"/root/.nuget/packages/system.memory/4.5.4/system.memory.4.5.4.nupkg.sha512",
"/root/.nuget/packages/system.runtime.compilerservices.unsafe/6.0.0/system.runtime.compilerservices.unsafe.6.0.0.nupkg.sha512",
"/root/.nuget/packages/system.text.encodings.web/8.0.0/system.text.encodings.web.8.0.0.nupkg.sha512",
"/root/.nuget/packages/system.text.json/8.0.0/system.text.json.8.0.0.nupkg.sha512",
"/root/.nuget/packages/tomlyn/0.19.0/tomlyn.0.19.0.nupkg.sha512"
],
"logs": []
}