本文整理汇总了C++中PlayFabServerPtr类的典型用法代码示例。如果您正苦于以下问题:C++ PlayFabServerPtr类的具体用法?C++ PlayFabServerPtr怎么用?C++ PlayFabServerPtr使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了PlayFabServerPtr类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: Activate
void UPFServerGetAllSegments::Activate()
{
// grab the module, so we can get a valid pointer to the client API
PlayFabServerPtr ServerAPI = IPlayFabModuleInterface::Get().GetServerAPI();
bool CallResult = false;
if(ServerAPI.IsValid())
{
CallResult = ServerAPI->GetAllSegments(SuccessDelegate, ErrorDelegate);
}
if(CallResult == false)
{
FBPServerGetAllSegmentsResult BPResult;
OnFailure.Broadcast(BPResult);
}
}
示例2: Activate
void UPFServerSubtractUserVirtualCurrency::Activate()
{
// grab the module, so we can get a valid pointer to the client API
PlayFabServerPtr ServerAPI = IPlayFabModuleInterface::Get().GetServerAPI();
bool CallResult = false;
if(ServerAPI.IsValid())
{
CallResult = ServerAPI->SubtractUserVirtualCurrency(Request, SuccessDelegate, ErrorDelegate);
}
if(CallResult == false)
{
FBPServerModifyUserVirtualCurrencyResult BPResult;
OnFailure.Broadcast(BPResult);
}
}
示例3: Activate
void UPFServerWriteCharacterEvent::Activate()
{
// grab the module, so we can get a valid pointer to the client API
PlayFabServerPtr ServerAPI = IPlayFabModuleInterface::Get().GetServerAPI();
bool CallResult = false;
if(ServerAPI.IsValid())
{
CallResult = ServerAPI->WriteCharacterEvent(Request, SuccessDelegate, ErrorDelegate);
}
if(CallResult == false)
{
FBPServerWriteEventResponse BPResult;
OnFailure.Broadcast(BPResult);
}
}
示例4: Activate
void UPFServerGetUserPublisherReadOnlyData::Activate()
{
// grab the module, so we can get a valid pointer to the client API
PlayFabServerPtr ServerAPI = IPlayFabModuleInterface::Get().GetServerAPI();
bool CallResult = false;
if(ServerAPI.IsValid())
{
CallResult = ServerAPI->GetUserPublisherReadOnlyData(Request, SuccessDelegate, ErrorDelegate);
}
if(CallResult == false)
{
FBPServerGetUserDataResult BPResult;
OnFailure.Broadcast(BPResult);
}
}