You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#jira UE-136821 #rb simon.therriault #preflight 61f0204eff453b751b33e0a0 #ROBOMERGE-AUTHOR: geoffrey.douglas #ROBOMERGE-SOURCE: CL 18723529 in //UE5/Release-5.0/... via CL 18723562 via CL 18723665 #ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v903-18687472) [CL 18723688 by geoffrey douglas in ue5-main branch]
126 lines
3.0 KiB
C
126 lines
3.0 KiB
C
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
#include "UObject/Object.h"
|
|
#include "LiveLinkRefSkeleton.h"
|
|
#include "LiveLinkTypes.h"
|
|
#include "LiveLinkMessages.generated.h"
|
|
|
|
struct LIVELINKMESSAGEBUSFRAMEWORK_API FLiveLinkMessageAnnotation
|
|
{
|
|
static FName SubjectAnnotation;
|
|
static FName RoleAnnotation;
|
|
};
|
|
|
|
USTRUCT()
|
|
struct FLiveLinkPingMessage
|
|
{
|
|
GENERATED_BODY()
|
|
|
|
UPROPERTY()
|
|
FGuid PollRequest;
|
|
|
|
UPROPERTY()
|
|
int32 LiveLinkVersion = 1;
|
|
|
|
// default constructor for the receiver
|
|
FLiveLinkPingMessage() = default;
|
|
|
|
FLiveLinkPingMessage(const FGuid& InPollRequest, int32 InLiveLinkVersion) : PollRequest(InPollRequest), LiveLinkVersion(InLiveLinkVersion) {}
|
|
};
|
|
|
|
USTRUCT()
|
|
struct FLiveLinkPongMessage
|
|
{
|
|
GENERATED_BODY()
|
|
|
|
UPROPERTY()
|
|
FString ProviderName;
|
|
|
|
UPROPERTY()
|
|
FString MachineName;
|
|
|
|
UPROPERTY()
|
|
FGuid PollRequest;
|
|
|
|
UPROPERTY()
|
|
int32 LiveLinkVersion = 1;
|
|
|
|
UPROPERTY()
|
|
double CreationPlatformTime = -1.0;
|
|
|
|
// default constructor for the receiver
|
|
FLiveLinkPongMessage() = default;
|
|
|
|
UE_DEPRECATED(5.0, "This version of the FLiveLinkPongMessage constructor is deprecated. Please use the new constructor instead to ensure the LiveLinkVersion is set properly.")
|
|
FLiveLinkPongMessage(const FString& InProviderName, const FString& InMachineName, const FGuid& InPollRequest) : ProviderName(InProviderName), MachineName(InMachineName), PollRequest(InPollRequest), CreationPlatformTime(FPlatformTime::Seconds()) {}
|
|
|
|
FLiveLinkPongMessage(const FString& InProviderName, const FString& InMachineName, const FGuid& InPollRequest, int32 InLiveLinkVersion) : ProviderName(InProviderName), MachineName(InMachineName), PollRequest(InPollRequest), LiveLinkVersion(InLiveLinkVersion), CreationPlatformTime(FPlatformTime::Seconds()) {}
|
|
};
|
|
|
|
USTRUCT()
|
|
struct FLiveLinkConnectMessage
|
|
{
|
|
GENERATED_BODY()
|
|
|
|
UPROPERTY()
|
|
int32 LiveLinkVersion = 1;
|
|
};
|
|
|
|
USTRUCT()
|
|
struct FLiveLinkHeartbeatMessage
|
|
{
|
|
GENERATED_BODY()
|
|
};
|
|
|
|
USTRUCT()
|
|
struct FLiveLinkClearSubject
|
|
{
|
|
GENERATED_BODY()
|
|
|
|
// Name of the subject to clear
|
|
UPROPERTY()
|
|
FName SubjectName;
|
|
|
|
FLiveLinkClearSubject() {}
|
|
FLiveLinkClearSubject(const FName& InSubjectName) : SubjectName(InSubjectName) {}
|
|
};
|
|
|
|
PRAGMA_DISABLE_DEPRECATION_WARNINGS
|
|
USTRUCT()
|
|
struct UE_DEPRECATED(4.23, "FLiveLinkSubjectDataMessage is deprecated. Please use the LiveLink animation role.") FLiveLinkSubjectDataMessage
|
|
{
|
|
GENERATED_BODY()
|
|
|
|
UPROPERTY()
|
|
FLiveLinkRefSkeleton RefSkeleton;
|
|
|
|
UPROPERTY()
|
|
FName SubjectName;
|
|
};
|
|
|
|
USTRUCT()
|
|
struct UE_DEPRECATED(4.23, "FLiveLinkSubjectDataMessage is deprecated. Please use the LiveLink animation role.") FLiveLinkSubjectFrameMessage
|
|
{
|
|
GENERATED_BODY()
|
|
|
|
UPROPERTY()
|
|
FName SubjectName;
|
|
|
|
// Bone Transform data for this frame
|
|
UPROPERTY()
|
|
TArray<FTransform> Transforms;
|
|
|
|
// Curve data for this frame
|
|
UPROPERTY()
|
|
TArray<FLiveLinkCurveElement> Curves;
|
|
|
|
// Subject MetaData for this frame
|
|
UPROPERTY()
|
|
FLiveLinkMetaData MetaData;
|
|
|
|
// Incrementing time for interpolation
|
|
UPROPERTY()
|
|
double Time = 0.0;
|
|
};
|
|
PRAGMA_ENABLE_DEPRECATION_WARNINGS |