/Engine/Plugins/Runtime/MassGameplay/Source/MassReplication/Public/MassReplicationProcessor.h
Implemented as straight template callbacks as when profiled this was faster thanTFunctionRef. 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
template<typename AgentArrayItem, typename CacheViewsCallback, typename AddEntityCallback, typename ModifyEntityCallback, typename RemoveEntityCallback> static void CalculateClientReplication ( [FMassExecutionContext](API\Plugins\MassEntity\FMassExecutionContext) & Context, [FMassReplicationContext](API\Plugins\MassReplication\FMassReplicationContext) & ReplicationContext, CacheViewsCallback && CacheViews, AddEntityCallback && AddEntity, ModifyEntityCallback && ModifyEntity, RemoveEntityCallback && RemoveEntity )