bard-legends-framework 1.9.1 → 1.11.0
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 +13 -8
- package/dist/index.d.ts +13 -8
- package/dist/index.js +24 -46
- package/dist/index.mjs +24 -46
- package/package.json +5 -5
package/dist/index.d.mts
CHANGED
|
@@ -25,6 +25,7 @@ declare function ControllerDecorator<TController>(gateway: new () => TController
|
|
|
25
25
|
|
|
26
26
|
type EntityClassType<T extends Entity = Entity> = (new (...args: any[]) => T) & {
|
|
27
27
|
id: number;
|
|
28
|
+
validateID(id: number): boolean;
|
|
28
29
|
};
|
|
29
30
|
type EntityID<T extends Entity> = AttachmentID & {
|
|
30
31
|
readonly __entity: T;
|
|
@@ -42,9 +43,7 @@ declare abstract class Entity extends IDAttachable {
|
|
|
42
43
|
attachToRoot(): this;
|
|
43
44
|
}
|
|
44
45
|
|
|
45
|
-
type SingletonEntityClassType<T extends SingletonEntity = SingletonEntity> =
|
|
46
|
-
id: number;
|
|
47
|
-
};
|
|
46
|
+
type SingletonEntityClassType<T extends SingletonEntity = SingletonEntity> = EntityClassType<T>;
|
|
48
47
|
declare abstract class SingletonEntity extends Entity {
|
|
49
48
|
static getInstanceAsync<T extends SingletonEntity>(this: SingletonEntityClassType<T>): IdleSingleEvent<T>;
|
|
50
49
|
static continuesSubscription<T extends SingletonEntity>(this: SingletonEntityClassType<T>): IdleSequence<{
|
|
@@ -231,11 +230,11 @@ interface AssetDefinition<T = string> {
|
|
|
231
230
|
readonly url: string;
|
|
232
231
|
}
|
|
233
232
|
declare enum BlendMode {
|
|
234
|
-
Normal =
|
|
235
|
-
Add =
|
|
236
|
-
Screen =
|
|
237
|
-
Luminosity =
|
|
238
|
-
ColorDodge =
|
|
233
|
+
Normal = "normal",
|
|
234
|
+
Add = "add",
|
|
235
|
+
Screen = "screen",
|
|
236
|
+
Luminosity = "luminosity",
|
|
237
|
+
ColorDodge = "color-dodge"
|
|
239
238
|
}
|
|
240
239
|
interface SpriteIDRegistry {
|
|
241
240
|
}
|
|
@@ -479,6 +478,12 @@ declare abstract class ContainerAttributes extends IDAttachable {
|
|
|
479
478
|
setInteractive(value: boolean): this;
|
|
480
479
|
get interactive(): boolean;
|
|
481
480
|
set interactive(value: boolean);
|
|
481
|
+
/**
|
|
482
|
+
* Renders this subtree as an isolated render group: its cached render instructions are not
|
|
483
|
+
* rebuilt when other parts of the scene change, and moving the group only updates one transform.
|
|
484
|
+
* Use for subtrees that move as a whole (world under a camera) or rarely change (HUD vs world).
|
|
485
|
+
*/
|
|
486
|
+
setRenderGroup(value?: boolean): this;
|
|
482
487
|
setCursor(value: Cursor): this;
|
|
483
488
|
get cursor(): Cursor;
|
|
484
489
|
set cursor(value: Cursor);
|
package/dist/index.d.ts
CHANGED
|
@@ -25,6 +25,7 @@ declare function ControllerDecorator<TController>(gateway: new () => TController
|
|
|
25
25
|
|
|
26
26
|
type EntityClassType<T extends Entity = Entity> = (new (...args: any[]) => T) & {
|
|
27
27
|
id: number;
|
|
28
|
+
validateID(id: number): boolean;
|
|
28
29
|
};
|
|
29
30
|
type EntityID<T extends Entity> = AttachmentID & {
|
|
30
31
|
readonly __entity: T;
|
|
@@ -42,9 +43,7 @@ declare abstract class Entity extends IDAttachable {
|
|
|
42
43
|
attachToRoot(): this;
|
|
43
44
|
}
|
|
44
45
|
|
|
45
|
-
type SingletonEntityClassType<T extends SingletonEntity = SingletonEntity> =
|
|
46
|
-
id: number;
|
|
47
|
-
};
|
|
46
|
+
type SingletonEntityClassType<T extends SingletonEntity = SingletonEntity> = EntityClassType<T>;
|
|
48
47
|
declare abstract class SingletonEntity extends Entity {
|
|
49
48
|
static getInstanceAsync<T extends SingletonEntity>(this: SingletonEntityClassType<T>): IdleSingleEvent<T>;
|
|
50
49
|
static continuesSubscription<T extends SingletonEntity>(this: SingletonEntityClassType<T>): IdleSequence<{
|
|
@@ -231,11 +230,11 @@ interface AssetDefinition<T = string> {
|
|
|
231
230
|
readonly url: string;
|
|
232
231
|
}
|
|
233
232
|
declare enum BlendMode {
|
|
234
|
-
Normal =
|
|
235
|
-
Add =
|
|
236
|
-
Screen =
|
|
237
|
-
Luminosity =
|
|
238
|
-
ColorDodge =
|
|
233
|
+
Normal = "normal",
|
|
234
|
+
Add = "add",
|
|
235
|
+
Screen = "screen",
|
|
236
|
+
Luminosity = "luminosity",
|
|
237
|
+
ColorDodge = "color-dodge"
|
|
239
238
|
}
|
|
240
239
|
interface SpriteIDRegistry {
|
|
241
240
|
}
|
|
@@ -479,6 +478,12 @@ declare abstract class ContainerAttributes extends IDAttachable {
|
|
|
479
478
|
setInteractive(value: boolean): this;
|
|
480
479
|
get interactive(): boolean;
|
|
481
480
|
set interactive(value: boolean);
|
|
481
|
+
/**
|
|
482
|
+
* Renders this subtree as an isolated render group: its cached render instructions are not
|
|
483
|
+
* rebuilt when other parts of the scene change, and moving the group only updates one transform.
|
|
484
|
+
* Use for subtrees that move as a whole (world under a camera) or rarely change (HUD vs world).
|
|
485
|
+
*/
|
|
486
|
+
setRenderGroup(value?: boolean): this;
|
|
482
487
|
setCursor(value: Cursor): this;
|
|
483
488
|
get cursor(): Cursor;
|
|
484
489
|
set cursor(value: Cursor);
|