2020-12-03 05:52:29 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "CoreMinimal.h"
|
2020-12-03 14:44:18 +00:00
|
|
|
#include "Block/VoxelBlock.h"
|
2020-12-03 05:52:29 +00:00
|
|
|
#include "Kismet/BlueprintFunctionLibrary.h"
|
|
|
|
#include "VoxelBlueprintLibrary.generated.h"
|
|
|
|
|
|
|
|
struct FVoxelBlockType;
|
|
|
|
|
|
|
|
UCLASS()
|
2020-12-03 14:44:18 +00:00
|
|
|
class VOXEL_API UVoxelBlueprintLibrary : public UBlueprintFunctionLibrary
|
2020-12-03 05:52:29 +00:00
|
|
|
{
|
|
|
|
GENERATED_BODY()
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
UFUNCTION(BlueprintCallable, Category = "Voxel|Subsystem", meta = (WorldContext = "WorldContextObject"))
|
|
|
|
static void AddBlockType(const UObject* WorldContextObject, const FName& Name, const FVoxelBlockType& BlockType);
|
|
|
|
|
|
|
|
};
|