narrat 3.3.4 → 3.3.5
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/narrat.es.js +232 -228
- package/dist/narrat.es.js.map +1 -1
- package/dist/narrat.umd.js +32 -32
- package/dist/narrat.umd.js.map +1 -1
- package/dist/plugins/godot-plugin.d.ts +20 -1
- package/package.json +1 -1
|
@@ -5,6 +5,22 @@ export interface MessageForGodot {
|
|
|
5
5
|
type: string;
|
|
6
6
|
payload: any;
|
|
7
7
|
}
|
|
8
|
+
export interface GodotEngineConfig {
|
|
9
|
+
args: any[];
|
|
10
|
+
canvas?: HTMLCanvasElement;
|
|
11
|
+
canvasResizePolicy: 0 | 1 | 2;
|
|
12
|
+
executable?: string;
|
|
13
|
+
experimentalVK: boolean;
|
|
14
|
+
fileSizes: Record<string, number>;
|
|
15
|
+
focusCanvas: boolean;
|
|
16
|
+
gdextensionLibs: string[];
|
|
17
|
+
}
|
|
18
|
+
export interface GodotPluginOptions {
|
|
19
|
+
godotGamePath?: string;
|
|
20
|
+
engineConfigOverrides?: Partial<GodotEngineConfig>;
|
|
21
|
+
}
|
|
22
|
+
export type GodotEngine = any;
|
|
23
|
+
export type GodotEngineConstructor = new (config: GodotEngineConfig) => GodotEngine;
|
|
8
24
|
declare function godotReadyCallback(): void;
|
|
9
25
|
export declare class GodotPlugin extends NarratPlugin {
|
|
10
26
|
customCommands: CommandPlugin<any>[];
|
|
@@ -13,7 +29,9 @@ export declare class GodotPlugin extends NarratPlugin {
|
|
|
13
29
|
messageQueue: MessageForGodot[];
|
|
14
30
|
narrat: Narrat;
|
|
15
31
|
narratReady: boolean;
|
|
16
|
-
|
|
32
|
+
engineConfig: GodotEngineConfig;
|
|
33
|
+
engine: GodotEngine;
|
|
34
|
+
constructor(config: GodotPluginOptions);
|
|
17
35
|
onAppMounted(): void;
|
|
18
36
|
getCanvas(): HTMLCanvasElement;
|
|
19
37
|
addMessageForGodot(message: MessageForGodot): void;
|
|
@@ -25,6 +43,7 @@ export declare class GodotPlugin extends NarratPlugin {
|
|
|
25
43
|
declare global {
|
|
26
44
|
export interface Window {
|
|
27
45
|
godot: GodotPlugin;
|
|
46
|
+
Engine: GodotEngineConstructor;
|
|
28
47
|
godotReady: boolean;
|
|
29
48
|
godotReadyCallback: typeof godotReadyCallback;
|
|
30
49
|
narratReadyCallback: () => void;
|