Skip to content

SavedGame

namespace Griff.Runtime;
public sealed class SavedGame

A game saved in a slot (see SaveGame): when it was saved, the scene it was in and the line being said then, and its screenshot.

public string Line { get; init; }
public string? Picture { get; init; }

The name its screenshot is drawn by, as an image’s path (“@save/1”; see GamePictures), or null before it has one.

public float PictureAspect { get; init; }

Its screenshot’s width divided by its height (the screen’s shape when it was saved), or 0 with none.

public DateTimeOffset Saved { get; init; }
public string? SceneName { get; init; }
public string Slot { get; init; }
public int Version { get; init; }

The game’s SaveVersion when it was saved: 0 for one saved before the game had one. Loading one lower than the game’s now brings it up to date first (see ISaveUpgrader).

public void Deconstruct(out string Slot, out DateTimeOffset Saved, out string? SceneName, out string Line)
public string Describe(string format)

format filled in: “{slot}” is the slot’s name, “{date}” the day it was saved (“15 Oct 2026”), “{time}” the time (“14:03”), “{scene}” the scene’s name and “{line}” the line being said (or the scene’s name when nobody was talking).

public override bool Equals(object? obj)
public bool Equals(SavedGame? other)
public override int GetHashCode()
public override string ToString()