24 lines
633 B
C++
24 lines
633 B
C++
// © 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());
|
|
}
|