LEAP Documentation 40220
Documentation for the LEAP project
ObjectiveCapturePoint.h
Go to the documentation of this file.
1// Copyright Blue Isle Studios Inc 2022. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
8#include "ObjectiveCapturePoint.generated.h"
9
11
12DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FObjectiveActorSpawnedSignature, AActor*, ObjectiveActor);
13
14UCLASS()
16{
17 GENERATED_BODY()
18
19public:
20 UFUNCTION(BlueprintCallable)
21 AActor* GetObjectiveActor() const;
22
23 virtual void Initialize(int32 NumberOfCheckPointsOverride /* = INDEX_NONE */, float PerPlayerCaptureRateOverride /* = INDEX_NONE */) override;
24 virtual void ObjectiveStateUpdated(AProjectXSpawnerObjective* ObjectiveController, const FObjectiveStatus& State) override;
25 virtual void SpawnActor();
26
27 UPROPERTY(BlueprintAssignable)
28 FObjectiveActorSpawnedSignature OnObjectiveActorSpawnedEvent;
29
30protected:
31 UFUNCTION(BlueprintImplementableEvent)
32 void OnActorSpawned(AActor* SpawnedInActor);
33
34 UFUNCTION()
35 void OnRep_ObjectiveActor();
36
37 /* Actor to Spawn on this capture point*/
38 UPROPERTY(EditDefaultsOnly)
39 TSubclassOf<AActor> SpawnedActorClass = NULL;
40 UPROPERTY(ReplicatedUsing = OnRep_ObjectiveActor)
41 TWeakObjectPtr<AActor> ObjectiveActor = NULL;
42};
DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FObjectiveActorSpawnedSignature, AActor *, ObjectiveActor)
Definition: CapturePoint.h:77
Definition: ObjectiveCapturePoint.h:16
Definition: ProjectXSpawnerObjective.h:53
Definition: ReactsToObjectiveInterface.h:18
Definition: ProjectXSpawnerObjective.h:39