2024-04-12 13:10:06 -07:00
|
|
|
|
#pragma once
|
|
|
|
|
|
2024-04-12 13:30:01 -07:00
|
|
|
|
#include "GasaCommon.h"
|
2024-04-12 14:53:47 -07:00
|
|
|
|
#include "GameFramework/PlayerController.h"
|
2024-04-12 13:30:01 -07:00
|
|
|
|
|
2024-04-12 13:10:06 -07:00
|
|
|
|
#include "GasaPlayerController.generated.h"
|
|
|
|
|
|
2024-04-12 14:53:47 -07:00
|
|
|
|
|
2024-04-12 13:10:06 -07:00
|
|
|
|
UCLASS(Blueprintable)
|
|
|
|
|
class GASA_API AGasaPlayerController : public APlayerController
|
|
|
|
|
{
|
|
|
|
|
GENERATED_BODY()
|
|
|
|
|
public:
|
2024-04-12 13:30:01 -07:00
|
|
|
|
|
2024-04-12 14:53:47 -07:00
|
|
|
|
#pragma region Input
|
2024-04-12 19:05:09 -07:00
|
|
|
|
UPROPERTY(VisibleAnywhere, BlueprintReadOnly)
|
|
|
|
|
AGasaCharacter* HoverPrev;
|
|
|
|
|
|
|
|
|
|
UPROPERTY(VisibleAnywhere, BlueprintReadOnly)
|
|
|
|
|
AGasaCharacter* HoverCurr;
|
|
|
|
|
|
2024-04-12 14:53:47 -07:00
|
|
|
|
UPROPERTY(EditAnywhere, Category="Input")
|
2024-04-12 13:30:01 -07:00
|
|
|
|
TObjectPtr<UInputMappingContext> IMC;
|
2024-04-12 14:53:47 -07:00
|
|
|
|
|
|
|
|
|
UPROPERTY(EditAnywhere, Category="Input")
|
|
|
|
|
TObjectPtr<UInputAction> IA_Move;
|
|
|
|
|
#pragma endregion Input
|
2024-04-12 13:10:06 -07:00
|
|
|
|
|
2024-04-12 13:30:01 -07:00
|
|
|
|
AGasaPlayerController();
|
|
|
|
|
|
2024-04-12 14:53:47 -07:00
|
|
|
|
void Move(FInputActionValue const& ActionValue);
|
|
|
|
|
|
|
|
|
|
#pragma region PlayerController
|
2024-04-12 19:05:09 -07:00
|
|
|
|
void PlayerTick(float DeltaTime) override;
|
|
|
|
|
|
2024-04-12 14:53:47 -07:00
|
|
|
|
void SetupInputComponent() override;
|
|
|
|
|
#pragma endregion PlayerController
|
|
|
|
|
|
|
|
|
|
#pragma region Actor
|
2024-04-12 13:30:01 -07:00
|
|
|
|
void BeginPlay() override;
|
2024-04-12 14:53:47 -07:00
|
|
|
|
#pragma endregion Actor
|
2024-04-12 13:10:06 -07:00
|
|
|
|
};
|