Michitai.Multiplayer.Steam loads the Steamworks flat API directly — no Steamworks.NET package needed. Ship steam_api64.dll (or steam_api.dll for x86, libsteam_api.so/.dylib on Linux/macOS) from the SDK redistributable_bin next to your executable, plus a steam_appid.txt (480 for development) when not launching through Steam.
There is no automatic pump in .NET — call SteamTicket.RunFrame() on your own loop or timer (once per frame/tick on the thread that initialized Steam).
public static class SteamTicket
{
static bool Available { get; }
static ulong SteamId { get; }
static string PersonaName { get; }
static int InitResult { get; } // ESteamAPIInitResult
static string InitError { get; }
static bool Initialize(); // idempotent; false = no Steam client
static Task<SteamAuthTicket> GetAuthTicketAsync(
string identity = "michitai",
CancellationToken ct = default);
static void RunFrame();
static void Shutdown();
}
using Michitai.Multiplayer.Steam;
if (!SteamTicket.Initialize())
return; // no Steam client — apply your offline policy
using var ticket = await SteamTicket.GetAuthTicketAsync("michitai");
var reg = await Players.RegisterPlayerWithSteam<PlayerData>(
client, ticket.Hex, "michitai", SteamTicket.PersonaName);
var playerToken = reg.Private_key;
// disposing the ticket cancels the handle — always dispose
Tickets are single-use — request a fresh one per login. The identity string must match the server's steam_identity ("michitai"). Always dispose the ticket to release its Steam-side handle.