SavedGame
namespace Griff.Runtime;
public sealed class SavedGameA 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.
Properties
Section titled “Properties”public string Line { get; init; }Picture
Section titled “Picture”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.
PictureAspect
Section titled “PictureAspect”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; }SceneName
Section titled “SceneName”public string? SceneName { get; init; }public string Slot { get; init; }Version
Section titled “Version”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).
Methods
Section titled “Methods”Deconstruct
Section titled “Deconstruct”public void Deconstruct(out string Slot, out DateTimeOffset Saved, out string? SceneName, out string Line)Describe
Section titled “Describe”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).
Equals
Section titled “Equals”public override bool Equals(object? obj)Equals
Section titled “Equals”public bool Equals(SavedGame? other)GetHashCode
Section titled “GetHashCode”public override int GetHashCode()ToString
Section titled “ToString”public override string ToString()