bard-legends-framework 0.10.6 → 0.10.8
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.
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Rectangle } from 'helpers-lib';
|
|
2
|
+
import { AttachmentTarget } from '../../game-entities';
|
|
2
3
|
import { ContainerAttributes } from './container-attributes';
|
|
3
4
|
import { Filters } from './filters';
|
|
4
5
|
import { Sprite } from './objects/sprite/sprite';
|
|
@@ -16,6 +17,8 @@ export declare class Container extends ContainerAttributes {
|
|
|
16
17
|
};
|
|
17
18
|
constructor();
|
|
18
19
|
destroy(): void;
|
|
20
|
+
attach(parent: AttachmentTarget | string): this;
|
|
21
|
+
attachToRoot(): this;
|
|
19
22
|
protected destroySelf(): void;
|
|
20
23
|
getBoundingMask(): Sprite;
|
|
21
24
|
displayParent(parent: Container | string, partialOptions?: Partial<SetParentOptions>): this;
|
|
@@ -20,6 +20,16 @@ class Container extends container_attributes_1.ContainerAttributes {
|
|
|
20
20
|
destroy() {
|
|
21
21
|
super.destroy();
|
|
22
22
|
}
|
|
23
|
+
// make the attach function non-internal
|
|
24
|
+
attach(parent) {
|
|
25
|
+
super.attach(parent);
|
|
26
|
+
return this;
|
|
27
|
+
}
|
|
28
|
+
// make the attachToRoot function non-internal
|
|
29
|
+
attachToRoot() {
|
|
30
|
+
super.attachToRoot();
|
|
31
|
+
return this;
|
|
32
|
+
}
|
|
23
33
|
destroySelf() {
|
|
24
34
|
super.destroySelf();
|
|
25
35
|
Container.allContainers.delete(this.id);
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AttachmentTarget } from '../../../game-entities';
|
|
1
2
|
import { Attachable } from '../../../game-entities/base/attachable';
|
|
2
3
|
import { AnimatorAnimation } from './animations';
|
|
3
4
|
export interface AnimationState {
|
|
@@ -42,6 +43,9 @@ export declare class Animator<T> extends Attachable {
|
|
|
42
43
|
private allResolvers;
|
|
43
44
|
get isAnimating(): boolean;
|
|
44
45
|
constructor(target: T, effectOn: string | string[], options?: AnimationOptions);
|
|
46
|
+
destroy(): void;
|
|
47
|
+
attach(parent: AttachmentTarget | string): this;
|
|
48
|
+
attachToRoot(): this;
|
|
45
49
|
onChange(callback: (target: T) => void): Animator<T>;
|
|
46
50
|
onComplete(callback: (key: string, value: number) => void): Animator<T>;
|
|
47
51
|
protected destroySelf(): void;
|
|
@@ -67,6 +67,20 @@ class Animator extends attachable_1.Attachable {
|
|
|
67
67
|
}
|
|
68
68
|
});
|
|
69
69
|
}
|
|
70
|
+
// make the destroy function non-internal
|
|
71
|
+
destroy() {
|
|
72
|
+
super.destroy();
|
|
73
|
+
}
|
|
74
|
+
// make the attach function non-internal
|
|
75
|
+
attach(parent) {
|
|
76
|
+
super.attach(parent);
|
|
77
|
+
return this;
|
|
78
|
+
}
|
|
79
|
+
// make the attachToRoot function non-internal
|
|
80
|
+
attachToRoot() {
|
|
81
|
+
super.attachToRoot();
|
|
82
|
+
return this;
|
|
83
|
+
}
|
|
70
84
|
onChange(callback) {
|
|
71
85
|
if (this.onChangeCallback) {
|
|
72
86
|
this.attachToRoot();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bard-legends-framework",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.8",
|
|
4
4
|
"description": "Bard Legends Framework",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"files": [
|
|
@@ -33,11 +33,13 @@
|
|
|
33
33
|
"postpack": "mv package.json.bak package.json"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"actions-lib": "1.8.6",
|
|
37
|
-
"helpers-lib": "1.13.10",
|
|
38
36
|
"p2": "0.7.1",
|
|
39
37
|
"pixi.js": "7.4.2",
|
|
40
|
-
"reflect-metadata": "0.2.1"
|
|
38
|
+
"reflect-metadata": "0.2.1"
|
|
39
|
+
},
|
|
40
|
+
"peerDependencies": {
|
|
41
|
+
"actions-lib": "1.8.6",
|
|
42
|
+
"helpers-lib": "1.13.10",
|
|
41
43
|
"script-engine-lib": "0.4.3"
|
|
42
44
|
},
|
|
43
45
|
"devDependencies": {
|