bard-legends-framework 1.4.0 → 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +3 -3
- package/dist/index.mjs +3 -3
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -54,6 +54,7 @@ declare abstract class Scene<InputType, OutputType> extends IDAttachable {
|
|
|
54
54
|
static readonly activeScene: actions_lib.Notifier<Scene<unknown, unknown> | undefined>;
|
|
55
55
|
static getActiveScene(this: typeof Scene): Scene<unknown, unknown> | undefined;
|
|
56
56
|
static getActiveSceneOrFail(this: typeof Scene): Scene<unknown, unknown>;
|
|
57
|
+
static cancelActiveScene(): SingleEvent;
|
|
57
58
|
static isActive<T extends Scene<unknown, unknown>>(this: new (...args: unknown[]) => T): boolean;
|
|
58
59
|
static getInstance<T extends Scene<unknown, unknown>>(this: new (...args: unknown[]) => T): T | undefined;
|
|
59
60
|
static getInstanceOrFail<T extends Scene<unknown, unknown>>(this: new (...args: unknown[]) => T): T;
|
|
@@ -61,6 +62,7 @@ declare abstract class Scene<InputType, OutputType> extends IDAttachable {
|
|
|
61
62
|
readonly onClose: actions_lib.SingleNotifier<OutputType>;
|
|
62
63
|
constructor();
|
|
63
64
|
close(...args: void extends OutputType ? (OutputType extends void ? [] : [OutputType]) : [OutputType]): SingleEvent<OutputType>;
|
|
65
|
+
private animateAndClose;
|
|
64
66
|
protected abstract init(input: InputType): SingleEvent;
|
|
65
67
|
protected abstract update(time: number, delta: number): void;
|
|
66
68
|
protected abstract prepareToClose(): SingleEvent;
|
package/dist/index.d.ts
CHANGED
|
@@ -54,6 +54,7 @@ declare abstract class Scene<InputType, OutputType> extends IDAttachable {
|
|
|
54
54
|
static readonly activeScene: actions_lib.Notifier<Scene<unknown, unknown> | undefined>;
|
|
55
55
|
static getActiveScene(this: typeof Scene): Scene<unknown, unknown> | undefined;
|
|
56
56
|
static getActiveSceneOrFail(this: typeof Scene): Scene<unknown, unknown>;
|
|
57
|
+
static cancelActiveScene(): SingleEvent;
|
|
57
58
|
static isActive<T extends Scene<unknown, unknown>>(this: new (...args: unknown[]) => T): boolean;
|
|
58
59
|
static getInstance<T extends Scene<unknown, unknown>>(this: new (...args: unknown[]) => T): T | undefined;
|
|
59
60
|
static getInstanceOrFail<T extends Scene<unknown, unknown>>(this: new (...args: unknown[]) => T): T;
|
|
@@ -61,6 +62,7 @@ declare abstract class Scene<InputType, OutputType> extends IDAttachable {
|
|
|
61
62
|
readonly onClose: actions_lib.SingleNotifier<OutputType>;
|
|
62
63
|
constructor();
|
|
63
64
|
close(...args: void extends OutputType ? (OutputType extends void ? [] : [OutputType]) : [OutputType]): SingleEvent<OutputType>;
|
|
65
|
+
private animateAndClose;
|
|
64
66
|
protected abstract init(input: InputType): SingleEvent;
|
|
65
67
|
protected abstract update(time: number, delta: number): void;
|
|
66
68
|
protected abstract prepareToClose(): SingleEvent;
|