Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
PFCloudScriptExecuteCloudScriptServerRequest data model.
Syntax
typedef struct PFCloudScriptExecuteCloudScriptServerRequest {
PFStringDictionaryEntry const* customTags;
uint32_t customTagsCount;
const char* functionName;
PFJsonObject functionParameter;
bool const* generatePlayStreamEvent;
const char* playFabId;
PFCloudScriptCloudScriptRevisionOption const* revisionSelection;
int32_t const* specificRevision;
} PFCloudScriptExecuteCloudScriptServerRequest;
Members
customTags PFStringDictionaryEntry const*
may be nullptr
(Optional) The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.).
customTagsCount uint32_t
Count of customTags
functionName const char*
is null-terminated
The name of the CloudScript function to execute.
functionParameter PFJsonObject
(Optional) Object that is passed in to the function as the first argument.
generatePlayStreamEvent bool const*
may be nullptr
(Optional) Generate a 'player_executed_cloudscript' PlayStream event containing the results of the function execution and other contextual information. This event will show up in the PlayStream debugger console for the player in Game Manager.
playFabId const char*
is null-terminated
The unique user identifier for the player on whose behalf the script is being run.
revisionSelection PFCloudScriptCloudScriptRevisionOption const*
may be nullptr
(Optional) Option for which revision of the CloudScript to execute. 'Latest' executes the most recently created revision, 'Live' executes the current live, published revision, and 'Specific' executes the specified revision. The default value is 'Specific', if the SpeificRevision parameter is specified, otherwise it is 'Live'.
specificRevision int32_t const*
may be nullptr
(Optional) The specivic revision to execute, when RevisionSelection is set to 'Specific'.
Requirements
Header: PFCloudScriptTypes.h