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

34 lines
696 B
C++
Raw Normal View History

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