Open 3D Engine GridMate API Reference  2205.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
GridMate::ReplicaTarget Class Reference

#include <ReplicaTarget.h>

Public Member Functions

void SetNew (bool isNew)
 
bool IsNew () const
 
bool IsRemoved () const
 
ReplicaPeerGetPeer () const
 
void Destroy ()
 
AZStd::weak_ptr< TargetCallbackBaseCreateCallback (AZ::u64 revision)
 
AZ_FORCE_INLINE AZ::u64 GetRevision () const
 
AZ_FORCE_INLINE bool HasOldRevision (AZ::u64 newRevision) const
 

Static Public Member Functions

static ReplicaTargetAddReplicaTarget (ReplicaPeer *peer, Replica *replica)
 
static AZ_FORCE_INLINE bool IsAckEnabled ()
 

Public Attributes

AZStd::intrusive_list_node< ReplicaTargetm_replicaHook
 
AZStd::intrusive_list_node< ReplicaTargetm_peerHook
 

Detailed Description

ReplicaTarget: keeps replica's marshaling target (peer) and related meta data, Replica itself keeps an intrusive list of targets it needs to be forwarded to Peers keep all their associated replica targets as well Once target is removed from replica it is automatically removed from the corresponding peer and vice versa Once replica is destroyed - all its targets are automatically removed from peers, same goes for peers


The documentation for this class was generated from the following file: