engine
 
载入中...
搜索中...
未找到
Public 属性 | 所有成员列表
FNetworkObjectInfo结构体 参考

Struct to store an actor pointer and any internal metadata for that actor used internally by a UNetDriver. 更多...

#include <NetworkObjectList.h>

Public 属性

AActor * Actor
 Pointer to the replicated actor.
 
uint8 bDirtyForReplay: 1
 Should this object be considered for replay checkpoint writes
 
uint8 bForceRelevantNextUpdate: 1
 Force this object to be considered relevant for at least one update
 
uint8 bPendingNetUpdate: 1
 Is this object still pending a full net update due to clients that weren't able to replicate the actor at the time of LastNetUpdateTime
 
uint8 bSwapRolesOnReplicate: 1
 Should channel swap roles while calling ReplicateActor
 
TSet< TWeakObjectPtr< UNetConnection > > DormantConnections
 List of connections that this actor is dormant on
 
uint32 ForceRelevantFrame = 0
 Force this object to be considered relevant for at least one update
 
double LastNetReplicateTime
 Last absolute time in seconds since actor actually sent something during replication
 
float LastNetUpdateTime
 Last time this actor was updated for replication via NextUpdateTime 更多...
 
double NextUpdateTime
 Next time to consider replicating the actor. 更多...
 
float OptimalNetUpdateDelta
 Optimal delta between replication updates based on how frequently actor properties are actually changing
 
TSet< TWeakObjectPtr< UNetConnection > > RecentlyDormantConnections
 A list of connections that this actor has recently been dormant on, but the actor doesn't have a channel open yet. 更多...
 
TWeakObjectPtr< AActor > WeakActor
 WeakPtr to actor. 更多...
 

详细描述

Struct to store an actor pointer and any internal metadata for that actor used internally by a UNetDriver.

类成员变量说明

◆ LastNetUpdateTime

float FNetworkObjectInfo::LastNetUpdateTime

Last time this actor was updated for replication via NextUpdateTime

警告
: internal net driver time, not related to WorldSettings.TimeSeconds

◆ NextUpdateTime

double FNetworkObjectInfo::NextUpdateTime

Next time to consider replicating the actor.

Based on FPlatformTime::Seconds().

◆ RecentlyDormantConnections

TSet<TWeakObjectPtr<UNetConnection> > FNetworkObjectInfo::RecentlyDormantConnections

A list of connections that this actor has recently been dormant on, but the actor doesn't have a channel open yet.

These need to be differentiated from actors that the client doesn't know about, but there's no explicit list for just those actors. (this list will be very transient, with connections being moved off the DormantConnections list, onto this list, and then off once the actor has a channel again)

◆ WeakActor

TWeakObjectPtr<AActor> FNetworkObjectInfo::WeakActor

WeakPtr to actor.

This is cached here to prevent constantly constructing one when needed for (things like) keys in TMaps/TSets


该结构体的文档由以下文件生成: