Updating service requirement to use a generic 'MultiplayerInputDrive', that way if other developers want to make a non-local predictition player controller that calls create/process on the server they can do so as long as there custom component provides this 'MultiplayerInputDriver' service

Signed-off-by: Gene Walters <genewalt@amazon.com>
This commit is contained in:
Gene Walters
2021-08-16 20:46:34 -07:00
parent e475405850
commit 4374e6177e
3 changed files with 10 additions and 3 deletions
@@ -56,6 +56,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()
{
;