Hi,
I am currently working on a project using playfab and discovered that the Server needs to use Server API and Client API is for, well, the clients.
I am wondering is there's a way to know if a function is called by the Server or by a Client? Asking since at the moment I don't seem to find one and it seems that I would need 1 function dedicated for Client and one for Server.
Example of what I would like:
//If Client PlayFabClientAPI.GetCatalogItems(request, OnGetCatalogSuccess, OnPlayFabErrorCallback); //If Server PlayFabServerAPI.GetCatalogItems(request, OnGetCatalogSuccessAdmin, OnPlayFabErrorCallback);
Context:
I am working on a card game and the Server acts as a referee to make sure everything is legal. The current way that we have our code set-up is both clients and the server want to fetch the catalog from Playfab.