44 lines
970 B
C++
44 lines
970 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "MassEntityTypes.h"
|
|
#include "MassCommonFragments.generated.h"
|
|
|
|
|
|
USTRUCT()
|
|
struct FTransformFragment : public FMassFragment
|
|
{
|
|
GENERATED_BODY()
|
|
|
|
FTransformFragment() = default;
|
|
FTransformFragment(const FTransform& InTransform)
|
|
: Transform(InTransform)
|
|
{}
|
|
|
|
const FTransform& GetTransform() const { return Transform; }
|
|
void SetTransform(const FTransform& InTransform) { Transform = InTransform; }
|
|
FTransform& GetMutableTransform() { return Transform; }
|
|
|
|
protected:
|
|
UPROPERTY(Transient)
|
|
FTransform Transform;
|
|
};
|
|
|
|
USTRUCT()
|
|
struct FAgentRadiusFragment : public FMassFragment
|
|
{
|
|
GENERATED_BODY()
|
|
UPROPERTY(EditAnywhere, Category = "")
|
|
float Radius = 40.f;
|
|
};
|
|
|
|
/** This is a common type for all the wrappers pointing at UObjects used to copy data from them or set data based on
|
|
* Mass simulation..
|
|
*/
|
|
USTRUCT()
|
|
struct FObjectWrapperFragment : public FMassFragment
|
|
{
|
|
GENERATED_BODY()
|
|
};
|