![]() |
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 <ReplicaUpdateTasks.h>
Inherits GridMate::ReplicaUpdateTaskBase.
Public Member Functions | |
ReplicaUpdateTask (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 |
![]() | |
ReplicaUpdateTaskBase (ReplicaPtr replica) | |
bool | ProcessRPCs (const ReplicaContext &rc) |
bool | TryMigrate (ReplicaManager *rm, const ReplicaContext &rc) |
void | DestroyReplica (ReplicaManager *rm, const ReplicaContext &rc) |
![]() | |
ReplicaPtr | m_replica |
Task to update primary & proxy replicas. Processes RPCs and calls replicas UpdateFromReplica. Will complete immediately if no RPCs left queued after processing, otherweise will be repeated next update tick. Initiates replica migration if proxy owner has died.
|
overridevirtual |
Called when task is executed
context | execution context, provides access to ReplicaManager and TaskManager |
Implements GridMate::ReplicaTask.