Add placed actor persistence foundation

This commit is contained in:
2026-05-11 01:00:41 -07:00
parent e81138425b
commit 9a0a3608fb
7 changed files with 234 additions and 1 deletions
@@ -1,6 +1,7 @@
// Copyright Pacificao. All Rights Reserved.
#include "AgrarianShelterActor.h"
#include "AgrarianPersistentActorComponent.h"
#include "Components/BoxComponent.h"
#include "Components/StaticMeshComponent.h"
@@ -15,4 +16,7 @@ AAgrarianShelterActor::AAgrarianShelterActor()
ProtectionVolume->SetupAttachment(RootComponent);
ProtectionVolume->SetBoxExtent(FVector(250.0f, 250.0f, 180.0f));
ProtectionVolume->SetCollisionProfileName(TEXT("OverlapAllDynamic"));
PersistentActorComponent = CreateDefaultSubobject<UAgrarianPersistentActorComponent>(TEXT("PersistentActorComponent"));
PersistentActorComponent->ActorTypeId = TEXT("primitive_shelter");
}