最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

azure - Where are PlayFab CloudScript server APIs documented? - Stack Overflow

programmeradmin3浏览0评论

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.

发布评论

评论列表(0)

  1. 暂无评论