Add GridCell properties
This commit is contained in:
1 parent
6476c643ce
commit
57065dc6cb
149 files changed
+475
-1
No files matched your search
@@ -0,0 +1,7 @@
|
||||
#include "GridCell.h"
|
||||
|
||||
AGridCell::AGridCell()
|
||||
{
|
||||
// ターン制では毎フレームの処理が不要なので、Tickを無効にする
|
||||
PrimaryActorTick.bCanEverTick = false;
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
#pragma once
|
||||
|
||||
#include "CoreMinimal.h"
|
||||
#include "GameFramework/Actor.h"
|
||||
#include "GridCell.generated.h"
|
||||
|
||||
UCLASS()
|
||||
class TACTICA_API AGridCell : public AActor
|
||||
{
|
||||
GENERATED_BODY()
|
||||
|
||||
public:
|
||||
AGridCell();
|
||||
|
||||
// グリッド上の座標 (X, Y)
|
||||
UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Grid")
|
||||
FIntPoint GridCoord = FIntPoint::ZeroValue;
|
||||
|
||||
// 高さ(階層)
|
||||
UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Grid")
|
||||
int32 Height = 0;
|
||||
|
||||
// 歩行可能か
|
||||
UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Grid")
|
||||
bool bIsWalkable = true;
|
||||
};
|
||||
Reference in new issue
Block a user