Navigation
API > API/Plugins > API/Plugins/MassReplication > API/Plugins/MassReplication/UMassReplicatorBase
Description
Implemented as straight template callbacks as when profiled this was faster than TFunctionRef. Its probably easier to pass Lamdas in to these but Functors can also be used as well as TFunctionRefs etc. Its also fairly straight forward to call member functions via some Lamda glue code
| Name | CalculateClientReplication |
| Type | function |
| Header File | /Engine/Plugins/Runtime/MassGameplay/Source/MassReplication/Public/MassReplicationProcessor.h |
| Include Path | #include "MassReplicationProcessor.h" |
template<typename AgentArrayItem, typename CacheViewsCallback, typename AddEntityCallback, typename ModifyEntityCallback, typename RemoveEntityCallback>
static void CalculateClientReplication
(
FMassExecutionContext & Context,
FMassReplicationContext & ReplicationContext,
CacheViewsCallback && CacheViews,
AddEntityCallback && AddEntity,
ModifyEntityCallback && ModifyEntity,
RemoveEntityCallback && RemoveEntity
)