Add RayTraceApi to git

This commit is contained in:
SlynxCZ 2026-02-11 20:11:35 +04:00
parent 38f918f5da
commit e22e0ab0c1
3 changed files with 85 additions and 0 deletions

View file

@ -0,0 +1,47 @@
//
// Created by Michal Přikryl on 11.02.2025.
// Copyright (c) 2025 slynxcz. All rights reserved.
//
using System.Buffers;
using System.Reflection;
using System.Runtime.InteropServices;
using System.Runtime.Loader;
using System.Numerics;
using System.Text;
using System.Text.Json;
using System.Text.RegularExpressions;
using CounterStrikeSharp.API;
using CounterStrikeSharp.API.Core;
using CounterStrikeSharp.API.Core.Attributes.Registration;
using CounterStrikeSharp.API.Modules.Commands;
using CounterStrikeSharp.API.Modules.Memory;
using CounterStrikeSharp.API.Modules.Utils;
using Vector = CounterStrikeSharp.API.Modules.Utils.Vector;
namespace RayTraceImpl;
// ReSharper disable once InconsistentNaming
// ReSharper disable once UnusedType.Global
public class RayTraceImpl : BasePlugin
{
public override string ModuleName => "RayTraceImpl";
public override string ModuleVersion => m_pszVersion;
public override string ModuleAuthor => "Slynx";
public override void Load(bool hotReload)
{
RegisterListener<Listeners.OnMetamodAllPluginsLoaded>(OnMetamodAllPluginsLoaded);
}
public override void Unload(bool hotReload)
{
RemoveListener<Listeners.OnMetamodAllPluginsLoaded>(OnMetamodAllPluginsLoaded);
}
private void OnMetamodAllPluginsLoaded()
{
}
public static string m_pszVersion { get; private set; } = "";
}

View file

@ -0,0 +1,22 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="CounterStrikeSharp.API" Version="*" />
</ItemGroup>
<PropertyGroup>
<DefineConstants>
$(DefineConstants);
SEMVER="$(SEMVER)";
GITHUB_SHA_SHORT="$(GITHUB_SHA_SHORT)";
</DefineConstants>
</PropertyGroup>
</Project>

View file

@ -0,0 +1,16 @@

Microsoft Visual Studio Solution File, Format Version 12.00
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RayTraceApi", "RayTraceApi.csproj", "{0D0FD0C6-A1A6-47A7-8370-29CCE2CD4598}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{0D0FD0C6-A1A6-47A7-8370-29CCE2CD4598}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{0D0FD0C6-A1A6-47A7-8370-29CCE2CD4598}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0D0FD0C6-A1A6-47A7-8370-29CCE2CD4598}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0D0FD0C6-A1A6-47A7-8370-29CCE2CD4598}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
EndGlobal