Navigation
API > API/Plugins > API/Plugins/MassReplication > API/Plugins/MassReplication/UMassReplicationSubsystem
Description
Finds or adds an FMassReplicationEntityInfo to the EntityInfoMap for an Entity with NetWorkID. This will update the ReplicationID if an older one is found but it does not change the FMassReplicationEntityInfo::Entity member. Returns whether we added an entry in EntityInfoMap, or if the found item has an older or newer ReplicationID than that that is passed in. We shouldn't actually get an equal ReplicationID, but in this case we'll treat the existing EntityInfoMap entry as newer. SetEntity() must be called soon after this if the entity handle is !IsSet()
| Name | FindAndUpdateOrAddMassEntityInfo |
| Type | function |
| Header File | /Engine/Plugins/Runtime/MassGameplay/Source/MassReplication/Public/MassReplicationSubsystem.h |
| Include Path | #include "MassReplicationSubsystem.h" |
| Source | /Engine/Plugins/Runtime/MassGameplay/Source/MassReplication/Private/MassReplicationSubsystem.cpp |
EFindOrAddMassEntityInfo FindAndUpdateOrAddMassEntityInfo
(
const FMassNetworkID NetworkID,
int32 ReplicationID,
const FMassReplicationEntityInfo *& OutMassEntityInfo
)
EFindOrAddMassEntityInfo, result of the function call
Parameters
| Name | Remarks |
|---|---|
| NetworkID | ID of the entity we are looking up OutMassEntityInfo for |
| ReplicationID | this is the ReplicationID of the FastArray item |
| OutMassEntityInfo | retrieved or added FMassReplicationEntityInfo |