Multiplayer system component wraps the bridging logic between the game and transport layer.
More...
|
| AZ_COMPONENT (MultiplayerSystemComponent, "{7C99C4C1-1103-43F9-AD62-8B91CF7C1981}") |
|
bool | IsHandshakeComplete (AzNetworking::IConnection *connection) const |
|
bool | HandleRequest (AzNetworking::IConnection *connection, const AzNetworking::IPacketHeader &packetHeader, MultiplayerPackets::Connect &packet) |
|
bool | HandleRequest (AzNetworking::IConnection *connection, const AzNetworking::IPacketHeader &packetHeader, MultiplayerPackets::Accept &packet) |
|
bool | HandleRequest (AzNetworking::IConnection *connection, const AzNetworking::IPacketHeader &packetHeader, MultiplayerPackets::ReadyForEntityUpdates &packet) |
|
bool | HandleRequest (AzNetworking::IConnection *connection, const AzNetworking::IPacketHeader &packetHeader, MultiplayerPackets::SyncConsole &packet) |
|
bool | HandleRequest (AzNetworking::IConnection *connection, const AzNetworking::IPacketHeader &packetHeader, MultiplayerPackets::ConsoleCommand &packet) |
|
bool | HandleRequest (AzNetworking::IConnection *connection, const AzNetworking::IPacketHeader &packetHeader, MultiplayerPackets::EntityUpdates &packet) |
|
bool | HandleRequest (AzNetworking::IConnection *connection, const AzNetworking::IPacketHeader &packetHeader, MultiplayerPackets::EntityRpcs &packet) |
|
bool | HandleRequest (AzNetworking::IConnection *connection, const AzNetworking::IPacketHeader &packetHeader, MultiplayerPackets::RequestReplicatorReset &packet) |
|
bool | HandleRequest (AzNetworking::IConnection *connection, const AzNetworking::IPacketHeader &packetHeader, MultiplayerPackets::ClientMigration &packet) |
|
bool | HandleRequest (AzNetworking::IConnection *connection, const AzNetworking::IPacketHeader &packetHeader, MultiplayerPackets::VersionMismatch &packet) |
|
|
void | Activate () override |
|
void | Deactivate () override |
|
|
bool | OnSessionHealthCheck () override |
|
bool | OnCreateSessionBegin (const SessionConfig &sessionConfig) override |
|
void | OnCreateSessionEnd () override |
|
bool | OnDestroySessionBegin () override |
|
void | OnDestroySessionEnd () override |
|
void | OnUpdateSessionBegin (const SessionConfig &sessionConfig, const AZStd::string &updateReason) override |
|
void | OnUpdateSessionEnd () override |
|
|
void | OnTick (float deltaTime, AZ::ScriptTimePoint time) override |
|
int | GetTickOrder () override |
|
|
AzNetworking::ConnectResult | ValidateConnect (const AzNetworking::IpAddress &remoteAddress, const AzNetworking::IPacketHeader &packetHeader, AzNetworking::ISerializer &serializer) override |
|
void | OnConnect (AzNetworking::IConnection *connection) override |
|
AzNetworking::PacketDispatchResult | OnPacketReceived (AzNetworking::IConnection *connection, const AzNetworking::IPacketHeader &packetHeader, AzNetworking::ISerializer &serializer) override |
|
void | OnPacketLost (AzNetworking::IConnection *connection, AzNetworking::PacketId packetId) override |
|
void | OnDisconnect (AzNetworking::IConnection *connection, AzNetworking::DisconnectReason reason, AzNetworking::TerminationEndpoint endpoint) override |
|
|
bool | RequestPlayerJoinSession (const SessionConnectionConfig &sessionConnectionConfig) override |
|
void | RequestPlayerLeaveSession () override |
| Request the connected player leave session.
|
|
|
MultiplayerAgentType | GetAgentType () const override |
|
void | InitializeMultiplayer (MultiplayerAgentType state) override |
|
bool | StartHosting (uint16_t port=UseDefaultHostPort, bool isDedicated=true) override |
|
bool | Connect (const AZStd::string &remoteAddress, uint16_t port) override |
|
void | Terminate (AzNetworking::DisconnectReason reason) override |
|
void | AddClientMigrationStartEventHandler (ClientMigrationStartEvent::Handler &handler) override |
|
void | AddClientMigrationEndEventHandler (ClientMigrationEndEvent::Handler &handler) override |
|
void | AddEndpointDisconnectedHandler (EndpointDisconnectedEvent::Handler &handler) override |
|
void | AddNotifyClientMigrationHandler (NotifyClientMigrationEvent::Handler &handler) override |
|
void | AddNotifyEntityMigrationEventHandler (NotifyEntityMigrationEvent::Handler &handler) override |
|
void | AddConnectionAcquiredHandler (ConnectionAcquiredEvent::Handler &handler) override |
|
void | AddNetworkInitHandler (NetworkInitEvent::Handler &handler) override |
|
void | AddSessionInitHandler (SessionInitEvent::Handler &) override |
|
void | AddSessionShutdownHandler (SessionShutdownEvent::Handler &) override |
|
void | AddLevelLoadBlockedHandler (LevelLoadBlockedEvent::Handler &handler) override |
|
void | AddNoServerLevelLoadedHandler (NoServerLevelLoadedEvent::Handler &handler) override |
|
void | AddVersionMismatchHandler (VersionMismatchEvent::Handler &handler) override |
|
void | AddServerAcceptanceReceivedHandler (ServerAcceptanceReceivedEvent::Handler &handler) override |
|
void | SendNotifyClientMigrationEvent (AzNetworking::ConnectionId connectionId, const HostId &hostId, uint64_t userIdentifier, ClientInputId lastClientInputId, NetEntityId controlledEntityId) override |
|
void | SendNotifyEntityMigrationEvent (const ConstNetworkEntityHandle &entityHandle, const HostId &remoteHostId) override |
|
void | SendReadyForEntityUpdates (bool readyForEntityUpdates) override |
|
AZ::TimeMs | GetCurrentHostTimeMs () const override |
|
float | GetCurrentBlendFactor () const override |
|
INetworkTime * | GetNetworkTime () override |
|
INetworkEntityManager * | GetNetworkEntityManager () override |
|
void | RegisterPlayerIdentifierForRejoin (uint64_t temporaryUserIdentifier, NetEntityId controlledEntityId) override |
|
void | CompleteClientMigration (uint64_t temporaryUserIdentifier, AzNetworking::ConnectionId connectionId, const HostId &publicHostId, ClientInputId migratedClientInputId) override |
|
void | SetShouldSpawnNetworkEntities (bool value) override |
|
bool | GetShouldSpawnNetworkEntities () const override |
|
|
void | DumpStats (const AZ::ConsoleCommandContainer &arguments) |
|
|
void | OnRootSpawnableReady (AZ::Data::Asset< AzFramework::Spawnable > rootSpawnable, uint32_t generation) override |
|
|
bool | ShouldBlockLevelLoading (const char *levelName) override |
|
Public Member Functions inherited from Multiplayer::ISessionHandlingClientRequests |
| AZ_RTTI (ISessionHandlingClientRequests, "{41DE6BD3-72BC-4443-BFF9-5B1B9396657A}") |
|
virtual bool | RequestPlayerJoinSession (const SessionConnectionConfig &sessionConnectionConfig)=0 |
|
virtual void | RequestPlayerLeaveSession ()=0 |
| Request the connected player leave session.
|
|
| AZ_RTTI (IMultiplayer, "{90A001DD-AD31-46C7-9FBE-1059AFB7F5E9}") |
|
virtual MultiplayerAgentType | GetAgentType () const =0 |
|
virtual void | InitializeMultiplayer (MultiplayerAgentType state)=0 |
|
virtual bool | StartHosting (uint16_t port=UseDefaultHostPort, bool isDedicated=true)=0 |
|
virtual bool | Connect (const AZStd::string &remoteAddress, uint16_t port)=0 |
|
virtual void | Terminate (AzNetworking::DisconnectReason reason)=0 |
|
virtual void | AddClientMigrationStartEventHandler (ClientMigrationStartEvent::Handler &handler)=0 |
|
virtual void | AddClientMigrationEndEventHandler (ClientMigrationEndEvent::Handler &handler)=0 |
|
virtual void | AddEndpointDisconnectedHandler (EndpointDisconnectedEvent::Handler &handler)=0 |
|
virtual void | AddNotifyClientMigrationHandler (NotifyClientMigrationEvent::Handler &handler)=0 |
|
virtual void | AddNotifyEntityMigrationEventHandler (NotifyEntityMigrationEvent::Handler &handler)=0 |
|
virtual void | AddConnectionAcquiredHandler (ConnectionAcquiredEvent::Handler &handler)=0 |
|
virtual void | AddServerAcceptanceReceivedHandler (ServerAcceptanceReceivedEvent::Handler &handler)=0 |
|
virtual void | AddNetworkInitHandler (NetworkInitEvent::Handler &handler)=0 |
|
virtual void | AddSessionInitHandler (SessionInitEvent::Handler &handler)=0 |
|
virtual void | AddSessionShutdownHandler (SessionShutdownEvent::Handler &handler)=0 |
|
virtual void | AddLevelLoadBlockedHandler (LevelLoadBlockedEvent::Handler &handler)=0 |
|
virtual void | AddNoServerLevelLoadedHandler (NoServerLevelLoadedEvent::Handler &handler)=0 |
|
virtual void | AddVersionMismatchHandler (VersionMismatchEvent::Handler &handler)=0 |
|
virtual void | SendNotifyClientMigrationEvent (AzNetworking::ConnectionId connectionId, const HostId &hostId, uint64_t userIdentifier, ClientInputId lastClientInputId, NetEntityId controlledEntityId)=0 |
|
virtual void | SendNotifyEntityMigrationEvent (const ConstNetworkEntityHandle &entityHandle, const HostId &remoteHostId)=0 |
|
virtual void | SendReadyForEntityUpdates (bool readyForEntityUpdates)=0 |
|
virtual AZ::TimeMs | GetCurrentHostTimeMs () const =0 |
|
virtual float | GetCurrentBlendFactor () const =0 |
|
virtual INetworkTime * | GetNetworkTime ()=0 |
|
virtual INetworkEntityManager * | GetNetworkEntityManager ()=0 |
|
virtual void | RegisterPlayerIdentifierForRejoin (uint64_t temporaryUserIdentifier, NetEntityId controlledEntityId)=0 |
|
virtual void | CompleteClientMigration (uint64_t temporaryUserIdentifier, AzNetworking::ConnectionId connectionId, const HostId &publicHostId, ClientInputId migratedClientInputId)=0 |
|
virtual void | SetShouldSpawnNetworkEntities (bool value)=0 |
|
virtual bool | GetShouldSpawnNetworkEntities () const =0 |
|
MultiplayerStats & | GetStats () |
|
Multiplayer system component wraps the bridging logic between the game and transport layer.