2025-10-14 22:20:59 -04:00
|
|
|
// Copyright Echo Devgroup
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "CoreMinimal.h"
|
|
|
|
|
#include "GameFramework/PlayerController.h"
|
|
|
|
|
#include "Interact/EnemyInterface.h"
|
|
|
|
|
#include "AuraPlayerController.generated.h"
|
|
|
|
|
|
|
|
|
|
class UInputMappingContext;
|
|
|
|
|
class UInputAction;
|
|
|
|
|
struct FInputActionValue;
|
|
|
|
|
class IEnemyInterface;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
UCLASS()
|
|
|
|
|
class AURA_API AAuraPlayerController : public APlayerController
|
|
|
|
|
{
|
|
|
|
|
GENERATED_BODY()
|
|
|
|
|
public:
|
|
|
|
|
AAuraPlayerController();
|
|
|
|
|
virtual void PlayerTick(float DeltaTime) override;
|
|
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
virtual void BeginPlay() override;
|
|
|
|
|
virtual void SetupInputComponent() override;
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
UPROPERTY(EditAnywhere, Category = "Input")
|
|
|
|
|
TObjectPtr<UInputMappingContext> AuraContext;
|
|
|
|
|
|
|
|
|
|
UPROPERTY(EditAnywhere, Category = "Input")
|
|
|
|
|
TObjectPtr<UInputAction> MoveAction;
|
|
|
|
|
|
|
|
|
|
void Move(const FInputActionValue& InputActionValue);
|
|
|
|
|
|
|
|
|
|
void CursorTrace();
|
|
|
|
|
IEnemyInterface* LastActor;
|
|
|
|
|
IEnemyInterface* ThisActor;
|
2025-10-14 23:45:02 -04:00
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
TObjectPtr<AActor> LastActor;
|
|
|
|
|
TObjectPtr<AActor> ThisActor;
|
|
|
|
|
|
|
|
|
|
FHitResult CursorHit;
|
|
|
|
|
static void HightlightActor(AActor* Actor);
|
|
|
|
|
static void UnHightlightActor(AActor* Actor);
|
|
|
|
|
*/
|
2025-10-14 22:20:59 -04:00
|
|
|
};
|