Skip to content

Commit

Permalink
add cell bp to maze bp
Browse files Browse the repository at this point in the history
  • Loading branch information
wutipong committed Dec 7, 2021
1 parent a88dc91 commit f049b57
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
Binary file modified Content/TopDownBP/Maps/TopDownExampleMap.umap
Binary file not shown.
Binary file modified Content/TopDownBP/Maps/TopDownExampleMap_BuiltData.uasset
Binary file not shown.
6 changes: 3 additions & 3 deletions Source/AMazeUnreal/Cell.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ class AMAZEUNREAL_API ACell : public AActor
UStaticMeshComponent* WallNorth;

UPROPERTY(BlueprintReadWrite, Instanced)
UStaticMeshComponent* WallSouth;
UStaticMeshComponent* WallSouth;

UPROPERTY(BlueprintReadWrite, Instanced)
UStaticMeshComponent* WallEast;
UStaticMeshComponent* WallEast;

UPROPERTY(BlueprintReadWrite, Instanced)
UStaticMeshComponent* WallWest;
UStaticMeshComponent* WallWest;

UPROPERTY(EditDefaultsOnly)
int Width;
Expand Down
7 changes: 5 additions & 2 deletions Source/AMazeUnreal/Maze.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,12 @@ class AMAZEUNREAL_API AMaze : public AActor
virtual void BeginPlay() override;

public:
UPROPERTY()
UPROPERTY(EditAnywhere)
int32 Columns = 5;

UPROPERTY()
UPROPERTY(EditAnywhere)
int32 Rows = 6;

UPROPERTY(EditAnywhere)
TSubclassOf<AActor> Cell;
};

0 comments on commit f049b57

Please sign in to comment.