Property replication packet.
More...
#include <NetworkEntityUpdateMessage.h>
Property replication packet.
Multiplayer::NetworkEntityUpdateMessage::NetworkEntityUpdateMessage |
( |
NetEntityRole |
entityRole, |
|
|
NetEntityId |
entityId |
|
) |
| |
|
explicit |
Constructor for update without a slice name (remote replicator established).
- Parameters
-
entityRole | the role of the entity being replicated |
entityId | the networkId of the entity being replicated |
Multiplayer::NetworkEntityUpdateMessage::NetworkEntityUpdateMessage |
( |
NetEntityRole |
entityRole, |
|
|
NetEntityId |
entityId, |
|
|
const PrefabEntityId & |
prefabEntityId |
|
) |
| |
|
explicit |
Constructor for update with a slice name (no remote replicator established).
- Parameters
-
entityRole | the role of the entity being replicated |
entityId | the networkId of the entity being replicated |
prefabEntityId | the prefab entityId to clone this replicated entity from |
Multiplayer::NetworkEntityUpdateMessage::NetworkEntityUpdateMessage |
( |
NetEntityId |
entityId, |
|
|
bool |
isMigrated |
|
) |
| |
|
explicit |
Constructor for an entity delete message.
- Parameters
-
entityId | the networkId of the entity being deleted |
isMigrated | whether or not the entity is being migrated or deleted |
const AzNetworking::PacketEncodingBuffer* Multiplayer::NetworkEntityUpdateMessage::GetData |
( |
| ) |
const |
Gets the current value of Data.
- Returns
- the current value of Data
NetEntityId Multiplayer::NetworkEntityUpdateMessage::GetEntityId |
( |
| ) |
const |
Gets the entity's networkId.
- Returns
- the entity's networkId
uint32_t Multiplayer::NetworkEntityUpdateMessage::GetEstimatedSerializeSize |
( |
| ) |
const |
bool Multiplayer::NetworkEntityUpdateMessage::GetHasValidPrefabId |
( |
| ) |
const |
Gets the current value of HasValidPrefabId.
- Returns
- the current value of HasValidPrefabId
bool Multiplayer::NetworkEntityUpdateMessage::GetIsDelete |
( |
| ) |
const |
Gets the current value of IsDelete (true if this represents a DeleteProxy message).
- Returns
- the current value of IsDelete
NetEntityRole Multiplayer::NetworkEntityUpdateMessage::GetNetworkRole |
( |
| ) |
const |
Gets the current value of NetworkRole.
- Returns
- the current value of NetworkRole
const PrefabEntityId& Multiplayer::NetworkEntityUpdateMessage::GetPrefabEntityId |
( |
| ) |
const |
bool Multiplayer::NetworkEntityUpdateMessage::GetWasMigrated |
( |
| ) |
const |
Returns whether or not the entity was migrated.
- Returns
- whether or not the entity was migrated
AzNetworking::PacketEncodingBuffer& Multiplayer::NetworkEntityUpdateMessage::ModifyData |
( |
| ) |
|
Retrieves a non-const reference to the value of Data.
- Returns
- a non-const reference to the value of Data
bool Multiplayer::NetworkEntityUpdateMessage::Serialize |
( |
AzNetworking::ISerializer & |
serializer | ) |
|
Base serialize method for all serializable structures or classes to implement.
- Parameters
-
serializer | ISerializer instance to use for serialization |
- Returns
- boolean true for success, false for serialization failure
void Multiplayer::NetworkEntityUpdateMessage::SetData |
( |
const AzNetworking::PacketEncodingBuffer & |
value | ) |
|
Sets the current value for Data
- Parameters
-
value | the value to set Data to |
void Multiplayer::NetworkEntityUpdateMessage::SetPrefabEntityId |
( |
const PrefabEntityId & |
value | ) |
|
The documentation for this class was generated from the following file:
- Gems/Multiplayer/Code/Include/Multiplayer/NetworkEntity/NetworkEntityUpdateMessage.h