Game loop finished

This commit is contained in:
2023-07-31 22:57:35 +02:00
parent 6b23098dd3
commit 774101a96c
26 changed files with 63 additions and 18 deletions

View File

@@ -7,6 +7,8 @@
#include "DrawDebugHelpers.h"
#include "BuildingBlock.generated.h"
DECLARE_DELEGATE(FBlockDestroyed);
UCLASS()
class FIREWORKDUELS_API ABuildingBlock : public AActor
{
@@ -35,16 +37,21 @@ public:
UPROPERTY(EditDefaultsOnly, BlueprintReadWrite)
int32 Variant = 0;
UPROPERTY(BlueprintReadOnly)
bool IsBeingDestroyed = false;
FBlockDestroyed OnBlockDestroyed;
UFUNCTION(BlueprintCallable)
void TakeHit();
UFUNCTION(BlueprintImplementableEvent, BlueprintCallable)
UFUNCTION(BlueprintNativeEvent, BlueprintCallable)
void DestroyBlock();
UFUNCTION(BlueprintImplementableEvent)
void FadeIn();
UFUNCTION(BlueprintImplementableEvent, BlueprintCallable)
UFUNCTION(BlueprintNativeEvent, BlueprintCallable)
void DestroyWithDelay();
// Get neighbouring Blocks with same color variant