Files
UnrealEngineUWP/Engine/Source/Runtime/Experimental/GeometryCollectionEngine/Public/GeometryCollection/GeometryCollectionHitProxy.h
ori cohen 9cb385014d Remove lvl1 include guards from GeometryCollection
#rb none

#ROBOMERGE-OWNER: ori.cohen
#ROBOMERGE-AUTHOR: ori.cohen
#ROBOMERGE-SOURCE: CL 12623495 via CL 12623508 via CL 12623509 via CL 12623510
#ROBOMERGE-BOT: RELEASE (Release-Engine-Staging -> Main) (v675-12543919)

[CL 12623517 by ori cohen in Main branch]
2020-04-06 12:50:13 -04:00

44 lines
1.3 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "GeometryCollectionEditorSelection.h"
#if GEOMETRYCOLLECTION_EDITOR_SELECTION
#include "EngineUtils.h"
class UGeometryCollectionComponent;
/** HitProxy with transform index information. */
struct HGeometryCollection : public HActor
{
DECLARE_HIT_PROXY(GEOMETRYCOLLECTIONENGINE_API)
int32 TransformIndex;
HGeometryCollection(AActor* InActor, const UPrimitiveComponent* InPrimitiveComponent, int32 InSectionIndex, int32 InMaterialIndex, int32 InTransformIndex)
: HActor(InActor, InPrimitiveComponent, InSectionIndex, InMaterialIndex)
, TransformIndex(InTransformIndex)
{}
};
/** HitProxy with transform index information. */
// @todo FractureTools - This is temp, we should merge it with HGeometryCollection
struct HGeometryCollectionBone : public HHitProxy
{
DECLARE_HIT_PROXY(GEOMETRYCOLLECTIONENGINE_API)
UGeometryCollectionComponent* Component;
int32 BoneIndex;
HGeometryCollectionBone(UGeometryCollectionComponent* InGeometryCollectionComponent, int32 InBoneIndex)
: Component(InGeometryCollectionComponent)
, BoneIndex(InBoneIndex)
{}
virtual void AddReferencedObjects(FReferenceCollector& Collector) override
{
Collector.AddReferencedObject(Component);
}
};
#endif // #if GEOMETRYCOLLECTION_EDITOR_SELECTION