GASATHON/Project/Source/Gasa/Characters/PlayerCharacter.cpp

34 lines
696 B
C++
Raw Permalink Normal View History

2024-10-22 14:32:37 -07:00
#include "PlayerCharacter.h"
2024-04-12 19:05:09 -07:00
#include "Networking/GasaNetLibrary_Inlines.h"
2024-04-13 08:56:19 -07:00
#include "AbilitySystemComponent.h"
2024-04-21 15:56:57 -07:00
#include "Game/GasaPlayerController.h"
#include "UI/GasaHUD.h"
#include "UI/WidgetController.h"
2024-04-13 08:56:19 -07:00
2024-04-12 19:05:09 -07:00
APlayerCharacter::APlayerCharacter()
{
PrimaryActorTick.bCanEverTick = true;
2024-04-13 08:09:22 -07:00
bAutoAbilitySystem = false;
2024-04-12 19:05:09 -07:00
}
2024-04-13 08:56:19 -07:00
2024-10-22 14:32:37 -07:00
#pragma region ICombat
2024-10-22 15:12:31 -07:00
int32 APlayerCharacter::GetPlayerLevel()
2024-10-22 14:32:37 -07:00
{
2024-10-22 15:12:31 -07:00
return GetPlayerState<AGasaPlayerState>()->PlayerLevel;
2024-10-22 14:32:37 -07:00
}
#pragma endregion ICombat
#pragma region Pawn
void APlayerCharacter::PossessedBy(AController* NewController)
{
Super::PossessedBy(NewController);
}
2024-04-13 08:56:19 -07:00
void APlayerCharacter::OnRep_PlayerState()
{
Super::OnRep_PlayerState();
}
2024-10-22 14:32:37 -07:00
#pragma endregion Pawn