Save System Overview
The save system is based on working with PlayerPrefs. The source code for the save system is located at:
Assets/Scripts/Runtime/Services/SaveLoadService/...
Assets/Scripts/Runtime/Data/...
SaveLoadService folder
The SaveLoadService class is a service that:
Handles saving and loading player data (
PlayerProgress) viaPlayerPrefs.Maintains a list of objects implementing the
IProgressSaverinterface to delegate data updates before saving.Provides centralized interaction between system parts involved in progress saving.
Data folder
Contains data model classes such as WalletsData, BoardData, PlayerData.
These classes simply describe what data needs to be saved.
PlayerProgress Represents the player’s state and progress in the game. Its main role is to store all key data related to the current progress, settings, and internal player state.
The loading or creation of new progress is handled by the state:
public class LoadProgressState : IStateLast updated