narraleaf-react 0.8.7 → 0.9.0-beta.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/game/nlcore/common/interface.d.ts +1 -0
- package/dist/game/nlcore/common/types.d.ts +2 -1
- package/dist/game/nlcore/elements/built-in/DevTools.d.ts +3 -0
- package/dist/game/nlcore/elements/persistent/storable.d.ts +5 -0
- package/dist/game/nlcore/elements/persistent/type.d.ts +1 -0
- package/dist/game/nlcore/elements/scene.d.ts +0 -1
- package/dist/main.js +33 -33
- package/package.json +1 -1
|
@@ -9,6 +9,7 @@ import type { LayoutRouter } from "../../../game/player/lib/PageRouter/router";
|
|
|
9
9
|
import { KeyBindingType, WebKeyboardKey } from "../game/types";
|
|
10
10
|
import { KeyBindingValue } from "../game/keyMap";
|
|
11
11
|
import { SoundType } from "../elements/sound";
|
|
12
|
+
import { StorableType } from "../elements/persistent/type";
|
|
12
13
|
export * from "../elements/type";
|
|
13
|
-
export type { GameHistory, IGamePluginRegistry, LiveGameEventToken, Origins, ServiceHandlerCtx, TransformDefinitions, GameConfig, SavedGame, NotificationToken, SavedGameMetaData, LayoutRouter, KeyBindingValue, WebKeyboardKey, };
|
|
14
|
+
export type { GameHistory, IGamePluginRegistry, LiveGameEventToken, Origins, ServiceHandlerCtx, TransformDefinitions, GameConfig, SavedGame, NotificationToken, SavedGameMetaData, LayoutRouter, KeyBindingValue, WebKeyboardKey, StorableType, };
|
|
14
15
|
export { KeyBindingType, SoundType, };
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { ControlAction } from "../../action/actions/controlAction";
|
|
2
2
|
import { Chained, Proxied } from "../../action/chain";
|
|
3
3
|
import { LogicAction } from "../../game";
|
|
4
|
+
import { DynamicPersistent, Persistent } from "../persistent";
|
|
4
5
|
export declare class DevTools {
|
|
5
6
|
static getActionId(action: LogicAction.Actions): string;
|
|
6
7
|
static setActionId(action: LogicAction.Actions, id: string): LogicAction.Actions;
|
|
7
8
|
static chainToActions(chain: Proxied<LogicAction.GameElement, Chained<LogicAction.Actions>>): LogicAction.Actions[];
|
|
8
9
|
static wrapAction(action: LogicAction.Actions[] | Proxied<LogicAction.GameElement, Chained<LogicAction.Actions>>): ControlAction;
|
|
10
|
+
static getNamespaceName(persistent: Persistent<any>): string;
|
|
11
|
+
static DynamicPersistent: typeof DynamicPersistent;
|
|
9
12
|
}
|
|
@@ -7,9 +7,14 @@ export declare class Namespace<T extends NameSpaceContent<keyof T>> {
|
|
|
7
7
|
get<Key extends keyof T = any>(key: Key): T[Key];
|
|
8
8
|
equals<Key extends keyof T = any>(key: Key, value: T[Key]): boolean;
|
|
9
9
|
assign(values: Partial<T>): this;
|
|
10
|
+
has(key: keyof T): boolean;
|
|
11
|
+
keys(): (keyof T)[];
|
|
12
|
+
values(): T[keyof T][];
|
|
13
|
+
entries(): [keyof T, T[keyof T]][];
|
|
10
14
|
reset(): this;
|
|
11
15
|
}
|
|
12
16
|
export declare class Storable {
|
|
17
|
+
static createNamespace<T extends NameSpaceContent<keyof T>>(name: string, initContent: T, key?: string): Namespace<T>;
|
|
13
18
|
addNamespace<T extends NameSpaceContent<keyof T>>(namespace: Namespace<T>): this | undefined;
|
|
14
19
|
getNamespace<T extends NameSpaceContent<keyof T> = any>(key: string): Namespace<T>;
|
|
15
20
|
setNamespace<T extends NameSpaceContent<keyof T> = any>(key: string, namespace: Namespace<T>): this;
|
|
@@ -31,7 +31,6 @@ export interface ISceneUserConfig {
|
|
|
31
31
|
}
|
|
32
32
|
export type JumpConfig = {
|
|
33
33
|
transition: ImageTransition;
|
|
34
|
-
unloadScene: boolean;
|
|
35
34
|
};
|
|
36
35
|
type ChainableAction = Proxied<LogicAction.GameElement, Chained<LogicAction.Actions>> | LogicAction.Actions;
|
|
37
36
|
type ChainedScene = Proxied<Scene, Chained<LogicAction.Actions>>;
|