@vpmedia/phaser 1.104.0 → 1.105.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.js +151 -574
- package/dist/index.js.map +1 -1
- package/dist/phaser/core/animation.d.ts +35 -57
- package/dist/phaser/core/animation.d.ts.map +1 -1
- package/dist/phaser/core/animation_manager.d.ts +11 -10
- package/dist/phaser/core/animation_manager.d.ts.map +1 -1
- package/dist/phaser/core/animation_parser.d.ts +2 -2
- package/dist/phaser/core/animation_parser.d.ts.map +1 -1
- package/dist/phaser/core/array_set.d.ts +3 -3
- package/dist/phaser/core/array_set.d.ts.map +1 -1
- package/dist/phaser/core/cache.d.ts +60 -60
- package/dist/phaser/core/cache.d.ts.map +1 -1
- package/dist/phaser/core/device.d.ts.map +1 -1
- package/dist/phaser/core/device_util.d.ts +10 -10
- package/dist/phaser/core/device_util.d.ts.map +1 -1
- package/dist/phaser/core/dom.d.ts +6 -5
- package/dist/phaser/core/dom.d.ts.map +1 -1
- package/dist/phaser/core/event_manager.d.ts +49 -174
- package/dist/phaser/core/event_manager.d.ts.map +1 -1
- package/dist/phaser/core/factory.d.ts +7 -7
- package/dist/phaser/core/factory.d.ts.map +1 -1
- package/dist/phaser/core/frame.d.ts +27 -48
- package/dist/phaser/core/frame.d.ts.map +1 -1
- package/dist/phaser/core/frame_data.d.ts +11 -60
- package/dist/phaser/core/frame_data.d.ts.map +1 -1
- package/dist/phaser/core/frame_util.d.ts +4 -14
- package/dist/phaser/core/frame_util.d.ts.map +1 -1
- package/dist/phaser/core/game.d.ts +49 -58
- package/dist/phaser/core/game.d.ts.map +1 -1
- package/dist/phaser/core/input.d.ts +15 -13
- package/dist/phaser/core/input.d.ts.map +1 -1
- package/dist/phaser/core/input_handler.d.ts +23 -20
- package/dist/phaser/core/input_handler.d.ts.map +1 -1
- package/dist/phaser/core/input_mouse.d.ts +26 -1
- package/dist/phaser/core/input_mouse.d.ts.map +1 -1
- package/dist/phaser/core/input_mspointer.d.ts +2 -2
- package/dist/phaser/core/input_mspointer.d.ts.map +1 -1
- package/dist/phaser/core/input_pointer.d.ts +9 -9
- package/dist/phaser/core/input_pointer.d.ts.map +1 -1
- package/dist/phaser/core/input_touch.d.ts +2 -1
- package/dist/phaser/core/input_touch.d.ts.map +1 -1
- package/dist/phaser/core/loader.d.ts +28 -28
- package/dist/phaser/core/loader.d.ts.map +1 -1
- package/dist/phaser/core/loader_parser.d.ts +4 -4
- package/dist/phaser/core/loader_parser.d.ts.map +1 -1
- package/dist/phaser/core/raf.d.ts +2 -2
- package/dist/phaser/core/raf.d.ts.map +1 -1
- package/dist/phaser/core/scale_manager.d.ts +22 -17
- package/dist/phaser/core/scale_manager.d.ts.map +1 -1
- package/dist/phaser/core/scene.d.ts +1 -1
- package/dist/phaser/core/scene.d.ts.map +1 -1
- package/dist/phaser/core/scene_manager.d.ts +10 -9
- package/dist/phaser/core/scene_manager.d.ts.map +1 -1
- package/dist/phaser/core/signal.d.ts +9 -8
- package/dist/phaser/core/signal.d.ts.map +1 -1
- package/dist/phaser/core/signal_binding.d.ts +2 -2
- package/dist/phaser/core/signal_binding.d.ts.map +1 -1
- package/dist/phaser/core/sound.d.ts +56 -101
- package/dist/phaser/core/sound.d.ts.map +1 -1
- package/dist/phaser/core/sound_manager.d.ts +11 -9
- package/dist/phaser/core/sound_manager.d.ts.map +1 -1
- package/dist/phaser/core/sound_sprite.d.ts +4 -4
- package/dist/phaser/core/sound_sprite.d.ts.map +1 -1
- package/dist/phaser/core/stage.d.ts +3 -3
- package/dist/phaser/core/stage.d.ts.map +1 -1
- package/dist/phaser/core/time.d.ts +5 -5
- package/dist/phaser/core/time.d.ts.map +1 -1
- package/dist/phaser/core/timer.d.ts +10 -10
- package/dist/phaser/core/timer.d.ts.map +1 -1
- package/dist/phaser/core/timer_event.d.ts +11 -21
- package/dist/phaser/core/timer_event.d.ts.map +1 -1
- package/dist/phaser/core/tween.d.ts +37 -59
- package/dist/phaser/core/tween.d.ts.map +1 -1
- package/dist/phaser/core/tween_data.d.ts +6 -5
- package/dist/phaser/core/tween_data.d.ts.map +1 -1
- package/dist/phaser/core/tween_easing.d.ts +31 -31
- package/dist/phaser/core/tween_easing.d.ts.map +1 -1
- package/dist/phaser/core/tween_manager.d.ts +4 -4
- package/dist/phaser/core/tween_manager.d.ts.map +1 -1
- package/dist/phaser/core/world.d.ts +1 -1
- package/dist/phaser/core/world.d.ts.map +1 -1
- package/dist/phaser/display/bitmap_text.d.ts +22 -20
- package/dist/phaser/display/bitmap_text.d.ts.map +1 -1
- package/dist/phaser/display/button.d.ts +23 -35
- package/dist/phaser/display/button.d.ts.map +1 -1
- package/dist/phaser/display/canvas/buffer.d.ts +2 -2
- package/dist/phaser/display/canvas/buffer.d.ts.map +1 -1
- package/dist/phaser/display/canvas/graphics.d.ts +3 -3
- package/dist/phaser/display/canvas/graphics.d.ts.map +1 -1
- package/dist/phaser/display/canvas/masker.d.ts.map +1 -1
- package/dist/phaser/display/canvas/pool.d.ts +2 -2
- package/dist/phaser/display/canvas/pool.d.ts.map +1 -1
- package/dist/phaser/display/canvas/renderer.d.ts +5 -5
- package/dist/phaser/display/canvas/renderer.d.ts.map +1 -1
- package/dist/phaser/display/canvas/tinter.d.ts +3 -3
- package/dist/phaser/display/canvas/tinter.d.ts.map +1 -1
- package/dist/phaser/display/canvas/util.d.ts +9 -9
- package/dist/phaser/display/canvas/util.d.ts.map +1 -1
- package/dist/phaser/display/display_object.d.ts +45 -42
- package/dist/phaser/display/display_object.d.ts.map +1 -1
- package/dist/phaser/display/graphics.d.ts +24 -16
- package/dist/phaser/display/graphics.d.ts.map +1 -1
- package/dist/phaser/display/graphics_data.d.ts +1 -1
- package/dist/phaser/display/graphics_data.d.ts.map +1 -1
- package/dist/phaser/display/graphics_data_util.d.ts +1 -1
- package/dist/phaser/display/graphics_data_util.d.ts.map +1 -1
- package/dist/phaser/display/group.d.ts +24 -37
- package/dist/phaser/display/group.d.ts.map +1 -1
- package/dist/phaser/display/image.d.ts +34 -49
- package/dist/phaser/display/image.d.ts.map +1 -1
- package/dist/phaser/display/sprite_batch.d.ts +1 -1
- package/dist/phaser/display/sprite_batch.d.ts.map +1 -1
- package/dist/phaser/display/sprite_util.d.ts +5 -5
- package/dist/phaser/display/sprite_util.d.ts.map +1 -1
- package/dist/phaser/display/text.d.ts +86 -66
- package/dist/phaser/display/text.d.ts.map +1 -1
- package/dist/phaser/display/webgl/abstract_filter.d.ts +2 -1
- package/dist/phaser/display/webgl/abstract_filter.d.ts.map +1 -1
- package/dist/phaser/display/webgl/base_texture.d.ts +2 -2
- package/dist/phaser/display/webgl/base_texture.d.ts.map +1 -1
- package/dist/phaser/display/webgl/blend_manager.d.ts +3 -2
- package/dist/phaser/display/webgl/blend_manager.d.ts.map +1 -1
- package/dist/phaser/display/webgl/earcut.d.ts +10 -10
- package/dist/phaser/display/webgl/earcut.d.ts.map +1 -1
- package/dist/phaser/display/webgl/earcut_node.d.ts +1 -1
- package/dist/phaser/display/webgl/earcut_node.d.ts.map +1 -1
- package/dist/phaser/display/webgl/fast_sprite_batch.d.ts +2 -1
- package/dist/phaser/display/webgl/fast_sprite_batch.d.ts.map +1 -1
- package/dist/phaser/display/webgl/filter_manager.d.ts +2 -1
- package/dist/phaser/display/webgl/filter_manager.d.ts.map +1 -1
- package/dist/phaser/display/webgl/filter_texture.d.ts +3 -2
- package/dist/phaser/display/webgl/filter_texture.d.ts.map +1 -1
- package/dist/phaser/display/webgl/graphics.d.ts +11 -10
- package/dist/phaser/display/webgl/graphics.d.ts.map +1 -1
- package/dist/phaser/display/webgl/graphics_data.d.ts +2 -1
- package/dist/phaser/display/webgl/graphics_data.d.ts.map +1 -1
- package/dist/phaser/display/webgl/mask_manager.d.ts.map +1 -1
- package/dist/phaser/display/webgl/render_texture.d.ts +2 -1
- package/dist/phaser/display/webgl/render_texture.d.ts.map +1 -1
- package/dist/phaser/display/webgl/renderer.d.ts +8 -6
- package/dist/phaser/display/webgl/renderer.d.ts.map +1 -1
- package/dist/phaser/display/webgl/shader/complex.d.ts +2 -1
- package/dist/phaser/display/webgl/shader/complex.d.ts.map +1 -1
- package/dist/phaser/display/webgl/shader/fast.d.ts +2 -1
- package/dist/phaser/display/webgl/shader/fast.d.ts.map +1 -1
- package/dist/phaser/display/webgl/shader/normal.d.ts +1 -0
- package/dist/phaser/display/webgl/shader/normal.d.ts.map +1 -1
- package/dist/phaser/display/webgl/shader/primitive.d.ts +2 -1
- package/dist/phaser/display/webgl/shader/primitive.d.ts.map +1 -1
- package/dist/phaser/display/webgl/shader/strip.d.ts +2 -1
- package/dist/phaser/display/webgl/shader/strip.d.ts.map +1 -1
- package/dist/phaser/display/webgl/shader_manager.d.ts +4 -2
- package/dist/phaser/display/webgl/shader_manager.d.ts.map +1 -1
- package/dist/phaser/display/webgl/sprite_batch.d.ts +3 -2
- package/dist/phaser/display/webgl/sprite_batch.d.ts.map +1 -1
- package/dist/phaser/display/webgl/stencil_manager.d.ts +5 -4
- package/dist/phaser/display/webgl/stencil_manager.d.ts.map +1 -1
- package/dist/phaser/display/webgl/texture.d.ts +15 -2
- package/dist/phaser/display/webgl/texture.d.ts.map +1 -1
- package/dist/phaser/display/webgl/texture_util.d.ts +2 -2
- package/dist/phaser/display/webgl/texture_util.d.ts.map +1 -1
- package/dist/phaser/display/webgl/util.d.ts +6 -6
- package/dist/phaser/display/webgl/util.d.ts.map +1 -1
- package/dist/phaser/geom/circle.d.ts +11 -10
- package/dist/phaser/geom/circle.d.ts.map +1 -1
- package/dist/phaser/geom/ellipse.d.ts +6 -5
- package/dist/phaser/geom/ellipse.d.ts.map +1 -1
- package/dist/phaser/geom/line.d.ts +14 -14
- package/dist/phaser/geom/line.d.ts.map +1 -1
- package/dist/phaser/geom/matrix.d.ts +13 -12
- package/dist/phaser/geom/matrix.d.ts.map +1 -1
- package/dist/phaser/geom/point.d.ts +19 -19
- package/dist/phaser/geom/point.d.ts.map +1 -1
- package/dist/phaser/geom/polygon.d.ts +6 -6
- package/dist/phaser/geom/polygon.d.ts.map +1 -1
- package/dist/phaser/geom/rectangle.d.ts +20 -20
- package/dist/phaser/geom/rectangle.d.ts.map +1 -1
- package/dist/phaser/geom/rounded_rectangle.d.ts +2 -2
- package/dist/phaser/geom/rounded_rectangle.d.ts.map +1 -1
- package/dist/phaser/geom/util/circle.d.ts +9 -7
- package/dist/phaser/geom/util/circle.d.ts.map +1 -1
- package/dist/phaser/geom/util/ellipse.d.ts +1 -1
- package/dist/phaser/geom/util/ellipse.d.ts.map +1 -1
- package/dist/phaser/geom/util/line.d.ts +5 -3
- package/dist/phaser/geom/util/line.d.ts.map +1 -1
- package/dist/phaser/geom/util/matrix.d.ts +2 -1
- package/dist/phaser/geom/util/matrix.d.ts.map +1 -1
- package/dist/phaser/geom/util/point.d.ts +19 -19
- package/dist/phaser/geom/util/point.d.ts.map +1 -1
- package/dist/phaser/geom/util/polygon.d.ts +2 -1
- package/dist/phaser/geom/util/polygon.d.ts.map +1 -1
- package/dist/phaser/geom/util/rectangle.d.ts +17 -15
- package/dist/phaser/geom/util/rectangle.d.ts.map +1 -1
- package/dist/phaser/geom/util/rounded_rectangle.d.ts +2 -1
- package/dist/phaser/geom/util/rounded_rectangle.d.ts.map +1 -1
- package/dist/phaser/util/math.d.ts +51 -142
- package/dist/phaser/util/math.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/phaser/core/animation.ts +38 -61
- package/src/phaser/core/animation_manager.ts +21 -21
- package/src/phaser/core/animation_parser.ts +11 -3
- package/src/phaser/core/array_set.ts +8 -8
- package/src/phaser/core/cache.ts +75 -68
- package/src/phaser/core/device.ts +23 -24
- package/src/phaser/core/device_util.ts +10 -10
- package/src/phaser/core/dom.ts +5 -5
- package/src/phaser/core/event_manager.ts +52 -193
- package/src/phaser/core/factory.ts +25 -18
- package/src/phaser/core/frame.ts +37 -51
- package/src/phaser/core/frame_data.ts +29 -76
- package/src/phaser/core/frame_util.ts +3 -16
- package/src/phaser/core/game.ts +36 -63
- package/src/phaser/core/input.ts +68 -68
- package/src/phaser/core/input_handler.ts +81 -86
- package/src/phaser/core/input_mouse.ts +42 -36
- package/src/phaser/core/input_mspointer.ts +24 -25
- package/src/phaser/core/input_pointer.ts +55 -56
- package/src/phaser/core/input_touch.ts +26 -26
- package/src/phaser/core/loader.ts +97 -70
- package/src/phaser/core/loader_parser.ts +6 -7
- package/src/phaser/core/raf.ts +2 -2
- package/src/phaser/core/scale_manager.ts +85 -82
- package/src/phaser/core/scene.ts +3 -4
- package/src/phaser/core/scene_manager.ts +26 -26
- package/src/phaser/core/signal.ts +10 -10
- package/src/phaser/core/signal_binding.ts +2 -2
- package/src/phaser/core/sound.ts +65 -112
- package/src/phaser/core/sound_manager.ts +31 -30
- package/src/phaser/core/sound_sprite.ts +10 -11
- package/src/phaser/core/stage.ts +8 -8
- package/src/phaser/core/time.ts +33 -34
- package/src/phaser/core/timer.ts +40 -34
- package/src/phaser/core/timer_event.ts +23 -23
- package/src/phaser/core/tween.ts +42 -68
- package/src/phaser/core/tween_data.ts +31 -31
- package/src/phaser/core/tween_easing.ts +31 -31
- package/src/phaser/core/tween_manager.ts +10 -11
- package/src/phaser/core/world.ts +1 -2
- package/src/phaser/display/bitmap_text.ts +41 -31
- package/src/phaser/display/button.ts +24 -51
- package/src/phaser/display/canvas/buffer.ts +6 -7
- package/src/phaser/display/canvas/graphics.ts +3 -4
- package/src/phaser/display/canvas/masker.ts +2 -3
- package/src/phaser/display/canvas/pool.ts +3 -4
- package/src/phaser/display/canvas/renderer.ts +19 -20
- package/src/phaser/display/canvas/tinter.ts +4 -5
- package/src/phaser/display/canvas/util.ts +9 -9
- package/src/phaser/display/display_object.ts +49 -50
- package/src/phaser/display/graphics.ts +56 -43
- package/src/phaser/display/graphics_data.ts +11 -12
- package/src/phaser/display/graphics_data_util.ts +1 -2
- package/src/phaser/display/group.ts +32 -42
- package/src/phaser/display/image.ts +32 -52
- package/src/phaser/display/sprite_batch.ts +1 -2
- package/src/phaser/display/sprite_util.ts +5 -6
- package/src/phaser/display/text.ts +82 -56
- package/src/phaser/display/webgl/abstract_filter.ts +8 -8
- package/src/phaser/display/webgl/base_texture.ts +14 -15
- package/src/phaser/display/webgl/blend_manager.ts +5 -5
- package/src/phaser/display/webgl/earcut.ts +27 -27
- package/src/phaser/display/webgl/earcut_node.ts +1 -1
- package/src/phaser/display/webgl/fast_sprite_batch.ts +19 -19
- package/src/phaser/display/webgl/filter_manager.ts +5 -5
- package/src/phaser/display/webgl/filter_texture.ts +7 -7
- package/src/phaser/display/webgl/graphics.ts +10 -11
- package/src/phaser/display/webgl/graphics_data.ts +11 -11
- package/src/phaser/display/webgl/mask_manager.ts +2 -3
- package/src/phaser/display/webgl/render_texture.ts +12 -12
- package/src/phaser/display/webgl/renderer.ts +24 -24
- package/src/phaser/display/webgl/shader/complex.ts +7 -7
- package/src/phaser/display/webgl/shader/fast.ts +8 -8
- package/src/phaser/display/webgl/shader/normal.ts +12 -12
- package/src/phaser/display/webgl/shader/primitive.ts +7 -7
- package/src/phaser/display/webgl/shader/strip.ts +7 -7
- package/src/phaser/display/webgl/shader_manager.ts +13 -13
- package/src/phaser/display/webgl/sprite_batch.ts +20 -20
- package/src/phaser/display/webgl/stencil_manager.ts +8 -8
- package/src/phaser/display/webgl/texture.ts +35 -24
- package/src/phaser/display/webgl/texture_util.ts +2 -3
- package/src/phaser/display/webgl/util.ts +6 -6
- package/src/phaser/geom/circle.ts +10 -10
- package/src/phaser/geom/ellipse.ts +6 -6
- package/src/phaser/geom/line.ts +14 -14
- package/src/phaser/geom/matrix.ts +12 -12
- package/src/phaser/geom/point.ts +19 -19
- package/src/phaser/geom/polygon.ts +5 -5
- package/src/phaser/geom/rectangle.ts +21 -21
- package/src/phaser/geom/rounded_rectangle.ts +2 -2
- package/src/phaser/geom/util/circle.ts +7 -7
- package/src/phaser/geom/util/ellipse.ts +1 -1
- package/src/phaser/geom/util/line.ts +5 -5
- package/src/phaser/geom/util/matrix.ts +1 -1
- package/src/phaser/geom/util/point.ts +20 -20
- package/src/phaser/geom/util/polygon.ts +1 -1
- package/src/phaser/geom/util/rectangle.ts +15 -15
- package/src/phaser/geom/util/rounded_rectangle.ts +1 -1
- package/src/phaser/util/math.ts +65 -151
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { SignalBinding } from './signal_binding.js';
|
|
1
2
|
export declare class Signal {
|
|
2
3
|
_bindings: any;
|
|
3
4
|
_prevParams: any;
|
|
@@ -16,7 +17,7 @@ export declare class Signal {
|
|
|
16
17
|
* @param {string} fnName - The name of the function this validation is for.
|
|
17
18
|
* @throws {Error} If the listener is not a function.
|
|
18
19
|
*/
|
|
19
|
-
validateListener(listener:
|
|
20
|
+
validateListener(listener: Function, fnName: string): void;
|
|
20
21
|
/**
|
|
21
22
|
* Register a new listener with the signal.
|
|
22
23
|
* @param {Function} listener - The function to call when the signal is dispatched.
|
|
@@ -27,26 +28,26 @@ export declare class Signal {
|
|
|
27
28
|
* @returns {SignalBinding} The binding for this listener.
|
|
28
29
|
* @throws {Error} If the listener is already registered with a different once setting.
|
|
29
30
|
*/
|
|
30
|
-
_registerListener(listener:
|
|
31
|
+
_registerListener(listener: Function, isOnce?: boolean, listenerContext?: any, priority?: number, args?: any): any;
|
|
31
32
|
/**
|
|
32
33
|
* Add a binding to the list of listeners.
|
|
33
34
|
* @param {SignalBinding} binding - The binding to add.
|
|
34
35
|
*/
|
|
35
|
-
_addBinding(binding:
|
|
36
|
+
_addBinding(binding: SignalBinding): void;
|
|
36
37
|
/**
|
|
37
38
|
* Find the index of a listener in the bindings array.
|
|
38
39
|
* @param {Function} listener - The listener to find.
|
|
39
40
|
* @param {object} context - The context of the listener.
|
|
40
41
|
* @returns {number} The index of the listener in the bindings array, or -1 if not found.
|
|
41
42
|
*/
|
|
42
|
-
_indexOfListener(listener:
|
|
43
|
+
_indexOfListener(listener: Function, context?: any): any;
|
|
43
44
|
/**
|
|
44
45
|
* Check if a listener is registered with the signal.
|
|
45
46
|
* @param {Function} listener - The listener to check.
|
|
46
47
|
* @param {object} context - The context of the listener.
|
|
47
48
|
* @returns {boolean} True if the listener is registered, false otherwise.
|
|
48
49
|
*/
|
|
49
|
-
has(listener:
|
|
50
|
+
has(listener: Function, context?: any): boolean;
|
|
50
51
|
/**
|
|
51
52
|
* Add a listener that will be called every time the signal is dispatched.
|
|
52
53
|
* @param {Function} listener - The function to call when the signal is dispatched.
|
|
@@ -55,7 +56,7 @@ export declare class Signal {
|
|
|
55
56
|
* @param {...any} args - Additional arguments to pass to the listener.
|
|
56
57
|
* @returns {SignalBinding} The binding for this listener.
|
|
57
58
|
*/
|
|
58
|
-
add(listener:
|
|
59
|
+
add(listener: Function, listenerContext?: any, priority?: number, ...args: any[]): any;
|
|
59
60
|
/**
|
|
60
61
|
* Add a listener that will be called only once when the signal is dispatched.
|
|
61
62
|
* @param {Function} listener - The function to call when the signal is dispatched.
|
|
@@ -64,14 +65,14 @@ export declare class Signal {
|
|
|
64
65
|
* @param {...any} args - Additional arguments to pass to the listener.
|
|
65
66
|
* @returns {SignalBinding} The binding for this listener.
|
|
66
67
|
*/
|
|
67
|
-
addOnce(listener:
|
|
68
|
+
addOnce(listener: Function, listenerContext?: any, priority?: number, ...args: any[]): any;
|
|
68
69
|
/**
|
|
69
70
|
* Remove a listener from the signal.
|
|
70
71
|
* @param {Function} listener - The listener to remove.
|
|
71
72
|
* @param {object} context - The context of the listener.
|
|
72
73
|
* @returns {Function} The removed listener function.
|
|
73
74
|
*/
|
|
74
|
-
remove(listener:
|
|
75
|
+
remove(listener: Function, context?: any): Function;
|
|
75
76
|
/**
|
|
76
77
|
* Remove all listeners from the signal, or only those in a specific context.
|
|
77
78
|
* @param {object} context - The context to filter listeners by, or null to remove all.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"signal.d.ts","sourceRoot":"","sources":["../../../src/phaser/core/signal.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"signal.d.ts","sourceRoot":"","sources":["../../../src/phaser/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G;IACH,QAAQ,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE;IAwBvB;;;OAGG;IACH,MAAM;IAMN;;;OAGG;IACH,OAAO;IAMP;;;OAGG;IACH,QAAQ;IAIR;;;OAGG;IACH,IAAI,aAAa,QAMhB;IAED;;;OAGG;IACH,SAAS;CAOV"}
|
|
@@ -17,13 +17,13 @@ export declare class SignalBinding {
|
|
|
17
17
|
* @param {number} priority - TBD.
|
|
18
18
|
* @param {...any} args - TBD.
|
|
19
19
|
*/
|
|
20
|
-
constructor(signal:
|
|
20
|
+
constructor(signal: import('./signal.js').Signal, listener: Function, isOnce?: boolean, listenerContext?: any, priority?: number, args?: any);
|
|
21
21
|
/**
|
|
22
22
|
* TBD.
|
|
23
23
|
* @param {any[]} paramsArr - TBD.
|
|
24
24
|
* @returns {Function} TBD.
|
|
25
25
|
*/
|
|
26
|
-
execute(paramsArr: any): any;
|
|
26
|
+
execute(paramsArr: any[]): any;
|
|
27
27
|
/**
|
|
28
28
|
* TBD.
|
|
29
29
|
* @returns {Function} TBD.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"signal_binding.d.ts","sourceRoot":"","sources":["../../../src/phaser/core/signal_binding.ts"],"names":[],"mappings":"AAAA,qBAAa,aAAa;IACxB,OAAO,EAAE,GAAG,CAAC;IACb,SAAS,EAAE,GAAG,CAAC;IACf,KAAK,EAAE,GAAG,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,GAAG,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE,GAAG,CAAC;IAEZ;;;;;;;;OAQG;gBACS,MAAM,
|
|
1
|
+
{"version":3,"file":"signal_binding.d.ts","sourceRoot":"","sources":["../../../src/phaser/core/signal_binding.ts"],"names":[],"mappings":"AAAA,qBAAa,aAAa;IACxB,OAAO,EAAE,GAAG,CAAC;IACb,SAAS,EAAE,GAAG,CAAC;IACf,KAAK,EAAE,GAAG,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,GAAG,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE,GAAG,CAAC;IAEZ;;;;;;;;OAQG;gBACS,MAAM,EAAE,OAAO,aAAa,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,GAAE,OAAe,EAAE,eAAe,GAAE,GAAU,EAAE,QAAQ,GAAE,MAAU,EAAE,IAAI,GAAE,GAAU;IAYlK;;;;OAIG;IACH,OAAO,CAAC,SAAS,EAAE,GAAG,EAAE;IAiBxB;;;OAGG;IACH,MAAM;IAIN;;;OAGG;IACH,OAAO;IAIP;;;OAGG;IACH,MAAM;IAIN;;;OAGG;IACH,WAAW;IAIX;;;OAGG;IACH,SAAS;IAIT;;OAEG;IACH,QAAQ;IAMR;;;OAGG;IACH,QAAQ;CAGT"}
|
|
@@ -1,97 +1,52 @@
|
|
|
1
|
+
import { Signal } from './signal.js';
|
|
1
2
|
export declare class Sound {
|
|
2
3
|
_paused: any;
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
/** @type {string} */
|
|
8
|
-
key: any;
|
|
9
|
-
/** @type {boolean} */
|
|
10
|
-
loop: any;
|
|
11
|
-
/** @type {object} */
|
|
4
|
+
game: import('./game.js').Game;
|
|
5
|
+
name: string;
|
|
6
|
+
key: string;
|
|
7
|
+
loop: boolean;
|
|
12
8
|
markers: any;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
gainNode: any;
|
|
55
|
-
/** @type {AudioBufferSourceNode | null} */
|
|
56
|
-
_sound: any;
|
|
57
|
-
/** @type {boolean} */
|
|
58
|
-
_markedToDelete: any;
|
|
59
|
-
/** @type {boolean} */
|
|
60
|
-
_removeFromSoundManager: any;
|
|
61
|
-
/** @type {Signal} */
|
|
62
|
-
onPlay: any;
|
|
63
|
-
/** @type {Signal} */
|
|
64
|
-
onPause: any;
|
|
65
|
-
/** @type {Signal} */
|
|
66
|
-
onResume: any;
|
|
67
|
-
/** @type {Signal} */
|
|
68
|
-
onLoop: any;
|
|
69
|
-
/** @type {Signal} */
|
|
70
|
-
onStop: any;
|
|
71
|
-
/** @type {Signal} */
|
|
72
|
-
onMute: any;
|
|
73
|
-
/** @type {Signal} */
|
|
74
|
-
onMarkerComplete: any;
|
|
75
|
-
/** @type {Signal} */
|
|
76
|
-
onFadeComplete: any;
|
|
77
|
-
/** @type {number} */
|
|
78
|
-
_volume: any;
|
|
79
|
-
/** @type {AudioBuffer | null} */
|
|
80
|
-
_buffer: any;
|
|
81
|
-
/** @type {boolean} */
|
|
82
|
-
_muted: any;
|
|
83
|
-
/** @type {string} */
|
|
84
|
-
_tempMarker: any;
|
|
85
|
-
/** @type {number} */
|
|
86
|
-
_tempPosition: any;
|
|
87
|
-
/** @type {number} */
|
|
88
|
-
_tempVolume: any;
|
|
89
|
-
/** @type {number} */
|
|
90
|
-
_tempPause: any;
|
|
91
|
-
/** @type {number} */
|
|
92
|
-
_muteVolume: any;
|
|
93
|
-
/** @type {boolean} */
|
|
94
|
-
_tempLoop: any;
|
|
9
|
+
context: AudioContext;
|
|
10
|
+
autoplay: boolean;
|
|
11
|
+
totalDuration: number;
|
|
12
|
+
startTime: number;
|
|
13
|
+
currentTime: number;
|
|
14
|
+
duration: number;
|
|
15
|
+
durationMS: number;
|
|
16
|
+
position: number;
|
|
17
|
+
stopTime: number;
|
|
18
|
+
paused: boolean;
|
|
19
|
+
pausedPosition: number;
|
|
20
|
+
pausedTime: number;
|
|
21
|
+
isPlaying: boolean;
|
|
22
|
+
currentMarker: string;
|
|
23
|
+
fadeTween: import('./tween.js').Tween | null;
|
|
24
|
+
pendingPlayback: boolean;
|
|
25
|
+
override: boolean;
|
|
26
|
+
allowMultiple: boolean;
|
|
27
|
+
externalNode: AudioNode | null;
|
|
28
|
+
masterGainNode: GainNode | null;
|
|
29
|
+
gainNode: GainNode | null;
|
|
30
|
+
_sound: AudioBufferSourceNode | null;
|
|
31
|
+
_markedToDelete: boolean;
|
|
32
|
+
_removeFromSoundManager: boolean;
|
|
33
|
+
onPlay: Signal;
|
|
34
|
+
onPause: Signal;
|
|
35
|
+
onResume: Signal;
|
|
36
|
+
onLoop: Signal;
|
|
37
|
+
onStop: Signal;
|
|
38
|
+
onMute: Signal;
|
|
39
|
+
onMarkerComplete: Signal;
|
|
40
|
+
onFadeComplete: Signal;
|
|
41
|
+
_volume: number;
|
|
42
|
+
_buffer: AudioBuffer | null;
|
|
43
|
+
_muted: boolean;
|
|
44
|
+
_tempMarker: string;
|
|
45
|
+
_tempPosition: number;
|
|
46
|
+
_tempVolume: number;
|
|
47
|
+
_tempPause: number;
|
|
48
|
+
_muteVolume: number;
|
|
49
|
+
_tempLoop: boolean;
|
|
95
50
|
/**
|
|
96
51
|
* Creates a new Sound instance.
|
|
97
52
|
* @param {import('./game.js').Game} game - Reference to the Phaser Game instance.
|
|
@@ -100,12 +55,12 @@ export declare class Sound {
|
|
|
100
55
|
* @param {boolean} loop - Whether the sound should loop.
|
|
101
56
|
* @param {boolean} connect - Whether to connect to the master gain node.
|
|
102
57
|
*/
|
|
103
|
-
constructor(game:
|
|
58
|
+
constructor(game: import('./game.js').Game, key: string, volume?: number, loop?: boolean, connect?: boolean);
|
|
104
59
|
/**
|
|
105
60
|
* Callback when a sound has been unlocked.
|
|
106
61
|
* @param {string} key - The key of the sound that was unlocked.
|
|
107
62
|
*/
|
|
108
|
-
soundHasUnlocked(key:
|
|
63
|
+
soundHasUnlocked(key: string): void;
|
|
109
64
|
/**
|
|
110
65
|
* Adds a marker to the sound.
|
|
111
66
|
* @param {string} name - The name of the marker.
|
|
@@ -114,12 +69,12 @@ export declare class Sound {
|
|
|
114
69
|
* @param {number} volume - The volume level (0.0 to 1.0) of the marker.
|
|
115
70
|
* @param {boolean} loop - Whether the marker should loop.
|
|
116
71
|
*/
|
|
117
|
-
addMarker(name:
|
|
72
|
+
addMarker(name: string, start: number, duration?: number, volume?: number, loop?: boolean): void;
|
|
118
73
|
/**
|
|
119
74
|
* Removes a marker from the sound.
|
|
120
75
|
* @param {string} name - The name of the marker to remove.
|
|
121
76
|
*/
|
|
122
|
-
removeMarker(name:
|
|
77
|
+
removeMarker(name: string): void;
|
|
123
78
|
/**
|
|
124
79
|
* Handler for when the sound ends.
|
|
125
80
|
*/
|
|
@@ -133,7 +88,7 @@ export declare class Sound {
|
|
|
133
88
|
* @param {number} volume - The volume level (0.0 to 1.0) to play at.
|
|
134
89
|
* @returns {Sound} This Sound instance for chaining.
|
|
135
90
|
*/
|
|
136
|
-
loopFull(volume:
|
|
91
|
+
loopFull(volume: number): this;
|
|
137
92
|
/**
|
|
138
93
|
* Plays the sound, optionally using a marker.
|
|
139
94
|
* @param {string} marker - The name of the marker to play, or null/undefined to play the entire sound.
|
|
@@ -143,7 +98,7 @@ export declare class Sound {
|
|
|
143
98
|
* @param {boolean} forceRestart - Whether to force restarting the sound even if it's already playing.
|
|
144
99
|
* @returns {Sound} This Sound instance for chaining.
|
|
145
100
|
*/
|
|
146
|
-
play(marker
|
|
101
|
+
play(marker?: any, position?: any, volume?: any, loop?: any, forceRestart?: boolean): this;
|
|
147
102
|
/**
|
|
148
103
|
* Restarts the sound, optionally using a marker.
|
|
149
104
|
* @param {string} marker - The name of the marker to play, or empty string to play the entire sound.
|
|
@@ -170,12 +125,12 @@ export declare class Sound {
|
|
|
170
125
|
* @param {boolean} loop - Whether the sound should loop.
|
|
171
126
|
* @param {string} marker - The name of the marker to fade in, or empty string to use current marker.
|
|
172
127
|
*/
|
|
173
|
-
fadeIn(duration:
|
|
128
|
+
fadeIn(duration: number, loop?: boolean, marker?: string): void;
|
|
174
129
|
/**
|
|
175
130
|
* Fades out the sound to silence.
|
|
176
131
|
* @param {number} duration - The fade-out duration (in milliseconds).
|
|
177
132
|
*/
|
|
178
|
-
fadeOut(duration:
|
|
133
|
+
fadeOut(duration: number): void;
|
|
179
134
|
/**
|
|
180
135
|
* Fades the sound to a specific volume level.
|
|
181
136
|
* @param {number} duration - The fade duration (in milliseconds).
|
|
@@ -204,10 +159,10 @@ export declare class Sound {
|
|
|
204
159
|
* Gets the volume of the sound.
|
|
205
160
|
* @returns {number} The volume level (0.0 to 1.0).
|
|
206
161
|
*/
|
|
207
|
-
get volume():
|
|
162
|
+
get volume(): number;
|
|
208
163
|
/**
|
|
209
164
|
* Sets the volume of the sound.
|
|
210
165
|
*/
|
|
211
|
-
set volume(value:
|
|
166
|
+
set volume(value: number);
|
|
212
167
|
}
|
|
213
168
|
//# sourceMappingURL=sound.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sound.d.ts","sourceRoot":"","sources":["../../../src/phaser/core/sound.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sound.d.ts","sourceRoot":"","sources":["../../../src/phaser/core/sound.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC,qBAAa,KAAK;IAChB,OAAO,EAAG,GAAG,CAAC;IACd,IAAI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,MAAM,GAAE,MAA2B;IAQnF;;;OAGG;IACH,OAAO,CAAC,QAAQ,EAAE,MAAM;IAIxB;;;;OAIG;IACH,MAAM,CAAC,QAAQ,GAAE,MAAY,EAAE,MAAM,GAAE,MAAU;IAQjD;;OAEG;IACH,YAAY;IAOZ;;;OAGG;IACH,OAAO,CAAC,MAAM,GAAE,OAAc;IAsB9B;;;OAGG;IACH,IAAI,IAAI,QAEP;IAED;;OAEG;IACH,IAAI,IAAI,CAAC,KAAK,KAAA,EAcb;IAED;;;OAGG;IACH,IAAI,MAAM,WAET;IAED;;OAEG;IACH,IAAI,MAAM,CAAC,KAAK,QAAA,EAQf;CACF"}
|
|
@@ -18,11 +18,13 @@ export declare class SoundManager {
|
|
|
18
18
|
_watching: any;
|
|
19
19
|
_watchCallback: any;
|
|
20
20
|
_watchContext: any;
|
|
21
|
+
masterGain: any;
|
|
22
|
+
_muteVolume: any;
|
|
21
23
|
/**
|
|
22
24
|
* Creates a new SoundManager instance.
|
|
23
25
|
* @param {import('./game.js').Game} game - Reference to the Phaser Game instance.
|
|
24
26
|
*/
|
|
25
|
-
constructor(game:
|
|
27
|
+
constructor(game: import('./game.js').Game);
|
|
26
28
|
/**
|
|
27
29
|
* Initializes the sound manager and sets up audio context.
|
|
28
30
|
*/
|
|
@@ -51,7 +53,7 @@ export declare class SoundManager {
|
|
|
51
53
|
* Handles unlock events to resume audio context.
|
|
52
54
|
* @param {Event} event - The DOM event that triggered the unlock.
|
|
53
55
|
*/
|
|
54
|
-
onUnlockEvent: (event:
|
|
56
|
+
onUnlockEvent: (event: Event) => void;
|
|
55
57
|
/**
|
|
56
58
|
* Stops all sounds in the manager.
|
|
57
59
|
*/
|
|
@@ -68,14 +70,14 @@ export declare class SoundManager {
|
|
|
68
70
|
* Decodes an audio file for playback.
|
|
69
71
|
* @param {string} key - The key of the sound to decode.
|
|
70
72
|
*/
|
|
71
|
-
decode(key:
|
|
73
|
+
decode(key: string): void;
|
|
72
74
|
/**
|
|
73
75
|
* Sets up a callback to be called when audio files are decoded.
|
|
74
76
|
* @param {Sound[]|string[]} files - The sound files or keys to wait for.
|
|
75
77
|
* @param {Function} callback - The callback function to call when all files are decoded.
|
|
76
78
|
* @param {object} callbackContext - The context in which to call the callback.
|
|
77
79
|
*/
|
|
78
|
-
setDecodedCallback(files: any, callback:
|
|
80
|
+
setDecodedCallback(files: any, callback: Function, callbackContext: any): void;
|
|
79
81
|
/**
|
|
80
82
|
* Updates the sound manager state.
|
|
81
83
|
*/
|
|
@@ -88,25 +90,25 @@ export declare class SoundManager {
|
|
|
88
90
|
* @param {boolean} connect - Whether to connect to the master gain node.
|
|
89
91
|
* @returns {Sound} The created Sound object.
|
|
90
92
|
*/
|
|
91
|
-
add(key:
|
|
93
|
+
add(key: string, volume?: number, loop?: boolean, connect?: boolean): Sound;
|
|
92
94
|
/**
|
|
93
95
|
* Adds a new sound sprite to the manager.
|
|
94
96
|
* @param {string} key - The key of the sound sprite to add.
|
|
95
97
|
* @returns {SoundSprite} The created SoundSprite object.
|
|
96
98
|
*/
|
|
97
|
-
addSprite(key:
|
|
99
|
+
addSprite(key: string): SoundSprite;
|
|
98
100
|
/**
|
|
99
101
|
* Removes a sound from the manager.
|
|
100
102
|
* @param {Sound | null | undefined} sound - The sound object to remove.
|
|
101
103
|
* @returns {boolean} True if the sound was removed, false otherwise.
|
|
102
104
|
*/
|
|
103
|
-
remove(sound:
|
|
105
|
+
remove(sound: Sound | null | undefined): boolean;
|
|
104
106
|
/**
|
|
105
107
|
* Removes all sounds with a specific key from the manager.
|
|
106
108
|
* @param {string} key - The key of sounds to remove.
|
|
107
109
|
* @returns {number} The number of sounds removed.
|
|
108
110
|
*/
|
|
109
|
-
removeByKey(key:
|
|
111
|
+
removeByKey(key: string): number;
|
|
110
112
|
/**
|
|
111
113
|
* Plays a sound by key.
|
|
112
114
|
* @param {string} key - The key of the sound to play.
|
|
@@ -114,7 +116,7 @@ export declare class SoundManager {
|
|
|
114
116
|
* @param {boolean} loop - Whether the sound should loop.
|
|
115
117
|
* @returns {Sound} The created Sound object, or null if audio is disabled.
|
|
116
118
|
*/
|
|
117
|
-
play(key:
|
|
119
|
+
play(key: string, volume?: number, loop?: boolean): Sound;
|
|
118
120
|
/**
|
|
119
121
|
* Mutes all sounds in the manager.
|
|
120
122
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sound_manager.d.ts","sourceRoot":"","sources":["../../../src/phaser/core/sound_manager.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sound_manager.d.ts","sourceRoot":"","sources":["../../../src/phaser/core/sound_manager.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,qBAAa,YAAY;IACvB,IAAI,EAAG,GAAG,CAAC;IACX,QAAQ,EAAG,GAAG,CAAC;IACf,OAAO,EAAG,GAAG,CAAC;IACd,WAAW,EAAG,GAAG,CAAC;IAClB,OAAO,EAAG,GAAG,CAAC;IACd,IAAI,EAAG,GAAG,CAAC;IACX,eAAe,EAAG,GAAG,CAAC;IACtB,QAAQ,EAAG,GAAG,CAAC;IACf,UAAU,EAAG,GAAG,CAAC;IACjB,MAAM,EAAG,GAAG,CAAC;IACb,aAAa,EAAG,GAAG,CAAC;IACpB,OAAO,EAAG,GAAG,CAAC;IACd,OAAO,EAAG,GAAG,CAAC;IACd,UAAU,EAAG,GAAG,CAAC;IACjB,SAAS,EAAG,GAAG,CAAC;IAChB,cAAc,EAAG,GAAG,CAAC;IACrB,aAAa,EAAG,GAAG,CAAC;IACpB,UAAU,EAAG,GAAG,CAAC;IACjB,WAAW,EAAG,GAAG,CAAC;IAClB;;;OAGG;gBACS,IAAI,EAAE,OAAO,WAAW,EAAE,IAAI;IAuB1C;;OAEG;IACH,IAAI;IAuDJ;;OAEG;IACH,qBAAqB,aAInB;IAEF;;OAEG;IACH,oBAAoB,aAMlB;IAEF;;OAEG;IACH,mBAAmB,aAUjB;IAEF;;OAEG;IACH,iBAAiB,aASf;IAEF;;OAEG;IACH,oBAAoB,aASlB;IAEF;;;OAGG;IACH,aAAa,GAAI,OAAO,KAAK,UAsC3B;IAEF;;OAEG;IACH,OAAO;IAWP;;OAEG;IACH,QAAQ;IAWR;;OAEG;IACH,SAAS;IAWT;;;OAGG;IACH,MAAM,CAAC,GAAG,EAAE,MAAM;IA2BlB;;;;;OAKG;IACH,kBAAkB,CAAC,KAAK,EAAE,GAAG,EAAE,QAAQ,EAAE,QAAQ,EAAE,eAAe,EAAE,GAAG;IAyBvE;;OAEG;IACH,MAAM;IAuBN;;;;;;;OAOG;IACH,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,GAAE,MAAU,EAAE,IAAI,GAAE,OAAe,EAAE,OAAO,GAAE,OAA8B;IAMnG;;;;OAIG;IACH,SAAS,CAAC,GAAG,EAAE,MAAM;IAIrB;;;;OAIG;IACH,MAAM,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI,GAAG,SAAS;IAatC;;;;OAIG;IACH,WAAW,CAAC,GAAG,EAAE,MAAM;IAcvB;;;;;;OAMG;IACH,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,GAAE,MAAU,EAAE,IAAI,GAAE,OAAe;IAS3D;;OAEG;IACH,OAAO;IAYP;;OAEG;IACH,SAAS;IAWT;;OAEG;IACH,OAAO;IAcP;;;OAGG;IACH,IAAI,IAAI,QAEP;IAED;;OAEG;IACH,IAAI,IAAI,CAAC,KAAK,KAAA,EAcb;IAED;;;OAGG;IACH,IAAI,MAAM,QAET;IAED;;OAEG;IACH,IAAI,MAAM,CAAC,KAAK,KAAA,EAYf;CACF"}
|
|
@@ -10,24 +10,24 @@ export declare class SoundSprite {
|
|
|
10
10
|
* @param {import('./game.js').Game} game - TBD.
|
|
11
11
|
* @param {string} key - TBD.
|
|
12
12
|
*/
|
|
13
|
-
constructor(game:
|
|
13
|
+
constructor(game: import('./game.js').Game, key: string);
|
|
14
14
|
/**
|
|
15
15
|
* TBD.
|
|
16
16
|
* @param {string} marker - TBD.
|
|
17
17
|
* @param {number} volume - TBD.
|
|
18
18
|
* @returns {import('./sound.js').Sound} TBD.
|
|
19
19
|
*/
|
|
20
|
-
play(marker:
|
|
20
|
+
play(marker: string, volume?: number): any;
|
|
21
21
|
/**
|
|
22
22
|
* TBD.
|
|
23
23
|
* @param {string} marker - TBD.
|
|
24
24
|
*/
|
|
25
|
-
stop(marker:
|
|
25
|
+
stop(marker: string): void;
|
|
26
26
|
/**
|
|
27
27
|
* TBD.
|
|
28
28
|
* @param {string} marker - TBD.
|
|
29
29
|
* @returns {import('./sound.js').Sound} TBD.
|
|
30
30
|
*/
|
|
31
|
-
get(marker:
|
|
31
|
+
get(marker: string): any;
|
|
32
32
|
}
|
|
33
33
|
//# sourceMappingURL=sound_sprite.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sound_sprite.d.ts","sourceRoot":"","sources":["../../../src/phaser/core/sound_sprite.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sound_sprite.d.ts","sourceRoot":"","sources":["../../../src/phaser/core/sound_sprite.ts"],"names":[],"mappings":"AAAA,qBAAa,WAAW;IACxB,IAAI,EAAG,GAAG,CAAC;IACX,GAAG,EAAG,GAAG,CAAC;IACV,MAAM,EAAG,GAAG,CAAC;IACb,WAAW,EAAG,GAAG,CAAC;IAClB,QAAQ,EAAG,GAAG,CAAC;IACf,MAAM,EAAG,GAAG,CAAC;IACX;;;;OAIG;gBACS,IAAI,EAAE,OAAO,WAAW,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM;IAqBvD;;;;;OAKG;IACH,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,GAAE,MAAU;IAIvC;;;OAGG;IACH,IAAI,CAAC,MAAM,EAAE,MAAM;IAUnB;;;;OAIG;IACH,GAAG,CAAC,MAAM,EAAE,MAAM;CAGnB"}
|
|
@@ -8,12 +8,12 @@ export declare class Stage extends DisplayObject {
|
|
|
8
8
|
* Creates a new Stage instance.
|
|
9
9
|
* @param {import('./game.js').Game} game - The game instance.
|
|
10
10
|
*/
|
|
11
|
-
constructor(game:
|
|
11
|
+
constructor(game: import('./game.js').Game);
|
|
12
12
|
/**
|
|
13
13
|
* Sets the background color of the stage.
|
|
14
14
|
* @param {number} color - The color to set as the background.
|
|
15
15
|
*/
|
|
16
|
-
setBackgroundColor(color:
|
|
16
|
+
setBackgroundColor(color: number): void;
|
|
17
17
|
/**
|
|
18
18
|
* Initializes the stage after game creation.
|
|
19
19
|
*/
|
|
@@ -33,7 +33,7 @@ export declare class Stage extends DisplayObject {
|
|
|
33
33
|
/**
|
|
34
34
|
* Updates the stage's transformation matrix.
|
|
35
35
|
*/
|
|
36
|
-
updateTransform():
|
|
36
|
+
updateTransform(): this;
|
|
37
37
|
/**
|
|
38
38
|
* Destroys the stage and cleans up resources.
|
|
39
39
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stage.d.ts","sourceRoot":"","sources":["../../../src/phaser/core/stage.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"stage.d.ts","sourceRoot":"","sources":["../../../src/phaser/core/stage.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAK7D,qBAAa,KAAM,SAAQ,aAAa;IAC9B,IAAI,EAAE,GAAG,CAAC;IACV,cAAc,EAAE,GAAG,CAAC;IAC5B,oBAAoB,EAAG,GAAG,CAAC;IAC3B,QAAQ,EAAG,GAAG,CAAC;IACf;;;OAGG;gBACS,IAAI,EAAE,OAAO,WAAW,EAAE,IAAI;IAsB1C;;;OAGG;IACH,kBAAkB,CAAC,KAAK,EAAE,MAAM;IAYhC;;OAEG;IACH,IAAI;IAKJ;;OAEG;IACH,SAAS;IAQT;;OAEG;IACH,MAAM;IAQN;;OAEG;IACH,UAAU;IAOV;;OAEG;IACH,eAAe,IAAI,IAAI;IAQvB;;OAEG;IACH,OAAO;IAOP;;;OAGG;IACH,IAAI,eAAe,QAElB;IAED;;OAEG;IACH,IAAI,eAAe,CAAC,KAAK,KAAA,EAExB;IAED;;;OAGG;IACH,IAAI,QAAQ,YAEX;IAED;;OAEG;IACH,IAAI,QAAQ,CAAC,KAAK,SAAA,EAEjB;CACF"}
|
|
@@ -31,7 +31,7 @@ export declare class Time {
|
|
|
31
31
|
* Creates a new Time instance.
|
|
32
32
|
* @param {import('./game.js').Game} game - Reference to the Phaser Game instance.
|
|
33
33
|
*/
|
|
34
|
-
constructor(game:
|
|
34
|
+
constructor(game: import('./game.js').Game);
|
|
35
35
|
/**
|
|
36
36
|
* Initializes the time manager and starts tracking time.
|
|
37
37
|
*/
|
|
@@ -41,7 +41,7 @@ export declare class Time {
|
|
|
41
41
|
* @param {Timer} timer - The Timer to add.
|
|
42
42
|
* @returns {Timer} The added Timer object.
|
|
43
43
|
*/
|
|
44
|
-
add(timer:
|
|
44
|
+
add(timer: Timer): Timer;
|
|
45
45
|
/**
|
|
46
46
|
* Creates a new Timer and adds it to the Time manager.
|
|
47
47
|
* @param {boolean} autoDestroy - Whether the timer should be automatically destroyed when it completes.
|
|
@@ -60,7 +60,7 @@ export declare class Time {
|
|
|
60
60
|
* Updates the Time manager with a new timestamp.
|
|
61
61
|
* @param {number} time - The new timestamp to use for updating.
|
|
62
62
|
*/
|
|
63
|
-
update(time:
|
|
63
|
+
update(time: number): void;
|
|
64
64
|
/**
|
|
65
65
|
* Updates all timers managed by the Time manager.
|
|
66
66
|
*/
|
|
@@ -87,13 +87,13 @@ export declare class Time {
|
|
|
87
87
|
* @param {number} since - The timestamp to calculate elapsed time from.
|
|
88
88
|
* @returns {number} The elapsed time in milliseconds.
|
|
89
89
|
*/
|
|
90
|
-
elapsedSince(since:
|
|
90
|
+
elapsedSince(since: number): number;
|
|
91
91
|
/**
|
|
92
92
|
* Gets the elapsed time in seconds since a given timestamp.
|
|
93
93
|
* @param {number} since - The timestamp to calculate elapsed time from.
|
|
94
94
|
* @returns {number} The elapsed time in seconds.
|
|
95
95
|
*/
|
|
96
|
-
elapsedSecondsSince(since:
|
|
96
|
+
elapsedSecondsSince(since: number): number;
|
|
97
97
|
/**
|
|
98
98
|
* Resets the time tracking values.
|
|
99
99
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"time.d.ts","sourceRoot":"","sources":["../../../src/phaser/core/time.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"time.d.ts","sourceRoot":"","sources":["../../../src/phaser/core/time.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAEnC,qBAAa,IAAI;IACjB,IAAI,EAAG,GAAG,CAAC;IACX,IAAI,EAAG,GAAG,CAAC;IACX,QAAQ,EAAG,GAAG,CAAC;IACf,GAAG,EAAG,GAAG,CAAC;IACV,OAAO,EAAG,GAAG,CAAC;IACd,SAAS,EAAG,GAAG,CAAC;IAChB,cAAc,EAAG,GAAG,CAAC;IACrB,WAAW,EAAG,GAAG,CAAC;IAClB,YAAY,EAAG,GAAG,CAAC;IACnB,cAAc,EAAG,GAAG,CAAC;IACrB,MAAM,EAAG,GAAG,CAAC;IACb,GAAG,EAAG,GAAG,CAAC;IACV,MAAM,EAAG,GAAG,CAAC;IACb,MAAM,EAAG,GAAG,CAAC;IACb,KAAK,EAAG,GAAG,CAAC;IACZ,KAAK,EAAG,GAAG,CAAC;IACZ,aAAa,EAAG,GAAG,CAAC;IACpB,UAAU,EAAG,GAAG,CAAC;IACjB,YAAY,EAAG,GAAG,CAAC;IACnB,MAAM,EAAG,GAAG,CAAC;IACb,WAAW,EAAG,GAAG,CAAC;IAClB,mBAAmB,EAAG,GAAG,CAAC;IAC1B,QAAQ,EAAG,GAAG,CAAC;IACf,eAAe,EAAG,GAAG,CAAC;IACtB,aAAa,EAAG,GAAG,CAAC;IACpB,YAAY,EAAG,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