Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/release-legacy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ jobs:
with:
name: Legacy SampSharp ${{ env.VERSION }}
draft: true
prerelease: ${{ contains(env.VERSION, 'alpha') || contains(env.VERSION, 'beta') }}
prerelease: ${{ contains(env.VERSION, 'prerelease') || contains(env.VERSION, 'rc') }}
files: SampSharp-${{ env.VERSION }}.zip

- name: Pack NuGet packages
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ jobs:
with:
name: SampSharp ${{ env.VERSION }}
draft: true
prerelease: ${{ contains(env.VERSION, 'alpha') || contains(env.VERSION, 'beta') }}
prerelease: ${{ contains(env.VERSION, 'prerelease') || contains(env.VERSION, 'rc') }}
files: SampSharp-${{ env.VERSION }}.zip

- name: Pack NuGet packages
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ PublishProfiles/
*.suo
*.sln.DotSettings.user
launchSettings.json
*.lscache

# OS
.DS_Store
Expand Down
15 changes: 9 additions & 6 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,20 @@ SampSharp is a comprehensive C# framework for building game modes and plugins fo
- **SampSharp.OpenMp.Entities.Commands/** - Rich command processor and dispatcher
- **SampSharp.Analyzer/** - Roslyn-based code analyzer for best practices
- **SampSharp.CodeFixes/** - Automatic code fixes for analyzer diagnostics
- **SampSharp.SourceGenerator/** - Source code generator for AOT compilation
- **SampSharp.Sdk/** - SDK tools and utilities
- **SampSharp.SourceGenerator/** - Source code generator for game mode entry point and open.mp interop marshalling based on API shapes defined in partial types with attributes
- **SampSharp.Sdk/** - Primary SDK package for developing with SampSharp (single NuGet package users add to their projects)
- **SampSharp.Templates/** - Project templates and scaffolding for game mode development

#### Legacy (SA-MP v0.x)
- **legacy/** - Legacy SA-MP implementation (limited support for critical fixes only)

### Testing (`test/`)
- **SampSharp.OpenMp.Entities.Commands.UnitTests/** - Unit tests for the command processor (`dotnet test SampSharp.slnx`)
- **TestMode.OpenMp.Entities/** - Integration tests for entity system
- **TestMode.OpenMp.Core/** - Core functionality tests
- **TestMode.UnitTests/** - Unit tests
- **SampSharp.OpenMp.Core.Tests/** - Unit tests for core open.mp functionality
- **SampSharp.OpenMp.Entities.Tests/** - Unit tests for entity system
- **SampSharp.OpenMp.Entities.Commands.Tests/** - Unit tests for command processor
- **TestMode.Entities.ApiTests/** - Integration tests for entity API functionality
- **TestMode.OpenMp.Core/** - Manual testing for core functionality
- **TestMode.OpenMp.Entities/** - Manual testing for entity system

### Build & Environment
- **build/** - Build artifacts and CMake configurations
Expand Down
25 changes: 25 additions & 0 deletions src/sampsharp-component/CMakePresets.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"version": 6,
"configurePresets": [
{
"name": "clang",
"displayName": "Clang CL",
"description": "Build using Clang CL toolset",
"generator": "Visual Studio 18 2026",
"toolset": "ClangCL",
"binaryDir": "${sourceDir}/../../build/cmake/component",
"cacheVariables": {
"CMAKE_POLICY_VERSION_MINIMUM": "3.5",
"CMAKE_BUILD_TYPE": "RelWithDebInfo"
}
}
],
"buildPresets": [
{
"name": "clang",
"configurePreset": "clang",
"configuration": "RelWithDebInfo",
"jobs": 0
}
]
}
Loading