GrodLibrary 1.0.6

Suggested Alternatives

grod

Additional Details

Package has been renamed to GROD.

dotnet add package GrodLibrary --version 1.0.6
NuGet\Install-Package GrodLibrary -Version 1.0.6
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="GrodLibrary" Version="1.0.6" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add GrodLibrary --version 1.0.6
#r "nuget: GrodLibrary, 1.0.6"
#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.
// Install GrodLibrary as a Cake Addin
#addin nuget:?package=GrodLibrary&version=1.0.6

// Install GrodLibrary as a Cake Tool
#tool nuget:?package=GrodLibrary&version=1.0.6

GROD - Game Resource Overlay Dictionary

This is a special pair of dictionaries, a base and an overlay, for holding key/value pairs which can be modified from the base value. It is designed for games where progress from the beginning can be saved and restored.

The base dictionary is filled with the starting values at the beginning of a game, and the overlay holds all the changes as the game is played.

Getting a value during the game will return the overlay value if found, or else the base value if found, or "". Setting a value during the game always writes to the overlay. No errors are thrown if the key doesn't exist yet or if it is added multiple times.

When saving the game progress, only the overlay values need to be stored into a save file. When restoring a save file, the overlay would be cleared and loaded with the saved values, returning to the game state at the time of the save.

Set UseOverlay = false to load the base values, and then set UseOverlay = true to play the game.

Keys are strings and cannot be null, "", or only whitespace, but all others are valid. Keys are case-sensitive. Use the Keys routine to get a list of all keys or KeysOverlay for overlay keys only, such as when saving.

Values are strings. If value is null it is changed to "", but no other modifications are performed. Other data types can be converted to and from string values by the calling program.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net8.0

    • 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
1.0.6 180 1/3/2024