CelticCraft/Plugins/VoxelFree/Source/Voxel/Public/VoxelGenerators/VoxelGeneratorInstanceWrapper.h

35 lines
845 B
C
Raw Normal View History

2023-07-03 16:17:13 +00:00
// Copyright 2020 Phyronnaz
#pragma once
#include "CoreMinimal.h"
#include "VoxelMinimal.h"
#include "VoxelGeneratorInstanceWrapper.generated.h"
class UVoxelGenerator;
class FVoxelGeneratorInstance;
class FVoxelTransformableGeneratorInstance;
UCLASS(BlueprintType)
class VOXEL_API UVoxelGeneratorInstanceWrapper : public UObject
{
GENERATED_BODY()
public:
TVoxelSharedPtr<FVoxelGeneratorInstance> Instance;
UFUNCTION(BlueprintCallable, Category = "Voxel|Generators")
bool IsValid() const { return Instance.IsValid(); }
};
UCLASS(BlueprintType)
class VOXEL_API UVoxelTransformableGeneratorInstanceWrapper : public UObject
{
GENERATED_BODY()
public:
TVoxelSharedPtr<FVoxelTransformableGeneratorInstance> Instance;
UFUNCTION(BlueprintCallable, Category = "Voxel|Generators")
bool IsValid() const { return Instance.IsValid(); }
};