CelticCraft/Plugins/VoxelFree/Source/Voxel/Public/VoxelOctreeId.h

20 lines
399 B
C
Raw Permalink Normal View History

2023-07-03 16:17:13 +00:00
// Copyright 2020 Phyronnaz
#pragma once
#include "CoreMinimal.h"
struct FVoxelOctreeId
{
FIntVector Position;
uint8 Height;
FORCEINLINE bool operator==(const FVoxelOctreeId& Other) const
{
return Position == Other.Position && Height == Other.Height;
}
FORCEINLINE bool operator!=(const FVoxelOctreeId& Other) const
{
return Position != Other.Position || Height != Other.Height;
}
};