@moku-labs/game 0.15.33 → 0.15.34
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/app/page.d.mts +1 -1
- package/dist/app/system.d.mts +2 -2
- package/dist/app.d.mts +1 -1
- package/dist/app.mjs +1 -1
- package/dist/{commands-C1gTg70a.d.mts → commands-DSYOsn8r.d.mts} +1 -1
- package/dist/control.d.mts +1 -1
- package/dist/{index-ChuOBsZB.d.mts → index-ZPmKRr0j.d.mts} +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +1 -1
- package/dist/inspect.d.mts +1 -1
- package/dist/{src-D5Nyvdhu.mjs → src-DFhuDrm7.mjs} +156 -97
- package/dist/testing.d.mts +2 -2
- package/dist/testing.mjs +1 -1
- package/dist/{types-BqfwZ_lM.d.mts → types-CrZvIBB9.d.mts} +2 -1
- package/dist/{types-CF6CJ55K.d.mts → types-DrtsLNnT.d.mts} +2 -2
- package/dist/{visual-C2HHHs46.d.mts → visual-CYxR9E2v.d.mts} +2 -2
- package/dist/visual.d.mts +1 -1
- package/package.json +1 -1
package/dist/app/page.d.mts
CHANGED
package/dist/app/system.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Mr as PlayerStateProvider } from "../types-D27I4Q7b.mjs";
|
|
2
|
-
import { ht as PlatformProvider } from "../index-
|
|
3
|
-
import { _ as SystemShellFactory, g as SystemName, h as SystemModules } from "../types-
|
|
2
|
+
import { ht as PlatformProvider } from "../index-ZPmKRr0j.mjs";
|
|
3
|
+
import { _ as SystemShellFactory, g as SystemName, h as SystemModules } from "../types-DrtsLNnT.mjs";
|
|
4
4
|
import { Back, Haptics, KeepAwake, Lifecycle, Store } from "@moku-labs/system";
|
|
5
5
|
|
|
6
6
|
//#region src/app/system.d.ts
|
package/dist/app.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Dr as Json } from "./types-D27I4Q7b.mjs";
|
|
2
2
|
import { U as StringTable } from "./types-DGHVGP5i.mjs";
|
|
3
|
-
import { a as GameHandle, c as MemoryProvider, d as SaveKind, f as Scenario, g as SystemName, i as GameDefinition, l as PageAgent, n as GameApp, o as GamePluginConfigs, p as ScreenSeams, r as GameConfig, s as HeadlessSeams, v as WithGameState } from "./types-
|
|
3
|
+
import { a as GameHandle, c as MemoryProvider, d as SaveKind, f as Scenario, g as SystemName, i as GameDefinition, l as PageAgent, n as GameApp, o as GamePluginConfigs, p as ScreenSeams, r as GameConfig, s as HeadlessSeams, v as WithGameState } from "./types-DrtsLNnT.mjs";
|
|
4
4
|
import { AnyPluginInstance } from "@moku-labs/core";
|
|
5
5
|
|
|
6
6
|
//#region src/app/define.d.ts
|
package/dist/app.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Ft as audioPlugin, H as platformPlugin, i as screen, m as flattenFeatures, t as createApp, wt as effectsPlugin } from "./src-
|
|
1
|
+
import { Ft as audioPlugin, H as platformPlugin, i as screen, m as flattenFeatures, t as createApp, wt as effectsPlugin } from "./src-DFhuDrm7.mjs";
|
|
2
2
|
import { t as memory } from "./memory-CWlqhS7l.mjs";
|
|
3
3
|
import { n as fakeClock, r as isFakeClock } from "./fake-hnJcJeYf.mjs";
|
|
4
4
|
//#region src/app/define.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { $r as Time, D as DebugSwitches, Ir as Snapshot, Rr as StoreApi, Vr as Api, Y as Api$1, Yr as FrameRate, ar as FlowState, nn as Api$2, nr as Bookmark, ot as Captured, w as ScenesApi } from "./types-D27I4Q7b.mjs";
|
|
2
|
-
import { P as AnimApi, a as AudioApi, h as EffectsApi, r as UiApi } from "./types-
|
|
2
|
+
import { P as AnimApi, a as AudioApi, h as EffectsApi, r as UiApi } from "./types-CrZvIBB9.mjs";
|
|
3
3
|
import { N as InputApi } from "./types-DGHVGP5i.mjs";
|
|
4
4
|
import { t as HeadlessApp } from "./headless-f31cEZ7f.mjs";
|
|
5
5
|
import { n as Command, r as ControlApp } from "./types-CgE5L_7f.mjs";
|
package/dist/control.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as HeadlessApp } from "./headless-f31cEZ7f.mjs";
|
|
2
2
|
import { i as InputArguments, n as Command, o as InputSchema, s as Ran } from "./types-CgE5L_7f.mjs";
|
|
3
|
-
import { t as commands } from "./commands-
|
|
3
|
+
import { t as commands } from "./commands-DSYOsn8r.mjs";
|
|
4
4
|
import { t as defineCommand } from "./define-CE1uxbe9.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/plugins/flow/doors/dev.d.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { $n as FeaturePlugin, An as NumericFields, B as ShapeValue, Bn as EmitterIdOf, C as SceneSpec, Cn as TagType, Dr as Json, Dt as PassKind, En as Ease, F as NineSliceValue, Gn as TextStylesOf, Gr as State$4, Hn as HudKeysOf, Hr as Config$4, Jr as Config$8, K as TransformValue, L as OverlayValue, Ln as Api$2, Mn as ProjectionSpec, N as HudPartValue, Nn as ReducedMotion, Or as Root, Qn as FeatureDescription, Qr as ThermalReading, Rn as BundlesOf, Rr as StoreApi, S as SceneDefinition, Sn as SystemFor, Sr as State$2, T as State$7, Tn as DescriptionNode, Tr as Config$5, U as SpriteOptions, Ur as Events, Vn as GameTypes, Vr as Api$3, W as SpriteValue, Wn as State$3, Wr as PauseReason, X as Config$6, Xr as RateChange, Y as Api$4, Zr as State$8, _ as AnySceneProjection, _n as Mut, _r as Answer, _t as FrameRing, a as Config$1, an as State$9, bn as ResourceType, br as Config$2, c as LoadBundles, dr as Descriptor, dt as ViewportSize, er as FeatureTree, f as ReadyBundles, fn as ComponentType, fr as Effect, gt as FrameRecord, hr as Hint, i as BundleSpec, jn as ProjectionMotion, jr as Patch, kr as State$5, l as LoadReason, lr as SceneIdOf, m as Tier, mr as GuideOptions, ni as Events$1, nn as Api$6, o as DefineBundles, p as State$1, pn as ComponentValue, pr as EffectOptions, q as sprite, qn as defineFlow, qr as Api$5, r as BundleMap, ri as Require, rn as Config$9, rr as DefineNode, rt as State$6, t as Api, ti as Config$10, u as LoadResult, un as ComponentHandle, v as Config$7, vn as Narrowed, vr as Api$1, w as ScenesApi, x as LayerMap, xn as SystemDefinition, y as DefineScene, yn as QueryTerm, zn as Config$3, zr as RngApi } from "./types-D27I4Q7b.mjs";
|
|
2
|
-
import { A as GlowValue, B as Target, C as BlurValue, D as FilterComponent, F as AnimPlayerValue, H as HapticKind, I as Config$11, K as defineAnimation, L as FramesValue, M as OutlineValue, N as UniformDeclaration, O as FilterSpec, P as AnimApi, Q as play, R as MotionKeyframe, S as AlphaValue, T as DisplacementValue, U as SfxDescriptor, W as Step, _ as State$12, a as AudioApi, b as EmitterDefinition, c as MusicDescriptor, d as State$11, f as VolumesFor, h as EffectsApi, j as NoiseValue, k as FilterValueOf, l as MusicOptions, lt as OverlayApi, m as Config$13, n as State$13, r as UiApi, s as Config$12, t as Config$14, w as ColorMatrixValue, x as EmitterValue, y as EmitterConfig, z as State$10 } from "./types-
|
|
2
|
+
import { A as GlowValue, B as Target, C as BlurValue, D as FilterComponent, F as AnimPlayerValue, H as HapticKind, I as Config$11, K as defineAnimation, L as FramesValue, M as OutlineValue, N as UniformDeclaration, O as FilterSpec, P as AnimApi, Q as play, R as MotionKeyframe, S as AlphaValue, T as DisplacementValue, U as SfxDescriptor, W as Step, _ as State$12, a as AudioApi, b as EmitterDefinition, c as MusicDescriptor, d as State$11, f as VolumesFor, h as EffectsApi, j as NoiseValue, k as FilterValueOf, l as MusicOptions, lt as OverlayApi, m as Config$13, n as State$13, r as UiApi, s as Config$12, t as Config$14, w as ColorMatrixValue, x as EmitterValue, y as EmitterConfig, z as State$10 } from "./types-CrZvIBB9.mjs";
|
|
3
3
|
import { B as Message, C as State$16, D as TextStyleInput, G as TypedTr, H as State$14, I as Argument, J as ResolvedStyle, L as Config$15, M as Config$16, N as InputApi, O as TextStyles, P as State$15, R as I18nApi, S as Point, T as TextBind, V as Part, W as TextKey, Y as Style, Z as WhenFlags, b as Config$17, g as IntrinsicElementsFor, h as defineTokens, j as defineComponent, k as TextValue, q as IsFlags, s as PopupComponent, v as BindField, w as TextApi, x as CountdownValue, y as BindOptions, z as IntlKit } from "./types-DGHVGP5i.mjs";
|
|
4
4
|
import { Log } from "@moku-labs/common/browser";
|
|
5
5
|
import { PluginCtx } from "@moku-labs/core";
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { $t as ShaderWhat, Ar as types_d_exports$10, At as PerfChange, Bt as PerfLongFrameLine, Cr as types_d_exports$3, Ct as PERF_CAUSES, Dt as PassKind, E as types_d_exports$13, Et as PROBLEM_RULES, Fr as SaveUnreadableError, Ft as PerfEventLine, G as Transform, Gt as PerfStartupLine, H as SpriteBlend, Ht as PerfMeasured, I as Overlay, It as PerfEventName, J as AdaptiveScale, Jn as exit, Jt as PoolTrimDetail, Kn as types_d_exports$6, Kr as types_d_exports$9, Kt as PerfTelemetryLine, L as OverlayValue, Lt as PerfGapLine, M as HudPart, Mt as PerfCollectorLine, N as HudPartValue, Nt as PerfCounts, Ot as PassRecord, P as NineSlice, Pt as PerfDisplay, Qt as ShaderEventDetail, R as Parent, Rt as PerfHeaderLine, St as OverlayWhat, Tn as DescriptionNode, Tt as PERF_LOG_VERSION, Ut as PerfSampleLine, V as Sprite, Vt as PerfMarkLine, Wt as PerfSpikeLine, Xn as to, Xt as ProblemRule, Yn as slot, Yt as ProblemEventDetail, Z as MonitorConfig, Zn as type, Zt as SHADER_WHATS, _t as FrameRing, at as types_d_exports$12, bt as MonitorSections, ei as types_d_exports$15, en as WarmDetail, g as types_d_exports$1, gt as FrameRecord, ht as FrameReadout, j as Display, jt as PerfChangeEntry, kt as PerfCause, mt as FrameReadResult, nt as PoolTrim, on as types_d_exports$17, pt as FrameColumns, q as sprite, qt as PerfThermalLine, st as MonitorCounts, tn as DEMAND_REASONS, vt as LongFrameEntry, wt as PERF_GAP_BUCKETS, xt as OverlayEventDetail, yt as MONITOR_SECTIONS, z as Shape, zt as PerfLogLine } from "./types-D27I4Q7b.mjs";
|
|
2
|
-
import { $ as sequence, E as FilterArea, G as HAPTIC_KINDS, H as HapticKind, J as frames, K as defineAnimation, Q as play, V as types_d_exports, X as mark, Y as haptic, Z as parallel, at as stopSfx, ct as wait, et as set, i as types_d_exports$16, it as stagger, nt as spawn, ot as tween, p as types_d_exports$2, q as external, rt as spawned, st as use, tt as sfx, ut as types_d_exports$4, v as types_d_exports$5 } from "./types-
|
|
2
|
+
import { $ as sequence, E as FilterArea, G as HAPTIC_KINDS, H as HapticKind, J as frames, K as defineAnimation, Q as play, V as types_d_exports, X as mark, Y as haptic, Z as parallel, at as stopSfx, ct as wait, et as set, i as types_d_exports$16, it as stagger, nt as spawn, ot as tween, p as types_d_exports$2, q as external, rt as spawned, st as use, tt as sfx, ut as types_d_exports$4, v as types_d_exports$5 } from "./types-CrZvIBB9.mjs";
|
|
3
3
|
import { A as types_d_exports$14, E as TextFormat, F as types_d_exports$8, K as types_d_exports$7, d as DebugTrigger, f as LocalWrite, h as defineTokens, j as defineComponent, m as popup, p as ScrollState, u as Box, x as CountdownValue, y as BindOptions } from "./types-DGHVGP5i.mjs";
|
|
4
|
-
import { $ as system, A as Draggable, At as Text, B as Touchable, C as AnimPlayer, Ct as debugPlugin, D as defineBundles, Dt as animPlugin, E as defineScene, Et as assetsPlugin, F as PointerOver, G as Exiting, H as Traced, I as Pressable, J as Order, K as Layer, L as Pressed, M as Held, Mt as defineTextStyles, N as Hovered, Nt as label, O as load, Ot as projection, P as Pointer, Q as resource, R as Swipeable, S as defineMotion, St as effectsPlugin, T as Frames, Tt as audioPlugin, U as PASS_KINDS, V as Traceable, W as frameAt, X as component, Y as Tree, Z as mut, _ as defineStyle, _t as modelPlugin, a as defineEmitter, at as defineFeature, b as messageDuration, bt as i18nPlugin, c as Alpha, ct as uiPlugin, d as Displacement, dt as scenesPlugin, et as tag, f as Glow, ft as rendererPlugin, g as resolve, gt as types_d_exports$11, h as music, ht as PlatformProvider, i as screen, it as schedule, j as DropTarget, jt as bind, k as ready, kt as Countdown, l as Blur, lt as timePlugin, m as Outline, mt as BackResult, n as createPlugin, nt as guide, o as Emitter, ot as flattenFeatures, p as Noise, pt as platformPlugin, q as Now, r as defineGame, rt as hint, s as defineFilter, st as worldPlugin, t as createApp, tt as defineEffect, u as ColorMatrix, ut as textPlugin, v as tr, vt as lifecyclePlugin, w as Animation, wt as clockPlugin, x as cubicBezier, xt as flowPlugin, y as messageArgument, yt as inputPlugin, z as Tappable } from "./index-
|
|
4
|
+
import { $ as system, A as Draggable, At as Text, B as Touchable, C as AnimPlayer, Ct as debugPlugin, D as defineBundles, Dt as animPlugin, E as defineScene, Et as assetsPlugin, F as PointerOver, G as Exiting, H as Traced, I as Pressable, J as Order, K as Layer, L as Pressed, M as Held, Mt as defineTextStyles, N as Hovered, Nt as label, O as load, Ot as projection, P as Pointer, Q as resource, R as Swipeable, S as defineMotion, St as effectsPlugin, T as Frames, Tt as audioPlugin, U as PASS_KINDS, V as Traceable, W as frameAt, X as component, Y as Tree, Z as mut, _ as defineStyle, _t as modelPlugin, a as defineEmitter, at as defineFeature, b as messageDuration, bt as i18nPlugin, c as Alpha, ct as uiPlugin, d as Displacement, dt as scenesPlugin, et as tag, f as Glow, ft as rendererPlugin, g as resolve, gt as types_d_exports$11, h as music, ht as PlatformProvider, i as screen, it as schedule, j as DropTarget, jt as bind, k as ready, kt as Countdown, l as Blur, lt as timePlugin, m as Outline, mt as BackResult, n as createPlugin, nt as guide, o as Emitter, ot as flattenFeatures, p as Noise, pt as platformPlugin, q as Now, r as defineGame, rt as hint, s as defineFilter, st as worldPlugin, t as createApp, tt as defineEffect, u as ColorMatrix, ut as textPlugin, v as tr, vt as lifecyclePlugin, w as Animation, wt as clockPlugin, x as cubicBezier, xt as flowPlugin, y as messageArgument, yt as inputPlugin, z as Tappable } from "./index-ZPmKRr0j.mjs";
|
|
5
5
|
export { type AdaptiveScale, Alpha, types_d_exports as Anim, AnimPlayer, Animation, types_d_exports$1 as Assets, types_d_exports$2 as Audio, type BackResult, type BindOptions, Blur, Box, types_d_exports$3 as Clock, ColorMatrix, Countdown, type CountdownValue, DEMAND_REASONS, types_d_exports$4 as Debug, DebugTrigger, type DescriptionNode, Displacement, Display, Draggable, DropTarget, types_d_exports$5 as Effects, Emitter, Exiting, type FilterArea, types_d_exports$6 as Flow, type FrameColumns, type FrameReadResult, type FrameReadout, type FrameRecord, type FrameRing, Frames, Glow, HAPTIC_KINDS, type HapticKind, Held, Hovered, HudPart, type HudPartValue, types_d_exports$7 as I18n, types_d_exports$8 as Input, Layer, types_d_exports$9 as Lifecycle, LocalWrite, type LongFrameEntry, MONITOR_SECTIONS, types_d_exports$10 as Model, type MonitorConfig, type MonitorCounts, type MonitorSections, NineSlice, Noise, Now, Order, Outline, Overlay, type OverlayEventDetail, type OverlayValue, type OverlayWhat, PASS_KINDS, PERF_CAUSES, PERF_GAP_BUCKETS, PERF_LOG_VERSION, PROBLEM_RULES, Parent, type PassKind, type PassRecord, type PerfCause, type PerfChange, type PerfChangeEntry, type PerfCollectorLine, type PerfCounts, type PerfDisplay, type PerfEventLine, type PerfEventName, type PerfGapLine, type PerfHeaderLine, type PerfLogLine, type PerfLongFrameLine, type PerfMarkLine, type PerfMeasured, type PerfSampleLine, type PerfSpikeLine, type PerfStartupLine, type PerfTelemetryLine, type PerfThermalLine, types_d_exports$11 as Platform, type PlatformProvider, Pointer, PointerOver, type PoolTrim, type PoolTrimDetail, Pressable, Pressed, type ProblemEventDetail, type ProblemRule, types_d_exports$12 as Renderer, SHADER_WHATS, SaveUnreadableError, types_d_exports$13 as Scenes, ScrollState, type ShaderEventDetail, type ShaderWhat, Shape, Sprite, type SpriteBlend, Swipeable, Tappable, Text, type TextFormat, types_d_exports$14 as TextTypes, types_d_exports$15 as Time, Touchable, Traceable, Traced, Transform, Tree, types_d_exports$16 as Ui, type WarmDetail, types_d_exports$17 as World, animPlugin, assetsPlugin, audioPlugin, bind, clockPlugin, component, createApp, createPlugin, cubicBezier, debugPlugin, defineAnimation, defineBundles, defineComponent, defineEffect, defineEmitter, defineFeature, defineFilter, defineGame, defineMotion, defineScene, defineStyle, defineTextStyles, defineTokens, effectsPlugin, exit, external, flattenFeatures, flowPlugin, frameAt, frames, guide, haptic, hint, i18nPlugin, inputPlugin, label, lifecyclePlugin, load, mark, messageArgument, messageDuration, modelPlugin, music, mut, parallel, platformPlugin, play, popup, projection, ready, rendererPlugin, resolve, resource, scenesPlugin, schedule, screen, sequence, set, sfx, slot, spawn, spawned, sprite, stagger, stopSfx, system, tag, textPlugin, timePlugin, to, tr, tween, type, uiPlugin, use, wait, worldPlugin };
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as sfx, $t as flowPlugin, A as types_exports$7, At as Glow, B as defineMotion, Bt as Animation, C as types_exports$14, Ct as messageDuration, D as types_exports$10, Dt as Blur, E as types_exports$11, Et as Alpha, F as types_exports$2, Ft as audioPlugin, G as external, Gt as MONITOR_SECTIONS, H as platformPlugin, Ht as rendererPlugin, I as types_exports$1, It as scenesPlugin, J as mark, Jt as PERF_LOG_VERSION, K as frames, Kt as PERF_CAUSES, L as types_exports, Lt as assetsPlugin, M as types_exports$5, Mt as Outline, N as types_exports$4, Nt as defineFilter, O as types_exports$9, Ot as ColorMatrix, P as types_exports$3, Pt as debugPlugin, Q as set, Qt as worldPlugin, R as uiPlugin, Rt as animPlugin, S as types_exports$15, St as messageArgument, T as types_exports$12, Tt as Emitter, U as HAPTIC_KINDS, Ut as PASS_KINDS, V as textPlugin, Vt as Frames, W as defineAnimation, Wt as frameAt, X as play, Xt as SHADER_WHATS, Y as parallel, Yt as PROBLEM_RULES, Z as sequence, Zt as DEMAND_REASONS, _ as defineBundles, _t as Tappable, a as cubicBezier, an as modelPlugin, at as use, b as types_exports$17, bt as Traced, c as hint, cn as timePlugin, ct as Draggable, d as defineScene, dt as Hovered, et as spawn, f as tr, ft as Pointer, g as music, gt as Swipeable, h as defineEmitter, ht as Pressed, i as screen, in as type, it as tween, j as types_exports$6, jt as Noise, k as types_exports$8, kt as Displacement, l as schedule, ln as clockPlugin, lt as DropTarget, m as flattenFeatures, mt as Pressable, n as createPlugin, nn as slot, nt as stagger, o as defineEffect, on as SaveUnreadableError, ot as wait, p as defineFeature, pt as PointerOver, q as haptic, qt as PERF_GAP_BUCKETS, r as defineGame, rn as to, rt as stopSfx, s as guide, sn as lifecyclePlugin, st as inputPlugin, t as createApp, tn as exit, tt as spawned, u as projection, ut as Held, v as load, vt as Touchable, w as types_exports$13, wt as effectsPlugin, x as types_exports$16, xt as i18nPlugin, y as ready, yt as Traceable, z as resolve, zt as AnimPlayer } from "./src-
|
|
1
|
+
import { $ as sfx, $t as flowPlugin, A as types_exports$7, At as Glow, B as defineMotion, Bt as Animation, C as types_exports$14, Ct as messageDuration, D as types_exports$10, Dt as Blur, E as types_exports$11, Et as Alpha, F as types_exports$2, Ft as audioPlugin, G as external, Gt as MONITOR_SECTIONS, H as platformPlugin, Ht as rendererPlugin, I as types_exports$1, It as scenesPlugin, J as mark, Jt as PERF_LOG_VERSION, K as frames, Kt as PERF_CAUSES, L as types_exports, Lt as assetsPlugin, M as types_exports$5, Mt as Outline, N as types_exports$4, Nt as defineFilter, O as types_exports$9, Ot as ColorMatrix, P as types_exports$3, Pt as debugPlugin, Q as set, Qt as worldPlugin, R as uiPlugin, Rt as animPlugin, S as types_exports$15, St as messageArgument, T as types_exports$12, Tt as Emitter, U as HAPTIC_KINDS, Ut as PASS_KINDS, V as textPlugin, Vt as Frames, W as defineAnimation, Wt as frameAt, X as play, Xt as SHADER_WHATS, Y as parallel, Yt as PROBLEM_RULES, Z as sequence, Zt as DEMAND_REASONS, _ as defineBundles, _t as Tappable, a as cubicBezier, an as modelPlugin, at as use, b as types_exports$17, bt as Traced, c as hint, cn as timePlugin, ct as Draggable, d as defineScene, dt as Hovered, et as spawn, f as tr, ft as Pointer, g as music, gt as Swipeable, h as defineEmitter, ht as Pressed, i as screen, in as type, it as tween, j as types_exports$6, jt as Noise, k as types_exports$8, kt as Displacement, l as schedule, ln as clockPlugin, lt as DropTarget, m as flattenFeatures, mt as Pressable, n as createPlugin, nn as slot, nt as stagger, o as defineEffect, on as SaveUnreadableError, ot as wait, p as defineFeature, pt as PointerOver, q as haptic, qt as PERF_GAP_BUCKETS, r as defineGame, rn as to, rt as stopSfx, s as guide, sn as lifecyclePlugin, st as inputPlugin, t as createApp, tn as exit, tt as spawned, u as projection, ut as Held, v as load, vt as Touchable, w as types_exports$13, wt as effectsPlugin, x as types_exports$16, xt as i18nPlugin, y as ready, yt as Traceable, z as resolve, zt as AnimPlayer } from "./src-DFhuDrm7.mjs";
|
|
2
2
|
import { $ as component, H as Shape, I as Display, J as Exiting, L as HudPart, Q as Tree, R as NineSlice, S as bind, T as label, U as Sprite, V as Parent, W as Transform, X as Now, Y as Layer, Z as Order, b as Countdown, d as LocalWrite, et as mut, g as popup, it as tag, l as DebugTrigger, nt as system, p as ScrollState, q as sprite, s as Box, tt as resource, v as defineTokens, w as defineTextStyles, x as Text, y as defineStyle, z as Overlay } from "./visual-ClVRMUAi.mjs";
|
|
3
3
|
import { t as defineComponent } from "./component-DGg5DqKK.mjs";
|
|
4
4
|
export { Alpha, types_exports as Anim, AnimPlayer, Animation, types_exports$1 as Assets, types_exports$2 as Audio, Blur, Box, types_exports$3 as Clock, ColorMatrix, Countdown, DEMAND_REASONS, types_exports$4 as Debug, DebugTrigger, Displacement, Display, Draggable, DropTarget, types_exports$5 as Effects, Emitter, Exiting, types_exports$6 as Flow, Frames, Glow, HAPTIC_KINDS, Held, Hovered, HudPart, types_exports$7 as I18n, types_exports$8 as Input, Layer, types_exports$9 as Lifecycle, LocalWrite, MONITOR_SECTIONS, types_exports$10 as Model, NineSlice, Noise, Now, Order, Outline, Overlay, PASS_KINDS, PERF_CAUSES, PERF_GAP_BUCKETS, PERF_LOG_VERSION, PROBLEM_RULES, Parent, types_exports$11 as Platform, Pointer, PointerOver, Pressable, Pressed, types_exports$12 as Renderer, SHADER_WHATS, SaveUnreadableError, types_exports$13 as Scenes, ScrollState, Shape, Sprite, Swipeable, Tappable, Text, types_exports$14 as TextTypes, types_exports$15 as Time, Touchable, Traceable, Traced, Transform, Tree, types_exports$16 as Ui, types_exports$17 as World, animPlugin, assetsPlugin, audioPlugin, bind, clockPlugin, component, createApp, createPlugin, cubicBezier, debugPlugin, defineAnimation, defineBundles, defineComponent, defineEffect, defineEmitter, defineFeature, defineFilter, defineGame, defineMotion, defineScene, defineStyle, defineTextStyles, defineTokens, effectsPlugin, exit, external, flattenFeatures, flowPlugin, frameAt, frames, guide, haptic, hint, i18nPlugin, inputPlugin, label, lifecyclePlugin, load, mark, messageArgument, messageDuration, modelPlugin, music, mut, parallel, platformPlugin, play, popup, projection, ready, rendererPlugin, resolve, resource, scenesPlugin, schedule, screen, sequence, set, sfx, slot, spawn, spawned, sprite, stagger, stopSfx, system, tag, textPlugin, timePlugin, to, tr, tween, type, uiPlugin, use, wait, worldPlugin };
|
package/dist/inspect.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Ir as Snapshot, Un as Position, Y as Api$2, ct as RenderStats, dn as ComponentSchema, gn as FrameDiff, h as Usage, hn as EntitySnapshot, in as Explained, ir as FlowGraph, it as Under, nn as Api$1, or as JournalEntry, t as Api$3, wr as Api } from "./types-D27I4Q7b.mjs";
|
|
2
|
-
import { a as AudioApi, g as EffectsStats, h as EffectsApi, r as UiApi, u as SoundEntry } from "./types-
|
|
2
|
+
import { a as AudioApi, g as EffectsStats, h as EffectsApi, r as UiApi, u as SoundEntry } from "./types-CrZvIBB9.mjs";
|
|
3
3
|
import { c as UiNode } from "./types-DGHVGP5i.mjs";
|
|
4
4
|
import { t as HeadlessApp } from "./headless-f31cEZ7f.mjs";
|
|
5
5
|
import { a as InputOf, c as Source, i as InputArguments, l as WatchApp, o as InputSchema, t as CheatEntry, u as WatchInput } from "./types-CgE5L_7f.mjs";
|
|
@@ -33535,6 +33535,145 @@ function dropEnded(list) {
|
|
|
33535
33535
|
while (list.length > kept) list.pop();
|
|
33536
33536
|
}
|
|
33537
33537
|
//#endregion
|
|
33538
|
+
//#region src/plugins/anim/timeline/checks.ts
|
|
33539
|
+
/**
|
|
33540
|
+
* Checks the keyframe segments of a `tween` step: at least one, every `at` in 0..1, each after the
|
|
33541
|
+
* one before, and the last at 1, because `to` is where the walk lands.
|
|
33542
|
+
*
|
|
33543
|
+
* @param component - Name of the component the step drives, for the error.
|
|
33544
|
+
* @param segments - The segments the author gave.
|
|
33545
|
+
* @throws {Error} When the list is empty, an `at` is out of range or out of order, or the last
|
|
33546
|
+
* segment ends before 1.
|
|
33547
|
+
* @example
|
|
33548
|
+
* ```ts
|
|
33549
|
+
* checkSegments("Transform", [{ at: 0.5 }, { at: 1 }]); // returns; [{ at: 0.5 }] throws
|
|
33550
|
+
* ```
|
|
33551
|
+
*/
|
|
33552
|
+
function checkSegments(component, segments) {
|
|
33553
|
+
if (segments.length === 0) throw new Error(`[game] A tween of ${component} has no segments.\n Give it at least one segment, the last one at 1.`);
|
|
33554
|
+
let previous = Number.NEGATIVE_INFINITY;
|
|
33555
|
+
for (const { at } of segments) {
|
|
33556
|
+
if (Number.isNaN(at) || at < 0 || at > 1) throw new Error(`[game] A tween of ${component} has a segment at ${at}.\n Keep every at between 0 and 1.`);
|
|
33557
|
+
if (at <= previous) throw new Error(`[game] A tween of ${component} has its segments out of order at ${at}.\n Sort the segments by at, each one after the one before.`);
|
|
33558
|
+
previous = at;
|
|
33559
|
+
}
|
|
33560
|
+
if (previous !== 1) throw new Error(`[game] A tween of ${component} ends its last segment at ${previous}.\n End the last segment at 1: to is where the walk lands.`);
|
|
33561
|
+
}
|
|
33562
|
+
/**
|
|
33563
|
+
* Checks the space of a keyframe walk: an additive one names offsets, and the root space would
|
|
33564
|
+
* turn each offset as if it were a root position, so a chest under a slot at root y 500 would jump
|
|
33565
|
+
* by about 500 at its first segment. An additive walk stays in the local space.
|
|
33566
|
+
*
|
|
33567
|
+
* @param component - Name of the component the step drives, for the error.
|
|
33568
|
+
* @param additive - Whether the walk adds offsets.
|
|
33569
|
+
* @param space - The space the step names.
|
|
33570
|
+
* @throws {Error} When an additive walk names the root space.
|
|
33571
|
+
* @example
|
|
33572
|
+
* ```ts
|
|
33573
|
+
* checkWalkSpace("Transform", true, "local"); // returns; (…, true, "root") throws
|
|
33574
|
+
* ```
|
|
33575
|
+
*/
|
|
33576
|
+
function checkWalkSpace(component, additive, space) {
|
|
33577
|
+
if (!additive || space === "local") return;
|
|
33578
|
+
throw new Error(`[game] An additive tween of ${component} walks segments in the root space.\n Use space "local" for an additive walk.`);
|
|
33579
|
+
}
|
|
33580
|
+
/**
|
|
33581
|
+
* Checks the repeat of a `tween` step: a whole number of extra runs, 0 or more, or `"forever"`.
|
|
33582
|
+
*
|
|
33583
|
+
* @param component - Name of the component the step drives, for the error.
|
|
33584
|
+
* @param repeat - The repeat the author gave.
|
|
33585
|
+
* @throws {Error} When the repeat is negative, not whole or not a number.
|
|
33586
|
+
* @example
|
|
33587
|
+
* ```ts
|
|
33588
|
+
* checkRepeat("Transform", "forever"); // returns; checkRepeat("Transform", 1.5) throws
|
|
33589
|
+
* ```
|
|
33590
|
+
*/
|
|
33591
|
+
function checkRepeat(component, repeat) {
|
|
33592
|
+
if (repeat === "forever" || Number.isInteger(repeat) && repeat >= 0) return;
|
|
33593
|
+
throw new Error(`[game] A tween of ${component} has repeat ${repeat}.\n Give repeat a whole number of extra runs, 0 or more, or "forever".`);
|
|
33594
|
+
}
|
|
33595
|
+
/**
|
|
33596
|
+
* Tells whether a step never ends by itself: a `tween` that repeats forever, a `parallel` or a
|
|
33597
|
+
* `sequence` that holds one, and a `use` of one. Only a cancel or a finish ends it.
|
|
33598
|
+
*
|
|
33599
|
+
* @param step - The step to look into.
|
|
33600
|
+
* @returns True when the step never ends by itself.
|
|
33601
|
+
* @example
|
|
33602
|
+
* ```ts
|
|
33603
|
+
* neverEnds(wait(100)); // false
|
|
33604
|
+
* neverEnds(tween(1_048_576, Transform, { y: 0 }, { ms: 2400, repeat: "forever" })); // true
|
|
33605
|
+
* ```
|
|
33606
|
+
*/
|
|
33607
|
+
function neverEnds(step) {
|
|
33608
|
+
switch (step.kind) {
|
|
33609
|
+
case "tween": return step.repeat === "forever";
|
|
33610
|
+
case "sequence":
|
|
33611
|
+
case "parallel": return step.steps.some((child) => neverEnds(child));
|
|
33612
|
+
case "use": return neverEnds(step.step);
|
|
33613
|
+
default: return false;
|
|
33614
|
+
}
|
|
33615
|
+
}
|
|
33616
|
+
/**
|
|
33617
|
+
* Checks the children of a `sequence`: a child that never ends may only be the last one, since
|
|
33618
|
+
* the children after it would never play. A `parallel` takes one anywhere.
|
|
33619
|
+
*
|
|
33620
|
+
* @param steps - The children, in order.
|
|
33621
|
+
* @throws {Error} When a child that never ends has another child after it.
|
|
33622
|
+
* @example
|
|
33623
|
+
* ```ts
|
|
33624
|
+
* checkSequence([wait(100), mark("landed")]); // returns; a forever tween before the mark throws
|
|
33625
|
+
* ```
|
|
33626
|
+
*/
|
|
33627
|
+
function checkSequence(steps) {
|
|
33628
|
+
for (let index = 0; index < steps.length - 1; index++) {
|
|
33629
|
+
const step = steps[index];
|
|
33630
|
+
if (step !== void 0 && neverEnds(step)) throw new Error(`[game] Step ${index + 1} of a sequence never ends, so the steps after it would never play.\n Put the forever step last, or run it in a parallel.`);
|
|
33631
|
+
}
|
|
33632
|
+
}
|
|
33633
|
+
/**
|
|
33634
|
+
* Tells whether a step loops a frame list for ever: a `frames` step with `loop`, or a `parallel`,
|
|
33635
|
+
* a `sequence` or a `use` that holds one where it never lets go.
|
|
33636
|
+
*
|
|
33637
|
+
* @param step - The step to look into.
|
|
33638
|
+
* @returns True when a looping frame list keeps the step from ending.
|
|
33639
|
+
* @example
|
|
33640
|
+
* ```ts
|
|
33641
|
+
* loopsFrames(frames(1_048_576, { keys: ["fx.spark-1"], fps: 12, loop: true })); // true
|
|
33642
|
+
* ```
|
|
33643
|
+
*/
|
|
33644
|
+
function loopsFrames(step) {
|
|
33645
|
+
switch (step.kind) {
|
|
33646
|
+
case "frames": return step.loop;
|
|
33647
|
+
case "parallel": return step.steps.some((child) => loopsFrames(child));
|
|
33648
|
+
case "sequence": {
|
|
33649
|
+
const last = step.steps.at(-1);
|
|
33650
|
+
return last !== void 0 && loopsFrames(last);
|
|
33651
|
+
}
|
|
33652
|
+
case "use": return loopsFrames(step.step);
|
|
33653
|
+
default: return false;
|
|
33654
|
+
}
|
|
33655
|
+
}
|
|
33656
|
+
/**
|
|
33657
|
+
* Tells whether a step tree holds a `sequence` whose step before the last loops a frame list for
|
|
33658
|
+
* ever, so the steps after it never play. A forever `tween` there already throws when it is built;
|
|
33659
|
+
* a looping `frames` only warns, while games written before the rule are fixed.
|
|
33660
|
+
*
|
|
33661
|
+
* @param step - The root of the tree.
|
|
33662
|
+
* @returns True when a looping frame list blocks the rest of a sequence somewhere in the tree.
|
|
33663
|
+
* @example
|
|
33664
|
+
* ```ts
|
|
33665
|
+
* loopBlocksSequence(sequence(frames(1_048_576, { keys: ["fx.spark-1"], fps: 12, loop: true }), mark("lit"))); // true
|
|
33666
|
+
* ```
|
|
33667
|
+
*/
|
|
33668
|
+
function loopBlocksSequence(step) {
|
|
33669
|
+
switch (step.kind) {
|
|
33670
|
+
case "sequence": return step.steps.slice(0, -1).some((child) => loopsFrames(child)) || step.steps.some((child) => loopBlocksSequence(child));
|
|
33671
|
+
case "parallel": return step.steps.some((child) => loopBlocksSequence(child));
|
|
33672
|
+
case "use": return loopBlocksSequence(step.step);
|
|
33673
|
+
default: return false;
|
|
33674
|
+
}
|
|
33675
|
+
}
|
|
33676
|
+
//#endregion
|
|
33538
33677
|
//#region src/plugins/anim/timeline/play.ts
|
|
33539
33678
|
/**
|
|
33540
33679
|
* @file anim/timeline — one running timeline: the bookkeeping around a cursor. It builds the step
|
|
@@ -33640,6 +33779,20 @@ function endTimeline(actx, running, finished) {
|
|
|
33640
33779
|
running.resolve();
|
|
33641
33780
|
}
|
|
33642
33781
|
/**
|
|
33782
|
+
* Warns once per animation, in a dev build, when a looping `frames` step stands before another step of a `sequence`:
|
|
33783
|
+
* the steps after it never play. A warning, not an error, while the games written before the rule are fixed.
|
|
33784
|
+
*
|
|
33785
|
+
* @param actx - Domain context of the anim plugin.
|
|
33786
|
+
* @param animation - The id of the animation that is played.
|
|
33787
|
+
* @param step - Its built step tree.
|
|
33788
|
+
*/
|
|
33789
|
+
function warnLoopBlocks(actx, animation, step) {
|
|
33790
|
+
if (typeof __MOKU_GAME_DEV__ === "undefined" || !__MOKU_GAME_DEV__) return;
|
|
33791
|
+
if (actx.state.warnedLoops.has(animation) || !loopBlocksSequence(step)) return;
|
|
33792
|
+
actx.state.warnedLoops.add(animation);
|
|
33793
|
+
actx.log.warn("anim:loop-blocks-sequence", { animation });
|
|
33794
|
+
}
|
|
33795
|
+
/**
|
|
33643
33796
|
* Builds the step tree of an animation with the given targets and starts it. The build runs here,
|
|
33644
33797
|
* once per play, so the same animation may play twice at once, each play with its own spawn table.
|
|
33645
33798
|
* Every `{ projection, key }` target is resolved here, once: each step writes the entity that held
|
|
@@ -33656,6 +33809,7 @@ function startTimeline(actx, rt, definition, slots) {
|
|
|
33656
33809
|
const spawned = emptySpawnTable();
|
|
33657
33810
|
const step = definition.build(slots, { at: (target) => restPoseOf(actx, target, spawned) });
|
|
33658
33811
|
assertUniqueSpawns(definition.id, step);
|
|
33812
|
+
warnLoopBlocks(actx, definition.id, step);
|
|
33659
33813
|
const id = actx.state.nextId;
|
|
33660
33814
|
actx.state.nextId += 1;
|
|
33661
33815
|
const cursor = createCursor(step);
|
|
@@ -35220,7 +35374,8 @@ function createAnimState(ctx) {
|
|
|
35220
35374
|
framesHeld: emptyMap$5(),
|
|
35221
35375
|
frameMutes: emptyMap$5(),
|
|
35222
35376
|
offFrames: [],
|
|
35223
|
-
loopsHeld: void 0
|
|
35377
|
+
loopsHeld: void 0,
|
|
35378
|
+
warnedLoops: emptySet$3()
|
|
35224
35379
|
};
|
|
35225
35380
|
}
|
|
35226
35381
|
/**
|
|
@@ -49917,102 +50072,6 @@ function createHandlers$1(ctx) {
|
|
|
49917
50072
|
} };
|
|
49918
50073
|
}
|
|
49919
50074
|
//#endregion
|
|
49920
|
-
//#region src/plugins/anim/timeline/checks.ts
|
|
49921
|
-
/**
|
|
49922
|
-
* Checks the keyframe segments of a `tween` step: at least one, every `at` in 0..1, each after the
|
|
49923
|
-
* one before, and the last at 1, because `to` is where the walk lands.
|
|
49924
|
-
*
|
|
49925
|
-
* @param component - Name of the component the step drives, for the error.
|
|
49926
|
-
* @param segments - The segments the author gave.
|
|
49927
|
-
* @throws {Error} When the list is empty, an `at` is out of range or out of order, or the last
|
|
49928
|
-
* segment ends before 1.
|
|
49929
|
-
* @example
|
|
49930
|
-
* ```ts
|
|
49931
|
-
* checkSegments("Transform", [{ at: 0.5 }, { at: 1 }]); // returns; [{ at: 0.5 }] throws
|
|
49932
|
-
* ```
|
|
49933
|
-
*/
|
|
49934
|
-
function checkSegments(component, segments) {
|
|
49935
|
-
if (segments.length === 0) throw new Error(`[game] A tween of ${component} has no segments.\n Give it at least one segment, the last one at 1.`);
|
|
49936
|
-
let previous = Number.NEGATIVE_INFINITY;
|
|
49937
|
-
for (const { at } of segments) {
|
|
49938
|
-
if (Number.isNaN(at) || at < 0 || at > 1) throw new Error(`[game] A tween of ${component} has a segment at ${at}.\n Keep every at between 0 and 1.`);
|
|
49939
|
-
if (at <= previous) throw new Error(`[game] A tween of ${component} has its segments out of order at ${at}.\n Sort the segments by at, each one after the one before.`);
|
|
49940
|
-
previous = at;
|
|
49941
|
-
}
|
|
49942
|
-
if (previous !== 1) throw new Error(`[game] A tween of ${component} ends its last segment at ${previous}.\n End the last segment at 1: to is where the walk lands.`);
|
|
49943
|
-
}
|
|
49944
|
-
/**
|
|
49945
|
-
* Checks the space of a keyframe walk: an additive one names offsets, and the root space would
|
|
49946
|
-
* turn each offset as if it were a root position, so a chest under a slot at root y 500 would jump
|
|
49947
|
-
* by about 500 at its first segment. An additive walk stays in the local space.
|
|
49948
|
-
*
|
|
49949
|
-
* @param component - Name of the component the step drives, for the error.
|
|
49950
|
-
* @param additive - Whether the walk adds offsets.
|
|
49951
|
-
* @param space - The space the step names.
|
|
49952
|
-
* @throws {Error} When an additive walk names the root space.
|
|
49953
|
-
* @example
|
|
49954
|
-
* ```ts
|
|
49955
|
-
* checkWalkSpace("Transform", true, "local"); // returns; (…, true, "root") throws
|
|
49956
|
-
* ```
|
|
49957
|
-
*/
|
|
49958
|
-
function checkWalkSpace(component, additive, space) {
|
|
49959
|
-
if (!additive || space === "local") return;
|
|
49960
|
-
throw new Error(`[game] An additive tween of ${component} walks segments in the root space.\n Use space "local" for an additive walk.`);
|
|
49961
|
-
}
|
|
49962
|
-
/**
|
|
49963
|
-
* Checks the repeat of a `tween` step: a whole number of extra runs, 0 or more, or `"forever"`.
|
|
49964
|
-
*
|
|
49965
|
-
* @param component - Name of the component the step drives, for the error.
|
|
49966
|
-
* @param repeat - The repeat the author gave.
|
|
49967
|
-
* @throws {Error} When the repeat is negative, not whole or not a number.
|
|
49968
|
-
* @example
|
|
49969
|
-
* ```ts
|
|
49970
|
-
* checkRepeat("Transform", "forever"); // returns; checkRepeat("Transform", 1.5) throws
|
|
49971
|
-
* ```
|
|
49972
|
-
*/
|
|
49973
|
-
function checkRepeat(component, repeat) {
|
|
49974
|
-
if (repeat === "forever" || Number.isInteger(repeat) && repeat >= 0) return;
|
|
49975
|
-
throw new Error(`[game] A tween of ${component} has repeat ${repeat}.\n Give repeat a whole number of extra runs, 0 or more, or "forever".`);
|
|
49976
|
-
}
|
|
49977
|
-
/**
|
|
49978
|
-
* Tells whether a step never ends by itself: a `tween` that repeats forever, a `parallel` or a
|
|
49979
|
-
* `sequence` that holds one, and a `use` of one. Only a cancel or a finish ends it.
|
|
49980
|
-
*
|
|
49981
|
-
* @param step - The step to look into.
|
|
49982
|
-
* @returns True when the step never ends by itself.
|
|
49983
|
-
* @example
|
|
49984
|
-
* ```ts
|
|
49985
|
-
* neverEnds(wait(100)); // false
|
|
49986
|
-
* neverEnds(tween(1_048_576, Transform, { y: 0 }, { ms: 2400, repeat: "forever" })); // true
|
|
49987
|
-
* ```
|
|
49988
|
-
*/
|
|
49989
|
-
function neverEnds(step) {
|
|
49990
|
-
switch (step.kind) {
|
|
49991
|
-
case "tween": return step.repeat === "forever";
|
|
49992
|
-
case "sequence":
|
|
49993
|
-
case "parallel": return step.steps.some((child) => neverEnds(child));
|
|
49994
|
-
case "use": return neverEnds(step.step);
|
|
49995
|
-
default: return false;
|
|
49996
|
-
}
|
|
49997
|
-
}
|
|
49998
|
-
/**
|
|
49999
|
-
* Checks the children of a `sequence`: a child that never ends may only be the last one, since
|
|
50000
|
-
* the children after it would never play. A `parallel` takes one anywhere.
|
|
50001
|
-
*
|
|
50002
|
-
* @param steps - The children, in order.
|
|
50003
|
-
* @throws {Error} When a child that never ends has another child after it.
|
|
50004
|
-
* @example
|
|
50005
|
-
* ```ts
|
|
50006
|
-
* checkSequence([wait(100), mark("landed")]); // returns; a forever tween before the mark throws
|
|
50007
|
-
* ```
|
|
50008
|
-
*/
|
|
50009
|
-
function checkSequence(steps) {
|
|
50010
|
-
for (let index = 0; index < steps.length - 1; index++) {
|
|
50011
|
-
const step = steps[index];
|
|
50012
|
-
if (step !== void 0 && neverEnds(step)) throw new Error(`[game] Step ${index + 1} of a sequence never ends, so the steps after it would never play.\n Put the forever step last, or run it in a parallel.`);
|
|
50013
|
-
}
|
|
50014
|
-
}
|
|
50015
|
-
//#endregion
|
|
50016
50075
|
//#region src/plugins/anim/timeline/steps.ts
|
|
50017
50076
|
/**
|
|
50018
50077
|
* Every haptic tick `haptic(kind)` takes, in one frozen list: the three impacts, the selection
|
package/dist/testing.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { $n as FeaturePlugin, Dr as Json, dr as Descriptor, gr as NodeFx, hr as Hint, sr as NodeTable, tr as AnyFlow, xr as FakeClock, yr as ClockSource } from "./types-D27I4Q7b.mjs";
|
|
2
|
-
import { t as createApp } from "./index-
|
|
3
|
-
import { b as saveOf, v as WithGameState, y as memory } from "./types-
|
|
2
|
+
import { t as createApp } from "./index-ZPmKRr0j.mjs";
|
|
3
|
+
import { b as saveOf, v as WithGameState, y as memory } from "./types-DrtsLNnT.mjs";
|
|
4
4
|
import { a as createHeadless, i as ReproResult, n as HeadlessGame, o as runRepro, r as Repro, s as stepFrames, t as HeadlessApp } from "./headless-f31cEZ7f.mjs";
|
|
5
5
|
import { AnyPluginInstance } from "@moku-labs/core";
|
|
6
6
|
|
package/dist/testing.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { en as refuseStart, in as type, m as flattenFeatures, t as createApp, tn as exit } from "./src-
|
|
1
|
+
import { en as refuseStart, in as type, m as flattenFeatures, t as createApp, tn as exit } from "./src-DFhuDrm7.mjs";
|
|
2
2
|
import { n as saveOf, t as memory } from "./memory-CWlqhS7l.mjs";
|
|
3
3
|
import { n as fakeClock } from "./fake-hnJcJeYf.mjs";
|
|
4
4
|
import { i as stepFrames, r as runRepro, t as createHeadless } from "./headless-Bxxl_mQX.mjs";
|
|
@@ -1151,7 +1151,8 @@ type State$3 = {
|
|
|
1151
1151
|
registry: Map<string, AnyAnimationDefinition>; /** `onMark` subscribers, in subscription order. */
|
|
1152
1152
|
markListeners: Set<MarkListener>; /** Counter of the frame steps. A track born in the running step is not advanced by it. */
|
|
1153
1153
|
frame: number; /** True while the track count is over `maxTracks`, so the warning is one per crossing. */
|
|
1154
|
-
overMaxTracks: boolean; /** The
|
|
1154
|
+
overMaxTracks: boolean; /** The animations already warned for a looping `frames` step that blocks the rest of a `sequence` (dev). */
|
|
1155
|
+
warnedLoops: Set<string>; /** The live reduced-motion switch. The frozen `Config.reducedMotion` only seeds it. */
|
|
1155
1156
|
reducedMotion: boolean; /** Remover of `world.projection.setDriver`. */
|
|
1156
1157
|
removeDriver: (() => void) | undefined; /** Remover of `time.onFrame("animate")`. */
|
|
1157
1158
|
offFrame: (() => void) | undefined; /** Remover of `flow.fx.handle("play")`. */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { $ as PixiModule, $n as FeaturePlugin, Dr as Json, Lr as SnapshotOf, Mr as PlayerStateProvider, Nr as ProviderCall, Pr as SaveDoc, Tr as Config, X as Config$2, a as Config$3, d as Manifest, lt as Orientation, n as AssetsIo, tr as AnyFlow, ur as TypeTag, xr as FakeClock, yr as ClockSource, zn as Config$1 } from "./types-D27I4Q7b.mjs";
|
|
2
|
-
import { o as AudioContextLike, s as Config$4 } from "./types-
|
|
2
|
+
import { o as AudioContextLike, s as Config$4 } from "./types-CrZvIBB9.mjs";
|
|
3
3
|
import { R as I18nApi, U as StringTable, W as TextKey } from "./types-DGHVGP5i.mjs";
|
|
4
|
-
import { St as effectsPlugin, Tt as audioPlugin, ht as PlatformProvider, i as screen, pt as platformPlugin, t as createApp } from "./index-
|
|
4
|
+
import { St as effectsPlugin, Tt as audioPlugin, ht as PlatformProvider, i as screen, pt as platformPlugin, t as createApp } from "./index-ZPmKRr0j.mjs";
|
|
5
5
|
import { AnyPluginInstance } from "@moku-labs/core";
|
|
6
6
|
|
|
7
7
|
//#region src/plugins/model/store/providers/memory.d.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Vr as Api$3, Y as Api, nn as Api$1, vr as Api$4, wr as Api$2 } from "./types-D27I4Q7b.mjs";
|
|
2
|
-
import { P as AnimApi, r as UiApi } from "./types-
|
|
2
|
+
import { P as AnimApi, r as UiApi } from "./types-CrZvIBB9.mjs";
|
|
3
3
|
import { N as InputApi } from "./types-DGHVGP5i.mjs";
|
|
4
4
|
import { r as Repro } from "./headless-f31cEZ7f.mjs";
|
|
5
5
|
import { a as InputOf, r as ControlApp } from "./types-CgE5L_7f.mjs";
|
|
6
|
-
import { t as commands } from "./commands-
|
|
6
|
+
import { t as commands } from "./commands-DSYOsn8r.mjs";
|
|
7
7
|
|
|
8
8
|
//#region src/visual/types.d.ts
|
|
9
9
|
/** The base commands of the `/control` door, keyed by their short names. */
|
package/dist/visual.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as VisualApp, c as VisualRenderer, d as VisualStart, f as VisualStep, h as VisualTolerance, i as CheckpointResult, l as VisualReport, m as VisualTestResult, n as runVisualTests, o as VisualOptions, p as VisualTest, r as defineVisualTest, s as VisualPage, t as parseVisualArgv, u as VisualSetup } from "./visual-
|
|
1
|
+
import { a as VisualApp, c as VisualRenderer, d as VisualStart, f as VisualStep, h as VisualTolerance, i as CheckpointResult, l as VisualReport, m as VisualTestResult, n as runVisualTests, o as VisualOptions, p as VisualTest, r as defineVisualTest, s as VisualPage, t as parseVisualArgv, u as VisualSetup } from "./visual-CYxR9E2v.mjs";
|
|
2
2
|
export { type CheckpointResult, type VisualApp, type VisualOptions, type VisualPage, type VisualRenderer, type VisualReport, type VisualSetup, type VisualStart, type VisualStep, type VisualTest, type VisualTestResult, type VisualTolerance, defineVisualTest, parseVisualArgv, runVisualTests };
|