fixed crashing bug when calling RandomHex() too early
This commit is contained in:
+6
-1
@@ -26,11 +26,16 @@ public:
|
||||
int32 GridSize = 100; // squared is the number of Tiles
|
||||
UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Config")
|
||||
int32 TileSize = 100;
|
||||
UPROPERTY(VisibleInstanceOnly, BlueprintReadWrite, Category = "MapData")
|
||||
|
||||
UPROPERTY(BlueprintReadOnly, Category = "Generation")
|
||||
bool bHexGridReady;
|
||||
|
||||
UPROPERTY(VisibleInstanceOnly, BlueprintReadWrite, Category = "Runtime")
|
||||
TArray<AHexTile*> Grid;
|
||||
UFUNCTION(BlueprintCallable)
|
||||
int32 GridIndex(int32 q, int32 r);
|
||||
|
||||
|
||||
// Player spawn section
|
||||
UPROPERTY(VisibleAnywhere, BlueprintReadWrite)
|
||||
APawn* CameraPawn;
|
||||
|
||||
Reference in New Issue
Block a user