Neighbors function draft; refactoring

This commit is contained in:
2022-01-13 16:34:06 +01:00
parent b5c9c661fe
commit 219b99c8d7
6 changed files with 34 additions and 14 deletions
+3 -4
View File
@@ -9,7 +9,7 @@
class USceneComponent;
class UStaticMeshComponent;
class AAdventureMap;
class AAdventurePlayerController;
UCLASS()
@@ -40,9 +40,8 @@ public:
UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = "Runtime")
int32 Index;
UFUNCTION(BlueprintCallable)
TArray<AHexTile*> Neighbors(AHexTile* OfHexTile);
UPROPERTY(BlueprintReadWrite, Category = "Runtime")
AAdventureMap* MapRef;
protected:
// Called when the game starts or when spawned
virtual void BeginPlay() override;