Oakfolks Gold_1.14
Oakfolks coop game
|
Delivery point for transforming items into new objects. More...
#include <DeliveryPoint.h>
Public Member Functions | |
ADeliveryPoint () | |
Initializes the delivery point with collision detection. | |
virtual void | BeginPlay () override |
Called when the delivery point is spawned in the world. | |
virtual void | Tick (float DeltaTime) override |
Updates the delivery point each frame. | |
Public Attributes | |
UBoxComponent * | ColliderBox |
UBillboardComponent * | WorldPoint |
TSubclassOf< APickableItem > | ItemType |
TSubclassOf< APickableItem > | ObjectToSpawn |
Protected Member Functions | |
void | OnOverlapBegin (UPrimitiveComponent *OverlappedComponent, AActor *OtherActor, UPrimitiveComponent *OtherComp, int32 OtherBodyIndex, bool bFromSweep, const FHitResult &SweepResult) |
Handles item overlap detection and transformation. | |
Protected Attributes | |
bool | DoOnce = false |
Delivery point for transforming items into new objects.
Detects specific item types and spawns corresponding output objects
ADeliveryPoint::ADeliveryPoint | ( | ) |
Initializes the delivery point with collision detection.
Sets up collision box and overlap events for item detection
|
overridevirtual |
Called when the delivery point is spawned in the world.
Performs initialization logic for the delivery system
|
protected |
Handles item overlap detection and transformation.
EVENT CALLBACKS //////// Collision detection
Spawns output object when the correct item type is delivered
OverlappedComponent | The component that was overlapped |
OtherActor | The actor that entered the delivery zone |
OtherComp | The component of the overlapping actor |
OtherBodyIndex | Body index of the collision |
bFromSweep | Whether this was from a sweep operation |
SweepResult | Hit result from sweep if applicable |
|
overridevirtual |
Updates the delivery point each frame.
Handles any per-frame logic for the delivery system
DeltaTime | Time elapsed since the last frame in seconds |
UBoxComponent* ADeliveryPoint::ColliderBox |
COMPONENTS //////// Collision and positioning
|
protected |
STATE TRACKING //////// Delivery state
TSubclassOf<APickableItem> ADeliveryPoint::ItemType |
CONFIGURATION //////// Item transformation setup