XblMultiplayerSessionConstantsSetCloudComputePackageJson

只能在创建新会话时设置。 只有在设置了“cloudCompute”功能时才能指定。 支持客户端请求代表会话分配云计算实例。

语法

HRESULT XblMultiplayerSessionConstantsSetCloudComputePackageJson(  
         XblMultiplayerSessionHandle handle,  
         const char* sessionCloudComputePackageConstantsJson  
)  

参数

handle _In_
类型:XblMultiplayerSessionHandle

多人游戏会话的句柄。

sessionCloudComputePackageConstantsJson _In_
类型:char*

要代表会话分配的云计算实例。 示例 Json:{ "crossSandbox": true, // True if the cloud compute resources are provisioned to be sandbox-agnostic, false if they are provisioned per-sandbox. "titleId" : "4567", // The title ID and GSI set of the cloud compute package to allocate. "gsiSet" : "128ce92a-45d0-4319-8a7e-bd8e940114ec" }

返回值

类型:HRESULT

此 API 操作的 HRESULT 返回代码。

要求

头文件:multiplayer_c.h

库:Microsoft.Xbox.Services.141.GSDK.C.lib

另请参阅

multiplayer_c