OLS/Source/ols/Private/AbilitySystem/Attributes/OLSAttributeSetBase.cpp

24 lines
633 B
C++
Raw Normal View History

2025-01-06 21:29:37 +00:00
// © 2024 Long Ly. All rights reserved. Any unauthorized use, reproduction, or distribution of this trademark is strictly prohibited and may result in legal action.
#include "AbilitySystem/Attributes/OLSAttributeSetBase.h"
#include "AbilitySystem/OLSAbilitySystemComponent.h"
UOLSAttributeSetBase::UOLSAttributeSetBase()
{
}
UWorld* UOLSAttributeSetBase::GetWorld() const
{
const UObject* outer = GetOuter();
check(outer);
return outer->GetWorld();
}
UOLSAbilitySystemComponent* UOLSAttributeSetBase::GetOLSAbilitySystemComponent() const
{
return Cast<UOLSAbilitySystemComponent>(GetOwningAbilitySystemComponent());
}