From 2abdc0c12ceea253892a3a3a78680dfb28625b31 Mon Sep 17 00:00:00 2001 From: jonathansparkling <65242788+jonathansparkling@users.noreply.github.com> Date: Mon, 29 Jun 2020 10:55:00 +0200 Subject: [PATCH 1/2] Add currentEntity field to cloudscript context This field is set when calling ExecuteEntityCloudScript. --- Scripts/typings/PlayFab/CloudScript.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/Scripts/typings/PlayFab/CloudScript.d.ts b/Scripts/typings/PlayFab/CloudScript.d.ts index b184a6e..f61f636 100644 --- a/Scripts/typings/PlayFab/CloudScript.d.ts +++ b/Scripts/typings/PlayFab/CloudScript.d.ts @@ -38,6 +38,7 @@ interface IPlayFabContext { playStreamEvent: PlayStreamModels.IBasePlayStreamEvent; playerProfile: IPlayFabPlayerProfile; triggeredByTask: ITriggeredByTask; + currentEntity?: EntityProfileBody; } interface IPlayFabPlayerProfile { From f8cd4c7a1993366845378627abca8ab298a931ee Mon Sep 17 00:00:00 2001 From: jonathansparkling <65242788+jonathansparkling@users.noreply.github.com> Date: Mon, 29 Jun 2020 11:19:15 +0200 Subject: [PATCH 2/2] Fixed missing namespace --- Scripts/typings/PlayFab/CloudScript.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Scripts/typings/PlayFab/CloudScript.d.ts b/Scripts/typings/PlayFab/CloudScript.d.ts index f61f636..b1aea9b 100644 --- a/Scripts/typings/PlayFab/CloudScript.d.ts +++ b/Scripts/typings/PlayFab/CloudScript.d.ts @@ -38,7 +38,7 @@ interface IPlayFabContext { playStreamEvent: PlayStreamModels.IBasePlayStreamEvent; playerProfile: IPlayFabPlayerProfile; triggeredByTask: ITriggeredByTask; - currentEntity?: EntityProfileBody; + currentEntity?: PlayFabProfilesModels.EntityProfileBody; } interface IPlayFabPlayerProfile {