Skip to content

AAndromedaSalvageSpawnPoint

Kind: class Source: Source/Andromeda/Station/AndromedaSalvageSpawnPoint.h Base classes: AActor

Details

Spawn point that creates one configured salvage item at its scene transform.

Public Properties

Member Type Summary
SpawnPointComponent TObjectPtr< USceneComponent > Transform used for item spawn location and rotation.

Protected Properties

Member Type Summary
SalvageItemClass TSubclassOf< AAndromedaSalvageItem > Class spawned by this point; unset class makes SpawnSalvageItem a no-op.
bSpawnOnBeginPlay bool Whether to spawn automatically during BeginPlay.
SpawnedItem TObjectPtr< AAndromedaSalvageItem > Cached spawned actor, preventing duplicate salvage creation.

Public Methods

Member Type Summary
AAndromedaSalvageSpawnPoint function Disables ticking and creates the spawn point scene root.
GetSpawnedItem AAndromedaSalvageItem * Returns the currently spawned item, if any.
SpawnSalvageItem AAndromedaSalvageItem * Spawns the configured salvage item once, owned by this spawn point, using unit scale.

Protected Methods

Member Type Summary
BeginPlay void Spawns salvage through the same path as manual SpawnSalvageItem calls when enabled.

Members

SpawnPointComponent

TObjectPtr< USceneComponent > SpawnPointComponent

Transform used for item spawn location and rotation.

SalvageItemClass

TSubclassOf< AAndromedaSalvageItem > SalvageItemClass

Class spawned by this point; unset class makes SpawnSalvageItem a no-op.

bSpawnOnBeginPlay

bool bSpawnOnBeginPlay

Whether to spawn automatically during BeginPlay.

SpawnedItem

TObjectPtr< AAndromedaSalvageItem > SpawnedItem

Cached spawned actor, preventing duplicate salvage creation.

AAndromedaSalvageSpawnPoint

AAndromedaSalvageSpawnPoint::AAndromedaSalvageSpawnPoint()

Disables ticking and creates the spawn point scene root.

GetSpawnedItem

AAndromedaSalvageItem * AAndromedaSalvageSpawnPoint::GetSpawnedItem() const

Returns the currently spawned item, if any.

Returns:

Cached spawned item, or nullptr before a successful spawn.

SpawnSalvageItem

AAndromedaSalvageItem * AAndromedaSalvageSpawnPoint::SpawnSalvageItem()

Spawns the configured salvage item once, owned by this spawn point, using unit scale.

Returns the existing SpawnedItem on repeated calls. Missing class or world is treated as a no-op so blockout actors can remain partially configured.

Returns:

Spawned or cached salvage item, or nullptr when spawning is not possible.

BeginPlay

void AAndromedaSalvageSpawnPoint::BeginPlay() override

Spawns salvage through the same path as manual SpawnSalvageItem calls when enabled.