BlueBeard.MiniGames 0.1.0-ci.23

This is a prerelease version of BlueBeard.MiniGames.
dotnet add package BlueBeard.MiniGames --version 0.1.0-ci.23
                    
NuGet\Install-Package BlueBeard.MiniGames -Version 0.1.0-ci.23
                    
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="BlueBeard.MiniGames" Version="0.1.0-ci.23" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="BlueBeard.MiniGames" Version="0.1.0-ci.23" />
                    
Directory.Packages.props
<PackageReference Include="BlueBeard.MiniGames" />
                    
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 BlueBeard.MiniGames --version 0.1.0-ci.23
                    
#r "nuget: BlueBeard.MiniGames, 0.1.0-ci.23"
                    
#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 BlueBeard.MiniGames@0.1.0-ci.23
                    
#: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=BlueBeard.MiniGames&version=0.1.0-ci.23&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=BlueBeard.MiniGames&version=0.1.0-ci.23&prerelease
                    
Install as a Cake Tool

BlueBeard.MiniGames

Framework for building timed, interactive mini-games in Unturned plugins. Handles the full lifecycle — start, tick, input, end — so implementations only define the game logic and visuals.

Features

  • MiniGameDefinition — configure the effect id, duration, parameters
  • IMiniGameHandler — implement OnStart, OnTick, OnInput, OnEnd
  • MiniGameManager — one active mini-game per player; automatic timeout; raises MiniGameCompleted
  • Standalone overlays — mini-games do NOT live inside the IUI hierarchy; starting one closes any open UI (mini-game wins input precedence)
  • Input routing — hooks EffectManager.onEffectButtonClicked / onEffectTextCommitted and delivers only to the handler of the player's active instance

Quick example

public class HotwireHandler : IMiniGameHandler
{
    public void OnStart(MiniGameInstance i) { /* set up UI */ }
    public void OnTick(MiniGameInstance i, float dt) { /* update timer text */ }
    public void OnInput(MiniGameInstance i, string button, string value)
    {
        if (button == "Wire_Red") manager.Complete(i, MiniGameState.Succeeded);
        if (button == "Wire_Blue") manager.Complete(i, MiniGameState.Failed);
    }
    public void OnEnd(MiniGameInstance i) { /* clear UI */ }
}

manager.RegisterHandler("hotwire", new HotwireHandler());

var def = new MiniGameDefinition
{
    Id = "hotwire",
    EffectId = 50710,
    Duration = 8f,
};
manager.Start(player, def);

See docs/MiniGames/ in the Infrastructure repo for full reference.

Product Compatible and additional computed target framework versions.
.NET Framework net481 is compatible. 
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
0.1.0-ci.23 88 6/25/2026
0.1.0-ci.22 76 5/8/2026
0.1.0-ci.19 67 5/7/2026
0.1.0-ci.18 59 5/7/2026
0.1.0-ci.17 58 5/3/2026
0.1.0-ci.16 68 5/3/2026
0.1.0-ci.15 71 4/13/2026
0.1.0-ci.14 65 4/12/2026
0.1.0-ci.13 61 4/12/2026
0.1.0-ci.12 71 4/12/2026
0.1.0-ci.11 63 4/12/2026
0.1.0-ci.10 66 4/11/2026