CelticCraft/Plugins/VoxelFree/Source/VoxelEditor/Private/VoxelWorldEditorControls.h

49 lines
No EOL
1.1 KiB
C++

// Copyright 2020 Phyronnaz
#pragma once
#include "CoreMinimal.h"
#include "GameFramework/Actor.h"
#include "VoxelComponents/VoxelInvokerComponent.h"
#include "VoxelWorldEditorControls.generated.h"
class AVoxelWorld;
class UVoxelInvokerEditorComponent;
UCLASS(NotPlaceable)
class VOXELEDITOR_API AVoxelWorldEditorControls : public AActor
{
GENERATED_BODY()
public:
AVoxelWorldEditorControls();
//~ Begin AActor interface
void Tick(float DeltaTime) override;
#if WITH_EDITOR
virtual bool ShouldTickIfViewportsOnly() const override final { return true; }
virtual bool IsEditorOnly() const override final { return true; }
#endif
//~ End AActor interface
UPROPERTY(Transient)
bool bOverrideLocation = false;
UPROPERTY(Transient)
FVector LocationOverride;
UPROPERTY(VisibleAnywhere, Category = "Voxel")
TObjectPtr<UVoxelInvokerEditorComponent> Invoker;
};
UCLASS(NotPlaceable)
class VOXELEDITOR_API UVoxelInvokerEditorComponent : public UVoxelSimpleInvokerComponent
{
GENERATED_BODY()
public:
UVoxelInvokerEditorComponent();
//~ Begin UActorComponent Interface
virtual void OnRegister() override;
//~ End UActorComponent Interface
};