bard-legends-framework 1.8.0 → 1.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +13 -2
- package/dist/index.d.ts +13 -2
- package/dist/index.js +3 -3
- package/dist/index.mjs +3 -3
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -317,7 +317,8 @@ declare class Game {
|
|
|
317
317
|
}
|
|
318
318
|
|
|
319
319
|
interface SoundOptions {
|
|
320
|
-
readonly
|
|
320
|
+
readonly time?: number;
|
|
321
|
+
readonly volume?: number;
|
|
321
322
|
}
|
|
322
323
|
declare class Sound extends IDAttachable {
|
|
323
324
|
static createByName(soundName: SoundID, options?: SoundOptions): Sound;
|
|
@@ -331,7 +332,7 @@ declare class Sound extends IDAttachable {
|
|
|
331
332
|
setVolume(value: number): this;
|
|
332
333
|
constructor(soundDefinition: SoundDefinition, options?: SoundOptions);
|
|
333
334
|
destroy(): void;
|
|
334
|
-
protected _play(
|
|
335
|
+
protected _play(time: number): void;
|
|
335
336
|
protected _stop(): void;
|
|
336
337
|
}
|
|
337
338
|
|
|
@@ -361,6 +362,10 @@ interface MusicOptions extends SoundOptions {
|
|
|
361
362
|
}
|
|
362
363
|
declare class Music extends IDAttachable {
|
|
363
364
|
static createByName(soundName: SoundID, options?: MusicOptions): Music;
|
|
365
|
+
get time(): number;
|
|
366
|
+
get volume(): number;
|
|
367
|
+
set volume(volume: number);
|
|
368
|
+
setVolume(volume: number): this;
|
|
364
369
|
constructor(soundDefinition: SoundDefinition, partialOptions?: Partial<MusicOptions>);
|
|
365
370
|
/**
|
|
366
371
|
* Note: If then music time should stay synced with the game time, "stopPlayingOnPause" option has to be set true.
|
|
@@ -374,13 +379,19 @@ declare class Music extends IDAttachable {
|
|
|
374
379
|
interface MusicPlayerOptionsNoPause extends MusicOptions {
|
|
375
380
|
readonly stopPlayingOnPause: false;
|
|
376
381
|
readonly playWhenPaused: undefined;
|
|
382
|
+
readonly volume: number;
|
|
377
383
|
}
|
|
378
384
|
interface MusicPlayerOptionsWithPause extends MusicOptions {
|
|
379
385
|
readonly stopPlayingOnPause: true;
|
|
380
386
|
readonly playWhenPaused: SoundID | undefined;
|
|
387
|
+
readonly volume: number;
|
|
381
388
|
}
|
|
382
389
|
type MusicPlayerOptions = MusicPlayerOptionsNoPause | MusicPlayerOptionsWithPause;
|
|
383
390
|
declare class MusicPlayer extends IDAttachable {
|
|
391
|
+
get time(): number;
|
|
392
|
+
get volume(): number;
|
|
393
|
+
set volume(volume: number);
|
|
394
|
+
setVolume(volume: number): this;
|
|
384
395
|
constructor(partialOptions?: Partial<MusicPlayerOptions>);
|
|
385
396
|
play(soundID: SoundID): IdleSingleEvent<Music | undefined>;
|
|
386
397
|
stop(): IdleSingleEvent;
|
package/dist/index.d.ts
CHANGED
|
@@ -317,7 +317,8 @@ declare class Game {
|
|
|
317
317
|
}
|
|
318
318
|
|
|
319
319
|
interface SoundOptions {
|
|
320
|
-
readonly
|
|
320
|
+
readonly time?: number;
|
|
321
|
+
readonly volume?: number;
|
|
321
322
|
}
|
|
322
323
|
declare class Sound extends IDAttachable {
|
|
323
324
|
static createByName(soundName: SoundID, options?: SoundOptions): Sound;
|
|
@@ -331,7 +332,7 @@ declare class Sound extends IDAttachable {
|
|
|
331
332
|
setVolume(value: number): this;
|
|
332
333
|
constructor(soundDefinition: SoundDefinition, options?: SoundOptions);
|
|
333
334
|
destroy(): void;
|
|
334
|
-
protected _play(
|
|
335
|
+
protected _play(time: number): void;
|
|
335
336
|
protected _stop(): void;
|
|
336
337
|
}
|
|
337
338
|
|
|
@@ -361,6 +362,10 @@ interface MusicOptions extends SoundOptions {
|
|
|
361
362
|
}
|
|
362
363
|
declare class Music extends IDAttachable {
|
|
363
364
|
static createByName(soundName: SoundID, options?: MusicOptions): Music;
|
|
365
|
+
get time(): number;
|
|
366
|
+
get volume(): number;
|
|
367
|
+
set volume(volume: number);
|
|
368
|
+
setVolume(volume: number): this;
|
|
364
369
|
constructor(soundDefinition: SoundDefinition, partialOptions?: Partial<MusicOptions>);
|
|
365
370
|
/**
|
|
366
371
|
* Note: If then music time should stay synced with the game time, "stopPlayingOnPause" option has to be set true.
|
|
@@ -374,13 +379,19 @@ declare class Music extends IDAttachable {
|
|
|
374
379
|
interface MusicPlayerOptionsNoPause extends MusicOptions {
|
|
375
380
|
readonly stopPlayingOnPause: false;
|
|
376
381
|
readonly playWhenPaused: undefined;
|
|
382
|
+
readonly volume: number;
|
|
377
383
|
}
|
|
378
384
|
interface MusicPlayerOptionsWithPause extends MusicOptions {
|
|
379
385
|
readonly stopPlayingOnPause: true;
|
|
380
386
|
readonly playWhenPaused: SoundID | undefined;
|
|
387
|
+
readonly volume: number;
|
|
381
388
|
}
|
|
382
389
|
type MusicPlayerOptions = MusicPlayerOptionsNoPause | MusicPlayerOptionsWithPause;
|
|
383
390
|
declare class MusicPlayer extends IDAttachable {
|
|
391
|
+
get time(): number;
|
|
392
|
+
get volume(): number;
|
|
393
|
+
set volume(volume: number);
|
|
394
|
+
setVolume(volume: number): this;
|
|
384
395
|
constructor(partialOptions?: Partial<MusicPlayerOptions>);
|
|
385
396
|
play(soundID: SoundID): IdleSingleEvent<Music | undefined>;
|
|
386
397
|
stop(): IdleSingleEvent;
|