![]() |
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.
|
#include <ReplicaTarget.h>
Public Member Functions | |
void | SetNew (bool isNew) |
bool | IsNew () const |
bool | IsRemoved () const |
ReplicaPeer * | GetPeer () const |
void | Destroy () |
AZStd::weak_ptr< TargetCallbackBase > | CreateCallback (AZ::u64 revision) |
AZ_FORCE_INLINE AZ::u64 | GetRevision () const |
AZ_FORCE_INLINE bool | HasOldRevision (AZ::u64 newRevision) const |
Static Public Member Functions | |
static ReplicaTarget * | AddReplicaTarget (ReplicaPeer *peer, Replica *replica) |
static AZ_FORCE_INLINE bool | IsAckEnabled () |
Public Attributes | |
AZStd::intrusive_list_node< ReplicaTarget > | m_replicaHook |
AZStd::intrusive_list_node< ReplicaTarget > | m_peerHook |
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