admin管理员组

文章数量:1404927

I am looking for TypeScript types for PlayFab CloudScript. Note that this is the server side, not the client side, i.e., handling CloudScript calls from the client instead of making CloudScript calls.

// This is the Unity client calling the function
private void CallMyFunc(string myArg) {
    PlayFabCloudScriptAPI.ExecuteEntityCloudScript(
        new ExecuteEntityCloudScriptRequest {
            FunctionName: "myFunc",
            FunctionParameter: myArg,
            GeneratePlayStreamEvent: true
        },
        (result) => {
            Debug.Log($"{result}");
        },
        _ => {}
    )
}

The best I found is this, which is 3 years old, definitely outdated, and doesn't even look official (it seems to be part of some test suite rather than actual documentation). Even looking for the official docs is hard, to the point where I'm not sure whether I'm looking at internals, bad at searching, or there just are no docs.

// This is what the CloudScript side sees,
// According to the old file I found at least ...
handlers.myFunc = function(args?: any, context?: IPlayFabContext) {
    // But what is in `context`? There are more things in there than
    // the old file I found says there are ...
}

I'm hoping it's just me being bad at searching, but as far as I can tell there just are no docs.

I don't mind it being in a different language, surely there's something I can use to translate back to TypeScript, even manually? Maybe it's behind a paywall / different service? In any case, it's quite frustrating working with what seems to be practically undocumented abandonware.

Thanks.

本文标签: azureWhere are PlayFab CloudScript server APIs documentedStack Overflow