AlRevolver.SaveSystem
1.1.0
dotnet add package AlRevolver.SaveSystem --version 1.1.0
NuGet\Install-Package AlRevolver.SaveSystem -Version 1.1.0
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="AlRevolver.SaveSystem" Version="1.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AlRevolver.SaveSystem" Version="1.1.0" />
<PackageReference Include="AlRevolver.SaveSystem" />
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 AlRevolver.SaveSystem --version 1.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: AlRevolver.SaveSystem, 1.1.0"
#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 AlRevolver.SaveSystem@1.1.0
#: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=AlRevolver.SaveSystem&version=1.1.0
#tool nuget:?package=AlRevolver.SaveSystem&version=1.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
AlRevolver.SaveSystem
AlRevolver.SaveSystem provides snapshot abstractions for saving and loading game state.
The package includes:
ISnapshotandISnapshotWriter.ISnapshotSerializablefor services that save and load their own state.- JSON snapshot implementations backed by
System.Text.Json.
Install
dotnet add package AlRevolver.SaveSystem
Usage
using AlRevolver.SaveSystem;
using System.Text.Json.Serialization;
var factory = new JsonSnapshotFactory(
GameSnapshotJsonContext.Default,
type => type.Name);
var writer = factory.CreateWriter();
writer.SetData("player", new PlayerState { Level = 3 });
var snapshot = writer.ToSnapshot();
var player = snapshot.GetData<PlayerState>("player");
public sealed class PlayerState
{
public int Level { get; set; }
}
[JsonSerializable(typeof(PlayerState))]
public partial class GameSnapshotJsonContext : JsonSerializerContext;
Use ISnapshotSerializable on scoped game services that should participate in session save/load flows.
| Product | Versions 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.
-
net10.0
- No dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on AlRevolver.SaveSystem:
| Package | Downloads |
|---|---|
|
AlRevolver
Core AlRevolver game, session, dependency injection, configuration, save system, chain, and interaction primitives. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.1.0 | 159 | 5/12/2026 |