RealtimeStyleTransferRuntime/Source/LyraGame/AbilitySystem/Attributes/LyraAttributeSet.cpp

23 lines
500 B
C++
Raw Normal View History

2022-05-23 18:41:30 +00:00
// Copyright Epic Games, Inc. All Rights Reserved.
#include "LyraAttributeSet.h"
#include "AbilitySystem/LyraAbilitySystemComponent.h"
ULyraAttributeSet::ULyraAttributeSet()
{
}
UWorld* ULyraAttributeSet::GetWorld() const
{
const UObject* Outer = GetOuter();
check(Outer);
return Outer->GetWorld();
}
ULyraAbilitySystemComponent* ULyraAttributeSet::GetLyraAbilitySystemComponent() const
{
return Cast<ULyraAbilitySystemComponent>(GetOwningAbilitySystemComponent());
}