@vpmedia/phaser 1.94.0 → 1.96.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.
Files changed (205) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/package.json +11 -11
  3. package/src/phaser/core/animation.js +79 -56
  4. package/src/phaser/core/animation_manager.js +55 -55
  5. package/src/phaser/core/animation_parser.js +2 -2
  6. package/src/phaser/core/cache.js +154 -154
  7. package/src/phaser/core/device.js +2 -1
  8. package/src/phaser/core/device_util.js +27 -27
  9. package/src/phaser/core/dom.js +43 -43
  10. package/src/phaser/core/event_manager.js +63 -63
  11. package/src/phaser/core/factory.js +47 -47
  12. package/src/phaser/core/frame.js +30 -30
  13. package/src/phaser/core/frame_data.js +30 -28
  14. package/src/phaser/core/frame_util.js +8 -8
  15. package/src/phaser/core/game.js +35 -19
  16. package/src/phaser/core/input_pointer.js +18 -0
  17. package/src/phaser/core/loader.js +171 -171
  18. package/src/phaser/core/loader_parser.js +22 -22
  19. package/src/phaser/core/raf.js +1 -1
  20. package/src/phaser/core/scale_manager.js +3 -2
  21. package/src/phaser/core/scene.js +16 -10
  22. package/src/phaser/core/scene_manager.js +51 -43
  23. package/src/phaser/core/signal.js +56 -52
  24. package/src/phaser/core/sound.js +54 -54
  25. package/src/phaser/core/sound_manager.js +49 -49
  26. package/src/phaser/core/stage.js +16 -16
  27. package/src/phaser/core/time.js +54 -30
  28. package/src/phaser/core/timer.js +82 -64
  29. package/src/phaser/core/timer_event.js +9 -9
  30. package/src/phaser/core/tween.js +106 -90
  31. package/src/phaser/core/tween_data.js +30 -30
  32. package/src/phaser/core/tween_manager.js +32 -24
  33. package/src/phaser/core/world.js +4 -3
  34. package/src/phaser/display/bitmap_text.js +72 -54
  35. package/src/phaser/display/button.js +48 -47
  36. package/src/phaser/display/canvas/buffer.js +8 -8
  37. package/src/phaser/display/canvas/graphics.js +8 -8
  38. package/src/phaser/display/canvas/masker.js +5 -5
  39. package/src/phaser/display/canvas/pool.js +18 -18
  40. package/src/phaser/display/canvas/renderer.js +17 -16
  41. package/src/phaser/display/canvas/tinter.js +22 -22
  42. package/src/phaser/display/canvas/util.js +42 -42
  43. package/src/phaser/display/display_object.js +119 -108
  44. package/src/phaser/display/graphics.js +129 -112
  45. package/src/phaser/display/graphics_data.js +10 -10
  46. package/src/phaser/display/graphics_data_util.js +3 -3
  47. package/src/phaser/display/group.js +63 -50
  48. package/src/phaser/display/image.js +68 -50
  49. package/src/phaser/display/sprite_batch.js +2 -2
  50. package/src/phaser/display/sprite_util.js +19 -19
  51. package/src/phaser/display/text.js +217 -187
  52. package/src/phaser/display/webgl/abstract_filter.js +4 -4
  53. package/src/phaser/display/webgl/base_texture.js +9 -9
  54. package/src/phaser/display/webgl/blend_manager.js +7 -7
  55. package/src/phaser/display/webgl/earcut.js +95 -95
  56. package/src/phaser/display/webgl/earcut_node.js +4 -4
  57. package/src/phaser/display/webgl/fast_sprite_batch.js +15 -15
  58. package/src/phaser/display/webgl/filter_manager.js +9 -9
  59. package/src/phaser/display/webgl/filter_texture.js +10 -10
  60. package/src/phaser/display/webgl/graphics.js +37 -37
  61. package/src/phaser/display/webgl/graphics_data.js +4 -4
  62. package/src/phaser/display/webgl/mask_manager.js +6 -6
  63. package/src/phaser/display/webgl/render_texture.js +16 -16
  64. package/src/phaser/display/webgl/renderer.js +21 -20
  65. package/src/phaser/display/webgl/shader/complex.js +4 -4
  66. package/src/phaser/display/webgl/shader/fast.js +4 -4
  67. package/src/phaser/display/webgl/shader/normal.js +8 -8
  68. package/src/phaser/display/webgl/shader/primitive.js +4 -4
  69. package/src/phaser/display/webgl/shader/strip.js +4 -4
  70. package/src/phaser/display/webgl/shader_manager.js +9 -9
  71. package/src/phaser/display/webgl/sprite_batch.js +18 -18
  72. package/src/phaser/display/webgl/stencil_manager.js +16 -16
  73. package/src/phaser/display/webgl/texture.js +13 -13
  74. package/src/phaser/display/webgl/texture_util.js +8 -8
  75. package/src/phaser/display/webgl/util.js +25 -25
  76. package/src/phaser/geom/circle.js +74 -69
  77. package/src/phaser/geom/ellipse.js +33 -28
  78. package/src/phaser/geom/line.js +96 -93
  79. package/src/phaser/geom/matrix.js +61 -54
  80. package/src/phaser/geom/point.js +99 -96
  81. package/src/phaser/geom/polygon.js +27 -22
  82. package/src/phaser/geom/rectangle.js +137 -132
  83. package/src/phaser/geom/rounded_rectangle.js +12 -12
  84. package/src/phaser/geom/util/circle.js +33 -33
  85. package/src/phaser/geom/util/ellipse.js +5 -5
  86. package/src/phaser/geom/util/line.js +26 -26
  87. package/src/phaser/geom/util/matrix.js +8 -8
  88. package/src/phaser/geom/util/point.js +97 -97
  89. package/src/phaser/geom/util/polygon.js +4 -4
  90. package/src/phaser/geom/util/rectangle.js +74 -74
  91. package/src/phaser/geom/util/rounded_rectangle.js +4 -4
  92. package/src/phaser/util/math.js +81 -81
  93. package/types/phaser/core/animation.d.ts +79 -56
  94. package/types/phaser/core/animation.d.ts.map +1 -1
  95. package/types/phaser/core/animation_manager.d.ts +55 -55
  96. package/types/phaser/core/animation_parser.d.ts +3 -2
  97. package/types/phaser/core/animation_parser.d.ts.map +1 -1
  98. package/types/phaser/core/cache.d.ts +154 -154
  99. package/types/phaser/core/device.d.ts.map +1 -1
  100. package/types/phaser/core/dom.d.ts +51 -44
  101. package/types/phaser/core/dom.d.ts.map +1 -1
  102. package/types/phaser/core/event_manager.d.ts +63 -63
  103. package/types/phaser/core/factory.d.ts +47 -47
  104. package/types/phaser/core/frame.d.ts +30 -30
  105. package/types/phaser/core/frame_data.d.ts +28 -27
  106. package/types/phaser/core/frame_data.d.ts.map +1 -1
  107. package/types/phaser/core/game.d.ts +54 -21
  108. package/types/phaser/core/game.d.ts.map +1 -1
  109. package/types/phaser/core/input_pointer.d.ts +18 -0
  110. package/types/phaser/core/input_pointer.d.ts.map +1 -1
  111. package/types/phaser/core/loader.d.ts +175 -172
  112. package/types/phaser/core/loader.d.ts.map +1 -1
  113. package/types/phaser/core/loader_parser.d.ts.map +1 -1
  114. package/types/phaser/core/raf.d.ts +1 -1
  115. package/types/phaser/core/scale_manager.d.ts +6 -5
  116. package/types/phaser/core/scale_manager.d.ts.map +1 -1
  117. package/types/phaser/core/scene.d.ts +15 -9
  118. package/types/phaser/core/scene.d.ts.map +1 -1
  119. package/types/phaser/core/scene_manager.d.ts +51 -43
  120. package/types/phaser/core/scene_manager.d.ts.map +1 -1
  121. package/types/phaser/core/signal.d.ts +54 -51
  122. package/types/phaser/core/signal.d.ts.map +1 -1
  123. package/types/phaser/core/sound.d.ts +54 -54
  124. package/types/phaser/core/sound_manager.d.ts +49 -49
  125. package/types/phaser/core/stage.d.ts +10 -10
  126. package/types/phaser/core/time.d.ts +54 -30
  127. package/types/phaser/core/time.d.ts.map +1 -1
  128. package/types/phaser/core/timer.d.ts +82 -64
  129. package/types/phaser/core/timer.d.ts.map +1 -1
  130. package/types/phaser/core/timer_event.d.ts +9 -9
  131. package/types/phaser/core/tween.d.ts +106 -90
  132. package/types/phaser/core/tween.d.ts.map +1 -1
  133. package/types/phaser/core/tween_data.d.ts +30 -30
  134. package/types/phaser/core/tween_manager.d.ts +35 -67
  135. package/types/phaser/core/tween_manager.d.ts.map +1 -1
  136. package/types/phaser/core/world.d.ts +4 -3
  137. package/types/phaser/core/world.d.ts.map +1 -1
  138. package/types/phaser/display/bitmap_text.d.ts +76 -53
  139. package/types/phaser/display/bitmap_text.d.ts.map +1 -1
  140. package/types/phaser/display/button.d.ts +47 -46
  141. package/types/phaser/display/button.d.ts.map +1 -1
  142. package/types/phaser/display/canvas/buffer.d.ts +8 -8
  143. package/types/phaser/display/canvas/graphics.d.ts +3 -3
  144. package/types/phaser/display/canvas/graphics.d.ts.map +1 -1
  145. package/types/phaser/display/canvas/pool.d.ts +6 -3
  146. package/types/phaser/display/canvas/pool.d.ts.map +1 -1
  147. package/types/phaser/display/canvas/renderer.d.ts +18 -17
  148. package/types/phaser/display/canvas/renderer.d.ts.map +1 -1
  149. package/types/phaser/display/canvas/util.d.ts +6 -6
  150. package/types/phaser/display/canvas/util.d.ts.map +1 -1
  151. package/types/phaser/display/display_object.d.ts +119 -108
  152. package/types/phaser/display/display_object.d.ts.map +1 -1
  153. package/types/phaser/display/graphics.d.ts +118 -102
  154. package/types/phaser/display/graphics.d.ts.map +1 -1
  155. package/types/phaser/display/graphics_data.d.ts +10 -10
  156. package/types/phaser/display/group.d.ts +59 -47
  157. package/types/phaser/display/group.d.ts.map +1 -1
  158. package/types/phaser/display/image.d.ts +58 -45
  159. package/types/phaser/display/image.d.ts.map +1 -1
  160. package/types/phaser/display/text.d.ts +237 -188
  161. package/types/phaser/display/text.d.ts.map +1 -1
  162. package/types/phaser/display/webgl/abstract_filter.d.ts +4 -4
  163. package/types/phaser/display/webgl/base_texture.d.ts +10 -10
  164. package/types/phaser/display/webgl/base_texture.d.ts.map +1 -1
  165. package/types/phaser/display/webgl/blend_manager.d.ts +6 -6
  166. package/types/phaser/display/webgl/earcut.d.ts +95 -95
  167. package/types/phaser/display/webgl/earcut_node.d.ts +4 -4
  168. package/types/phaser/display/webgl/fast_sprite_batch.d.ts +15 -15
  169. package/types/phaser/display/webgl/filter_manager.d.ts +8 -8
  170. package/types/phaser/display/webgl/filter_texture.d.ts +10 -10
  171. package/types/phaser/display/webgl/graphics.d.ts +2 -2
  172. package/types/phaser/display/webgl/graphics.d.ts.map +1 -1
  173. package/types/phaser/display/webgl/graphics_data.d.ts +4 -4
  174. package/types/phaser/display/webgl/render_texture.d.ts +16 -16
  175. package/types/phaser/display/webgl/renderer.d.ts +21 -20
  176. package/types/phaser/display/webgl/renderer.d.ts.map +1 -1
  177. package/types/phaser/display/webgl/shader/complex.d.ts +4 -4
  178. package/types/phaser/display/webgl/shader/fast.d.ts +4 -4
  179. package/types/phaser/display/webgl/shader/normal.d.ts +8 -8
  180. package/types/phaser/display/webgl/shader/primitive.d.ts +4 -4
  181. package/types/phaser/display/webgl/shader/strip.d.ts +4 -4
  182. package/types/phaser/display/webgl/shader_manager.d.ts +8 -8
  183. package/types/phaser/display/webgl/sprite_batch.d.ts +17 -17
  184. package/types/phaser/display/webgl/stencil_manager.d.ts +15 -15
  185. package/types/phaser/display/webgl/texture.d.ts +12 -12
  186. package/types/phaser/display/webgl/texture_util.d.ts +4 -2
  187. package/types/phaser/display/webgl/texture_util.d.ts.map +1 -1
  188. package/types/phaser/geom/circle.d.ts +74 -69
  189. package/types/phaser/geom/circle.d.ts.map +1 -1
  190. package/types/phaser/geom/ellipse.d.ts +33 -28
  191. package/types/phaser/geom/ellipse.d.ts.map +1 -1
  192. package/types/phaser/geom/line.d.ts +96 -93
  193. package/types/phaser/geom/line.d.ts.map +1 -1
  194. package/types/phaser/geom/matrix.d.ts +61 -54
  195. package/types/phaser/geom/matrix.d.ts.map +1 -1
  196. package/types/phaser/geom/point.d.ts +99 -96
  197. package/types/phaser/geom/point.d.ts.map +1 -1
  198. package/types/phaser/geom/polygon.d.ts +29 -23
  199. package/types/phaser/geom/polygon.d.ts.map +1 -1
  200. package/types/phaser/geom/rectangle.d.ts +137 -132
  201. package/types/phaser/geom/rectangle.d.ts.map +1 -1
  202. package/types/phaser/geom/rounded_rectangle.d.ts +12 -12
  203. package/types/phaser/geom/util/point.d.ts +1 -1
  204. package/types/phaser/geom/util/point.d.ts.map +1 -1
  205. package/pnpm-workspace.yaml +0 -4
@@ -1,14 +1,14 @@
1
1
  export class TimerEvent {
2
2
  /**
3
- * TBD.
4
- * @param {import('./timer.js').Timer} timer - TBD.
5
- * @param {number} delay - TBD.
6
- * @param {number} tick - TBD.
7
- * @param {number} repeatCount - TBD.
8
- * @param {boolean} loop - TBD.
9
- * @param {Function} callback - TBD.
10
- * @param {object} callbackContext - TBD.
11
- * @param {...any} args - TBD.
3
+ * Creates a new TimerEvent instance.
4
+ * @param {import('./timer.js').Timer} timer - Reference to the parent Timer.
5
+ * @param {number} delay - The delay (in milliseconds) before the event should occur.
6
+ * @param {number} tick - The tick (in milliseconds) at which the event should occur.
7
+ * @param {number} repeatCount - The number of times the event should repeat.
8
+ * @param {boolean} loop - Whether the event should loop.
9
+ * @param {Function} callback - The function to call when the event occurs.
10
+ * @param {object} callbackContext - The context in which to call the callback function.
11
+ * @param {...any} args - Arguments to pass to the callback function.
12
12
  */
13
13
  constructor(timer: import("./timer.js").Timer, delay: number, tick: number, repeatCount: number, loop: boolean, callback: Function, callbackContext: object, args: any[]);
14
14
  timer: import("./timer.js").Timer;
@@ -1,188 +1,204 @@
1
1
  export class Tween {
2
2
  /**
3
- * TBD.
4
- * @param {import('../display/display_object.js').DisplayObject} target - TBD.
5
- * @param {import('./game.js').Game} game - TBD.
6
- * @param {import('./tween_manager.js').TweenManager} manager - TBD.
3
+ * Creates a new Tween instance.
4
+ * @param {import('../display/display_object.js').DisplayObject} target - The object to tween.
5
+ * @param {import('./game.js').Game} game - Reference to the Phaser Game instance.
6
+ * @param {import('./tween_manager.js').TweenManager} manager - Reference to the Tween Manager.
7
7
  */
8
8
  constructor(target: import("../display/display_object.js").DisplayObject, game: import("./game.js").Game, manager: import("./tween_manager.js").TweenManager);
9
9
  game: import("./game.js").Game;
10
10
  target: import("../display/display_object.js").DisplayObject;
11
+ /** @type {import('./tween_manager.js').TweenManager} */
11
12
  manager: import("./tween_manager.js").TweenManager;
12
13
  /** @type {TweenData[]} */
13
14
  timeline: TweenData[];
15
+ /** @type {boolean} */
14
16
  reverse: boolean;
17
+ /** @type {number} */
15
18
  timeScale: number;
19
+ /** @type {number} */
16
20
  repeatCounter: number;
21
+ /** @type {boolean} */
17
22
  pendingDelete: boolean;
23
+ /** @type {Signal} */
18
24
  onStart: Signal;
25
+ /** @type {Signal} */
19
26
  onLoop: Signal;
27
+ /** @type {Signal} */
20
28
  onRepeat: Signal;
29
+ /** @type {Signal} */
21
30
  onChildComplete: Signal;
31
+ /** @type {Signal} */
22
32
  onComplete: Signal;
33
+ /** @type {boolean} */
23
34
  isRunning: boolean;
35
+ /** @type {number} */
24
36
  current: number;
25
37
  properties: {};
26
38
  chainedTween: any;
39
+ /** @type {boolean} */
27
40
  isPaused: boolean;
28
41
  _onUpdateCallback: Function;
29
42
  _onUpdateCallbackContext: any;
43
+ /** @type {number} */
30
44
  _pausedTime: number;
45
+ /** @type {boolean} */
31
46
  _codePaused: boolean;
47
+ /** @type {boolean} */
32
48
  _hasStarted: boolean;
33
49
  /**
34
- * TBD.
35
- * @param {object} properties - TBD.
36
- * @param {number} duration - TBD.
37
- * @param {string | Function} ease - TBD.
38
- * @param {boolean} autoStart - TBD.
39
- * @param {number} delay - TBD.
40
- * @param {number} repeat - TBD.
41
- * @param {boolean} yoyo - TBD.
42
- * @returns {Tween} TBD.
50
+ * Adds a tween to the timeline that animates properties to their target values.
51
+ * @param {object} properties - The properties to tween and their target values.
52
+ * @param {number} duration - The duration of the tween in milliseconds.
53
+ * @param {string | Function} ease - The easing function to use.
54
+ * @param {boolean} autoStart - Whether to start the tween immediately.
55
+ * @param {number} delay - The delay before starting the tween in milliseconds.
56
+ * @param {number} repeat - Number of times to repeat the tween.
57
+ * @param {boolean} yoyo - Whether to reverse the tween on repeat.
58
+ * @returns {Tween} This Tween object for chaining.
43
59
  */
44
60
  to(properties: object, duration?: number, ease?: string | Function, autoStart?: boolean, delay?: number, repeat?: number, yoyo?: boolean): Tween;
45
61
  /**
46
- * TBD.
47
- * @param {object} properties - TBD.
48
- * @param {number} duration - TBD.
49
- * @param {string | Function} ease - TBD.
50
- * @param {boolean} autoStart - TBD.
51
- * @param {number} delay - TBD.
52
- * @param {number} repeat - TBD.
53
- * @param {boolean} yoyo - TBD.
54
- * @returns {Tween} TBD.
62
+ * Adds a tween to the timeline that animates properties from their current values.
63
+ * @param {object} properties - The properties to tween and their target values.
64
+ * @param {number} duration - The duration of the tween in milliseconds.
65
+ * @param {string | Function} ease - The easing function to use.
66
+ * @param {boolean} autoStart - Whether to start the tween immediately.
67
+ * @param {number} delay - The delay before starting the tween in milliseconds.
68
+ * @param {number} repeat - Number of times to repeat the tween.
69
+ * @param {boolean} yoyo - Whether to reverse the tween on repeat.
70
+ * @returns {Tween} This Tween object for chaining.
55
71
  */
56
72
  from(properties: object, duration?: number, ease?: string | Function, autoStart?: boolean, delay?: number, repeat?: number, yoyo?: boolean): Tween;
57
73
  /**
58
- * TBD.
59
- * @param {number} index - TBD.
60
- * @returns {Tween} TBD.
74
+ * Starts the tween timeline from a specific index.
75
+ * @param {number} index - The index to start from in the timeline.
76
+ * @returns {Tween} This Tween object for chaining.
61
77
  */
62
78
  start(index?: number): Tween;
63
79
  /**
64
- * TBD.
65
- * @param {boolean} complete - TBD.
66
- * @returns {Tween} TBD.
80
+ * Stops the tween and optionally completes it.
81
+ * @param {boolean} complete - Whether to dispatch the complete event.
82
+ * @returns {Tween} This Tween object for chaining.
67
83
  */
68
84
  stop(complete?: boolean): Tween;
69
85
  /**
70
- * TBD.
71
- * @param {string} property - TBD.
72
- * @param {object} value - TBD.
73
- * @param {number} index - TBD.
74
- * @returns {Tween} TBD.
86
+ * Updates a property in the tween data.
87
+ * @param {string} property - The property name to update.
88
+ * @param {object} value - The new value for the property.
89
+ * @param {number} index - The index in the timeline to update.
90
+ * @returns {Tween} This Tween object for chaining.
75
91
  */
76
92
  updateTweenData(property: string, value: object, index?: number): Tween;
77
93
  /**
78
- * TBD.
79
- * @param {number} duration - TBD.
80
- * @param {number} index - TBD.
81
- * @returns {Tween} TBD.
94
+ * Sets a delay for a specific timeline entry.
95
+ * @param {number} duration - The delay in milliseconds.
96
+ * @param {number} index - The index in the timeline to apply the delay to.
97
+ * @returns {Tween} This Tween object for chaining.
82
98
  */
83
99
  delay(duration: number, index: number): Tween;
84
100
  /**
85
- * TBD.
86
- * @param {number} total - TBD.
87
- * @param {number} repeatDelay - TBD.
88
- * @param {number} index - TBD.
89
- * @returns {Tween} TBD.
101
+ * Sets how many times to repeat the tween.
102
+ * @param {number} total - The number of times to repeat (-1 for infinite).
103
+ * @param {number} repeatDelay - Delay between repeats in milliseconds.
104
+ * @param {number} index - The index in the timeline to apply the repeat to.
105
+ * @returns {Tween} This Tween object for chaining.
90
106
  */
91
107
  repeat(total: number, repeatDelay?: number, index?: number): Tween;
92
108
  /**
93
- * TBD.
94
- * @param {number} duration - TBD.
95
- * @param {number} index - TBD.
96
- * @returns {Tween} TBD.
109
+ * Sets the repeat delay for a specific timeline entry.
110
+ * @param {number} duration - The delay between repeats in milliseconds.
111
+ * @param {number} index - The index in the timeline to apply the delay to.
112
+ * @returns {Tween} This Tween object for chaining.
97
113
  */
98
114
  repeatDelay(duration: number, index: number): Tween;
99
115
  /**
100
- * TBD.
101
- * @param {boolean} enable - TBD.
102
- * @param {number} yoyoDelay - TBD.
103
- * @param {number} index - TBD.
104
- * @returns {Tween} TBD.
116
+ * Enables or disables yoyo behavior for a timeline entry.
117
+ * @param {boolean} enable - Whether to enable yoyo behavior.
118
+ * @param {number} yoyoDelay - Delay between yoyo cycles in milliseconds.
119
+ * @param {number} index - The index in the timeline to apply yoyo to.
120
+ * @returns {Tween} This Tween object for chaining.
105
121
  */
106
122
  yoyo(enable: boolean, yoyoDelay?: number, index?: number): Tween;
107
123
  /**
108
- * TBD.
109
- * @param {number} duration - TBD.
110
- * @param {number} index - TBD.
111
- * @returns {Tween} TBD.
124
+ * Sets the yoyo delay for a specific timeline entry.
125
+ * @param {number} duration - The delay between yoyo cycles in milliseconds.
126
+ * @param {number} index - The index in the timeline to apply the delay to.
127
+ * @returns {Tween} This Tween object for chaining.
112
128
  */
113
129
  yoyoDelay(duration: number, index: number): Tween;
114
130
  /**
115
- * TBD.
116
- * @param {string|Function} ease - TBD.
117
- * @param {number} index - TBD.
118
- * @returns {Tween} TBD.
131
+ * Sets the easing function for a timeline entry.
132
+ * @param {string|Function} ease - The easing function to use.
133
+ * @param {number} index - The index in the timeline to apply easing to.
134
+ * @returns {Tween} This Tween object for chaining.
119
135
  */
120
136
  easing(ease: string | Function, index: number): Tween;
121
137
  /**
122
- * TBD.
123
- * @param {Function} interpolation - TBD.
124
- * @param {object} context - TBD.
125
- * @param {number} index - TBD.
126
- * @returns {Tween} TBD.
138
+ * Sets the interpolation function for a timeline entry.
139
+ * @param {Function} interpolation - The interpolation function to use.
140
+ * @param {object} context - The context in which to call the interpolation function.
141
+ * @param {number} index - The index in the timeline to apply interpolation to.
142
+ * @returns {Tween} This Tween object for chaining.
127
143
  */
128
144
  interpolation(interpolation: Function, context?: object, index?: number): Tween;
129
145
  /**
130
- * TBD.
131
- * @param {number} total - TBD.
132
- * @returns {Tween} TBD.
146
+ * Sets how many times to repeat all timeline entries.
147
+ * @param {number} total - The number of times to repeat (-1 for infinite).
148
+ * @returns {Tween} This Tween object for chaining.
133
149
  */
134
150
  repeatAll(total?: number): Tween;
135
151
  /**
136
- * TBD.
137
- * @param {...any} args - TBD.
138
- * @returns {Tween} TBD.
152
+ * Chains one or more tweens to this tween.
153
+ * @param {...any} args - The tweens to chain.
154
+ * @returns {Tween} This Tween object for chaining.
139
155
  */
140
156
  chain(...args: any[]): Tween;
141
157
  /**
142
- * TBD.
143
- * @param {boolean} value - TBD.
144
- * @returns {Tween} TBD.
158
+ * Sets whether the tween should loop infinitely.
159
+ * @param {boolean} value - Whether to loop infinitely.
160
+ * @returns {Tween} This Tween object for chaining.
145
161
  */
146
162
  loop(value?: boolean): Tween;
147
163
  /**
148
- * TBD.
149
- * @param {Function} callback - TBD.
150
- * @param {object} callbackContext - TBD.
151
- * @returns {Tween} TBD.
164
+ * Sets a callback to be called when the tween updates.
165
+ * @param {Function} callback - The callback function to call.
166
+ * @param {object} callbackContext - The context in which to call the callback.
167
+ * @returns {Tween} This Tween object for chaining.
152
168
  */
153
169
  onUpdateCallback(callback: Function, callbackContext: object): Tween;
154
170
  /**
155
- * TBD.
171
+ * Pauses the tween.
156
172
  */
157
173
  pause(): void;
158
174
  /**
159
- * TBD.
175
+ * Internal method to pause the tween.
160
176
  */
161
177
  _pause(): void;
162
178
  /**
163
- * TBD.
179
+ * Resumes the tween.
164
180
  */
165
181
  resume(): void;
166
182
  /**
167
- * TBD.
183
+ * Internal method to resume the tween.
168
184
  */
169
185
  _resume(): void;
170
186
  /**
171
- * TBD.
172
- * @param {number} time - TBD.
173
- * @returns {boolean} TBD.
187
+ * Updates the tween state at a given time.
188
+ * @param {number} time - The current game time.
189
+ * @returns {boolean} True if the tween should continue running, false if it's complete.
174
190
  */
175
191
  update(time: number): boolean;
176
192
  /**
177
- * TBD.
178
- * @param {number} frameRate - TBD.
179
- * @param {object[]} data - TBD.
180
- * @returns {object[]} TBD.
193
+ * Generates animation data for a given frame rate.
194
+ * @param {number} frameRate - The target frame rate.
195
+ * @param {object[]} data - The array to store the generated data in.
196
+ * @returns {object[]} The populated data array.
181
197
  */
182
198
  generateData(frameRate?: number, data?: object[]): object[];
183
199
  /**
184
- * TBD.
185
- * @returns {number} TBD.
200
+ * Gets the total duration of all timeline entries.
201
+ * @returns {number} The total duration in milliseconds.
186
202
  */
187
203
  get totalDuration(): number;
188
204
  }
@@ -1 +1 @@
1
- {"version":3,"file":"tween.d.ts","sourceRoot":"","sources":["../../../src/phaser/core/tween.js"],"names":[],"mappings":"AAKA;IACE;;;;;OAKG;IACH,oBAJW,OAAO,8BAA8B,EAAE,aAAa,QACpD,OAAO,WAAW,EAAE,IAAI,WACxB,OAAO,oBAAoB,EAAE,YAAY,EA2BnD;IAxBC,+BAAgB;IAChB,6DAAoB;IACpB,mDAAsB;IACtB,0BAA0B;IAC1B,UADW,SAAS,EAAE,CACJ;IAClB,iBAAoB;IACpB,kBAAkB;IAClB,sBAAsB;IACtB,uBAA0B;IAC1B,gBAA2B;IAC3B,eAA0B;IAC1B,iBAA4B;IAC5B,wBAAmC;IACnC,mBAA8B;IAC9B,mBAAsB;IACtB,gBAAgB;IAChB,eAAoB;IACpB,kBAAwB;IACxB,kBAAqB;IACrB,4BAA6B;IAC7B,8BAAoC;IACpC,oBAAoB;IACpB,qBAAwB;IACxB,qBAAwB;IAG1B;;;;;;;;;;OAUG;IACH,eATW,MAAM,aACN,MAAM,SACN,MAAM,WAAW,cACjB,OAAO,UACP,MAAM,WACN,MAAM,SACN,OAAO,GACL,KAAK,CAejB;IAED;;;;;;;;;;OAUG;IACH,iBATW,MAAM,aACN,MAAM,SACN,MAAM,WAAW,cACjB,OAAO,UACP,MAAM,WACN,MAAM,SACN,OAAO,GACL,KAAK,CAgBjB;IAED;;;;OAIG;IACH,cAHW,MAAM,GACJ,KAAK,CA8BjB;IAED;;;;OAIG;IACH,gBAHW,OAAO,GACL,KAAK,CAejB;IAED;;;;;;OAMG;IACH,0BALW,MAAM,SACN,MAAM,UACN,MAAM,GACJ,KAAK,CAcjB;IAED;;;;;OAKG;IACH,gBAJW,MAAM,SACN,MAAM,GACJ,KAAK,CAIjB;IAED;;;;;;OAMG;IACH,cALW,MAAM,gBACN,MAAM,UACN,MAAM,GACJ,KAAK,CAKjB;IAED;;;;;OAKG;IACH,sBAJW,MAAM,SACN,MAAM,GACJ,KAAK,CAIjB;IAED;;;;;;OAMG;IACH,aALW,OAAO,cACP,MAAM,UACN,MAAM,GACJ,KAAK,CAKjB;IAED;;;;;OAKG;IACH,oBAJW,MAAM,SACN,MAAM,GACJ,KAAK,CAIjB;IAED;;;;;OAKG;IACH,aAJW,MAAM,WAAS,SACf,MAAM,GACJ,KAAK,CAOjB;IAED;;;;;;OAMG;IACH,iDAJW,MAAM,UACN,MAAM,GACJ,KAAK,CAKjB;IAED;;;;OAIG;IACH,kBAHW,MAAM,GACJ,KAAK,CAKjB;IAED;;;;OAIG;IACH,eAHc,GAAG,EAAA,GACJ,KAAK,CAajB;IAED;;;;OAIG;IACH,aAHW,OAAO,GACL,KAAK,CAKjB;IAED;;;;;OAKG;IACH,sDAHW,MAAM,GACJ,KAAK,CAMjB;IAED;;OAEG;IACH,cAIC;IAED;;OAEG;IACH,eAKC;IAED;;OAEG;IACH,eAUC;IAED;;OAEG;IACH,gBAIC;IAED;;;;OAIG;IACH,aAHW,MAAM,GACJ,OAAO,CA8EnB;IAED;;;;;OAKG;IACH,yBAJW,MAAM,SACN,MAAM,EAAE,GACN,MAAM,EAAE,CA0BpB;IAED;;;OAGG;IACH,qBAFa,MAAM,CAQlB;CACF;0BA/cyB,iBAAiB;uBADpB,aAAa"}
1
+ {"version":3,"file":"tween.d.ts","sourceRoot":"","sources":["../../../src/phaser/core/tween.js"],"names":[],"mappings":"AAKA;IACE;;;;;OAKG;IACH,oBAJW,OAAO,8BAA8B,EAAE,aAAa,QACpD,OAAO,WAAW,EAAE,IAAI,WACxB,OAAO,oBAAoB,EAAE,YAAY,EA2CnD;IAxCC,+BAAgB;IAChB,6DAAoB;IACpB,wDAAwD;IACxD,SADW,OAAO,oBAAoB,EAAE,YAAY,CAC9B;IACtB,0BAA0B;IAC1B,UADW,SAAS,EAAE,CACJ;IAClB,sBAAsB;IACtB,SADW,OAAO,CACE;IACpB,qBAAqB;IACrB,WADW,MAAM,CACC;IAClB,qBAAqB;IACrB,eADW,MAAM,CACK;IACtB,sBAAsB;IACtB,eADW,OAAO,CACQ;IAC1B,qBAAqB;IACrB,SADW,MAAM,CACU;IAC3B,qBAAqB;IACrB,QADW,MAAM,CACS;IAC1B,qBAAqB;IACrB,UADW,MAAM,CACW;IAC5B,qBAAqB;IACrB,iBADW,MAAM,CACkB;IACnC,qBAAqB;IACrB,YADW,MAAM,CACa;IAC9B,sBAAsB;IACtB,WADW,OAAO,CACI;IACtB,qBAAqB;IACrB,SADW,MAAM,CACD;IAChB,eAAoB;IACpB,kBAAwB;IACxB,sBAAsB;IACtB,UADW,OAAO,CACG;IACrB,4BAA6B;IAC7B,8BAAoC;IACpC,qBAAqB;IACrB,aADW,MAAM,CACG;IACpB,sBAAsB;IACtB,aADW,OAAO,CACM;IACxB,sBAAsB;IACtB,aADW,OAAO,CACM;IAG1B;;;;;;;;;;OAUG;IACH,eATW,MAAM,aACN,MAAM,SACN,MAAM,WAAW,cACjB,OAAO,UACP,MAAM,WACN,MAAM,SACN,OAAO,GACL,KAAK,CAejB;IAED;;;;;;;;;;OAUG;IACH,iBATW,MAAM,aACN,MAAM,SACN,MAAM,WAAW,cACjB,OAAO,UACP,MAAM,WACN,MAAM,SACN,OAAO,GACL,KAAK,CAgBjB;IAED;;;;OAIG;IACH,cAHW,MAAM,GACJ,KAAK,CA8BjB;IAED;;;;OAIG;IACH,gBAHW,OAAO,GACL,KAAK,CAejB;IAED;;;;;;OAMG;IACH,0BALW,MAAM,SACN,MAAM,UACN,MAAM,GACJ,KAAK,CAcjB;IAED;;;;;OAKG;IACH,gBAJW,MAAM,SACN,MAAM,GACJ,KAAK,CAIjB;IAED;;;;;;OAMG;IACH,cALW,MAAM,gBACN,MAAM,UACN,MAAM,GACJ,KAAK,CAKjB;IAED;;;;;OAKG;IACH,sBAJW,MAAM,SACN,MAAM,GACJ,KAAK,CAIjB;IAED;;;;;;OAMG;IACH,aALW,OAAO,cACP,MAAM,UACN,MAAM,GACJ,KAAK,CAKjB;IAED;;;;;OAKG;IACH,oBAJW,MAAM,SACN,MAAM,GACJ,KAAK,CAIjB;IAED;;;;;OAKG;IACH,aAJW,MAAM,WAAS,SACf,MAAM,GACJ,KAAK,CAOjB;IAED;;;;;;OAMG;IACH,iDAJW,MAAM,UACN,MAAM,GACJ,KAAK,CAKjB;IAED;;;;OAIG;IACH,kBAHW,MAAM,GACJ,KAAK,CAKjB;IAED;;;;OAIG;IACH,eAHc,GAAG,EAAA,GACJ,KAAK,CAajB;IAED;;;;OAIG;IACH,aAHW,OAAO,GACL,KAAK,CAKjB;IAED;;;;;OAKG;IACH,sDAHW,MAAM,GACJ,KAAK,CAMjB;IAED;;OAEG;IACH,cAIC;IAED;;OAEG;IACH,eAKC;IAED;;OAEG;IACH,eAUC;IAED;;OAEG;IACH,gBAIC;IAED;;;;OAIG;IACH,aAHW,MAAM,GACJ,OAAO,CA8EnB;IAED;;;;;OAKG;IACH,yBAJW,MAAM,SACN,MAAM,EAAE,GACN,MAAM,EAAE,CA0BpB;IAED;;;OAGG;IACH,qBAFa,MAAM,CAQlB;CACF;0BA/dyB,iBAAiB;uBADpB,aAAa"}
@@ -1,7 +1,7 @@
1
1
  export class TweenData {
2
2
  /**
3
- * TBD.
4
- * @param {import('./tween.js').Tween} parent - TBD.
3
+ * Creates a new TweenData instance.
4
+ * @param {import('./tween.js').Tween} parent - The parent Tween instance.
5
5
  */
6
6
  constructor(parent: import("./tween.js").Tween);
7
7
  parent: import("./tween.js").Tween;
@@ -29,53 +29,53 @@ export class TweenData {
29
29
  isRunning: boolean;
30
30
  isFrom: boolean;
31
31
  /**
32
- * TBD.
33
- * @param {object} properties - TBD.
34
- * @param {number} duration - TBD.
35
- * @param {(number) => number} ease - TBD.
36
- * @param {number} delay - TBD.
37
- * @param {number} repeat - TBD.
38
- * @param {boolean} yoyo - TBD.
39
- * @returns {TweenData} TBD.
32
+ * Sets the target properties to tween to.
33
+ * @param {object} properties - The properties to tween to.
34
+ * @param {number} duration - The duration of the tween in milliseconds.
35
+ * @param {(number) => number} ease - The easing function to use.
36
+ * @param {number} delay - The delay before starting the tween in milliseconds.
37
+ * @param {number} repeat - The number of times to repeat the tween (0 = no repeat, -1 = infinite).
38
+ * @param {boolean} yoyo - Whether to reverse the tween on each repeat.
39
+ * @returns {TweenData} This TweenData object for chaining.
40
40
  */
41
41
  to(properties: object, duration: number, ease: (number: any) => number, delay: number, repeat: number, yoyo: boolean): TweenData;
42
42
  /**
43
- * TBD.
44
- * @param {object} properties - TBD.
45
- * @param {number} duration - TBD.
46
- * @param {(number) => number} ease - TBD.
47
- * @param {number} delay - TBD.
48
- * @param {number} repeat - TBD.
49
- * @param {boolean} yoyo - TBD.
50
- * @returns {TweenData} TBD.
43
+ * Sets the target properties to tween from (in reverse).
44
+ * @param {object} properties - The properties to tween from.
45
+ * @param {number} duration - The duration of the tween in milliseconds.
46
+ * @param {(number) => number} ease - The easing function to use.
47
+ * @param {number} delay - The delay before starting the tween in milliseconds.
48
+ * @param {number} repeat - The number of times to repeat the tween (0 = no repeat, -1 = infinite).
49
+ * @param {boolean} yoyo - Whether to reverse the tween on each repeat.
50
+ * @returns {TweenData} This TweenData object for chaining.
51
51
  */
52
52
  from(properties: object, duration: number, ease: (number: any) => number, delay: number, repeat: number, yoyo: boolean): TweenData;
53
53
  /**
54
- * TBD.
55
- * @returns {TweenData} TBD.
54
+ * Starts the tween.
55
+ * @returns {TweenData} This TweenData object for chaining.
56
56
  */
57
57
  start(): TweenData;
58
58
  yoyoCounter: number;
59
59
  /**
60
- * TBD.
61
- * @returns {TweenData} TBD.
60
+ * Loads the tween values from the parent object.
61
+ * @returns {TweenData} This TweenData object for chaining.
62
62
  */
63
63
  loadValues(): TweenData;
64
64
  /**
65
- * TBD.
66
- * @param {number} time - TBD.
67
- * @returns {number} TBD.
65
+ * Updates the tween at a given time.
66
+ * @param {number} time - The current time in milliseconds.
67
+ * @returns {number} The tween status (TWEEN_PENDING, TWEEN_RUNNING, or TWEEN_COMPLETE).
68
68
  */
69
69
  update(time: number): number;
70
70
  /**
71
- * TBD.
72
- * @param {number} frameRate - TBD.
73
- * @returns {object[]} TBD.
71
+ * Generates an array of tween data points for a given frame rate.
72
+ * @param {number} frameRate - The frame rate to generate data for.
73
+ * @returns {object[]} An array of tween data points.
74
74
  */
75
75
  generateData(frameRate: number): object[];
76
76
  /**
77
- * TBD.
78
- * @returns {number} TBD.
77
+ * Handles tween repetition logic.
78
+ * @returns {number} The tween status (TWEEN_LOOPED or TWEEN_COMPLETE).
79
79
  */
80
80
  repeat(): number;
81
81
  }
@@ -1,111 +1,79 @@
1
1
  export class TweenManager {
2
2
  /**
3
- * TBD.
4
- * @param {import('./game.js').Game} game - TBD.
3
+ * Creates a new TweenManager instance.
4
+ * @param {import('./game.js').Game} game - The game instance this manager belongs to.
5
5
  */
6
6
  constructor(game: import("./game.js").Game);
7
7
  game: import("./game.js").Game;
8
- _tweens: any[];
9
- _add: any[];
8
+ /** @type {Tween[]} */
9
+ _tweens: Tween[];
10
+ /** @type {Tween[]} */
11
+ _add: Tween[];
12
+ /** @type {{[key: string]: (k: number) => number}} */
10
13
  easeMap: {
11
- Linear: (k: number) => number;
12
- Quad: (k: number) => number;
13
- Cubic: (k: number) => number;
14
- Quart: (k: number) => number;
15
- Quint: (k: number) => number;
16
- Sine: (k: number) => number;
17
- Expo: (k: number) => number;
18
- Circ: (k: number) => number;
19
- Elastic: (k: number) => number;
20
- Back: (k: number) => number;
21
- Bounce: (k: number) => number;
22
- 'Quad.easeIn': (k: number) => number;
23
- 'Cubic.easeIn': (k: number) => number;
24
- 'Quart.easeIn': (k: number) => number;
25
- 'Quint.easeIn': (k: number) => number;
26
- 'Sine.easeIn': (k: number) => number;
27
- 'Expo.easeIn': (k: number) => number;
28
- 'Circ.easeIn': (k: number) => number;
29
- 'Elastic.easeIn': (k: number) => number;
30
- 'Back.easeIn': (k: number) => number;
31
- 'Bounce.easeIn': (k: number) => number;
32
- 'Quad.easeOut': (k: number) => number;
33
- 'Cubic.easeOut': (k: number) => number;
34
- 'Quart.easeOut': (k: number) => number;
35
- 'Quint.easeOut': (k: number) => number;
36
- 'Sine.easeOut': (k: number) => number;
37
- 'Expo.easeOut': (k: number) => number;
38
- 'Circ.easeOut': (k: number) => number;
39
- 'Elastic.easeOut': (k: number) => number;
40
- 'Back.easeOut': (k: number) => number;
41
- 'Bounce.easeOut': (k: number) => number;
42
- 'Quad.easeInOut': (k: number) => number;
43
- 'Cubic.easeInOut': (k: number) => number;
44
- 'Quart.easeInOut': (k: number) => number;
45
- 'Quint.easeInOut': (k: number) => number;
46
- 'Sine.easeInOut': (k: number) => number;
47
- 'Expo.easeInOut': (k: number) => number;
48
- 'Circ.easeInOut': (k: number) => number;
49
- 'Elastic.easeInOut': (k: number) => number;
50
- 'Back.easeInOut': (k: number) => number;
51
- 'Bounce.easeInOut': (k: number) => number;
14
+ [key: string]: (k: number) => number;
52
15
  };
53
16
  /**
54
- * TBD.
55
- * @returns {Tween[]} TBD.
17
+ * Get all tweens managed by this manager.
18
+ * @returns {Tween[]} An array of all active tweens.
56
19
  */
57
20
  getAll(): Tween[];
58
21
  /**
59
- * TBD.
22
+ * Remove all tweens from the manager.
23
+ * This method removes all active and pending tweens.
60
24
  */
61
25
  removeAll(): void;
62
26
  /**
63
- * TBD.
64
- * @param {object} obj - TBD.
65
- * @param {object[]} children - TBD.
27
+ * Remove tweens associated with an object or its children.
28
+ * @param {object} obj - The object to remove tweens from.
29
+ * @param {object[]} children - Optional array of child objects to remove tweens from.
66
30
  */
67
31
  removeFrom(obj: object, children?: object[]): void;
68
32
  /**
69
- * TBD.
70
- * @param {Tween} tween - TBD.
33
+ * Add a tween to the manager.
34
+ * @param {Tween} tween - The tween to add.
71
35
  */
72
36
  add(tween: Tween): void;
73
37
  /**
74
- * TBD.
75
- * @param {object} object - TBD.
76
- * @returns {Tween} TBD.
38
+ * Create a new tween for an object.
39
+ * @param {object} object - The object to create a tween for.
40
+ * @returns {Tween} The created Tween object.
77
41
  */
78
42
  create(object: object): Tween;
79
43
  /**
80
- * TBD.
81
- * @param {Tween | null | undefined} tween - TBD.
44
+ * Remove a tween from the manager.
45
+ * @param {Tween | null | undefined} tween - The tween to remove.
82
46
  */
83
47
  remove(tween: Tween | null | undefined): void;
84
48
  /**
85
- * TBD.
86
- * @returns {boolean} TBD.
49
+ * Update all tweens managed by this manager.
50
+ * @returns {boolean} True if any tweens were updated, false otherwise.
87
51
  */
88
52
  update(): boolean;
89
53
  /**
90
- * TBD.
91
- * @param {object} object - TBD.
92
- * @returns {boolean} TBD.
54
+ * Check if an object is currently being tweened.
55
+ * @param {object} object - The object to check.
56
+ * @returns {boolean} True if the object is being tweened, false otherwise.
93
57
  */
94
58
  isTweening(object: object): boolean;
95
59
  /**
96
- * TBD.
60
+ * Pause all tweens managed by this manager.
61
+ * This method pauses all active tweens.
97
62
  */
98
63
  _pauseAll(): void;
99
64
  /**
100
- * TBD.
65
+ * Resume all tweens managed by this manager.
66
+ * This method resumes all paused tweens.
101
67
  */
102
68
  _resumeAll(): void;
103
69
  /**
104
- * TBD.
70
+ * Pause all tweens managed by this manager.
71
+ * This method pauses all active tweens.
105
72
  */
106
73
  pauseAll(): void;
107
74
  /**
108
- * TBD.
75
+ * Resume all tweens managed by this manager.
76
+ * This method resumes all paused tweens.
109
77
  */
110
78
  resumeAll(): void;
111
79
  }
@@ -1 +1 @@
1
- {"version":3,"file":"tween_manager.d.ts","sourceRoot":"","sources":["../../../src/phaser/core/tween_manager.js"],"names":[],"mappings":"AAoCA;IACE;;;OAGG;IACH,kBAFW,OAAO,WAAW,EAAE,IAAI,EAoDlC;IAjDC,+BAAgB;IAChB,eAAiB;IACjB,YAAc;IACd;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA0CC;IAMH;;;OAGG;IACH,UAFa,KAAK,EAAE,CAInB;IAED;;OAEG;IACH,kBAKC;IAED;;;;OAIG;IACH,gBAHW,MAAM,aACN,MAAM,EAAE,QAyBlB;IAED;;;OAGG;IACH,WAFW,KAAK,QAKf;IAED;;;;OAIG;IACH,eAHW,MAAM,GACJ,KAAK,CAIjB;IAED;;;OAGG;IACH,cAFW,KAAK,GAAG,IAAI,GAAG,SAAS,QAYlC;IAED;;;OAGG;IACH,UAFa,OAAO,CAuBnB;IAED;;;;OAIG;IACH,mBAHW,MAAM,GACJ,OAAO,CAInB;IAED;;OAEG;IACH,kBAIC;IAED;;OAEG;IACH,mBAIC;IAED;;OAEG;IACH,iBAIC;IAED;;OAEG;IACH,kBAIC;CACF;sBArPqB,YAAY"}
1
+ {"version":3,"file":"tween_manager.d.ts","sourceRoot":"","sources":["../../../src/phaser/core/tween_manager.js"],"names":[],"mappings":"AAoCA;IACE;;;OAGG;IACH,kBAFW,OAAO,WAAW,EAAE,IAAI,EAuDlC;IApDC,+BAAgB;IAChB,sBAAsB;IACtB,SADW,KAAK,EAAE,CACD;IACjB,sBAAsB;IACtB,MADW,KAAK,EAAE,CACJ;IACd,qDAAqD;IACrD,SADW;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,CAAC,CAAC,EAAE,MAAM,KAAK,MAAM,CAAA;KAAC,CA2ChD;IAMH;;;OAGG;IACH,UAFa,KAAK,EAAE,CAInB;IAED;;;OAGG;IACH,kBAKC;IAED;;;;OAIG;IACH,gBAHW,MAAM,aACN,MAAM,EAAE,QAyBlB;IAED;;;OAGG;IACH,WAFW,KAAK,QAKf;IAED;;;;OAIG;IACH,eAHW,MAAM,GACJ,KAAK,CAIjB;IAED;;;OAGG;IACH,cAFW,KAAK,GAAG,IAAI,GAAG,SAAS,QAYlC;IAED;;;OAGG;IACH,UAFa,OAAO,CAuBnB;IAED;;;;OAIG;IACH,mBAHW,MAAM,GACJ,OAAO,CAInB;IAED;;;OAGG;IACH,kBAIC;IAED;;;OAGG;IACH,mBAIC;IAED;;;OAGG;IACH,iBAIC;IAED;;;OAGG;IACH,kBAIC;CACF;sBA7PqB,YAAY"}
@@ -1,11 +1,12 @@
1
1
  export class World extends Group {
2
2
  /**
3
- * TBD.
4
- * @param {import('./game.js').Game} game - TBD.
3
+ * Creates a new World instance.
4
+ * @param {import('./game.js').Game} game - The game instance this world belongs to.
5
5
  */
6
6
  constructor(game: import("./game.js").Game);
7
7
  /**
8
- * TBD.
8
+ * Initialize the world.
9
+ * This method is called when the game boots and sets up the world.
9
10
  */
10
11
  boot(): void;
11
12
  }
@@ -1 +1 @@
1
- {"version":3,"file":"world.d.ts","sourceRoot":"","sources":["../../../src/phaser/core/world.js"],"names":[],"mappings":"AAEA;IACE;;;OAGG;IACH,kBAFW,OAAO,WAAW,EAAE,IAAI,EAIlC;IAED;;OAEG;IACH,aAEC;CACF;sBAjBqB,qBAAqB"}
1
+ {"version":3,"file":"world.d.ts","sourceRoot":"","sources":["../../../src/phaser/core/world.js"],"names":[],"mappings":"AAEA;IACE;;;OAGG;IACH,kBAFW,OAAO,WAAW,EAAE,IAAI,EAIlC;IAED;;;OAGG;IACH,aAEC;CACF;sBAlBqB,qBAAqB"}