You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#rb sebastien.nordgren #preflight 62bc45213771c5710de91653 #ROBOMERGE-AUTHOR: patrick.boutot #ROBOMERGE-SOURCE: CL 20874026 via CL 20881496 via CL 20881723 #ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v971-20777995) [CL 20885743 by patrick boutot in ue5-main branch]
22 lines
592 B
C++
22 lines
592 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "MVVMBlueprintViewModelContext.h"
|
|
|
|
#include "FieldNotification/IFieldValueChanged.h"
|
|
|
|
FMVVMBlueprintViewModelContext::FMVVMBlueprintViewModelContext(const UClass* InClass, FName InViewModelName)
|
|
{
|
|
if (InClass && InClass->ImplementsInterface(UNotifyFieldValueChanged::StaticClass()))
|
|
{
|
|
ViewModelContextId = FGuid::NewGuid();
|
|
NotifyFieldValueClass = const_cast<UClass*>(InClass);
|
|
ViewModelName = InViewModelName;
|
|
}
|
|
}
|
|
|
|
|
|
FText FMVVMBlueprintViewModelContext::GetDisplayName() const
|
|
{
|
|
return FText::FromName(ViewModelName);
|
|
}
|