Init
This commit is contained in:
36
Source/FireworkDuels/BuildingBlock.h
Normal file
36
Source/FireworkDuels/BuildingBlock.h
Normal file
@@ -0,0 +1,36 @@
|
||||
// Fill out your copyright notice in the Description page of Project Settings.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "CoreMinimal.h"
|
||||
#include "Components/StaticMeshComponent.h"
|
||||
#include "BuildingBlock.generated.h"
|
||||
|
||||
UCLASS()
|
||||
class FIREWORKDUELS_API ABuildingBlock : public AActor
|
||||
{
|
||||
GENERATED_BODY()
|
||||
|
||||
public:
|
||||
// Sets default values for this actor's properties
|
||||
ABuildingBlock();
|
||||
|
||||
UPROPERTY(EditDefaultsOnly)
|
||||
UStaticMeshComponent* StaticMesh;
|
||||
|
||||
UPROPERTY(BlueprintReadWrite)
|
||||
float Health = 100;
|
||||
|
||||
UPROPERTY(BlueprintReadOnly)
|
||||
float InitialHealth;
|
||||
|
||||
UFUNCTION(BlueprintCallable)
|
||||
void DepleteHealth(float Amount);
|
||||
|
||||
UFUNCTION(BlueprintImplementableEvent)
|
||||
void UpdateDestructionLevel(uint8 Level);
|
||||
|
||||
UFUNCTION(BlueprintImplementableEvent)
|
||||
void DestroyBlock();
|
||||
|
||||
};
|
||||
Reference in New Issue
Block a user