Lakona.Game.Server.Hotfix.Generators 0.2.7

dotnet add package Lakona.Game.Server.Hotfix.Generators --version 0.2.7
                    
NuGet\Install-Package Lakona.Game.Server.Hotfix.Generators -Version 0.2.7
                    
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="Lakona.Game.Server.Hotfix.Generators" Version="0.2.7" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Lakona.Game.Server.Hotfix.Generators" Version="0.2.7" />
                    
Directory.Packages.props
<PackageReference Include="Lakona.Game.Server.Hotfix.Generators" />
                    
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 Lakona.Game.Server.Hotfix.Generators --version 0.2.7
                    
#r "nuget: Lakona.Game.Server.Hotfix.Generators, 0.2.7"
                    
#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 Lakona.Game.Server.Hotfix.Generators@0.2.7
                    
#: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=Lakona.Game.Server.Hotfix.Generators&version=0.2.7
                    
Install as a Cake Addin
#tool nuget:?package=Lakona.Game.Server.Hotfix.Generators&version=0.2.7
                    
Install as a Cake Tool

Lakona.Game.Server.Hotfix.Generators

Source generators for Lakona.Game server Hotfix behaviors and generated RPC service proxies.

Public extension methods in [HotfixBehaviorOf] classes define the actor API. Stable App projects own actor state, actor identity, and actor DTOs. Hotfix projects own the behavior-derived selectors, refs, and wrappers that expose those methods to service and lifecycle code. Stable runtime services, actor metadata, and the stable cluster handler provide the cross-node dispatch boundary for route lookup, local dispatch, remote dispatch, serialization, and actor-call error mapping.

The generator discovers [HotfixState] partial classes and emits generated friend accessors for private fields.

[HotfixState]
public sealed partial class PlayerActor : Actor<PlayerId>
{
    private int exp;
}

Generates an editor-hidden accessor similar to:

public int __hotfix_exp()
{
    return exp;
}

Types marked [HotfixState] must be partial. Nested hotfix state also requires partial containing types. Compiler-generated backing fields, static fields, and const fields are ignored.

Generated accessors are public by necessity: they live in the stable assembly and must be callable from the separate hotfix assembly. They are hidden from normal IntelliSense but are not a security boundary. [FriendOf] identifies the intended Hotfix behavior relationship; it does not prevent other code with a stable actor reference from calling generated __hotfix_ members.

For server app projects, the generator emits RPC service binders and required hotfix contract providers. LakonaGameServer.RunAsync discovers both automatically from the application assembly; generated projects do not call a builder extension. Generated proxies construct HotfixServiceCall<TRequest> wrappers, pass the active RPC connection id, and route calls through the hotfix dispatcher. Generated endpoint binders make hotfix-backed services visible to Lakona:Endpoints[]:RpcServices validation; service names come from ApiName when set, otherwise from the RPC interface name such as IChatServicechat. Hand-written service marker files are no longer part of generated projects.

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

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.2.7 36 7/4/2026
0.2.6 55 7/2/2026
0.2.5 76 7/1/2026
0.2.4 88 6/28/2026
0.2.3 93 6/28/2026