You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Change consist of only forward declaration and additional includes #preflight 63789c1de30d438849c48188 #rb none [CL 23218412 by henrik karlsson in ue5-main branch]
32 lines
824 B
C
32 lines
824 B
C
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "LocalizationTargetTypes.h"
|
|
#include "PropertyHandle.h"
|
|
|
|
struct FTargetsTableEntry
|
|
{
|
|
TSharedPtr<IPropertyHandle> TargetObjectPropertyHandle;
|
|
int32 CultureIndex;
|
|
|
|
FTargetsTableEntry()
|
|
: CultureIndex(INDEX_NONE)
|
|
{}
|
|
|
|
FTargetsTableEntry(const TSharedPtr<IPropertyHandle>& InTargetObjectPropertyHandle, const int32 InCultureIndex = INDEX_NONE)
|
|
: TargetObjectPropertyHandle(InTargetObjectPropertyHandle)
|
|
, CultureIndex(InCultureIndex)
|
|
{}
|
|
|
|
ULocalizationTarget* GetTarget()
|
|
{
|
|
if (TargetObjectPropertyHandle.IsValid() && TargetObjectPropertyHandle->IsValidHandle())
|
|
{
|
|
UObject* Value = nullptr;
|
|
TargetObjectPropertyHandle->GetValue(Value);
|
|
return Cast<ULocalizationTarget>(Value);
|
|
}
|
|
return nullptr;
|
|
}
|
|
}; |