Init
This commit is contained in:
39
Source/FireworkDuels/SpawnManager.h
Normal file
39
Source/FireworkDuels/SpawnManager.h
Normal file
@@ -0,0 +1,39 @@
|
||||
// All rights reserved.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "CoreMinimal.h"
|
||||
#include "GameFramework/Actor.h"
|
||||
#include "BuildingBlock.h"
|
||||
#include "Math/UnrealMathUtility.h"
|
||||
#include "SpawnManager.generated.h"
|
||||
|
||||
UCLASS()
|
||||
class FIREWORKDUELS_API ASpawnManager : public AActor
|
||||
{
|
||||
GENERATED_BODY()
|
||||
|
||||
public:
|
||||
// Sets default values for this actor's properties
|
||||
ASpawnManager();
|
||||
|
||||
protected:
|
||||
|
||||
UPROPERTY(EditDefaultsOnly)
|
||||
float Distance = 45.0f;
|
||||
|
||||
UPROPERTY(BlueprintReadWrite, EditAnywhere)
|
||||
int32 BlocksX = 5;
|
||||
|
||||
UPROPERTY(BlueprintReadWrite, EditAnywhere)
|
||||
int32 BlocksY = 5;
|
||||
|
||||
UPROPERTY(EditAnywhere, BlueprintReadWrite)
|
||||
TArray<TSubclassOf<ABuildingBlock>> SpawnableClasses;
|
||||
|
||||
UFUNCTION(BlueprintCallable, CallInEditor)
|
||||
void GenerateBoard();
|
||||
|
||||
public:
|
||||
|
||||
};
|
||||
Reference in New Issue
Block a user