Merge branch 'development' of https://github.com/o3de/o3de into mp_blending_cleanup
This commit is contained in:
@@ -81,6 +81,12 @@ namespace Multiplayer
|
||||
LocalPredictionPlayerInputComponentBase::Reflect(context);
|
||||
}
|
||||
|
||||
void LocalPredictionPlayerInputComponent::GetProvidedServices(AZ::ComponentDescriptor::DependencyArrayType& provided)
|
||||
{
|
||||
LocalPredictionPlayerInputComponentBase::GetProvidedServices(provided);
|
||||
provided.push_back(AZ_CRC_CE("MultiplayerInputDriver"));
|
||||
}
|
||||
|
||||
void LocalPredictionPlayerInputComponent::OnInit()
|
||||
{
|
||||
;
|
||||
|
||||
@@ -278,6 +278,7 @@ namespace Multiplayer
|
||||
AZ_Assert(IsNetEntityRoleAutonomous(), "Incorrect network role for input creation");
|
||||
for (MultiplayerComponent* multiplayerComponent : m_multiplayerInputComponentVector)
|
||||
{
|
||||
multiplayerComponent->GetController()->CreateInputFromScript(networkInput, deltaTime);
|
||||
multiplayerComponent->GetController()->CreateInput(networkInput, deltaTime);
|
||||
}
|
||||
}
|
||||
@@ -289,6 +290,7 @@ namespace Multiplayer
|
||||
AZ_Assert((NetworkRoleHasController(m_netEntityRole)), "Incorrect network role for input processing");
|
||||
for (MultiplayerComponent* multiplayerComponent : m_multiplayerInputComponentVector)
|
||||
{
|
||||
multiplayerComponent->GetController()->ProcessInputFromScript(networkInput, deltaTime);
|
||||
multiplayerComponent->GetController()->ProcessInput(networkInput, deltaTime);
|
||||
}
|
||||
m_isProcessingInput = false;
|
||||
|
||||
Reference in New Issue
Block a user