Add handling for session provider ticket

This commit is contained in:
puvvadar
2021-06-08 13:36:27 -07:00
parent 2b227a17d1
commit fa55b495c4
8 changed files with 75 additions and 25 deletions
@@ -41,6 +41,8 @@ namespace Multiplayer
NetworkEntityHandle GetPrimaryPlayerEntity();
const NetworkEntityHandle& GetPrimaryPlayerEntity() const;
AZStd::string GetProviderTicket() const;
void SetProviderTicket(AZStd::string);
private:
void OnControlledEntityRemove();
@@ -51,6 +53,7 @@ namespace Multiplayer
NetworkEntityHandle m_controlledEntity;
EntityStopEvent::Handler m_controlledEntityRemovedHandler;
EntityServerMigrationEvent::Handler m_controlledEntityMigrationHandler;
AZStd::string m_ticket;
AzNetworking::IConnection* m_connection = nullptr;
bool m_canSendUpdates = false;
};