Navigation
API > API/Plugins > API/Plugins/MassReplication
Template client bubble functionality. Replication logic for specific agent types is provided by deriving from this class. Interaction with the FMassClientBubbleSerializerBase and derived classes should be done from this class
| Name | TClientBubbleHandlerBase |
| Type | class |
| Header File | /Engine/Plugins/Runtime/MassGameplay/Source/MassReplication/Public/MassClientBubbleHandler.h |
| Include Path | #include "MassClientBubbleHandler.h" |
Syntax
template<typename AgentArrayItem>
class TClientBubbleHandlerBase : public IClientBubbleHandlerInterface
Implements Interfaces
Derived Classes
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| FAddRequirementsForSpawnQueryFunction | TFunctionRef< void(FMassEntityQuery &)> | MassClientBubbleHandler.h | |
| FCacheFragmentViewsForSpawnQueryFunction | TFunctionRef< void(FMassExecutionContext &)> | MassClientBubbleHandler.h | |
| FSetModifiedEntityDataFunction | TFunctionRef< void(const FMassEntityView &, const typename AgentArrayItem::FReplicatedAgentType &)> | MassClientBubbleHandler.h | |
| FSetSpawnedEntityDataFunction | TFunctionRef< void(const FMassEntityView &, const typename AgentArrayItem::FReplicatedAgentType &, const int32)> | MassClientBubbleHandler.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void Initialize
(
TArray< AgentArrayItem >& InAgents, |
This must be called from outside before InitializeForWorld() is called. | MassClientBubbleHandler.h |
Overridden from IClientBubbleHandlerInterface
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void InitializeForWorld
(
UWorld& InWorld |
MassClientBubbleHandler.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void PostReplicatedAddEntitiesHelper
(
const TArrayView< int32 > AddedIndices, |
Used by PostReplicatedAddHelper | MassClientBubbleHandler.h | |
void PostReplicatedAddHelper
(
const TArrayView< int32 > AddedIndices, |
Called from TClientBubbleHandlerBase derived classes in PostReplicatedAd() | MassClientBubbleHandler.h | |
void PostReplicatedChangeHelper
(
const TArrayView< int32 > ChangedIndices, |
Called from TClientBubbleHandlerBase derived classes in PostReplicatedChange() | MassClientBubbleHandler.h |
Overridden from IClientBubbleHandlerInterface
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void DebugValidateBubbleOnClient() |
MassClientBubbleHandler.h | ||
virtual void DebugValidateBubbleOnServer() |
MassClientBubbleHandler.h | ||
virtual void PreReplicatedRemove
(
const TArrayView< int32 > RemovedIndices, |
These functions are processed internally by TClientBubbleHandlerBase | MassClientBubbleHandler.h | |
virtual void Reset() |
MassClientBubbleHandler.h | ||
virtual void SetClientHandle
(
FMassClientHandle InClientHandle |
MassClientBubbleHandler.h | ||
virtual void Tick
(
float DeltaTime |
MassClientBubbleHandler.h | ||
virtual void UpdateAgentsToRemove() |
MassClientBubbleHandler.h |