Initialize Git with LFS for binary assets and add standard Unreal Engine .gitignore/.gitattributes. Co-authored-by: Cursor <cursoragent@cursor.com>
26 lines
749 B
C++
26 lines
749 B
C++
// REALMS IN RUIN. Copyright (c) 2025 Trevor Edwards. All rights reserved.
|
|
|
|
#include "Characters/RIRBaseCharacter.h"
|
|
#include "Player/RIRPlayerState.h"
|
|
#include "Abilities/RIRAbilitySystemComponent.h"
|
|
#include "Attributes/RIRAttributeSet.h"
|
|
#include "AbilitySystemComponent.h"
|
|
#include "GameFramework/Controller.h"
|
|
|
|
ARIRBaseCharacter::ARIRBaseCharacter()
|
|
{
|
|
// Optional: initialize components, set default properties, etc
|
|
}
|
|
|
|
void ARIRBaseCharacter::BeginPlay()
|
|
{
|
|
Super::BeginPlay();
|
|
// GAS Initialization moved to PossessedBy / OnRep_PlayerState
|
|
}
|
|
|
|
UAbilitySystemComponent* ARIRBaseCharacter::GetAbilitySystemComponent() const
|
|
{
|
|
ARIRPlayerState* PS = GetPlayerState<ARIRPlayerState>();
|
|
return PS ? PS->GetAbilitySystemComponent() : nullptr;
|
|
}
|