Skip to content

AGridSaveHandler

This is a crucial class responsible for saving and loading grid data, as well as managing level-based grid systems.

Variables

FString SaveName; - .sav file name.

bool bIsConstructed; - Flag to prevent redundant construction calls.

FTimerHandle DelayTimerHandle; - Timer for delaying load data on construction. Doing this to avoid render pipeline crashes.

LoadSavedData()

Loads grid data from the .sav file of the given name. Also loads or updates the visuals.

void LoadSavedData(FString SaveFileName);

Inputs

SaveFileName - Name of the .sav file.


SaveData()

Saves grid data to the .sav file of the given name.

void SaveData(FString SaveFileName);