Table of Contents

Class TimbnGame

Namespace
Timbn.GraveyardKeeperTwo.Core.Framework
Assembly
Timbn.GraveyardKeeperTwo.Core.dll

Whether a save is loaded and playable, and writes it on demand.

public static class TimbnGame
Inheritance
TimbnGame
Inherited Members

Properties

IsInGame

True from GameStarted through Core's save close, so an Events.SaveClosed handler and a quest's OnEnd still see the save, and false once Core has closed it or at the main menu.

public static bool IsInGame { get; }

Property Value

bool

Methods

SaveNow()

Writes the loaded save to its slot right now, the way the game does when the player sleeps. Every plugin's Events.BeforeSave and AfterSave run around it, and Core keeps mod items out of the file as always.

public static bool SaveNow()

Returns

bool

False at the main menu, when there is nothing to save.

Examples

Events.SleepRefused(wouldSave => { if (wouldSave) TimbnGame.SaveNow(); });