You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
This represents UE4/Main @ 16579691 and Dev-PerfTest @ 16579576 [CL 16625248 by aurel cordonnier in ue5-main branch]
69 lines
2.3 KiB
C++
69 lines
2.3 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "DirectLink/DatasmithFacadeEndpointObserver.h"
|
|
#include "DirectLink/DatasmithFacadeEndpointObserverImpl.h"
|
|
|
|
|
|
FDatasmithFacadeRawInfo::FDatasmithFacadeDataPointId* FDatasmithFacadeRawInfo::FDatasmithFacadeEndpointInfo::GetNewDestination(int32 Index) const
|
|
{
|
|
if (EndpointInfo.Destinations.IsValidIndex(Index))
|
|
{
|
|
return new FDatasmithFacadeDataPointId(EndpointInfo.Destinations[Index]);
|
|
}
|
|
return nullptr;
|
|
}
|
|
|
|
FDatasmithFacadeRawInfo::FDatasmithFacadeDataPointId* FDatasmithFacadeRawInfo::FDatasmithFacadeEndpointInfo::GetNewSource(int32 Index) const
|
|
{
|
|
if (EndpointInfo.Sources.IsValidIndex(Index))
|
|
{
|
|
return new FDatasmithFacadeDataPointId(EndpointInfo.Sources[Index]);
|
|
}
|
|
return nullptr;
|
|
}
|
|
|
|
FDatasmithFacadeRawInfo::FDatasmithFacadeEndpointInfo* FDatasmithFacadeRawInfo::GetNewEndpointInfo(const FMessageAddress* MessageAddress) const
|
|
{
|
|
const DirectLink::FRawInfo::FEndpointInfo* EndPointInfo = MessageAddress ? RawInfo.EndpointsInfo.Find(*MessageAddress) : nullptr;
|
|
|
|
if (EndPointInfo)
|
|
{
|
|
return new FDatasmithFacadeEndpointInfo(*EndPointInfo);
|
|
}
|
|
return nullptr;
|
|
}
|
|
|
|
FDatasmithFacadeRawInfo::FDatasmithFacadeDataPointInfo* FDatasmithFacadeRawInfo::GetNewDataPointsInfo(const FGuid* Id) const
|
|
{
|
|
const DirectLink::FRawInfo::FDataPointInfo* DataPointInfo = Id ? RawInfo.DataPointsInfo.Find(*Id) : nullptr;
|
|
|
|
if (DataPointInfo)
|
|
{
|
|
return new FDatasmithFacadeDataPointInfo(*DataPointInfo);
|
|
}
|
|
return nullptr;
|
|
}
|
|
|
|
FDatasmithFacadeRawInfo::FDatasmithFacadeStreamInfo* FDatasmithFacadeRawInfo::GetNewStreamInfo(int32 Index) const
|
|
{
|
|
if (RawInfo.StreamsInfo.IsValidIndex(Index))
|
|
{
|
|
return new FDatasmithFacadeStreamInfo(RawInfo.StreamsInfo[Index]);
|
|
}
|
|
return nullptr;
|
|
}
|
|
|
|
FDatasmithFacadeEndpointObserver::FDatasmithFacadeEndpointObserver()
|
|
: ObserverImpl(MakeShared<FDatasmithFacadeEndpointObserverImpl>())
|
|
{}
|
|
|
|
void FDatasmithFacadeEndpointObserver::RegisterOnStateChangedDelegateInternal(FDatasmithFacadeEndpointObserver::OnStateChangedDelegate InOnStateChangedDelegate)
|
|
{
|
|
ObserverImpl->RegisterOnStateChangedDelegate(InOnStateChangedDelegate);
|
|
}
|
|
|
|
void FDatasmithFacadeEndpointObserver::UnregisterOnStateChangedDelegateInternal(FDatasmithFacadeEndpointObserver::OnStateChangedDelegate InOnStateChangedDelegate)
|
|
{
|
|
ObserverImpl->UnregisterOnStateChangedDelegate(InOnStateChangedDelegate);
|
|
}
|