BlueBeard.Events
0.1.0-ci.24
This is a prerelease version of BlueBeard.Events.
dotnet add package BlueBeard.Events --version 0.1.0-ci.24
NuGet\Install-Package BlueBeard.Events -Version 0.1.0-ci.24
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.Events" Version="0.1.0-ci.24" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="BlueBeard.Events" Version="0.1.0-ci.24" />
<PackageReference Include="BlueBeard.Events" />
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.Events --version 0.1.0-ci.24
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: BlueBeard.Events, 0.1.0-ci.24"
#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.Events@0.1.0-ci.24
#: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.Events&version=0.1.0-ci.24&prerelease
#tool nuget:?package=BlueBeard.Events&version=0.1.0-ci.24&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
BlueBeard.Events
Typed event bus with [Flags] enum masking for efficient subscriber filtering. Publish and subscribe to domain events without tightly coupling plugin components.
Features
- Generic
EventBus<TAction>scoped to a single enum type - Bitmask-based subscription — register interest in
A | B | Cand receive any of those actions EventContext<TAction>carries player, UTC timestamp, arbitrary payload, and an advisoryCancelledflag- Snapshot-on-publish iteration — subscribers can add/remove during dispatch without breaking the loop
EventBusManagerregistry — one bus per enum type, shared across the plugin
Quick example
[Flags]
public enum FactionAction
{
None = 0,
MemberJoined = 1 << 0,
MemberLeft = 1 << 1,
RankChanged = 1 << 2,
}
var bus = eventBusManager.GetOrCreate<FactionAction>();
bus.Subscribe(FactionAction.MemberJoined | FactionAction.MemberLeft, (action, ctx) =>
{
var player = ctx.Player;
UnturnedChat.Say(player, $"Faction event: {action}");
});
bus.Publish(FactionAction.MemberJoined, new EventContext<FactionAction>
{
Player = somePlayer,
Data = { ["faction"] = "Raiders" }
});
See docs/Events/ in the Infrastructure repo for full reference.
| Product | Versions 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.
-
.NETFramework 4.8.1
- BlueBeard.Core (>= 0.1.0-ci.24)
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.24 | 81 | 7/4/2026 |
| 0.1.0-ci.23 | 88 | 6/25/2026 |
| 0.1.0-ci.22 | 91 | 5/8/2026 |
| 0.1.0-ci.19 | 74 | 5/7/2026 |
| 0.1.0-ci.18 | 65 | 5/7/2026 |
| 0.1.0-ci.17 | 65 | 5/3/2026 |
| 0.1.0-ci.16 | 64 | 5/3/2026 |
| 0.1.0-ci.15 | 86 | 4/13/2026 |
| 0.1.0-ci.14 | 73 | 4/12/2026 |
| 0.1.0-ci.13 | 67 | 4/12/2026 |
| 0.1.0-ci.12 | 72 | 4/12/2026 |
| 0.1.0-ci.11 | 66 | 4/12/2026 |
| 0.1.0-ci.10 | 79 | 4/11/2026 |