Navigation
API > API/Plugins > API/Plugins/MassReplication > API/Plugins/MassReplication/UMassReplicatorBase
References
| Module | MassReplication |
| Header | /Engine/Plugins/Runtime/MassGameplay/Source/MassReplication/Public/MassReplicationProcessor.h |
| Include | #include "MassReplicationProcessor.h" |
template<typename AgentArrayItem, typename CacheViewsCallback, typename AddEntityCallback, typename ModifyEntityCallback, typename RemoveEntityCallback>
static void CalculateClientReplication
&40;
FMassExecutionContext & Context,
FMassReplicationContext & ReplicationContext,
CacheViewsCallback && CacheViews,
AddEntityCallback && AddEntity,
ModifyEntityCallback && ModifyEntity,
RemoveEntityCallback && RemoveEntity
&41;
Remarks
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