Interface ISaveStore
- Namespace
- TDMaker.Unity.Campaign
- Assembly
- TDMaker.Unity.dll
Where save slots live. Implementations never throw from these calls: failures are reported through the return values (and a console warning). Slot numbers start at 0. Unreadable content is never deleted silently: it is kept as a backup.
public interface ISaveStore
Properties
SlotCount
Number of slots offered (slot pickers show this many).
int SlotCount { get; }
Property Value
Methods
Delete(int)
Deletes a slot (the player asked for it). Returns false on failure.
bool Delete(int slot)
Parameters
slotint
Returns
Exists(int)
Whether slot holds data.
bool Exists(int slot)
Parameters
slotint
Returns
Load(int, out ProfileData)
SaveLoadStatus Load(int slot, out ProfileData data)
Parameters
slotintdataProfileData
Returns
Save(int, ProfileData)
Writes a slot (all or nothing where the storage allows it). Returns false on failure.
bool Save(int slot, ProfileData data)
Parameters
slotintdataProfileData