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

29 lines
613 B
C++
Raw Permalink Normal View History

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