Added ReadyForEntityUpdates message allowing the server to send entity updates

This commit is contained in:
pereslav
2021-04-26 13:30:35 +01:00
parent 34f4ba7821
commit 008c653524
7 changed files with 56 additions and 9 deletions
@@ -36,7 +36,8 @@ namespace Multiplayer
void Update(AZ::TimeMs serverGameTimeMs) override;
//! @}
bool CanSendUpdates();
bool CanSendUpdates() const;
void SetCanSendUpdates(bool canSendUpdates);
NetworkEntityHandle GetPrimaryPlayerEntity();
const NetworkEntityHandle& GetPrimaryPlayerEntity() const;
@@ -51,7 +52,7 @@ namespace Multiplayer
EntityStopEvent::Handler m_controlledEntityRemovedHandler;
EntityMigrationEvent::Handler m_controlledEntityMigrationHandler;
AzNetworking::IConnection* m_connection = nullptr;
bool m_canSendUpdates = true;
bool m_canSendUpdates = false;
};
}