34 UFUNCTION(BlueprintCallable, Category =
"EncounterField")
35 void StartEncounter();
37 UFUNCTION(BlueprintCallable, Category =
"EncounterField")
41 UFUNCTION(BlueprintCallable, Category =
"EncounterField")
42 FORCEINLINE
void DeactivateEncounter()
48 UFUNCTION(BlueprintPure, Category =
"EncounterField")
51 return EventListenerComponent;
54 UFUNCTION(BlueprintPure, Category =
"EncounterField")
55 FORCEINLINE
bool IsEncounterActive()
const
60 UFUNCTION(BlueprintPure, Category =
"EncounterField")
61 FORCEINLINE FName GetActiveWaveID()
const
66 UFUNCTION(BlueprintPure, Category =
"EncounterField")
67 FORCEINLINE int32 GetActiveWaveIndex()
const
69 return ActiveWaveID.IsNone() ? INDEX_NONE : ActiveWaveIndex;
72 UFUNCTION(BlueprintPure, Category =
"EncounterField")
73 FORCEINLINE int32 GetRemainingEnemyCount()
const
75 return AliveEnemyCount + PendingSpawnCount;
78 UFUNCTION(BlueprintPure, Category =
"EncounterField")
79 FORCEINLINE int32 GetRemainingEnemyCountInWave()
const
81 return ActiveWaveEnemies.Num() + CurrentWavePendingSpawnCount;
85 virtual void EndPlay(
const EEndPlayReason::Type EndPlayReason)
override;
89 void ScheduleNextWave(
float Interval);
91 void TrySendClearEvent();
92 void ResetEncounterState();
102 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = "EncounterField")
106 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = "EncounterField")
109 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = "StageEvent")
113 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = "EncounterField")
117 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "EncounterField")
124 UPROPERTY(Transient, BlueprintReadOnly, Category = "EncounterField", meta = (AllowPrivateAccess = "true"))
128 UPROPERTY(Transient, BlueprintReadOnly, Category = "EncounterField", meta = (AllowPrivateAccess = "true"))
129 int32 CurrentWaveIndex = 0;
132 UPROPERTY(Transient, BlueprintReadOnly, Category = "EncounterField", meta = (AllowPrivateAccess = "true"))
133 FName ActiveWaveID = NAME_None;
135 UPROPERTY(Transient, BlueprintReadOnly, Category = "EncounterField", meta = (AllowPrivateAccess = "true"))
136 int32 ActiveWaveIndex = 0;
141 UPROPERTY(Transient, BlueprintReadOnly, Category = "EncounterField", meta = (AllowPrivateAccess = "true"))
142 int32 SectionRemainingEnemyCount = 0;
145 int32 AliveEnemyCount = 0;
148 int32 PendingSpawnCount = 0;
151 int32 CurrentWavePendingSpawnCount = 0;
154 bool bAllWavesSpawned = false;
157 bool bActivated = false;
160 bool bClearEventSent = false;
163 FTimerHandle WaveTimerHandle;