Navigation
API > API/Plugins > API/Plugins/MassReplication
Client-side bubble handler for fragments. Automatically implements all client handler methods using TReplicationTraits. Used in TClientBubbleHandlerBase-derived types.
| Name | TClientBubbleFragmentHandler |
| Type | struct |
| Header File | /Engine/Plugins/Runtime/MassGameplay/Source/MassReplication/Public/MassReplicationTemplates.h |
| Include Path | #include "MassReplicationTemplates.h" |
Syntax
template<typename TReplicatedDataType, CFragment... TFragments>
struct TClientBubbleFragmentHandler
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| FReplicatedDataType | TReplicatedDataType | MassReplicationTemplates.h | |
| TFragmentType | typename TRemoveReference< TFragmentView >::Type::ElementType | MassReplicationTemplates.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| FragmentViewLists | std::tuple< TArrayView< TFragments >... > | MassReplicationTemplates.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void CacheFragmentViewsForSpawnQuery
(
FMassExecutionContext& InExecContext |
Caches mutable fragment views for spawning | MassReplicationTemplates.h | |
void ClearFragmentViewsForSpawnQuery() |
Clears cached fragment views | MassReplicationTemplates.h | |
TArrayView< T > & GetView () |
MassReplicationTemplates.h | ||
const TArrayView< T > & GetView () |
MassReplicationTemplates.h | ||
void SetSpawnedEntityData
(
const int32 EntityIndex, |
Applies replicated data to a newly spawned entity | MassReplicationTemplates.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static void AddRequirementsForSpawnQuery
(
FMassEntityQuery& InQuery |
Adds fragment requirements for the spawn query | MassReplicationTemplates.h | |
static void ApplyModifiedFragment
(
const FMassEntityView& EntityView, |
MassReplicationTemplates.h | ||
static void ApplyToFragment
(
TFragment& Fragment, |
MassReplicationTemplates.h | ||
static void SetModifiedEntityData
(
const FMassEntityView& EntityView, |
Applies replicated data to an already-existing entity | MassReplicationTemplates.h |