Fireball.Fireworks 1.0.1

dotnet add package Fireball.Fireworks --version 1.0.1
                    
NuGet\Install-Package Fireball.Fireworks -Version 1.0.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Fireball.Fireworks" Version="1.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Fireball.Fireworks" Version="1.0.1" />
                    
Directory.Packages.props
<PackageReference Include="Fireball.Fireworks" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Fireball.Fireworks --version 1.0.1
                    
#r "nuget: Fireball.Fireworks, 1.0.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Fireball.Fireworks@1.0.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Fireball.Fireworks&version=1.0.1
                    
Install as a Cake Addin
#tool nuget:?package=Fireball.Fireworks&version=1.0.1
                    
Install as a Cake Tool

Fireball Fireworks SDK

A server-side C# SDK for integrating game servers with the Fireball platform. It sits on your game's backend and acts as the single point of contact for all communication with Fireball — handling player authentication, wallet operations (bets and wins), game session state, client message delivery, jackpots, and multiplayer coordination.

The SDK is designed to run within a Fireball-hosted environment.


Table of Contents


Installation

dotnet add package Fireball.Fireworks

Or via the NuGet Package Manager in Visual Studio:

Install-Package Fireball.Fireworks

Quick Start

1. Register dependencies

In your Program.cs or Startup.cs, call AddFireworks() on your IServiceCollection:

using Fireball.Fireworks;

var builder = WebApplication.CreateBuilder(args);

builder.Services.AddFireworks();

This registers all required singletons and HTTP clients, including retry and timeout policies via Polly.

2. Inject IFireworks

using Fireball.Fireworks;

public class MyGameFunction
{
    private readonly IFireworks _fireworks;

    public MyGameFunction(IFireworks fireworks)
    {
        _fireworks = fireworks;
    }

    public async Task HandleMessage(string messageJson)
    {
        var result = await _fireworks.ParseMessage(messageJson);

        if (result.IsSuccess)
        {
            // Handle message by name
            switch (result.MessageName)
            {
                case FireballConstants.MessagesNames.SESSION:
                    // session established
                    break;
                // ...
            }
        }
    }
}

Modules

Module Namespace Description
Core Fireball.Fireworks Entry point (IFireworks), message parsing, validation, configuration
Integration Fireball.Fireworks.IntegrationModule Authenticate players, place bets, pay wins, handle disconnects
Session Fireball.Fireworks.SessionModule Create, retrieve, update, and close game sessions and game state
Jackpots Fireball.Fireworks.JackpotsModule Jackpot contributions and payouts
Messenger Fireball.Fireworks.MessagesModule Send messages, session data, and errors to clients
Multiplayer Fireball.Fireworks.MultiplayerModule Multiplayer session management and matchmaking
Validation Fireball.Fireworks.Validation Message validation attributes and extension methods
Tests Fireball.Fireworks.TestsModule RTP testing utilities
Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.1 94 4/3/2026