@gamebob/axon-surge 0.46.0 → 0.47.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/axon-surge.js +1900 -1511
- package/dist/codex/CodexStorage.d.ts +8 -0
- package/dist/codex/CodexStorage.d.ts.map +1 -1
- package/dist/codex/CodexTypes.d.ts +8 -0
- package/dist/codex/CodexTypes.d.ts.map +1 -1
- package/dist/codex/FormationCodex.d.ts +21 -0
- package/dist/codex/FormationCodex.d.ts.map +1 -0
- package/dist/content/ContentRegistry.d.ts.map +1 -1
- package/dist/content/ContentTypes.d.ts +2 -1
- package/dist/content/ContentTypes.d.ts.map +1 -1
- package/dist/content/DefaultContentRegistry.d.ts.map +1 -1
- package/dist/core/GameEngineCodexInitialization.d.ts.map +1 -1
- package/dist/core/GameEngineInitialization.d.ts.map +1 -1
- package/dist/core/GameEngineMethodsProgress.d.ts.map +1 -1
- package/dist/core/GameEngineState.d.ts +2 -0
- package/dist/core/GameEngineState.d.ts.map +1 -1
- package/dist/director/PatternSpawnHelpers.d.ts +17 -0
- package/dist/director/PatternSpawnHelpers.d.ts.map +1 -0
- package/dist/director/SpawnGeometry.d.ts +3 -0
- package/dist/director/SpawnGeometry.d.ts.map +1 -0
- package/dist/director/SpawnerPatternCatalog.d.ts +3 -0
- package/dist/director/SpawnerPatternCatalog.d.ts.map +1 -0
- package/dist/director/SpawnerPatternRegistry.d.ts +11 -0
- package/dist/director/SpawnerPatternRegistry.d.ts.map +1 -0
- package/dist/director/SpawnerPatternTypes.d.ts +21 -0
- package/dist/director/SpawnerPatternTypes.d.ts.map +1 -0
- package/dist/director/WaveDirector.d.ts +3 -1
- package/dist/director/WaveDirector.d.ts.map +1 -1
- package/dist/director/WaveSpawnResolver.d.ts +1 -1
- package/dist/director/WaveSpawnResolver.d.ts.map +1 -1
- package/dist/director/patterns/circle.pattern.d.ts +3 -0
- package/dist/director/patterns/circle.pattern.d.ts.map +1 -0
- package/dist/director/patterns/crossfire.pattern.d.ts +3 -0
- package/dist/director/patterns/crossfire.pattern.d.ts.map +1 -0
- package/dist/director/patterns/dense.pattern.d.ts +3 -0
- package/dist/director/patterns/dense.pattern.d.ts.map +1 -0
- package/dist/director/patterns/marching.pattern.d.ts +3 -0
- package/dist/director/patterns/marching.pattern.d.ts.map +1 -0
- package/dist/director/patterns/sine.pattern.d.ts +3 -0
- package/dist/director/patterns/sine.pattern.d.ts.map +1 -0
- package/dist/director/patterns/spiral.pattern.d.ts +3 -0
- package/dist/director/patterns/spiral.pattern.d.ts.map +1 -0
- package/dist/entities/EnemyEntity.d.ts +1 -0
- package/dist/entities/EnemyEntity.d.ts.map +1 -1
- package/dist/i18n/locales.d.ts +10 -0
- package/dist/i18n/locales.d.ts.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/ui/CodexCanvasFactories.d.ts +2 -0
- package/dist/ui/CodexCanvasFactories.d.ts.map +1 -1
- package/dist/ui/CodexFormationCanvas.d.ts +44 -0
- package/dist/ui/CodexFormationCanvas.d.ts.map +1 -0
- package/dist/ui/CodexOverlay.d.ts +9 -15
- package/dist/ui/CodexOverlay.d.ts.map +1 -1
- package/dist/ui/CodexOverlayBookMarkup.d.ts +2 -0
- package/dist/ui/CodexOverlayBookMarkup.d.ts.map +1 -1
- package/dist/ui/CodexOverlayTypes.d.ts +23 -0
- package/dist/ui/CodexOverlayTypes.d.ts.map +1 -0
- package/package.json +1 -1
- package/dist/director/SpawnerPatterns.d.ts +0 -30
- package/dist/director/SpawnerPatterns.d.ts.map +0 -1
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import type { CodexSpecimenCanvas } from "./CodexSpecimenCanvas";
|
|
2
2
|
import type { CodexVariantCanvas } from "./CodexVariantCanvas";
|
|
3
3
|
import type { BossCodexCanvas } from "./BossCodexCanvas";
|
|
4
|
+
import type { CodexFormationCanvas } from "./CodexFormationCanvas";
|
|
4
5
|
export interface CodexCanvasFactories {
|
|
5
6
|
createSpecimen(canvas: HTMLCanvasElement): CodexSpecimenCanvas;
|
|
6
7
|
createVariant(canvas: HTMLCanvasElement, variantId: string, silhouette: boolean): CodexVariantCanvas;
|
|
7
8
|
createBoss(canvas: HTMLCanvasElement): BossCodexCanvas;
|
|
9
|
+
createFormation(canvas: HTMLCanvasElement, formationId: string): CodexFormationCanvas;
|
|
8
10
|
}
|
|
9
11
|
//# sourceMappingURL=CodexCanvasFactories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CodexCanvasFactories.d.ts","sourceRoot":"","sources":["../../src/ui/CodexCanvasFactories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"CodexCanvasFactories.d.ts","sourceRoot":"","sources":["../../src/ui/CodexCanvasFactories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAEnE,MAAM,WAAW,oBAAoB;IACjC,cAAc,CAAC,MAAM,EAAE,iBAAiB,GAAG,mBAAmB,CAAC;IAC/D,aAAa,CAAC,MAAM,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,GAAG,kBAAkB,CAAC;IACrG,UAAU,CAAC,MAAM,EAAE,iBAAiB,GAAG,eAAe,CAAC;IACvD,eAAe,CAAC,MAAM,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,GAAG,oBAAoB,CAAC;CACzF"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { GameConfigManager } from "../config/GameConfig";
|
|
2
|
+
import type { ContentRegistry } from "../content/ContentRegistry";
|
|
3
|
+
import type { EntityFactory } from "../factory/EntityFactory";
|
|
4
|
+
import type { ThemeManager } from "../theme/ThemeManager";
|
|
5
|
+
import type { SpawnerPatternRegistry } from "../director/SpawnerPatternRegistry";
|
|
6
|
+
export declare class CodexFormationCanvas {
|
|
7
|
+
private readonly canvas;
|
|
8
|
+
private readonly context;
|
|
9
|
+
private readonly content;
|
|
10
|
+
private readonly factory;
|
|
11
|
+
private readonly patternRegistry;
|
|
12
|
+
private readonly shapeRenderer;
|
|
13
|
+
private readonly themeManager;
|
|
14
|
+
private readonly pool;
|
|
15
|
+
private entities;
|
|
16
|
+
private formationId;
|
|
17
|
+
private animationFrameId;
|
|
18
|
+
private resizeObserver;
|
|
19
|
+
private lastTime;
|
|
20
|
+
private elapsed;
|
|
21
|
+
private displayWidth;
|
|
22
|
+
private displayHeight;
|
|
23
|
+
constructor(options: {
|
|
24
|
+
canvas: HTMLCanvasElement;
|
|
25
|
+
content: ContentRegistry;
|
|
26
|
+
factory: EntityFactory;
|
|
27
|
+
patternRegistry: SpawnerPatternRegistry;
|
|
28
|
+
configManager: GameConfigManager;
|
|
29
|
+
themeManager: ThemeManager;
|
|
30
|
+
});
|
|
31
|
+
setFormation(formationId: string): void;
|
|
32
|
+
start(): void;
|
|
33
|
+
stop(): void;
|
|
34
|
+
destroy(): void;
|
|
35
|
+
private resetSimulation;
|
|
36
|
+
private update;
|
|
37
|
+
private render;
|
|
38
|
+
private clearCanvas;
|
|
39
|
+
private renderBackground;
|
|
40
|
+
private renderCore;
|
|
41
|
+
private renderEntities;
|
|
42
|
+
private resize;
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=CodexFormationCanvas.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CodexFormationCanvas.d.ts","sourceRo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AAG,IAAI;IAMvC,KAAK,IAAI,IAAI;IAeb,IAAI,IAAI,IAAI;IAOZ,OAAO,IAAI,IAAI;IAOtB,OAAO,CAAC,eAAe;IAkBvB,OAAO,CAAC,MAAM;IAUd,OAAO,CAAC,MAAM;IAoBd,OAAO,CAAC,WAAW;IAOnB,OAAO,CAAC,gBAAgB;IAmBxB,OAAO,CAAC,UAAU;IAWlB,OAAO,CAAC,cAAc;IAUtB,OAAO,CAAC,MAAM;CAQjB"}
|
|
@@ -2,16 +2,17 @@ import type { I18nService } from "../i18n/I18nService";
|
|
|
2
2
|
import type { Codex } from "../codex/Codex";
|
|
3
3
|
import type { CodexEntrySnapshot } from "../codex/CodexTypes";
|
|
4
4
|
import type { BossCodex } from "../codex/BossCodex";
|
|
5
|
+
import type { FormationCodex } from "../codex/FormationCodex";
|
|
5
6
|
import type { ThemeManager } from "../theme/ThemeManager";
|
|
6
7
|
import type { GameConfigManager } from "../config/GameConfig";
|
|
7
8
|
import type { ContentRegistry } from "../content/ContentRegistry";
|
|
8
|
-
import type {
|
|
9
|
-
import type { CodexCanvasFactories } from "./CodexCanvasFactories";
|
|
9
|
+
import type { CodexOverlayOptions } from "./CodexOverlayTypes";
|
|
10
10
|
export declare class CodexOverlay {
|
|
11
11
|
readonly container: HTMLElement;
|
|
12
12
|
readonly i18n: I18nService;
|
|
13
13
|
readonly codex: Codex;
|
|
14
14
|
readonly bossCodex: BossCodex;
|
|
15
|
+
readonly formationCodex: FormationCodex;
|
|
15
16
|
readonly content: ContentRegistry;
|
|
16
17
|
readonly configManager: GameConfigManager;
|
|
17
18
|
readonly themeManager: ThemeManager;
|
|
@@ -20,26 +21,18 @@ export declare class CodexOverlay {
|
|
|
20
21
|
private readonly canvasFactories;
|
|
21
22
|
private readonly unsubscribe;
|
|
22
23
|
private readonly unsubscribeBossCodex;
|
|
23
|
-
|
|
24
|
+
private readonly unsubscribeFormationCodex;
|
|
25
|
+
selectedSection: "enemies" | "bosses" | "formations";
|
|
24
26
|
selectedEnemyId: string | null;
|
|
25
27
|
selectedBossId: string | null;
|
|
28
|
+
selectedFormationId: string | null;
|
|
26
29
|
private specimen;
|
|
27
30
|
private bossSpecimen;
|
|
31
|
+
private formationSpecimen;
|
|
28
32
|
private readonly variantSpecimens;
|
|
29
33
|
private isOpen;
|
|
30
34
|
private readonly handleKeyDown;
|
|
31
|
-
constructor(options:
|
|
32
|
-
parent: HTMLElement;
|
|
33
|
-
i18n: I18nService;
|
|
34
|
-
codex: Codex;
|
|
35
|
-
bossCodex: BossCodex;
|
|
36
|
-
content: ContentRegistry;
|
|
37
|
-
configManager: GameConfigManager;
|
|
38
|
-
themeManager: ThemeManager;
|
|
39
|
-
environment: UiEnvironment;
|
|
40
|
-
canvasFactories: CodexCanvasFactories;
|
|
41
|
-
onClose: () => void;
|
|
42
|
-
});
|
|
35
|
+
constructor(options: CodexOverlayOptions);
|
|
43
36
|
private mount;
|
|
44
37
|
render(): void;
|
|
45
38
|
private getOpenAccordionId;
|
|
@@ -47,6 +40,7 @@ export declare class CodexOverlay {
|
|
|
47
40
|
private resetCanvases;
|
|
48
41
|
private renderBossSection;
|
|
49
42
|
private renderEnemySection;
|
|
43
|
+
private renderFormationSection;
|
|
50
44
|
private bindEnemyButtons;
|
|
51
45
|
private bindAccordions;
|
|
52
46
|
private mountEnemyCanvases;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CodexOverlay.d.ts","sourceRoot":"","sources":["../../src/ui/CodexOverlay.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"CodexOverlay.d.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AAe,EAAE,MAAM,GAAG,IAAI,CAAQ;IACtC,cAAc,EAAE,MAAM,GAAG,IAAI,CAAQ;IACrC,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAQ;IACjD,OAAO,CAAC,QAAQ,CAAoC;IACpD,OAAO,CAAC,YAAY,CAAgC;IACpD,OAAO,CAAC,iBAAiB,CAAqC;IAC9D,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAA4B;IAC7D,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,QAAQ,CAAC,aAAa,CAK5B;gBAEiB,OAAO,EAAE,mBAAmB;IAqB/C,OAAO,CAAC,KAAK;IAMN,MAAM,IAAI,IAAI;IAkBrB,OAAO,CAAC,kBAAkB;IAI1B,OAAO,CAAC,gBAAgB;IAKxB,OAAO,CAAC,aAAa;IAUrB,OAAO,CAAC,iBAAiB;IAUzB,OAAO,CAAC,kBAAkB;IAU1B,OAAO,CAAC,sBAAsB;IAmB9B,OAAO,CAAC,gBAAgB;IASxB,OAAO,CAAC,cAAc;IAWtB,OAAO,CAAC,kBAAkB;IAU1B,OAAO,CAAC,oBAAoB;IAW5B,OAAO,CAAC,0BAA0B;IAiB3B,IAAI,IAAI,IAAI;IASZ,IAAI,IAAI,IAAI;IAaZ,cAAc,IAAI,IAAI;IAKtB,OAAO,IAAI,IAAI;IAYf,uBAAuB,IAAI,IAAI;IAK/B,sBAAsB,CAAC,KAAK,EAAE,kBAAkB,GAAG,MAAM;IAIzD,iBAAiB,IAAI,MAAM;CAGrC"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import type { CodexEntrySnapshot } from "../codex/CodexTypes";
|
|
2
2
|
import type { BossCodexSnapshot } from "../codex/BossCodex";
|
|
3
3
|
import type { CodexOverlay } from "./CodexOverlay";
|
|
4
|
+
import type { FormationCodexEntrySnapshot } from "../codex/CodexTypes";
|
|
4
5
|
export declare function renderSectionTabs(view: CodexOverlay): string;
|
|
5
6
|
export declare function renderEnemyBook(view: CodexOverlay, entries: readonly CodexEntrySnapshot[]): string;
|
|
6
7
|
export declare function renderBossBook(view: CodexOverlay, entries: readonly BossCodexSnapshot[]): string;
|
|
8
|
+
export declare function renderFormationBook(view: CodexOverlay, entries: readonly FormationCodexEntrySnapshot[]): string;
|
|
7
9
|
//# sourceMappingURL=CodexOverlayBookMarkup.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CodexOverlayBookMarkup.d.ts","sourceRoot":"","sources":["../../src/ui/CodexOverlayBookMarkup.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"CodexOverlayBookMarkup.d.ts","sourceRoot":"","sources":["../../src/ui/CodexOverlayBookMarkup.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,qBAAqB,CAAC;AAIvE,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,YAAY,GAAG,MAAM,CAM5D;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,YAAY,EAAE,OAAO,EAAE,SAAS,kBAAkB,EAAE,GAAG,MAAM,CAsBlG;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,YAAY,EAAE,OAAO,EAAE,SAAS,iBAAiB,EAAE,GAAG,MAAM,CAKhG;AAMD,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,YAAY,EAAE,OAAO,EAAE,SAAS,2BAA2B,EAAE,GAAG,MAAM,CAK/G"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { I18nService } from "../i18n/I18nService";
|
|
2
|
+
import type { Codex } from "../codex/Codex";
|
|
3
|
+
import type { BossCodex } from "../codex/BossCodex";
|
|
4
|
+
import type { FormationCodex } from "../codex/FormationCodex";
|
|
5
|
+
import type { ThemeManager } from "../theme/ThemeManager";
|
|
6
|
+
import type { GameConfigManager } from "../config/GameConfig";
|
|
7
|
+
import type { ContentRegistry } from "../content/ContentRegistry";
|
|
8
|
+
import type { UiEnvironment } from "./UiEnvironment";
|
|
9
|
+
import type { CodexCanvasFactories } from "./CodexCanvasFactories";
|
|
10
|
+
export interface CodexOverlayOptions {
|
|
11
|
+
readonly parent: HTMLElement;
|
|
12
|
+
readonly i18n: I18nService;
|
|
13
|
+
readonly codex: Codex;
|
|
14
|
+
readonly bossCodex: BossCodex;
|
|
15
|
+
readonly formationCodex: FormationCodex;
|
|
16
|
+
readonly content: ContentRegistry;
|
|
17
|
+
readonly configManager: GameConfigManager;
|
|
18
|
+
readonly themeManager: ThemeManager;
|
|
19
|
+
readonly environment: UiEnvironment;
|
|
20
|
+
readonly canvasFactories: CodexCanvasFactories;
|
|
21
|
+
readonly onClose: () => void;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=CodexOverlayTypes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CodexOverlayTypes.d.ts","sourceRoot":"","sources":["../../src/ui/CodexOverlayTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAEnE,MAAM,WAAW,mBAAmB;IAChC,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC;IAC7B,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;IAC3B,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC;IACtB,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAC;IAC9B,QAAQ,CAAC,cAAc,EAAE,cAAc,CAAC;IACxC,QAAQ,CAAC,OAAO,EAAE,eAAe,CAAC;IAClC,QAAQ,CAAC,aAAa,EAAE,iBAAiB,CAAC;IAC1C,QAAQ,CAAC,YAAY,EAAE,YAAY,CAAC;IACpC,QAAQ,CAAC,WAAW,EAAE,aAAa,CAAC;IACpC,QAAQ,CAAC,eAAe,EAAE,oBAAoB,CAAC;IAC/C,QAAQ,CAAC,OAAO,EAAE,MAAM,IAAI,CAAC;CAChC"}
|
package/package.json
CHANGED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import type { EnemyEntity } from "../entities/EnemyEntity";
|
|
2
|
-
import type { EnemyPoolPort } from "../pool/EnemyPool";
|
|
3
|
-
import type { EntityFactory } from "../factory/EntityFactory";
|
|
4
|
-
import type { Vector2D, EnemyType } from "../types/game";
|
|
5
|
-
export type VariantResolver = (enemyId: EnemyType) => string | undefined;
|
|
6
|
-
export type SpawnerPatternOptions = {
|
|
7
|
-
algorithmId: string;
|
|
8
|
-
factory: EntityFactory;
|
|
9
|
-
pool: EnemyPoolPort;
|
|
10
|
-
enemyIds: readonly EnemyType[];
|
|
11
|
-
corePos: Vector2D;
|
|
12
|
-
width: number;
|
|
13
|
-
height: number;
|
|
14
|
-
variantResolver: VariantResolver;
|
|
15
|
-
};
|
|
16
|
-
export declare class SpawnerPatterns {
|
|
17
|
-
private static readonly algorithms;
|
|
18
|
-
static spawn(options: SpawnerPatternOptions): EnemyEntity[];
|
|
19
|
-
static getOffscreenPosition(width: number, height: number): Vector2D;
|
|
20
|
-
static spawnCircleOfDeath(options: SpawnerPatternOptions): EnemyEntity[];
|
|
21
|
-
static spawnDenseCluster(options: SpawnerPatternOptions): EnemyEntity[];
|
|
22
|
-
static spawnSineSnake(options: SpawnerPatternOptions): EnemyEntity[];
|
|
23
|
-
static spawnDoubleSpiral(options: SpawnerPatternOptions): EnemyEntity[];
|
|
24
|
-
static spawnMarchingWall(options: SpawnerPatternOptions): EnemyEntity[];
|
|
25
|
-
static spawnCrossfireStreams(options: SpawnerPatternOptions): EnemyEntity[];
|
|
26
|
-
private static spawnMany;
|
|
27
|
-
private static spawnEnemy;
|
|
28
|
-
private static getClusterCenter;
|
|
29
|
-
}
|
|
30
|
-
//# sourceMappingURL=SpawnerPatterns.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SpawnerPatterns.d.ts","sourceRoot":"","sources":["../../src/director/SpawnerPatterns.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAEzD,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,EAAE,SAAS,KAAK,MAAM,GAAG,SAAS,CAAC;AACzE,MAAM,MAAM,qBAAqB,GAAG;IAChC,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,aAAa,CAAC;IACvB,IAAI,EAAE,aAAa,CAAC;IACpB,QAAQ,EAAE,SAAS,S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