Navigation
API > API/Runtime > API/Runtime/IrisCore > API/Runtime/IrisCore/Iris > API/Runtime/IrisCore/Iris/ReplicationSystem
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UReplicationSystem
References
| Module | IrisCore |
| Header | /Engine/Source/Runtime/Experimental/Iris/Core/Public/Iris/ReplicationSystem/ReplicationSystem.h |
| Include | #include "Iris/ReplicationSystem/ReplicationSystem.h" |
Syntax
class UReplicationSystem : public UObject
Constructors
No constructors are accessible with public or protected access.
Destructors
No destructors are accessible with public or protected access.
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddConnection
(
uint32 ConnectionId |
Notify that a connection was added. | |
| void | AddGroupFilter
(
FNetObjectGroupHandle GroupHandle |
Add a group to the filtering system. | |
| void | AddToGroup
(
FNetObjectGroupHandle GroupHandle, |
Add an object to a group. | |
| void | ClearCullDistanceSqrOverride
(
FNetRefHandle Handle |
Clears any previously set squared cull distance for an object. | |
| FNetObjectGroupHandle | CreateGroup () |
Create a group which can be used to logically group objects together. | |
| void | DestroyGroup
(
FNetObjectGroupHandle GroupHandle |
Destroy a group. | |
| void | ForceNetUpdate
(
FNetRefHandle Handle |
Force the passed object to be considered for replication this frame. | |
| UObject * | GetConnectionUserData
(
uint32 ConnectionId |
Retrieve the user data associated with a connection. | |
| float | GetCullDistanceSqrOverride
(
FNetRefHandle Handle, |
Returns the previously set squared cull distance for an object, or DefaultValue if it wasn't or the Handle isn't valid. | |
| double | Returns elapsed time in seconds since ReplicatonSystem was created | ||
| UNetObjectFilter * | Gets the filter with a given name. | ||
| UE::Net::FNetObjectFilterHandle | GetFilterHandle
(
const FName FilterName |
Gets the handle for a filter with a given name. | |
| FName | GetFilterName
(
UE::Net::FNetObjectFilterHandle Filter |
Returns the name of the filter associated to this handle. | |
| uint32 | GetId () |
||
| uint32 | |||
| const UE::Net::FNetCullDistanceOverrides & | Retrieve the NetCullDistanceOverrides instance which holds cull distances for objects that have explicitly overriden it. | ||
| FNetObjectGroupHandle | GetOrCreateSubObjectFilter
(
FName GroupName |
SubObject filtering. | |
| uint32 | GetOwningNetConnection
(
FNetRefHandle Handle |
Get the owning net connection for an object. | |
| int32 | |||
| UNetObjectPrioritizer * | GetPrioritizer
(
const FName PrioritizerName |
Gets the prioritizer with a given name. | |
| UE::Net::FNetObjectPrioritizerHandle | GetPrioritizerHandle
(
const FName PrioritizerName |
Gets the handle for a prioritizer with a given name. | |
| UReplicationBridge * | |||
| T * | |||
| const UE::Net::FReplicationProtocol * | GetReplicationProtocol
(
FNetRefHandle Handle |
Get the ReplicationProtocol for a handle. | |
| const UE::Net::Private::FReplicationSystemInternal * | |||
| UE::Net::Private::FReplicationSystemInternal * | |||
| UE::Net::FStringTokenStore * | |||
| const UE::Net::FStringTokenStore * | |||
| FNetObjectGroupHandle | GetSubObjectFilterGroupHandle
(
FName GroupName |
Returns the FNetObjectGroupHandle used by a named SubObjectFilter | |
| const UE::Net::FWorldLocations & | Retrieve the WorldLocations instance which holds world locations for all objects that support it. | ||
| void | InitDataStreams
(
uint32 ConnectionId, |
Init data streams for a connection. For internal use by UDataStreamChannel. | |
| bool | IsInGroup
(
FNetObjectGroupHandle GroupHandle, |
Check whether an objects belongs to a particular group or not. | |
| bool | IsReplicationEnabledForConnection
(
uint32 ConnectionId |
Check whether object replication is enabled for a particular connection. | |
| bool | IsServer () |
||
| bool | IsValidConnection
(
uint32 ConnectionId |
Verify if a connection is valid, that is has been added to the system. | |
| bool | IsValidGroup
(
FNetObjectGroupHandle GroupHandle |
Check if a group handle is valid. | |
| bool | IsValidHandle
(
FNetRefHandle Handle |
Check whether a FNetRefHandle is still associated with a replicated object. | |
| void | MarkDirty
(
FNetRefHandle Handle |
Explicitly mark object as having dirty properties. | |
| void | Cleanup temporaries and prepare for the next send update. | ||
| void | PreSendUpdate
(
float DeltaSeconds |
PreSendUpdate performs all the necessary work, such as filtering and prioritization of objects, so that each connection will be properly updated with all the information needed in order to replicate. | |
| bool | QueueNetObjectAttachment
(
uint32 ConnectionId, |
Queue an attachment for replication with an object. | |
| bool | RegisterNetBlobHandler
(
UNetBlobHandler* Handler |
Registers a NetBlobHandler so that its NetBlob type can be sent and received. | |
| void | RemoveConnection
(
uint32 ConnectionId |
Notify that a connection was removed. | |
| void | RemoveFromAllGroups
(
FNetRefHandle Handle |
Removes an object from all groups it's part of. | |
| void | RemoveFromGroup
(
FNetObjectGroupHandle GroupHandle, |
Removes an object from a group. | |
| void | RemoveGroupFilter
(
FNetObjectGroupHandle GroupHandle |
Remove group from filtering system, will cancel effects of the group. | |
| void | RemoveSubObjectFilter
(
FName GroupName |
Remove group from filtering system, will cancel effects of the group. | |
| bool | Unicast an RPC targeting a object/subobject. | ||
| bool | Multicast an RPC targeting a object/subobject. | ||
| void | SendUpdate () |
SendUpdate is currently more of a placeholder for a future where the ReplicationSystem itself is responsible for the low level protocol and sending, rather than having the DataStreamChannel. | |
| bool | SetConnectionFilter
(
FNetRefHandle Handle, |
Set which connections the object is allowed to be replicated to. | |
| void | SetConnectionUserData
(
uint32 ConnectionId, |
Associate data with a connection. | |
| void | SetCullDistanceSqrOverride
(
FNetRefHandle Handle, |
Set the squared cull distance for an object. | |
| void | SetDeltaCompressionStatus
(
FNetRefHandle Handle, |
Set whether the object allows delta compression when serializing. | |
| bool | SetFilter
(
FNetRefHandle Handle, |
Sets a filter for a replicated object which will be used until the next call to SetFilter or SetConnectionFilter. | |
| void | SetGroupFilterStatus
(
FNetObjectGroupHandle GroupHandle, |
Set status of GroupFilter for all connnections. | |
| void | SetGroupFilterStatus
(
FNetObjectGroupHandle GroupHandle, |
Set status of GroupFilter for specific connection. | |
| void | SetGroupFilterStatus
(
FNetObjectGroupHandle GroupHandle, |
Set status of GroupFilter for connection marked in the Connections BitArray. | |
| void | SetIsNetTemporary
(
FNetRefHandle Handle |
Mark an object as a net temporary. | |
| void | SetOwningNetConnection
(
FNetRefHandle Handle, |
Sets the owning connection of an object. | |
| bool | SetPrioritizer
(
FNetRefHandle Handle, |
Sets a prioritizer for a replicated object which will be used until the next call to SetPrioritizer or SetStaticPriority. | |
| bool | SetReplicationCondition
(
FNetRefHandle Handle, |
Enable or disable a replication condition for all connections. | |
| bool | SetReplicationConditionConnectionFilter
(
FNetRefHandle Handle, |
Enable or disable a replication condition for a single connection and do the inverse for all other connections. | |
| void | SetReplicationEnabledForConnection
(
uint32 ConnectionId, |
Enable or disable the ReplicationDataStream to transmit data for a particular connection. | |
| void | SetReplicationView
(
uint32 ConnectionId, |
Set view information for a connection. | |
| void | SetStaticPriority
(
FNetRefHandle Handle, |
Sets a fixed priority for a replicated object which will be used until the next call to SetStaticPriority or SetPrioritizer. | |
| void | SetSubObjectFilterStatus
(
FName GroupName, |
Set status of GroupFilter for specific connection. | |
| void | TearOffNextUpdate
(
FNetRefHandle Handle |
Mark an object to be torn off next update. |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FReplicationSystemParams |
Typedefs
| Name | Description |
|---|---|
| FNetHandle | |
| FNetObjectGroupHandle | |
| FNetRefHandle |