![]() |
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 <ReplicaMarshalTasks.h>
Inherits GridMate::ReplicaMarshalTaskBase.
Public Member Functions | |
GM_CLASS_ALLOCATOR (ReplicaMarshalTask) | |
ReplicaMarshalTask (ReplicaPtr replica) | |
TaskStatus | Run (const RunContext &context) override |
![]() | |
void | Cancel () |
bool | IsCancelled () const |
unsigned int | GetAge () const |
void | SetAge (unsigned int age) |
ReplicaPtr | GetReplica () const |
void | SetPriority (PriorityType priority) |
PriorityType | GetPriority () const |
Additional Inherited Members | |
![]() | |
enum | TaskStatus { Done, Repeat } |
typedef AZ::u64 | PriorityType |
![]() | |
static const unsigned int | k_ageScale = 10 |
![]() | |
ReplicaMarshalTaskBase (ReplicaPtr replica) | |
void | MarshalNewReplica (Replica *replica, ReservedIds cmdId, WriteBuffer &outBuffer) |
PrepareDataResult | PrepareData (ReplicaPtr replica, EndianType endianType) |
ReplicaPeer * | GetUpstreamHop () |
list< Internal::RpcRequest * > & | GetRPCQueue () |
virtual bool | CanUpstream () const |
virtual void | ResetMarshalState () |
virtual void | OnSendReplicaBegin () |
virtual void | OnSendReplicaEnd (ReplicaPeer *to, const void *data, size_t len) |
![]() | |
ReplicaPtr | m_replica |
Marshaling task. Initiates marshaling of a given replica to group of peers. Every time it's executed it requests marshaling targets for a replica and marshaling data to every peer. This task might be repeated through several ticks because of dataset updates.
|
overridevirtual |
Called when task is executed
context | execution context, provides access to ReplicaManager and TaskManager |
Implements GridMate::ReplicaTask.