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
版权声明:本文标题:azure - Where are PlayFab CloudScript server APIs documented? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744870433a2629596.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论