当前位置: 首页>>代码示例>>C++>>正文


C++ PlayFabAdminPtr类代码示例

本文整理汇总了C++中PlayFabAdminPtr的典型用法代码示例。如果您正苦于以下问题:C++ PlayFabAdminPtr类的具体用法?C++ PlayFabAdminPtr怎么用?C++ PlayFabAdminPtr使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了PlayFabAdminPtr类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: Activate

void UPFAdminDeleteTask::Activate()
{
	// grab the module, so we can get a valid pointer to the client API 
	PlayFabAdminPtr AdminAPI = IPlayFabModuleInterface::Get().GetAdminAPI();

	bool CallResult = false;

	if(AdminAPI.IsValid())
	{	
		CallResult = AdminAPI->DeleteTask(Request, SuccessDelegate, ErrorDelegate);
	}

	if(CallResult == false)
	{
		OnFailure.Broadcast();
	}
}
开发者ID:PlayFab,项目名称:UnrealCppSdk,代码行数:17,代码来源:PFAdminDeleteTask.cpp

示例2: Activate

void UPFAdminSubtractUserVirtualCurrency::Activate()
{
	// grab the module, so we can get a valid pointer to the client API 
	PlayFabAdminPtr AdminAPI = IPlayFabModuleInterface::Get().GetAdminAPI();

	bool CallResult = false;

	if(AdminAPI.IsValid())
	{	
		CallResult = AdminAPI->SubtractUserVirtualCurrency(Request, SuccessDelegate, ErrorDelegate);
	}

	if(CallResult == false)
	{
		FBPAdminModifyUserVirtualCurrencyResult BPResult;
 		OnFailure.Broadcast(BPResult);
	}
}
开发者ID:Helical-Games,项目名称:UnrealCppSdk,代码行数:18,代码来源:PFAdminSubtractUserVirtualCurrency.cpp

示例3: Activate

void UPFAdminGetPublisherData::Activate()
{
	// grab the module, so we can get a valid pointer to the client API 
	PlayFabAdminPtr AdminAPI = IPlayFabModuleInterface::Get().GetAdminAPI();

	bool CallResult = false;

	if(AdminAPI.IsValid())
	{	
		CallResult = AdminAPI->GetPublisherData(Request, SuccessDelegate, ErrorDelegate);
	}

	if(CallResult == false)
	{
		FBPAdminGetPublisherDataResult BPResult;
 		OnFailure.Broadcast(BPResult);
	}
}
开发者ID:Helical-Games,项目名称:UnrealCppSdk,代码行数:18,代码来源:PFAdminGetPublisherData.cpp

示例4: Activate

void UPFAdminUpdatePlayerStatisticDefinition::Activate()
{
	// grab the module, so we can get a valid pointer to the client API 
	PlayFabAdminPtr AdminAPI = IPlayFabModuleInterface::Get().GetAdminAPI();

	bool CallResult = false;

	if(AdminAPI.IsValid())
	{	
		CallResult = AdminAPI->UpdatePlayerStatisticDefinition(Request, SuccessDelegate, ErrorDelegate);
	}

	if(CallResult == false)
	{
		FBPAdminUpdatePlayerStatisticDefinitionResult BPResult;
 		OnFailure.Broadcast(BPResult);
	}
}
开发者ID:PlayFab,项目名称:UnrealCppSdk,代码行数:18,代码来源:PFAdminUpdatePlayerStatisticDefinition.cpp


注:本文中的PlayFabAdminPtr类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。