Add campfire persistence state

This commit is contained in:
2026-05-17 19:09:55 -07:00
parent c60b975294
commit 7291c4844b
8 changed files with 171 additions and 2 deletions
@@ -2,6 +2,7 @@
#include "AgrarianGamePlayerController.h"
#include "AgrarianCampfire.h"
#include "AgrarianCraftingComponent.h"
#include "AgrarianGameCharacter.h"
#include "AgrarianInventoryComponent.h"
@@ -296,6 +297,7 @@ void AAgrarianGamePlayerController::ServerAgrarianLoadWorld_Implementation()
}
Persistence->RegisterWorldActorClass(TEXT("primitive_shelter"), AAgrarianShelterActor::StaticClass());
Persistence->RegisterWorldActorClass(TEXT("campfire"), AAgrarianCampfire::StaticClass());
int32 RestoredPlayerCount = 0;
int32 RestoredActorCount = 0;
const bool bLoaded = Persistence->LoadCurrentWorld(RestoredPlayerCount, RestoredActorCount);