Local prediction player controller is now functional

This commit is contained in:
karlberg
2021-05-06 17:23:03 -07:00
parent 751d13dd7b
commit e7f0bc9ee2
12 changed files with 176 additions and 133 deletions
@@ -44,7 +44,7 @@ namespace Multiplayer
void HandleSendClientInput
(
AzNetworking::IConnection* invokingConnection,
const Multiplayer::NetworkInputVector& inputArray,
const Multiplayer::NetworkInputArray& inputArray,
const AZ::HashValue64& stateHash,
const AzNetworking::PacketEncodingBuffer& clientState
) override;
@@ -52,7 +52,7 @@ namespace Multiplayer
void HandleSendMigrateClientInput
(
AzNetworking::IConnection* invokingConnection,
const Multiplayer::MigrateNetworkInputVector& inputArray
const Multiplayer::NetworkInputMigrationVector& inputArray
) override;
void HandleSendClientInputCorrection
@@ -87,7 +87,7 @@ namespace Multiplayer
NetworkInputHistory m_inputHistory;
// Anti-cheat accumulator for clients who purposely mess with their clock rate
NetworkInputVector m_lastInputReceived;
NetworkInputArray m_lastInputReceived;
AZ::ScheduledEvent m_autonomousUpdateEvent; // Drives autonomous input collection
AZ::ScheduledEvent m_updateBankedTimeEvent; // Drives authority bank time updates