Class TimbnGlobalData<T>
Holds a plugin's own data that belongs to no save. Core fills Current when the plugin starts and writes it to disk when the game saves, when the player returns to the main menu, when the game quits, when the plugin unloads, and whenever Save() is called. Get one from Saves.RegisterGlobal.
public sealed class TimbnGlobalData<T> : TimbnData<T> where T : class, new()
Type Parameters
TThe plugin's global data type.
- Inheritance
-
TimbnData<T>TimbnGlobalData<T>
- Inherited Members
Properties
FilePath
The file the data is kept in, in the game's save folder. Every Timbn plugin shares it.
public string FilePath { get; }
Property Value
Methods
Save()
Writes the data to disk now, unless nothing in the file has changed. Core already writes on the events listed on this type, so call this only right after a change that must not be lost to a crash.
public void Save()