@neutrinoparticles/js-v1.1-phaser 1.0.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.
@@ -0,0 +1,43 @@
1
+ import Phaser from 'phaser';
2
+ import { GamePlugin } from './GamePlugin';
3
+ import { NeutrinoFileConfig } from './File';
4
+ import { Effect, EffectOptions } from './Effect';
5
+ import { EffectModel } from './EffectModel';
6
+ export * from './types';
7
+ export * from './GamePlugin';
8
+ export * from './NeutrinoContext';
9
+ export * from './NeutrinoRenderer';
10
+ export * from './DataTextureManager';
11
+ export * from './Effect';
12
+ export * from './EffectModel';
13
+ export * from './File';
14
+ export * from './PerspectiveProjection';
15
+ declare module 'phaser' {
16
+ namespace Loader {
17
+ interface LoaderPlugin {
18
+ neutrino(key: string | NeutrinoFileConfig | NeutrinoFileConfig[], url?: string, options?: {
19
+ atlases?: string[];
20
+ }, xhrSettings?: Phaser.Types.Loader.XHRSettingsObject): this;
21
+ }
22
+ }
23
+ namespace GameObjects {
24
+ interface GameObjectFactory {
25
+ neutrino(effectModel: EffectModel, options?: EffectOptions): Effect;
26
+ }
27
+ interface GameObjectCreator {
28
+ neutrino(config: {
29
+ effectModel: EffectModel;
30
+ } & EffectOptions & {
31
+ add?: boolean;
32
+ }): Effect;
33
+ }
34
+ }
35
+ }
36
+ /**
37
+ * Installs the NeutrinoParticles plugin into Phaser's global registries:
38
+ * - Loader file type: scene.load.neutrino(key, url, options)
39
+ * - GameObjectFactory: scene.add.neutrino(effectModel, options)
40
+ * - GameObjectCreator: scene.make.neutrino(config)
41
+ */
42
+ export declare function installPlugin(): void;
43
+ export { GamePlugin };