Files
UnrealEngineUWP/Engine/Source/Runtime/LiveLinkInterface/Public/LiveLinkRefSkeleton.h
Ben Marsh 7598af0532 Update copyright notices to 2019.
#rb none
#lockdown Nick.Penwarden

[CL 4662404 by Ben Marsh in Main branch]
2018-12-14 13:41:00 -05:00

37 lines
951 B
C++

// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "UObject/ObjectMacros.h"
#include "LiveLinkRefSkeleton.generated.h"
USTRUCT()
struct FLiveLinkRefSkeleton
{
GENERATED_USTRUCT_BODY()
// Set the bone names for this skeleton
void SetBoneNames(const TArray<FName>& InBoneNames) { BoneNames = InBoneNames; }
// Get the bone names for this skeleton
const TArray<FName>& GetBoneNames() const { return BoneNames; }
// Set the parent bones for this skeleton (Array of indices to parent)
void SetBoneParents(const TArray<int32> InBoneParents) { BoneParents = InBoneParents; }
//Get skeleton's parent bones array
const TArray<int32>& GetBoneParents() const { return BoneParents; }
private:
// Names of each bone in the skeleton
UPROPERTY()
TArray<FName> BoneNames;
// Parent Indices: For each bone it specifies the index of its parent
UPROPERTY()
TArray<int32> BoneParents;
};