SCRIPTING API / Save games / SaveReader
SaveReader
The save data a script wrote, with the version it was written with.
Kindclass
NamespaceKroys.EngineScripting
Members5
Source
SaveGame.csDECLARATION
Declaration
Namespace Kroys.EngineScripting.
Declaration
public sealed class SaveReader
REFERENCE
Members
Properties
#public int Version { get; }The
ISaveable.SaveVersion the data was written with.#public IReadOnlyCollection<string> Keys { get; }The stored keys.
Methods
#public bool Has(string key)Whether a value is stored under
key.#public bool TryGet<T>(string key, out T value)Reads a value; false when it is absent or has another type.
#public T Get<T>(string key, T fallback = default!)Reads a value, or
fallback when it is absent or has another type.Signatures
public int Version { get; } public IReadOnlyCollection<string> Keys { get; } public bool Has(string key) public bool TryGet<T>(string key, out T value) public T Get<T>(string key, T fallback = default!)
KroysEngine 0.1.0 documentation, built from the engine repository by Tools/BuildDocsSite.py.