Skip to content

swiftly-solution/swiftlys2

Repository files navigation

SwiftlyS2

License: GPL v3 Build Status Discord NuGet

SwiftlyS2 is a powerful scripting framework for Source 2 games, built in C++ with C# plugin support. It provides developers with a comprehensive API to create plugins for Source 2-based games like Counter-Strike 2.

Warning

The framework is under a BETA release.

Features

  • C# Plugin Development: Write plugins in C# with full .NET support
  • Comprehensive API: Access to game events, player management, and server control
  • High Performance: Native C++ core with optimized plugin execution
  • Memory Safety: Built-in memory management and thread-safe operations
  • Hot Reload: Reload plugins without restarting the server
  • Cross-Platform: Supports Windows and Linux
  • Source 2 Ready: Designed specifically for Source 2 engine games

Supported Games

  • Counter-Strike 2

Quick Start

Prerequisites

  • Windows: Visual Studio 2022 with C++ and .NET workloads
  • Linux: GCC 11+ and .NET 8.0 SDK
  • XMake

Building SwiftlyS2

  1. Clone the repository

    git clone --recurse-submodules https://github.com/swiftly-solution/swiftlys2.git
    cd swiftlys2
  2. Build the framework

    # Windows
    xmake -j 4
    
    # Linux
    xmake -j $(nproc)
  3. Install to game directory

    # Copy built files to your CS2 server
    cp -r build/package/* /path/to/cs2/game/csgo/
  4. Start your server

Your First Plugin

Create your first guide using our comprehensive guide: https://swiftlys2.net/docs/development/getting-started/

Architecture

SwiftlyS2/
├── src/                         # C++ core framework
│   ├── api/                     # C++ API interfaces
│   ├── core/                    # Core framework logic
│   ├── engine/                  # Source 2 engine integration
│   ├── memory/                  # Memory management
│   ├── monitor/                 # Loggers
│   ├── network/                 # Network handling
│   ├── scripting/               # Native Exports
│   ├── sdk/                     # SDK Dumper
│   └── server/                  # Server management
├── managed/                     # C# managed layer
│   └── src/                     # C# managed source code
│       ├── SwiftlyS2.Core/      # Core C# APIs
│       ├── SwiftlyS2.Generated/ # Generated bindings
│       └── SwiftlyS2.Shared/    # Shared utilities
├── natives/                     # Native definitions
├── generator/                   # Code generation tools
└── vendor/                      # Third-party dependencies

License

This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.

Community

Acknowledgments


Made with ❤️ by the Swiftly Development team

About

No description, website, or topics provided.

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.MIT

Stars

Watchers

Forks

Packages

No packages published

Languages