#include "TreasureBeacon.h" #include "Components/SceneComponent.h" #include "Net/UnrealNetwork.h" #include "TerrainPlacementComponent.h" void ATreasureBeacon::SpawnDebreeParts() const { } void ATreasureBeacon::ActivateTreasure() { } void ATreasureBeacon::GetLifetimeReplicatedProps(TArray& OutLifetimeProps) const { Super::GetLifetimeReplicatedProps(OutLifetimeProps); DOREPLIFETIME(ATreasureBeacon, TreasureInstance); } ATreasureBeacon::ATreasureBeacon() { this->RootComp = CreateDefaultSubobject(TEXT("RootComp")); this->terrainPlacement = CreateDefaultSubobject(TEXT("terrainPlacement")); this->TreasurePositioning = NULL; this->DebrisPartsPositioning = NULL; this->AvoidCostCurve = NULL; this->AvoidCostCurveDebris = NULL; this->MaxRange = 2000.00f; this->MinRange = 1000.00f; this->DebrisSpawnRange = 1000.00f; this->DebrisPartClass = NULL; this->DebrisPartsToSpawn = 4; this->MaxSpawnLocationTries = 10; this->TreasureClass = NULL; this->TreasureInstance = NULL; }