I have been trying to call GetMatch() in c++ in unreal but for the life of me i cant figure out why my code doesn't compile.
I am following this piece of documentation:
https://docs.microsoft.com/en-us/gaming/playfab/sdks/unreal/quickstart
but trying to use it with the MultiplayerAPI instead of the ClientAPI.
It says that PlayFab::UPlayFabMultiplayerAPI is undefined and that GetMatch is not a member of the playfab TShared pointer, is there any module i am forgetting to add ? i got Playfab, PlayfabCpp and PlayFabCommon.
Here's how the code looks:
#include "PlayFabClientDataModels.h" #include "PlayFabError.h" #include "PlayFabSettings.h" #include "PlayFabClientAPI.h" #include "PlayFabMultiplayerAPI.h"PlayFabMultiplayerPtr multiplayerAPI = IPlayFabModuleInterface::Get().GetMultiplayerAPI(); PlayFab::MultiplayerModels::FGetMatchRequest request; //request filled here multiplayerAPI->GetMatch(request, PlayFab::UPlayFabMultiplayerAPI::FGetMatchDelegate::CreateUObject(this, &AArenaGameMode::OnGetMatchSuccess), PlayFab::FPlayFabErrorDelegate::CreateUObject(this, &AArenaGameMode::OnGetMatchFailed));
Is there any place where i can take a look at a c++ implementation of this, there's quite a few in C# maybe add a c++ section as well, i am just a bit lost as to why this wouldn't work...