// © 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(GetOwningAbilitySystemComponent()); }