Add placed actor persistence foundation
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user