5#include "MassEntityElementTypes.generated.h"
15#define _MASS_INVALID_FRAGMENT_CORE_MESSAGE "Make sure to inherit from FMassFragment or one of its child-types and ensure that the struct is trivially copyable, or opt out by specializing TMassFragmentTraits for this type and setting AuthorAcceptsItsNotTriviallyCopyable = true"
16#define MASS_INVALID_FRAGMENT_MSG "Given struct doesn't represent a valid fragment type." _MASS_INVALID_FRAGMENT_CORE_MESSAGE
17#define MASS_INVALID_FRAGMENT_MSG_F "Type %s is not a valid fragment type." _MASS_INVALID_FRAGMENT_CORE_MESSAGE
57 return Struct &&
Struct->IsChildOf(FMassFragment::StaticStruct());
63 return Struct &&
Struct->IsChildOf(FMassTag::StaticStruct());
69 return Struct &&
Struct->IsChildOf(FMassChunkFragment::StaticStruct());
75 return Struct &&
Struct->IsChildOf(FMassSharedFragment::StaticStruct());
81 return Struct &&
Struct->IsChildOf(FMassConstSharedFragment::StaticStruct());
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define GENERATED_BODY(...)
Definition ObjectMacros.h:765
#define USTRUCT(...)
Definition ObjectMacros.h:746
Definition MassArchetypeData.h:21
bool IsA< FMassSharedFragment >(const UStruct *Struct)
Definition MassEntityElementTypes.h:73
bool IsA(const UStruct *)
Definition MassEntityElementTypes.h:49
bool IsA< FMassTag >(const UStruct *Struct)
Definition MassEntityElementTypes.h:61
bool IsA< FMassFragment >(const UStruct *Struct)
Definition MassEntityElementTypes.h:55
bool IsA< FMassConstSharedFragment >(const UStruct *Struct)
Definition MassEntityElementTypes.h:79
bool IsA< FMassChunkFragment >(const UStruct *Struct)
Definition MassEntityElementTypes.h:67
Definition MassEntityElementTypes.h:30
Definition MassEntityElementTypes.h:42
Definition MassEntityElementTypes.h:10
Definition MassEntityElementTypes.h:36
Definition MassEntityElementTypes.h:24