From c70278fae96e0584a8d8d80231a9a87d6ec9c0f1 Mon Sep 17 00:00:00 2001 From: Joseph Date: Wed, 8 Nov 2023 12:03:36 -0800 Subject: [PATCH 1/3] Initialization --- src/foundry/client/tours/canvas-tour.d.ts | 0 src/foundry/client/tours/setup-tour.d.ts | 0 src/foundry/client/tours/sidebar-tour.d.ts | 0 3 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 src/foundry/client/tours/canvas-tour.d.ts create mode 100644 src/foundry/client/tours/setup-tour.d.ts create mode 100644 src/foundry/client/tours/sidebar-tour.d.ts diff --git a/src/foundry/client/tours/canvas-tour.d.ts b/src/foundry/client/tours/canvas-tour.d.ts new file mode 100644 index 000000000..e69de29bb diff --git a/src/foundry/client/tours/setup-tour.d.ts b/src/foundry/client/tours/setup-tour.d.ts new file mode 100644 index 000000000..e69de29bb diff --git a/src/foundry/client/tours/sidebar-tour.d.ts b/src/foundry/client/tours/sidebar-tour.d.ts new file mode 100644 index 000000000..e69de29bb From eb0ac178ad474bf3be17f8a8023b6c99b73ec870 Mon Sep 17 00:00:00 2001 From: Joseph Date: Wed, 8 Nov 2023 14:08:07 -0800 Subject: [PATCH 2/3] Initial tour work --- src/foundry/client/core/tour.d.ts | 2 +- src/foundry/client/tours/canvas-tour.d.ts | 9 +++++++++ src/foundry/client/tours/setup-tour.d.ts | 13 +++++++++++++ src/foundry/client/tours/sidebar-tour.d.ts | 9 +++++++++ 4 files changed, 32 insertions(+), 1 deletion(-) diff --git a/src/foundry/client/core/tour.d.ts b/src/foundry/client/core/tour.d.ts index 821c40119..374eb5316 100644 --- a/src/foundry/client/core/tour.d.ts +++ b/src/foundry/client/core/tour.d.ts @@ -1,4 +1,4 @@ -export {}; +export { Tour }; declare global { /** A step in a Tour */ diff --git a/src/foundry/client/tours/canvas-tour.d.ts b/src/foundry/client/tours/canvas-tour.d.ts index e69de29bb..159fd7e48 100644 --- a/src/foundry/client/tours/canvas-tour.d.ts +++ b/src/foundry/client/tours/canvas-tour.d.ts @@ -0,0 +1,9 @@ +import { Tour } from "../core/tour"; + +declare global { + class CanvasTour extends Tour { + override start(): Promise; + override get canStart(): boolean; + protected override _preStep(): Promise; + } +} diff --git a/src/foundry/client/tours/setup-tour.d.ts b/src/foundry/client/tours/setup-tour.d.ts index e69de29bb..f3436caa4 100644 --- a/src/foundry/client/tours/setup-tour.d.ts +++ b/src/foundry/client/tours/setup-tour.d.ts @@ -0,0 +1,13 @@ +import { Tour } from "../core/tour"; +import { Application } from "../apps/app"; + +declare global { + class SetupTour extends Tour { + focusedApp: Application; + override get canStart(): boolean; + override get steps(): TourStep[]; + protected override _preStep(): Promise; + private _installingASystem(): Promise; + private _creatingAWorld(): Promise; + } +} diff --git a/src/foundry/client/tours/sidebar-tour.d.ts b/src/foundry/client/tours/sidebar-tour.d.ts index e69de29bb..4cf406970 100644 --- a/src/foundry/client/tours/sidebar-tour.d.ts +++ b/src/foundry/client/tours/sidebar-tour.d.ts @@ -0,0 +1,9 @@ +import { Tour } from "../core/tour"; + +declare global { + class SidebarTour extends Tour { + override start(): Promise; + protected override _preStep(): Promise; + _updateSidebarTab(): Promise; + } +} From 398776058389e8b4c80f48c65b52f6e98d3ec095 Mon Sep 17 00:00:00 2001 From: Joseph Date: Wed, 8 Nov 2023 14:08:26 -0800 Subject: [PATCH 3/3] Index Files --- src/foundry/client/index.d.ts | 1 + src/foundry/client/tours/index.d.ts | 3 +++ 2 files changed, 4 insertions(+) create mode 100644 src/foundry/client/tours/index.d.ts diff --git a/src/foundry/client/index.d.ts b/src/foundry/client/index.d.ts index ef3b6f868..020423d91 100644 --- a/src/foundry/client/index.d.ts +++ b/src/foundry/client/index.d.ts @@ -8,5 +8,6 @@ import "./dice"; import "./game"; import "./head"; import "./pixi"; +import "./tours"; import "./tail"; import "./ui"; diff --git a/src/foundry/client/tours/index.d.ts b/src/foundry/client/tours/index.d.ts new file mode 100644 index 000000000..64f041e53 --- /dev/null +++ b/src/foundry/client/tours/index.d.ts @@ -0,0 +1,3 @@ +import "./canvas-tour"; +import "./setup-tour"; +import "./sidebar-tour";