Files
Brandyn / Techy fcc1b09210 init
2026-04-04 15:40:51 -05:00

43 lines
844 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "MassEntityRelations.h"
#include "MassTypeManager.h"
#include "MassRelationObservers.h"
#include "MassChildOf.generated.h"
#define UE_API MASSENTITY_API
namespace UE::Mass::Relations
{
extern UE_API FTypeHandle ChildOfHandle;
UE_API void RegisterChildOfRelation();
}
USTRUCT()
struct FMassChildOfRelation : public FMassRelation
{
GENERATED_BODY()
};
USTRUCT()
struct FMassChildOfFragment : public FMassFragment
{
GENERATED_BODY()
UPROPERTY(VisibleAnywhere, Category = Mass)
FMassEntityHandle Parent;
};
UCLASS(MinimalAPI)
class UMassChildOfRelationEntityCreation : public UMassRelationEntityCreation
{
GENERATED_BODY()
protected:
UE_API virtual void Execute(FMassEntityManager& EntityManager, FMassExecutionContext& Context) override;
};
#undef UE_API