(Folder: SurvivalBuildingSystem\Core\Modules\Build\)
BP_BuildMng Load SaveGame on BeginPlay (On server) to load all information stored in Building SaveGame (Building = Slot Name).
And Save (asynchroneously by BP_SBSGameInstance) was perform everytime build was placed(Build->AddBuild) or destroyed (Build->DelBuild).
Build in save are identified by the Identifier which was attributed to the build when is placed,
Identifier it was made from the actor's name and his location.
GroupLastIndex -> To store last group index used in BP_BuildMng->GroupsList
DisableSnaps -> To store snaps disabled by a placed build
BP_BuildSave:
Build save is based on natif SaveGame system to store information of each build on map.BP_BuildMng Load SaveGame on BeginPlay (On server) to load all information stored in Building SaveGame (Building = Slot Name).
And Save (asynchroneously by BP_SBSGameInstance) was perform everytime build was placed(Build->AddBuild) or destroyed (Build->DelBuild).
Build in save are identified by the Identifier which was attributed to the build when is placed,
Identifier it was made from the actor's name and his location.
Functions:
SetBuildings -> Take all data from each build actor from BP_BuildMng to store in Struct_BuildingSave structureVariables:
Buildings -> Array of Struct_BuildingSave structure to store all build data on map.GroupLastIndex -> To store last group index used in BP_BuildMng->GroupsList
DisableSnaps -> To store snaps disabled by a placed build