Camera now following Pawn

This commit is contained in:
2022-01-26 16:48:58 +01:00
parent 986233d960
commit b7b9963a68
7 changed files with 56 additions and 45 deletions
+9
View File
@@ -28,6 +28,8 @@ public:
UWorld* World;
UPROPERTY(VisibleAnywhere, BlueprintReadWrite)
AAdventureMap* MapRef;
UPROPERTY(VisibleAnywhere, BlueprintReadWrite)
AAdventureCameraPawn* CamRef;
UPROPERTY(VisibleAnywhere, BlueprintReadWrite)
AHexTile* SpawnHex;
UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Runtime")
@@ -37,6 +39,13 @@ public:
UFUNCTION(BlueprintCallable)
void LeftClick();
UPROPERTY(EditAnywhere, BlueprintReadWrite)
TSet<AHexTile*> ExploredHexes;
UPROPERTY(EditAnywhere, BlueprintReadWrite)
int32 VisionRadius = 7;
UFUNCTION(BlueprintCallable)
TArray<AHexTile*> Vision();
protected:
virtual void BeginPlay() override;
virtual void SetupInputComponent() override;