1681-engine 0.0.0-stage → 0.5.9
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/CHANGELOG.md +357 -0
- package/LICENSE +21 -0
- package/README.md +164 -2
- package/dist/1681-engine.js +471 -0
- package/dist/ambient/ColorGrade.js +40 -0
- package/dist/ambient/DayClock.js +56 -0
- package/dist/ambient/WeatherLayer.js +90 -0
- package/dist/ambient/grade.js +12 -0
- package/dist/ambient/weather.js +51 -0
- package/dist/anim/AnimStateMachine.js +163 -0
- package/dist/anim/Animator.js +66 -0
- package/dist/anim/animStateCompile.js +112 -0
- package/dist/anim/animStateSystem.js +16 -0
- package/dist/anim/animationSystem.js +14 -0
- package/dist/anim/asepriteSlices.js +21 -0
- package/dist/anim/asepriteTags.js +34 -0
- package/dist/anim/parseAseprite.js +82 -0
- package/dist/assets/AssetLoader.js +202 -0
- package/dist/assets/loadAseprite.js +49 -0
- package/dist/assets/takeCleanerWorker-DTcI_Jqr.js +30 -0
- package/dist/assets/textureAtlas.js +58 -0
- package/dist/audio/Footsteps.js +25 -0
- package/dist/audio/MusicPlayer.js +77 -0
- package/dist/audio/SoundEngine.js +125 -0
- package/dist/audio/cleanTake.js +29 -0
- package/dist/audio/music/ElementVoice.js +34 -0
- package/dist/audio/music/GraphVoice.js +38 -0
- package/dist/audio/music/MusicChannel.js +57 -0
- package/dist/audio/music/musicVoice.js +12 -0
- package/dist/audio/sampleBank.js +81 -0
- package/dist/audio/soundTable.js +8 -0
- package/dist/audio/synth.js +35 -0
- package/dist/core/BitmapLabel.js +48 -0
- package/dist/core/Camera.js +149 -0
- package/dist/core/Clock.js +40 -0
- package/dist/core/Graphics.js +68 -0
- package/dist/core/Group.js +28 -0
- package/dist/core/Image.js +50 -0
- package/dist/core/ObjectFactory.js +54 -0
- package/dist/core/Pointer.js +80 -0
- package/dist/core/Rectangle.js +50 -0
- package/dist/core/Stage.js +85 -0
- package/dist/core/Text.js +21 -0
- package/dist/core/TextureRegistry.js +141 -0
- package/dist/core/Timeline.js +210 -0
- package/dist/core/TimelineBuilder.js +72 -0
- package/dist/core/TimelineChild.js +83 -0
- package/dist/core/Tweener.js +135 -0
- package/dist/core/atlas.js +37 -0
- package/dist/core/atlasPlan.js +21 -0
- package/dist/core/blendLayer.js +11 -0
- package/dist/core/eases.js +20 -0
- package/dist/core/gameObject.js +117 -0
- package/dist/core/pixelZoom.js +43 -0
- package/dist/core/pixiPatches.js +17 -0
- package/dist/core/runDue.js +28 -0
- package/dist/core/silhouette.js +49 -0
- package/dist/core/timelinePlace.js +23 -0
- package/dist/core/tweenProps.js +11 -0
- package/dist/debug/DebugOverlay.js +93 -0
- package/dist/debug/DrawCallCounter.js +44 -0
- package/dist/debug/ErrorLog.js +21 -0
- package/dist/debug/FrameStats.js +41 -0
- package/dist/debug/inspectWorld.js +28 -0
- package/dist/diagnostics/ErrorDeduper.js +26 -0
- package/dist/diagnostics/FrameSampler.js +41 -0
- package/dist/diagnostics/bootWatch.js +20 -0
- package/dist/diagnostics/captureErrors.js +26 -0
- package/dist/diagnostics/contextLoss.js +24 -0
- package/dist/diagnostics/frameStats.js +30 -0
- package/dist/diagnostics/gpuInfo.js +21 -0
- package/dist/diagnostics/renderGuard.js +23 -0
- package/dist/ecs/SparseSet.js +54 -0
- package/dist/ecs/World.js +306 -0
- package/dist/ecs/fields.js +25 -0
- package/dist/engine/Engine.js +106 -0
- package/dist/engine/FixedLoop.js +36 -0
- package/dist/engine/HiddenPause.js +27 -0
- package/dist/engine/Scene.js +78 -0
- package/dist/engine/SceneManager.js +72 -0
- package/dist/events/EventBus.js +41 -0
- package/dist/fx/Afterimages.js +82 -0
- package/dist/fx/FloatingText.js +71 -0
- package/dist/fx/hitStop.js +27 -0
- package/dist/fx/viewCull.js +9 -0
- package/dist/i18n/Translator.js +71 -0
- package/dist/i18n/extractStrings.js +57 -0
- package/dist/i18n/formatMessage.js +18 -0
- package/dist/input/Actions.js +139 -0
- package/dist/input/AimGesture.js +74 -0
- package/dist/input/Keyboard.js +53 -0
- package/dist/input/Keymap.js +170 -0
- package/dist/input/TargetLock.js +72 -0
- package/dist/input/aimAxis.js +7 -0
- package/dist/input/keyChord.js +28 -0
- package/dist/input/longPress.js +31 -0
- package/dist/input/rumble.js +42 -0
- package/dist/input/stickAxis.js +22 -0
- package/dist/input/touchDetect.js +6 -0
- package/dist/light/LightLayer.js +83 -0
- package/dist/nav/MinHeap.js +38 -0
- package/dist/nav/findPath.js +77 -0
- package/dist/nav/navGrid.js +35 -0
- package/dist/nav/nearestOpen.js +18 -0
- package/dist/nav/straightenPath.js +50 -0
- package/dist/net/Connection.js +107 -0
- package/dist/net/InterpolationBuffer.js +56 -0
- package/dist/net/PredictedMover.js +60 -0
- package/dist/net/Room.js +91 -0
- package/dist/net/RoomHost.js +100 -0
- package/dist/net/cadence.js +21 -0
- package/dist/net/constants.js +10 -0
- package/dist/net/lobby/LobbyClient.js +123 -0
- package/dist/net/lobby/LobbyHost.js +365 -0
- package/dist/net/lobby/LobbyRooms.js +65 -0
- package/dist/net/lobby/Matchmaker.js +105 -0
- package/dist/net/movement.js +84 -0
- package/dist/net/protocol.js +10 -0
- package/dist/net/reconnect.js +10 -0
- package/dist/net/serverClock.js +21 -0
- package/dist/net/snapshotCodec.js +91 -0
- package/dist/parallax/Parallax.js +31 -0
- package/dist/parallax/ParallaxLayer.js +69 -0
- package/dist/parallax/parallaxMath.js +26 -0
- package/dist/particles/Emitter.js +107 -0
- package/dist/particles/ParticleBudget.js +31 -0
- package/dist/particles/ParticleSim.js +59 -0
- package/dist/particles/particleCurves.js +47 -0
- package/dist/particles/particleSampling.js +29 -0
- package/dist/physics/Body.js +201 -0
- package/dist/physics/BroadPhase.js +55 -0
- package/dist/physics/Contact.js +75 -0
- package/dist/physics/ContactSolver.js +69 -0
- package/dist/physics/PhysicsWorld.js +220 -0
- package/dist/physics/SpatialHash.js +38 -0
- package/dist/physics/collide.js +75 -0
- package/dist/physics/collidePolygon.js +93 -0
- package/dist/physics/contactReport.js +13 -0
- package/dist/physics/drawColliders.js +30 -0
- package/dist/physics/physicsSystem.js +7 -0
- package/dist/physics/polygon.js +79 -0
- package/dist/physics/raycast.js +61 -0
- package/dist/physics/syncToBody.js +18 -0
- package/dist/physics/tileBodies.js +58 -0
- package/dist/physics/types.js +7 -0
- package/dist/pixel/Darkness.js +169 -0
- package/dist/pixel/DitherVignette.js +56 -0
- package/dist/pixel/Evaporation.js +84 -0
- package/dist/pixel/NightShade.js +33 -0
- package/dist/pixel/PixelLayer.js +210 -0
- package/dist/pixel/PixelMarks.js +99 -0
- package/dist/pixel/SwayProp.js +74 -0
- package/dist/pixel/aimPixels.js +67 -0
- package/dist/pixel/lights.js +43 -0
- package/dist/pixel/nineSlice.js +61 -0
- package/dist/pixel/paintLayer.js +35 -0
- package/dist/pixel/palette.js +56 -0
- package/dist/pixel/pixel.js +277 -0
- package/dist/pixel/pixelPaint.js +197 -0
- package/dist/pixel/pixelParticles.js +35 -0
- package/dist/pixel/pixelTone.js +163 -0
- package/dist/pixel/propKit.js +40 -0
- package/dist/pixel/ramp.js +101 -0
- package/dist/pixel/selout.js +34 -0
- package/dist/pixel/spritePixels.js +58 -0
- package/dist/pixel/swayRig.js +86 -0
- package/dist/pixel/vignetteMask.js +23 -0
- package/dist/pixel/weatherArt.js +60 -0
- package/dist/pixel.js +96 -0
- package/dist/platform/appResume.js +18 -0
- package/dist/platform/fullscreen.js +52 -0
- package/dist/platform/orientation.js +26 -0
- package/dist/platform/pointerLock.js +37 -0
- package/dist/platform/reducedMotion.js +23 -0
- package/dist/platform/timeoutSignal.js +14 -0
- package/dist/platform/touch.js +32 -0
- package/dist/postfx/BloomFilter.js +64 -0
- package/dist/postfx/ChromaticAberrationFilter.js +24 -0
- package/dist/postfx/ColorAdjustFilter.js +75 -0
- package/dist/postfx/CrtFilter.js +41 -0
- package/dist/postfx/PixelateFilter.js +26 -0
- package/dist/postfx/PostFx.js +122 -0
- package/dist/postfx/ShockwaveFilter.js +48 -0
- package/dist/postfx/VignetteFilter.js +36 -0
- package/dist/postfx/fxAnimator.js +37 -0
- package/dist/postfx/fxShader.js +127 -0
- package/dist/postfx.js +25 -0
- package/dist/react/ChoiceDialog.js +50 -0
- package/dist/react/ConfirmDialog.js +52 -0
- package/dist/react/Glyph.js +62 -0
- package/dist/react/Modal.js +37 -0
- package/dist/react/Panel.js +23 -0
- package/dist/react/PixelImage.js +23 -0
- package/dist/react/Select.js +98 -0
- package/dist/react/Slider.js +61 -0
- package/dist/react/SplitPane.js +23 -0
- package/dist/react/TabStrip.js +31 -0
- package/dist/react/TitleTips.js +41 -0
- package/dist/react/Tooltip.js +27 -0
- package/dist/react/UiProvider.js +49 -0
- package/dist/react/baseCss.js +221 -0
- package/dist/react/choiceStore.js +22 -0
- package/dist/react/classNames.js +18 -0
- package/dist/react/confirmStore.js +29 -0
- package/dist/react/labels.js +17 -0
- package/dist/react/placement.js +48 -0
- package/dist/react/useFillSheet.js +22 -0
- package/dist/react/useFitToViewport.js +28 -0
- package/dist/react/usePicked.js +12 -0
- package/dist/react/useStore.js +8 -0
- package/dist/react/useViewport.js +16 -0
- package/dist/react.js +77 -0
- package/dist/rig/PosePlayer.js +91 -0
- package/dist/rig/RigView.js +124 -0
- package/dist/rig/Skeleton.js +30 -0
- package/dist/rig/humanoid.js +5 -0
- package/dist/rig/humanoid.json.js +29 -0
- package/dist/rig/humanoidPoses.js +29 -0
- package/dist/rig/poseMath.js +53 -0
- package/dist/rig/poses.json.js +149 -0
- package/dist/save/Autosaver.js +53 -0
- package/dist/save/MemoryBackend.js +18 -0
- package/dist/save/SaveStore.js +102 -0
- package/dist/save/WebStorageBackend.js +26 -0
- package/dist/save/checksum.js +9 -0
- package/dist/save/migrateSave.js +26 -0
- package/dist/settings.js +26 -0
- package/dist/tilemap/TilemapView.js +68 -0
- package/dist/tilemap/collision.js +24 -0
- package/dist/tilemap/tiled.js +137 -0
- package/dist/transitions/CrossfadeTransition.js +23 -0
- package/dist/transitions/DitherWipeTransition.js +69 -0
- package/dist/transitions/FadeTransition.js +33 -0
- package/dist/transitions/Letterbox.js +41 -0
- package/dist/transitions/ditherMask.js +14 -0
- package/dist/transitions/transitionTo.js +27 -0
- package/dist/transitions/tweenDone.js +14 -0
- package/dist/types/ambient/ColorGrade.d.ts +41 -0
- package/dist/types/ambient/ColorGrade.d.ts.map +1 -0
- package/dist/types/ambient/DayClock.d.ts +80 -0
- package/dist/types/ambient/DayClock.d.ts.map +1 -0
- package/dist/types/ambient/WeatherLayer.d.ts +78 -0
- package/dist/types/ambient/WeatherLayer.d.ts.map +1 -0
- package/dist/types/ambient/grade.d.ts +22 -0
- package/dist/types/ambient/grade.d.ts.map +1 -0
- package/dist/types/ambient/weather.d.ts +49 -0
- package/dist/types/ambient/weather.d.ts.map +1 -0
- package/dist/types/anim/AnimStateMachine.d.ts +80 -0
- package/dist/types/anim/AnimStateMachine.d.ts.map +1 -0
- package/dist/types/anim/Animator.d.ts +50 -0
- package/dist/types/anim/Animator.d.ts.map +1 -0
- package/dist/types/anim/animStateCompile.d.ts +52 -0
- package/dist/types/anim/animStateCompile.d.ts.map +1 -0
- package/dist/types/anim/animStateSystem.d.ts +10 -0
- package/dist/types/anim/animStateSystem.d.ts.map +1 -0
- package/dist/types/anim/animStateTypes.d.ts +50 -0
- package/dist/types/anim/animStateTypes.d.ts.map +1 -0
- package/dist/types/anim/animationSystem.d.ts +13 -0
- package/dist/types/anim/animationSystem.d.ts.map +1 -0
- package/dist/types/anim/asepriteSlices.d.ts +19 -0
- package/dist/types/anim/asepriteSlices.d.ts.map +1 -0
- package/dist/types/anim/asepriteTags.d.ts +16 -0
- package/dist/types/anim/asepriteTags.d.ts.map +1 -0
- package/dist/types/anim/asepriteTypes.d.ts +159 -0
- package/dist/types/anim/asepriteTypes.d.ts.map +1 -0
- package/dist/types/anim/parseAseprite.d.ts +21 -0
- package/dist/types/anim/parseAseprite.d.ts.map +1 -0
- package/dist/types/assets/AssetLoader.d.ts +140 -0
- package/dist/types/assets/AssetLoader.d.ts.map +1 -0
- package/dist/types/assets/loadAseprite.d.ts +27 -0
- package/dist/types/assets/loadAseprite.d.ts.map +1 -0
- package/dist/types/assets/textureAtlas.d.ts +35 -0
- package/dist/types/assets/textureAtlas.d.ts.map +1 -0
- package/dist/types/audio/Footsteps.d.ts +33 -0
- package/dist/types/audio/Footsteps.d.ts.map +1 -0
- package/dist/types/audio/MusicPlayer.d.ts +65 -0
- package/dist/types/audio/MusicPlayer.d.ts.map +1 -0
- package/dist/types/audio/SoundEngine.d.ts +47 -0
- package/dist/types/audio/SoundEngine.d.ts.map +1 -0
- package/dist/types/audio/cleanTake.d.ts +3 -0
- package/dist/types/audio/cleanTake.d.ts.map +1 -0
- package/dist/types/audio/music/ElementVoice.d.ts +14 -0
- package/dist/types/audio/music/ElementVoice.d.ts.map +1 -0
- package/dist/types/audio/music/GraphVoice.d.ts +22 -0
- package/dist/types/audio/music/GraphVoice.d.ts.map +1 -0
- package/dist/types/audio/music/MusicChannel.d.ts +35 -0
- package/dist/types/audio/music/MusicChannel.d.ts.map +1 -0
- package/dist/types/audio/music/musicVoice.d.ts +26 -0
- package/dist/types/audio/music/musicVoice.d.ts.map +1 -0
- package/dist/types/audio/sampleBank.d.ts +27 -0
- package/dist/types/audio/sampleBank.d.ts.map +1 -0
- package/dist/types/audio/soundTable.d.ts +14 -0
- package/dist/types/audio/soundTable.d.ts.map +1 -0
- package/dist/types/audio/synth.d.ts +34 -0
- package/dist/types/audio/synth.d.ts.map +1 -0
- package/dist/types/audio/takeCleanerWorker.d.ts +2 -0
- package/dist/types/audio/takeCleanerWorker.d.ts.map +1 -0
- package/dist/types/core/BitmapLabel.d.ts +36 -0
- package/dist/types/core/BitmapLabel.d.ts.map +1 -0
- package/dist/types/core/Camera.d.ts +115 -0
- package/dist/types/core/Camera.d.ts.map +1 -0
- package/dist/types/core/Clock.d.ts +23 -0
- package/dist/types/core/Clock.d.ts.map +1 -0
- package/dist/types/core/Graphics.d.ts +37 -0
- package/dist/types/core/Graphics.d.ts.map +1 -0
- package/dist/types/core/Group.d.ts +15 -0
- package/dist/types/core/Group.d.ts.map +1 -0
- package/dist/types/core/Image.d.ts +25 -0
- package/dist/types/core/Image.d.ts.map +1 -0
- package/dist/types/core/ObjectFactory.d.ts +34 -0
- package/dist/types/core/ObjectFactory.d.ts.map +1 -0
- package/dist/types/core/Pointer.d.ts +45 -0
- package/dist/types/core/Pointer.d.ts.map +1 -0
- package/dist/types/core/Rectangle.d.ts +26 -0
- package/dist/types/core/Rectangle.d.ts.map +1 -0
- package/dist/types/core/Stage.d.ts +58 -0
- package/dist/types/core/Stage.d.ts.map +1 -0
- package/dist/types/core/Text.d.ts +22 -0
- package/dist/types/core/Text.d.ts.map +1 -0
- package/dist/types/core/TextureRegistry.d.ts +90 -0
- package/dist/types/core/TextureRegistry.d.ts.map +1 -0
- package/dist/types/core/Timeline.d.ts +115 -0
- package/dist/types/core/Timeline.d.ts.map +1 -0
- package/dist/types/core/TimelineBuilder.d.ts +53 -0
- package/dist/types/core/TimelineBuilder.d.ts.map +1 -0
- package/dist/types/core/TimelineChild.d.ts +51 -0
- package/dist/types/core/TimelineChild.d.ts.map +1 -0
- package/dist/types/core/Tweener.d.ts +70 -0
- package/dist/types/core/Tweener.d.ts.map +1 -0
- package/dist/types/core/atlas.d.ts +16 -0
- package/dist/types/core/atlas.d.ts.map +1 -0
- package/dist/types/core/atlasPlan.d.ts +34 -0
- package/dist/types/core/atlasPlan.d.ts.map +1 -0
- package/dist/types/core/blendLayer.d.ts +23 -0
- package/dist/types/core/blendLayer.d.ts.map +1 -0
- package/dist/types/core/eases.d.ts +3 -0
- package/dist/types/core/eases.d.ts.map +1 -0
- package/dist/types/core/gameObject.d.ts +42 -0
- package/dist/types/core/gameObject.d.ts.map +1 -0
- package/dist/types/core/pixelZoom.d.ts +45 -0
- package/dist/types/core/pixelZoom.d.ts.map +1 -0
- package/dist/types/core/pixiPatches.d.ts +9 -0
- package/dist/types/core/pixiPatches.d.ts.map +1 -0
- package/dist/types/core/runDue.d.ts +15 -0
- package/dist/types/core/runDue.d.ts.map +1 -0
- package/dist/types/core/silhouette.d.ts +16 -0
- package/dist/types/core/silhouette.d.ts.map +1 -0
- package/dist/types/core/timelinePlace.d.ts +23 -0
- package/dist/types/core/timelinePlace.d.ts.map +1 -0
- package/dist/types/core/tweenProps.d.ts +8 -0
- package/dist/types/core/tweenProps.d.ts.map +1 -0
- package/dist/types/core/types.d.ts +4 -0
- package/dist/types/core/types.d.ts.map +1 -0
- package/dist/types/debug/DebugOverlay.d.ts +63 -0
- package/dist/types/debug/DebugOverlay.d.ts.map +1 -0
- package/dist/types/debug/DrawCallCounter.d.ts +20 -0
- package/dist/types/debug/DrawCallCounter.d.ts.map +1 -0
- package/dist/types/debug/ErrorLog.d.ts +20 -0
- package/dist/types/debug/ErrorLog.d.ts.map +1 -0
- package/dist/types/debug/FrameStats.d.ts +21 -0
- package/dist/types/debug/FrameStats.d.ts.map +1 -0
- package/dist/types/debug/inspectWorld.d.ts +14 -0
- package/dist/types/debug/inspectWorld.d.ts.map +1 -0
- package/dist/types/diagnostics/ErrorDeduper.d.ts +17 -0
- package/dist/types/diagnostics/ErrorDeduper.d.ts.map +1 -0
- package/dist/types/diagnostics/FrameSampler.d.ts +37 -0
- package/dist/types/diagnostics/FrameSampler.d.ts.map +1 -0
- package/dist/types/diagnostics/bootWatch.d.ts +25 -0
- package/dist/types/diagnostics/bootWatch.d.ts.map +1 -0
- package/dist/types/diagnostics/captureErrors.d.ts +24 -0
- package/dist/types/diagnostics/captureErrors.d.ts.map +1 -0
- package/dist/types/diagnostics/contextLoss.d.ts +35 -0
- package/dist/types/diagnostics/contextLoss.d.ts.map +1 -0
- package/dist/types/diagnostics/frameStats.d.ts +30 -0
- package/dist/types/diagnostics/frameStats.d.ts.map +1 -0
- package/dist/types/diagnostics/gpuInfo.d.ts +9 -0
- package/dist/types/diagnostics/gpuInfo.d.ts.map +1 -0
- package/dist/types/diagnostics/renderGuard.d.ts +12 -0
- package/dist/types/diagnostics/renderGuard.d.ts.map +1 -0
- package/dist/types/ecs/SparseSet.d.ts +25 -0
- package/dist/types/ecs/SparseSet.d.ts.map +1 -0
- package/dist/types/ecs/World.d.ts +137 -0
- package/dist/types/ecs/World.d.ts.map +1 -0
- package/dist/types/ecs/fields.d.ts +34 -0
- package/dist/types/ecs/fields.d.ts.map +1 -0
- package/dist/types/engine/Engine.d.ts +96 -0
- package/dist/types/engine/Engine.d.ts.map +1 -0
- package/dist/types/engine/FixedLoop.d.ts +32 -0
- package/dist/types/engine/FixedLoop.d.ts.map +1 -0
- package/dist/types/engine/HiddenPause.d.ts +22 -0
- package/dist/types/engine/HiddenPause.d.ts.map +1 -0
- package/dist/types/engine/Scene.d.ts +67 -0
- package/dist/types/engine/Scene.d.ts.map +1 -0
- package/dist/types/engine/SceneManager.d.ts +36 -0
- package/dist/types/engine/SceneManager.d.ts.map +1 -0
- package/dist/types/events/EventBus.d.ts +20 -0
- package/dist/types/events/EventBus.d.ts.map +1 -0
- package/dist/types/fx/Afterimages.d.ts +62 -0
- package/dist/types/fx/Afterimages.d.ts.map +1 -0
- package/dist/types/fx/FloatingText.d.ts +71 -0
- package/dist/types/fx/FloatingText.d.ts.map +1 -0
- package/dist/types/fx/hitStop.d.ts +20 -0
- package/dist/types/fx/hitStop.d.ts.map +1 -0
- package/dist/types/fx/viewCull.d.ts +14 -0
- package/dist/types/fx/viewCull.d.ts.map +1 -0
- package/dist/types/i18n/Translator.d.ts +52 -0
- package/dist/types/i18n/Translator.d.ts.map +1 -0
- package/dist/types/i18n/extractStrings.d.ts +25 -0
- package/dist/types/i18n/extractStrings.d.ts.map +1 -0
- package/dist/types/i18n/formatMessage.d.ts +10 -0
- package/dist/types/i18n/formatMessage.d.ts.map +1 -0
- package/dist/types/index.d.ts +164 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/input/Actions.d.ts +100 -0
- package/dist/types/input/Actions.d.ts.map +1 -0
- package/dist/types/input/AimGesture.d.ts +106 -0
- package/dist/types/input/AimGesture.d.ts.map +1 -0
- package/dist/types/input/Keyboard.d.ts +30 -0
- package/dist/types/input/Keyboard.d.ts.map +1 -0
- package/dist/types/input/Keymap.d.ts +85 -0
- package/dist/types/input/Keymap.d.ts.map +1 -0
- package/dist/types/input/TargetLock.d.ts +56 -0
- package/dist/types/input/TargetLock.d.ts.map +1 -0
- package/dist/types/input/aimAxis.d.ts +9 -0
- package/dist/types/input/aimAxis.d.ts.map +1 -0
- package/dist/types/input/keyChord.d.ts +15 -0
- package/dist/types/input/keyChord.d.ts.map +1 -0
- package/dist/types/input/longPress.d.ts +21 -0
- package/dist/types/input/longPress.d.ts.map +1 -0
- package/dist/types/input/rumble.d.ts +41 -0
- package/dist/types/input/rumble.d.ts.map +1 -0
- package/dist/types/input/stickAxis.d.ts +26 -0
- package/dist/types/input/stickAxis.d.ts.map +1 -0
- package/dist/types/input/touchDetect.d.ts +18 -0
- package/dist/types/input/touchDetect.d.ts.map +1 -0
- package/dist/types/light/LightLayer.d.ts +65 -0
- package/dist/types/light/LightLayer.d.ts.map +1 -0
- package/dist/types/nav/MinHeap.d.ts +15 -0
- package/dist/types/nav/MinHeap.d.ts.map +1 -0
- package/dist/types/nav/findPath.d.ts +38 -0
- package/dist/types/nav/findPath.d.ts.map +1 -0
- package/dist/types/nav/navGrid.d.ts +48 -0
- package/dist/types/nav/navGrid.d.ts.map +1 -0
- package/dist/types/nav/nearestOpen.d.ts +8 -0
- package/dist/types/nav/nearestOpen.d.ts.map +1 -0
- package/dist/types/nav/straightenPath.d.ts +13 -0
- package/dist/types/nav/straightenPath.d.ts.map +1 -0
- package/dist/types/net/Connection.d.ts +88 -0
- package/dist/types/net/Connection.d.ts.map +1 -0
- package/dist/types/net/InterpolationBuffer.d.ts +36 -0
- package/dist/types/net/InterpolationBuffer.d.ts.map +1 -0
- package/dist/types/net/PredictedMover.d.ts +43 -0
- package/dist/types/net/PredictedMover.d.ts.map +1 -0
- package/dist/types/net/Room.d.ts +69 -0
- package/dist/types/net/Room.d.ts.map +1 -0
- package/dist/types/net/RoomHost.d.ts +74 -0
- package/dist/types/net/RoomHost.d.ts.map +1 -0
- package/dist/types/net/cadence.d.ts +22 -0
- package/dist/types/net/cadence.d.ts.map +1 -0
- package/dist/types/net/constants.d.ts +33 -0
- package/dist/types/net/constants.d.ts.map +1 -0
- package/dist/types/net/lobby/LobbyClient.d.ts +107 -0
- package/dist/types/net/lobby/LobbyClient.d.ts.map +1 -0
- package/dist/types/net/lobby/LobbyHost.d.ts +147 -0
- package/dist/types/net/lobby/LobbyHost.d.ts.map +1 -0
- package/dist/types/net/lobby/LobbyRooms.d.ts +56 -0
- package/dist/types/net/lobby/LobbyRooms.d.ts.map +1 -0
- package/dist/types/net/lobby/Matchmaker.d.ts +57 -0
- package/dist/types/net/lobby/Matchmaker.d.ts.map +1 -0
- package/dist/types/net/lobby/index.d.ts +6 -0
- package/dist/types/net/lobby/index.d.ts.map +1 -0
- package/dist/types/net/lobby/lobbyProtocol.d.ts +143 -0
- package/dist/types/net/lobby/lobbyProtocol.d.ts.map +1 -0
- package/dist/types/net/movement.d.ts +50 -0
- package/dist/types/net/movement.d.ts.map +1 -0
- package/dist/types/net/protocol.d.ts +59 -0
- package/dist/types/net/protocol.d.ts.map +1 -0
- package/dist/types/net/reconnect.d.ts +14 -0
- package/dist/types/net/reconnect.d.ts.map +1 -0
- package/dist/types/net/serverClock.d.ts +14 -0
- package/dist/types/net/serverClock.d.ts.map +1 -0
- package/dist/types/net/snapshotCodec.d.ts +55 -0
- package/dist/types/net/snapshotCodec.d.ts.map +1 -0
- package/dist/types/parallax/Parallax.d.ts +37 -0
- package/dist/types/parallax/Parallax.d.ts.map +1 -0
- package/dist/types/parallax/ParallaxLayer.d.ts +80 -0
- package/dist/types/parallax/ParallaxLayer.d.ts.map +1 -0
- package/dist/types/parallax/parallaxMath.d.ts +50 -0
- package/dist/types/parallax/parallaxMath.d.ts.map +1 -0
- package/dist/types/particles/Emitter.d.ts +97 -0
- package/dist/types/particles/Emitter.d.ts.map +1 -0
- package/dist/types/particles/ParticleBudget.d.ts +28 -0
- package/dist/types/particles/ParticleBudget.d.ts.map +1 -0
- package/dist/types/particles/ParticleSim.d.ts +38 -0
- package/dist/types/particles/ParticleSim.d.ts.map +1 -0
- package/dist/types/particles/particleCurves.d.ts +21 -0
- package/dist/types/particles/particleCurves.d.ts.map +1 -0
- package/dist/types/particles/particleSampling.d.ts +20 -0
- package/dist/types/particles/particleSampling.d.ts.map +1 -0
- package/dist/types/physics/Body.d.ts +130 -0
- package/dist/types/physics/Body.d.ts.map +1 -0
- package/dist/types/physics/BroadPhase.d.ts +26 -0
- package/dist/types/physics/BroadPhase.d.ts.map +1 -0
- package/dist/types/physics/Contact.d.ts +62 -0
- package/dist/types/physics/Contact.d.ts.map +1 -0
- package/dist/types/physics/ContactSolver.d.ts +29 -0
- package/dist/types/physics/ContactSolver.d.ts.map +1 -0
- package/dist/types/physics/PhysicsWorld.d.ts +78 -0
- package/dist/types/physics/PhysicsWorld.d.ts.map +1 -0
- package/dist/types/physics/PhysicsWorldOptions.d.ts +24 -0
- package/dist/types/physics/PhysicsWorldOptions.d.ts.map +1 -0
- package/dist/types/physics/SpatialHash.d.ts +23 -0
- package/dist/types/physics/SpatialHash.d.ts.map +1 -0
- package/dist/types/physics/collide.d.ts +27 -0
- package/dist/types/physics/collide.d.ts.map +1 -0
- package/dist/types/physics/collidePolygon.d.ts +14 -0
- package/dist/types/physics/collidePolygon.d.ts.map +1 -0
- package/dist/types/physics/contactReport.d.ts +8 -0
- package/dist/types/physics/contactReport.d.ts.map +1 -0
- package/dist/types/physics/drawColliders.d.ts +43 -0
- package/dist/types/physics/drawColliders.d.ts.map +1 -0
- package/dist/types/physics/physicsSystem.d.ts +5 -0
- package/dist/types/physics/physicsSystem.d.ts.map +1 -0
- package/dist/types/physics/polygon.d.ts +28 -0
- package/dist/types/physics/polygon.d.ts.map +1 -0
- package/dist/types/physics/raycast.d.ts +19 -0
- package/dist/types/physics/raycast.d.ts.map +1 -0
- package/dist/types/physics/syncToBody.d.ts +16 -0
- package/dist/types/physics/syncToBody.d.ts.map +1 -0
- package/dist/types/physics/tileBodies.d.ts +36 -0
- package/dist/types/physics/tileBodies.d.ts.map +1 -0
- package/dist/types/physics/types.d.ts +116 -0
- package/dist/types/physics/types.d.ts.map +1 -0
- package/dist/types/pixel/Darkness.d.ts +90 -0
- package/dist/types/pixel/Darkness.d.ts.map +1 -0
- package/dist/types/pixel/DitherVignette.d.ts +35 -0
- package/dist/types/pixel/DitherVignette.d.ts.map +1 -0
- package/dist/types/pixel/Evaporation.d.ts +30 -0
- package/dist/types/pixel/Evaporation.d.ts.map +1 -0
- package/dist/types/pixel/NightShade.d.ts +38 -0
- package/dist/types/pixel/NightShade.d.ts.map +1 -0
- package/dist/types/pixel/PixelLayer.d.ts +85 -0
- package/dist/types/pixel/PixelLayer.d.ts.map +1 -0
- package/dist/types/pixel/PixelMarks.d.ts +68 -0
- package/dist/types/pixel/PixelMarks.d.ts.map +1 -0
- package/dist/types/pixel/SwayProp.d.ts +52 -0
- package/dist/types/pixel/SwayProp.d.ts.map +1 -0
- package/dist/types/pixel/aimPixels.d.ts +23 -0
- package/dist/types/pixel/aimPixels.d.ts.map +1 -0
- package/dist/types/pixel/index.d.ts +33 -0
- package/dist/types/pixel/index.d.ts.map +1 -0
- package/dist/types/pixel/lights.d.ts +34 -0
- package/dist/types/pixel/lights.d.ts.map +1 -0
- package/dist/types/pixel/nineSlice.d.ts +71 -0
- package/dist/types/pixel/nineSlice.d.ts.map +1 -0
- package/dist/types/pixel/paintLayer.d.ts +35 -0
- package/dist/types/pixel/paintLayer.d.ts.map +1 -0
- package/dist/types/pixel/palette.d.ts +58 -0
- package/dist/types/pixel/palette.d.ts.map +1 -0
- package/dist/types/pixel/pixel.d.ts +80 -0
- package/dist/types/pixel/pixel.d.ts.map +1 -0
- package/dist/types/pixel/pixelPaint.d.ts +44 -0
- package/dist/types/pixel/pixelPaint.d.ts.map +1 -0
- package/dist/types/pixel/pixelParticles.d.ts +21 -0
- package/dist/types/pixel/pixelParticles.d.ts.map +1 -0
- package/dist/types/pixel/pixelTone.d.ts +51 -0
- package/dist/types/pixel/pixelTone.d.ts.map +1 -0
- package/dist/types/pixel/propKit.d.ts +26 -0
- package/dist/types/pixel/propKit.d.ts.map +1 -0
- package/dist/types/pixel/ramp.d.ts +57 -0
- package/dist/types/pixel/ramp.d.ts.map +1 -0
- package/dist/types/pixel/selout.d.ts +3 -0
- package/dist/types/pixel/selout.d.ts.map +1 -0
- package/dist/types/pixel/spritePixels.d.ts +29 -0
- package/dist/types/pixel/spritePixels.d.ts.map +1 -0
- package/dist/types/pixel/swayRig.d.ts +72 -0
- package/dist/types/pixel/swayRig.d.ts.map +1 -0
- package/dist/types/pixel/vignetteMask.d.ts +16 -0
- package/dist/types/pixel/vignetteMask.d.ts.map +1 -0
- package/dist/types/pixel/weatherArt.d.ts +29 -0
- package/dist/types/pixel/weatherArt.d.ts.map +1 -0
- package/dist/types/platform/appResume.d.ts +25 -0
- package/dist/types/platform/appResume.d.ts.map +1 -0
- package/dist/types/platform/fullscreen.d.ts +37 -0
- package/dist/types/platform/fullscreen.d.ts.map +1 -0
- package/dist/types/platform/orientation.d.ts +19 -0
- package/dist/types/platform/orientation.d.ts.map +1 -0
- package/dist/types/platform/pointerLock.d.ts +26 -0
- package/dist/types/platform/pointerLock.d.ts.map +1 -0
- package/dist/types/platform/reducedMotion.d.ts +20 -0
- package/dist/types/platform/reducedMotion.d.ts.map +1 -0
- package/dist/types/platform/timeoutSignal.d.ts +6 -0
- package/dist/types/platform/timeoutSignal.d.ts.map +1 -0
- package/dist/types/platform/touch.d.ts +10 -0
- package/dist/types/platform/touch.d.ts.map +1 -0
- package/dist/types/postfx/BloomFilter.d.ts +33 -0
- package/dist/types/postfx/BloomFilter.d.ts.map +1 -0
- package/dist/types/postfx/ChromaticAberrationFilter.d.ts +11 -0
- package/dist/types/postfx/ChromaticAberrationFilter.d.ts.map +1 -0
- package/dist/types/postfx/ColorAdjustFilter.d.ts +32 -0
- package/dist/types/postfx/ColorAdjustFilter.d.ts.map +1 -0
- package/dist/types/postfx/CrtFilter.d.ts +16 -0
- package/dist/types/postfx/CrtFilter.d.ts.map +1 -0
- package/dist/types/postfx/PixelateFilter.d.ts +8 -0
- package/dist/types/postfx/PixelateFilter.d.ts.map +1 -0
- package/dist/types/postfx/PostFx.d.ts +92 -0
- package/dist/types/postfx/PostFx.d.ts.map +1 -0
- package/dist/types/postfx/ShockwaveFilter.d.ts +20 -0
- package/dist/types/postfx/ShockwaveFilter.d.ts.map +1 -0
- package/dist/types/postfx/VignetteFilter.d.ts +19 -0
- package/dist/types/postfx/VignetteFilter.d.ts.map +1 -0
- package/dist/types/postfx/fxAnimator.d.ts +32 -0
- package/dist/types/postfx/fxAnimator.d.ts.map +1 -0
- package/dist/types/postfx/fxShader.d.ts +49 -0
- package/dist/types/postfx/fxShader.d.ts.map +1 -0
- package/dist/types/postfx/index.d.ts +11 -0
- package/dist/types/postfx/index.d.ts.map +1 -0
- package/dist/types/react/ChoiceDialog.d.ts +8 -0
- package/dist/types/react/ChoiceDialog.d.ts.map +1 -0
- package/dist/types/react/ConfirmDialog.d.ts +9 -0
- package/dist/types/react/ConfirmDialog.d.ts.map +1 -0
- package/dist/types/react/Glyph.d.ts +54 -0
- package/dist/types/react/Glyph.d.ts.map +1 -0
- package/dist/types/react/Modal.d.ts +22 -0
- package/dist/types/react/Modal.d.ts.map +1 -0
- package/dist/types/react/Panel.d.ts +29 -0
- package/dist/types/react/Panel.d.ts.map +1 -0
- package/dist/types/react/PixelImage.d.ts +19 -0
- package/dist/types/react/PixelImage.d.ts.map +1 -0
- package/dist/types/react/Select.d.ts +27 -0
- package/dist/types/react/Select.d.ts.map +1 -0
- package/dist/types/react/Slider.d.ts +24 -0
- package/dist/types/react/Slider.d.ts.map +1 -0
- package/dist/types/react/SplitPane.d.ts +26 -0
- package/dist/types/react/SplitPane.d.ts.map +1 -0
- package/dist/types/react/TabStrip.d.ts +31 -0
- package/dist/types/react/TabStrip.d.ts.map +1 -0
- package/dist/types/react/TitleTips.d.ts +15 -0
- package/dist/types/react/TitleTips.d.ts.map +1 -0
- package/dist/types/react/Tooltip.d.ts +22 -0
- package/dist/types/react/Tooltip.d.ts.map +1 -0
- package/dist/types/react/UiProvider.d.ts +52 -0
- package/dist/types/react/UiProvider.d.ts.map +1 -0
- package/dist/types/react/baseCss.d.ts +27 -0
- package/dist/types/react/baseCss.d.ts.map +1 -0
- package/dist/types/react/choiceStore.d.ts +34 -0
- package/dist/types/react/choiceStore.d.ts.map +1 -0
- package/dist/types/react/classNames.d.ts +12 -0
- package/dist/types/react/classNames.d.ts.map +1 -0
- package/dist/types/react/confirmStore.d.ts +30 -0
- package/dist/types/react/confirmStore.d.ts.map +1 -0
- package/dist/types/react/index.d.ts +33 -0
- package/dist/types/react/index.d.ts.map +1 -0
- package/dist/types/react/labels.d.ts +24 -0
- package/dist/types/react/labels.d.ts.map +1 -0
- package/dist/types/react/placement.d.ts +59 -0
- package/dist/types/react/placement.d.ts.map +1 -0
- package/dist/types/react/useFillSheet.d.ts +9 -0
- package/dist/types/react/useFillSheet.d.ts.map +1 -0
- package/dist/types/react/useFitToViewport.d.ts +20 -0
- package/dist/types/react/useFitToViewport.d.ts.map +1 -0
- package/dist/types/react/usePicked.d.ts +9 -0
- package/dist/types/react/usePicked.d.ts.map +1 -0
- package/dist/types/react/useStore.d.ts +8 -0
- package/dist/types/react/useStore.d.ts.map +1 -0
- package/dist/types/react/useViewport.d.ts +4 -0
- package/dist/types/react/useViewport.d.ts.map +1 -0
- package/dist/types/rig/PosePlayer.d.ts +64 -0
- package/dist/types/rig/PosePlayer.d.ts.map +1 -0
- package/dist/types/rig/RigView.d.ts +68 -0
- package/dist/types/rig/RigView.d.ts.map +1 -0
- package/dist/types/rig/Skeleton.d.ts +14 -0
- package/dist/types/rig/Skeleton.d.ts.map +1 -0
- package/dist/types/rig/humanoid.d.ts +4 -0
- package/dist/types/rig/humanoid.d.ts.map +1 -0
- package/dist/types/rig/humanoidPoses.d.ts +117 -0
- package/dist/types/rig/humanoidPoses.d.ts.map +1 -0
- package/dist/types/rig/poseMath.d.ts +14 -0
- package/dist/types/rig/poseMath.d.ts.map +1 -0
- package/dist/types/rig/rigTypes.d.ts +82 -0
- package/dist/types/rig/rigTypes.d.ts.map +1 -0
- package/dist/types/save/Autosaver.d.ts +43 -0
- package/dist/types/save/Autosaver.d.ts.map +1 -0
- package/dist/types/save/MemoryBackend.d.ts +10 -0
- package/dist/types/save/MemoryBackend.d.ts.map +1 -0
- package/dist/types/save/SaveBackend.d.ts +14 -0
- package/dist/types/save/SaveBackend.d.ts.map +1 -0
- package/dist/types/save/SaveStore.d.ts +73 -0
- package/dist/types/save/SaveStore.d.ts.map +1 -0
- package/dist/types/save/WebStorageBackend.d.ts +14 -0
- package/dist/types/save/WebStorageBackend.d.ts.map +1 -0
- package/dist/types/save/checksum.d.ts +7 -0
- package/dist/types/save/checksum.d.ts.map +1 -0
- package/dist/types/save/migrateSave.d.ts +17 -0
- package/dist/types/save/migrateSave.d.ts.map +1 -0
- package/dist/types/settings.d.ts +25 -0
- package/dist/types/settings.d.ts.map +1 -0
- package/dist/types/tilemap/TilemapView.d.ts +42 -0
- package/dist/types/tilemap/TilemapView.d.ts.map +1 -0
- package/dist/types/tilemap/collision.d.ts +16 -0
- package/dist/types/tilemap/collision.d.ts.map +1 -0
- package/dist/types/tilemap/tiled.d.ts +104 -0
- package/dist/types/tilemap/tiled.d.ts.map +1 -0
- package/dist/types/transitions/CrossfadeTransition.d.ts +20 -0
- package/dist/types/transitions/CrossfadeTransition.d.ts.map +1 -0
- package/dist/types/transitions/DitherWipeTransition.d.ts +35 -0
- package/dist/types/transitions/DitherWipeTransition.d.ts.map +1 -0
- package/dist/types/transitions/FadeTransition.d.ts +20 -0
- package/dist/types/transitions/FadeTransition.d.ts.map +1 -0
- package/dist/types/transitions/Letterbox.d.ts +33 -0
- package/dist/types/transitions/Letterbox.d.ts.map +1 -0
- package/dist/types/transitions/Transition.d.ts +22 -0
- package/dist/types/transitions/Transition.d.ts.map +1 -0
- package/dist/types/transitions/ditherMask.d.ts +13 -0
- package/dist/types/transitions/ditherMask.d.ts.map +1 -0
- package/dist/types/transitions/transitionTo.d.ts +16 -0
- package/dist/types/transitions/transitionTo.d.ts.map +1 -0
- package/dist/types/transitions/tweenDone.d.ts +5 -0
- package/dist/types/transitions/tweenDone.d.ts.map +1 -0
- package/dist/types/ui/Bar.d.ts +41 -0
- package/dist/types/ui/Bar.d.ts.map +1 -0
- package/dist/types/ui/Button.d.ts +47 -0
- package/dist/types/ui/Button.d.ts.map +1 -0
- package/dist/types/ui/Dialog.d.ts +47 -0
- package/dist/types/ui/Dialog.d.ts.map +1 -0
- package/dist/types/ui/FocusManager.d.ts +53 -0
- package/dist/types/ui/FocusManager.d.ts.map +1 -0
- package/dist/types/ui/Label.d.ts +24 -0
- package/dist/types/ui/Label.d.ts.map +1 -0
- package/dist/types/ui/List.d.ts +23 -0
- package/dist/types/ui/List.d.ts.map +1 -0
- package/dist/types/ui/Panel.d.ts +38 -0
- package/dist/types/ui/Panel.d.ts.map +1 -0
- package/dist/types/ui/ScrollView.d.ts +56 -0
- package/dist/types/ui/ScrollView.d.ts.map +1 -0
- package/dist/types/ui/Slider.d.ts +47 -0
- package/dist/types/ui/Slider.d.ts.map +1 -0
- package/dist/types/ui/Stack.d.ts +16 -0
- package/dist/types/ui/Stack.d.ts.map +1 -0
- package/dist/types/ui/Toggle.d.ts +31 -0
- package/dist/types/ui/Toggle.d.ts.map +1 -0
- package/dist/types/ui/UiHost.d.ts +18 -0
- package/dist/types/ui/UiHost.d.ts.map +1 -0
- package/dist/types/ui/UiPointerGate.d.ts +17 -0
- package/dist/types/ui/UiPointerGate.d.ts.map +1 -0
- package/dist/types/ui/UiRoot.d.ts +73 -0
- package/dist/types/ui/UiRoot.d.ts.map +1 -0
- package/dist/types/ui/Widget.d.ts +56 -0
- package/dist/types/ui/Widget.d.ts.map +1 -0
- package/dist/types/ui/dom/DomOverlay.d.ts +52 -0
- package/dist/types/ui/dom/DomOverlay.d.ts.map +1 -0
- package/dist/types/ui/dom/DomWorldAnchors.d.ts +50 -0
- package/dist/types/ui/dom/DomWorldAnchors.d.ts.map +1 -0
- package/dist/types/ui/dom/InputShield.d.ts +20 -0
- package/dist/types/ui/dom/InputShield.d.ts.map +1 -0
- package/dist/types/ui/dom/createStore.d.ts +22 -0
- package/dist/types/ui/dom/createStore.d.ts.map +1 -0
- package/dist/types/ui/dom/shieldDecision.d.ts +34 -0
- package/dist/types/ui/dom/shieldDecision.d.ts.map +1 -0
- package/dist/types/ui/dom/worldToScreen.d.ts +24 -0
- package/dist/types/ui/dom/worldToScreen.d.ts.map +1 -0
- package/dist/types/ui/index.d.ts +42 -0
- package/dist/types/ui/index.d.ts.map +1 -0
- package/dist/types/ui/layout/anchor.d.ts +9 -0
- package/dist/types/ui/layout/anchor.d.ts.map +1 -0
- package/dist/types/ui/layout/barDrain.d.ts +25 -0
- package/dist/types/ui/layout/barDrain.d.ts.map +1 -0
- package/dist/types/ui/layout/fitToViewport.d.ts +32 -0
- package/dist/types/ui/layout/fitToViewport.d.ts.map +1 -0
- package/dist/types/ui/layout/focusNav.d.ts +13 -0
- package/dist/types/ui/layout/focusNav.d.ts.map +1 -0
- package/dist/types/ui/layout/geometry.d.ts +35 -0
- package/dist/types/ui/layout/geometry.d.ts.map +1 -0
- package/dist/types/ui/layout/listWidth.d.ts +13 -0
- package/dist/types/ui/layout/listWidth.d.ts.map +1 -0
- package/dist/types/ui/layout/placeTooltip.d.ts +23 -0
- package/dist/types/ui/layout/placeTooltip.d.ts.map +1 -0
- package/dist/types/ui/layout/scroll.d.ts +17 -0
- package/dist/types/ui/layout/scroll.d.ts.map +1 -0
- package/dist/types/ui/layout/slider.d.ts +7 -0
- package/dist/types/ui/layout/slider.d.ts.map +1 -0
- package/dist/types/ui/layout/stack.d.ts +26 -0
- package/dist/types/ui/layout/stack.d.ts.map +1 -0
- package/dist/types/ui/layout/wrapRow.d.ts +6 -0
- package/dist/types/ui/layout/wrapRow.d.ts.map +1 -0
- package/dist/types/ui/rich/RichText.d.ts +48 -0
- package/dist/types/ui/rich/RichText.d.ts.map +1 -0
- package/dist/types/ui/rich/richFonts.d.ts +70 -0
- package/dist/types/ui/rich/richFonts.d.ts.map +1 -0
- package/dist/types/ui/rich/richLayout.d.ts +76 -0
- package/dist/types/ui/rich/richLayout.d.ts.map +1 -0
- package/dist/types/ui/rich/richMarkup.d.ts +48 -0
- package/dist/types/ui/rich/richMarkup.d.ts.map +1 -0
- package/dist/ui/Bar.js +53 -0
- package/dist/ui/Button.js +57 -0
- package/dist/ui/Dialog.js +55 -0
- package/dist/ui/FocusManager.js +96 -0
- package/dist/ui/Label.js +35 -0
- package/dist/ui/List.js +44 -0
- package/dist/ui/Panel.js +37 -0
- package/dist/ui/ScrollView.js +95 -0
- package/dist/ui/Slider.js +54 -0
- package/dist/ui/Stack.js +27 -0
- package/dist/ui/Toggle.js +36 -0
- package/dist/ui/UiHost.js +8 -0
- package/dist/ui/UiPointerGate.js +24 -0
- package/dist/ui/UiRoot.js +92 -0
- package/dist/ui/Widget.js +89 -0
- package/dist/ui/dom/DomOverlay.js +58 -0
- package/dist/ui/dom/DomWorldAnchors.js +58 -0
- package/dist/ui/dom/InputShield.js +26 -0
- package/dist/ui/dom/createStore.js +41 -0
- package/dist/ui/dom/shieldDecision.js +35 -0
- package/dist/ui/dom/worldToScreen.js +10 -0
- package/dist/ui/layout/anchor.js +19 -0
- package/dist/ui/layout/barDrain.js +24 -0
- package/dist/ui/layout/fitToViewport.js +16 -0
- package/dist/ui/layout/focusNav.js +41 -0
- package/dist/ui/layout/geometry.js +20 -0
- package/dist/ui/layout/listWidth.js +9 -0
- package/dist/ui/layout/placeTooltip.js +27 -0
- package/dist/ui/layout/scroll.js +23 -0
- package/dist/ui/layout/slider.js +19 -0
- package/dist/ui/layout/stack.js +26 -0
- package/dist/ui/layout/wrapRow.js +12 -0
- package/dist/ui/rich/RichText.js +87 -0
- package/dist/ui/rich/richFonts.js +105 -0
- package/dist/ui/rich/richLayout.js +132 -0
- package/dist/ui/rich/richMarkup.js +67 -0
- package/dist/ui.js +95 -0
- package/package.json +112 -4
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { blendPose as o } from "./poseMath.js";
|
|
2
|
+
class c {
|
|
3
|
+
constructor(s, e, t) {
|
|
4
|
+
this.library = s, this.clips = e, this.clip = this.clipOf(t), this.name = t;
|
|
5
|
+
}
|
|
6
|
+
library;
|
|
7
|
+
clips;
|
|
8
|
+
clip;
|
|
9
|
+
name;
|
|
10
|
+
elapsed = 0;
|
|
11
|
+
ended = !1;
|
|
12
|
+
/** The pose being faded out of, and how long the fade lasts and has run. */
|
|
13
|
+
from = null;
|
|
14
|
+
fadeMs = 0;
|
|
15
|
+
fadeAt = 0;
|
|
16
|
+
cached = null;
|
|
17
|
+
speed = 1;
|
|
18
|
+
/** Called when a clip that does not loop reaches its end. */
|
|
19
|
+
onComplete = null;
|
|
20
|
+
get current() {
|
|
21
|
+
return this.name;
|
|
22
|
+
}
|
|
23
|
+
get finished() {
|
|
24
|
+
return this.ended;
|
|
25
|
+
}
|
|
26
|
+
/** Time into the current clip, ms. */
|
|
27
|
+
get time() {
|
|
28
|
+
return this.elapsed;
|
|
29
|
+
}
|
|
30
|
+
/** Plays `name`, fading from the pose shown now over `fadeMs`. The clip already playing keeps going unless `restart`. */
|
|
31
|
+
play(s, e = {}) {
|
|
32
|
+
if (s === this.name && !e.restart) return this;
|
|
33
|
+
const t = e.fadeMs ?? 0;
|
|
34
|
+
return this.from = t > 0 ? this.pose : null, this.fadeMs = t, this.fadeAt = 0, this.clip = this.clipOf(s), this.name = s, this.elapsed = 0, this.ended = !1, this.cached = null, this;
|
|
35
|
+
}
|
|
36
|
+
/** Advances by `dt` seconds. */
|
|
37
|
+
update(s) {
|
|
38
|
+
if (!(s > 0) || this.speed <= 0) return;
|
|
39
|
+
const e = s * 1e3 * this.speed;
|
|
40
|
+
if (this.cached = null, this.from && (this.fadeAt += e, this.fadeAt >= this.fadeMs && (this.from = null)), this.ended) return;
|
|
41
|
+
this.elapsed += e;
|
|
42
|
+
const t = this.totalMs();
|
|
43
|
+
this.elapsed >= t && (this.clip.loop !== !1 ? this.elapsed %= t : (this.elapsed = t, this.ended = !0, this.onComplete?.(this.name)));
|
|
44
|
+
}
|
|
45
|
+
/** The pose to show now. */
|
|
46
|
+
get pose() {
|
|
47
|
+
if (this.cached) return this.cached;
|
|
48
|
+
let s = this.sample(this.elapsed);
|
|
49
|
+
return this.from && (s = o(this.from, s, Math.min(1, this.fadeAt / this.fadeMs))), this.cached = s, s;
|
|
50
|
+
}
|
|
51
|
+
/** The current clip's pose at `ms` into it. */
|
|
52
|
+
sample(s) {
|
|
53
|
+
const e = this.clip.poses, t = e.length;
|
|
54
|
+
let l = Math.max(0, s);
|
|
55
|
+
for (let i = 0; i < t; i++) {
|
|
56
|
+
const h = this.lengthOf(i);
|
|
57
|
+
if (l < h || i === t - 1) {
|
|
58
|
+
const r = this.resolve(e[i]), n = i === t - 1;
|
|
59
|
+
if (this.clip.blend === !1 || t === 1 || n && this.clip.loop === !1) return r;
|
|
60
|
+
const a = this.resolve(e[n ? 0 : i + 1]);
|
|
61
|
+
return o(r, a, Math.min(1, l / h));
|
|
62
|
+
}
|
|
63
|
+
l -= h;
|
|
64
|
+
}
|
|
65
|
+
return this.resolve(e[t - 1]);
|
|
66
|
+
}
|
|
67
|
+
totalMs() {
|
|
68
|
+
let s = 0;
|
|
69
|
+
for (let e = 0; e < this.clip.poses.length; e++) s += this.lengthOf(e);
|
|
70
|
+
return s;
|
|
71
|
+
}
|
|
72
|
+
lengthOf(s) {
|
|
73
|
+
return Math.max(1, this.clip.durations?.[s] ?? 1e3 / (this.clip.fps ?? 8));
|
|
74
|
+
}
|
|
75
|
+
resolve(s) {
|
|
76
|
+
if (typeof s != "string") return s;
|
|
77
|
+
const e = this.library[s];
|
|
78
|
+
if (!e) throw new Error(`PosePlayer: no pose "${s}" in the library`);
|
|
79
|
+
return e;
|
|
80
|
+
}
|
|
81
|
+
clipOf(s) {
|
|
82
|
+
const e = this.clips[s];
|
|
83
|
+
if (!e) throw new Error(`PosePlayer: no clip "${s}"`);
|
|
84
|
+
if (e.poses.length === 0) throw new Error(`PosePlayer: clip "${s}" has no poses`);
|
|
85
|
+
for (const t of e.poses) this.resolve(t);
|
|
86
|
+
return e;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
export {
|
|
90
|
+
c as PosePlayer
|
|
91
|
+
};
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { Container as f, Sprite as w, Graphics as F } from "pixi.js";
|
|
2
|
+
import { Skeleton as k } from "./Skeleton.js";
|
|
3
|
+
const B = ["upperArmB", "forearmB", "thighB", "shinB", "torso", "thighF", "shinF", "head", "upperArmF", "forearmF"], g = {
|
|
4
|
+
upperArmB: 6983888,
|
|
5
|
+
forearmB: 1578e4,
|
|
6
|
+
thighB: 3813448,
|
|
7
|
+
shinB: 3813448,
|
|
8
|
+
torso: 4878256,
|
|
9
|
+
thighF: 3813448,
|
|
10
|
+
shinF: 3813448,
|
|
11
|
+
head: 1578e4,
|
|
12
|
+
upperArmF: 6983888,
|
|
13
|
+
forearmF: 1578e4
|
|
14
|
+
}, b = /* @__PURE__ */ new Set(["upperArmB", "forearmB", "thighB", "shinB"]), R = {
|
|
15
|
+
upperArmB: ["shoulderB", "elbowB"],
|
|
16
|
+
forearmB: ["elbowB", "wristB"],
|
|
17
|
+
thighB: ["hipB", "kneeB"],
|
|
18
|
+
shinB: ["kneeB", "ankleB"],
|
|
19
|
+
thighF: ["hipF", "kneeF"],
|
|
20
|
+
shinF: ["kneeF", "ankleF"],
|
|
21
|
+
upperArmF: ["shoulderF", "elbowF"],
|
|
22
|
+
forearmF: ["elbowF", "wristF"]
|
|
23
|
+
};
|
|
24
|
+
function A(d, t) {
|
|
25
|
+
const s = Math.round((d >> 16 & 255) * t), n = Math.round((d >> 8 & 255) * t), h = Math.round((d & 255) * t);
|
|
26
|
+
return s << 16 | n << 8 | h;
|
|
27
|
+
}
|
|
28
|
+
class S extends f {
|
|
29
|
+
constructor(t, s = {}, n, h = {}) {
|
|
30
|
+
super(), this.def = t, this.skin = s, this.skeleton = new k(t), this.scaleGrid = h.scale ?? 1, this.headRadius = h.headRadius ?? 5, this.headRise = h.headRise ?? 5.5, this.bulky = h.bulky === !0;
|
|
31
|
+
const r = new f();
|
|
32
|
+
r.position.set(-t.width / 2, -t.height), this.addChild(r);
|
|
33
|
+
for (const i of B) {
|
|
34
|
+
const o = new f();
|
|
35
|
+
this.layers.set(i, o), r.addChild(o);
|
|
36
|
+
const l = s[i];
|
|
37
|
+
if (l?.texture && n) {
|
|
38
|
+
const e = new w(n.get(l.texture, l.frame));
|
|
39
|
+
e.anchor.set(l.anchorX ?? 0.5, l.anchorY ?? 0), e.scale.set(1 / this.scaleGrid), this.sprites.set(i, e), o.addChild(e);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
this.scale.set(this.scaleGrid);
|
|
43
|
+
}
|
|
44
|
+
def;
|
|
45
|
+
skin;
|
|
46
|
+
skeleton;
|
|
47
|
+
sprites = /* @__PURE__ */ new Map();
|
|
48
|
+
layers = /* @__PURE__ */ new Map();
|
|
49
|
+
joints = null;
|
|
50
|
+
curl;
|
|
51
|
+
scaleGrid;
|
|
52
|
+
headRadius;
|
|
53
|
+
headRise;
|
|
54
|
+
bulky;
|
|
55
|
+
/** 1 faces right, -1 faces left. */
|
|
56
|
+
set facing(t) {
|
|
57
|
+
this.scale.x = this.scaleGrid * t;
|
|
58
|
+
}
|
|
59
|
+
get facing() {
|
|
60
|
+
return this.scale.x < 0 ? -1 : 1;
|
|
61
|
+
}
|
|
62
|
+
/** The joints of the last pose, in grid px of the rig's frame (for attaching a held item, an effect). */
|
|
63
|
+
get lastJoints() {
|
|
64
|
+
return this.joints;
|
|
65
|
+
}
|
|
66
|
+
/** Where a joint of the last pose is in this view's parent, in world px. */
|
|
67
|
+
jointInParent(t) {
|
|
68
|
+
if (!this.joints) return null;
|
|
69
|
+
const s = this.joints[t];
|
|
70
|
+
return { x: this.x + (s.x - this.def.width / 2) * this.scale.x, y: this.y + (s.y - this.def.height) * this.scale.y };
|
|
71
|
+
}
|
|
72
|
+
setPose(t) {
|
|
73
|
+
const s = this.skeleton.solve(t, this.bulky);
|
|
74
|
+
this.joints = s, this.curl = t.curl;
|
|
75
|
+
for (const n of B) this.place(n, s);
|
|
76
|
+
return this;
|
|
77
|
+
}
|
|
78
|
+
destroy(t) {
|
|
79
|
+
super.destroy(t ?? { children: !0 });
|
|
80
|
+
}
|
|
81
|
+
place(t, s) {
|
|
82
|
+
const n = this.layers.get(t), h = this.skin[t] ?? {}, r = this.sprites.get(t), [i, o] = this.ends(t, s), l = Math.atan2(o.y - i.y, o.x - i.x);
|
|
83
|
+
if (r) {
|
|
84
|
+
r.position.set(i.x, i.y), r.rotation = l - Math.PI / 2, h.stretch && r.texture.height > 0 && (r.scale.y = Math.hypot(o.x - i.x, o.y - i.y) / r.texture.height);
|
|
85
|
+
return;
|
|
86
|
+
}
|
|
87
|
+
let e = n.children[0];
|
|
88
|
+
e || (e = new F(), n.addChild(e)), e.clear();
|
|
89
|
+
const y = h.color ?? g[t], u = b.has(t) ? A(y, t.endsWith("ArmB") || t === "forearmB" ? this.def.backArmShade : this.def.backShade) : y, p = h.outline === void 0 ? 1709092 : h.outline, a = p === null ? null : { color: p, width: 0.6 };
|
|
90
|
+
if (t === "head") {
|
|
91
|
+
const c = h.width !== void 0 ? h.width / 2 : this.headRadius;
|
|
92
|
+
e.circle(i.x, i.y, c).fill(u), a && e.stroke(a);
|
|
93
|
+
return;
|
|
94
|
+
}
|
|
95
|
+
if (t === "torso") {
|
|
96
|
+
const c = h.width ?? Math.abs(this.def.shoulderF[0] - this.def.shoulderB[0]) + 1;
|
|
97
|
+
if (this.curl)
|
|
98
|
+
e.circle(this.curl[0], this.curl[1], c / 2 + 1).fill(u);
|
|
99
|
+
else {
|
|
100
|
+
const m = Math.hypot(o.x - i.x, o.y - i.y);
|
|
101
|
+
e.roundRect(-c / 2, -0.5, c, m + 1, Math.min(2, c / 3)).fill(u), e.position.set(i.x, i.y), e.rotation = l - Math.PI / 2, a && e.stroke(a);
|
|
102
|
+
return;
|
|
103
|
+
}
|
|
104
|
+
e.position.set(0, 0), e.rotation = 0, a && e.stroke(a);
|
|
105
|
+
return;
|
|
106
|
+
}
|
|
107
|
+
const x = h.width ?? this.def.limbWidth;
|
|
108
|
+
e.position.set(0, 0), e.rotation = 0, a && e.moveTo(i.x, i.y).lineTo(o.x, o.y).stroke({ color: a.color, width: x + a.width * 2, cap: "round" }), e.moveTo(i.x, i.y).lineTo(o.x, o.y).stroke({ color: u, width: x, cap: "round" });
|
|
109
|
+
}
|
|
110
|
+
/** The two points a part spans: a limb's joints, the torso from chest to hips, the head's centre (twice). */
|
|
111
|
+
ends(t, s) {
|
|
112
|
+
if (t === "head") {
|
|
113
|
+
const r = { x: s.head.x, y: s.head.y - this.headRise };
|
|
114
|
+
return [r, { x: r.x, y: r.y + 1 }];
|
|
115
|
+
}
|
|
116
|
+
if (t === "torso") return [s.chest, { x: (s.hipF.x + s.hipB.x) / 2, y: (s.hipF.y + s.hipB.y) / 2 }];
|
|
117
|
+
const [n, h] = R[t];
|
|
118
|
+
return [s[n], s[h]];
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
export {
|
|
122
|
+
B as RIG_PARTS,
|
|
123
|
+
S as RigView
|
|
124
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
const f = Math.PI / 180, a = [90, 2, 0, 2];
|
|
2
|
+
function c(i, t, h) {
|
|
3
|
+
return { x: i.x + t, y: i.y + h };
|
|
4
|
+
}
|
|
5
|
+
function d(i, t) {
|
|
6
|
+
const [h, n, r, o] = t, e = h * f, s = (h + r) * f, l = c(i, Math.cos(e) * n, Math.sin(e) * n);
|
|
7
|
+
return [l, c(l, Math.cos(s) * o, Math.sin(s) * o), s];
|
|
8
|
+
}
|
|
9
|
+
class p {
|
|
10
|
+
def;
|
|
11
|
+
constructor(t) {
|
|
12
|
+
this.def = t;
|
|
13
|
+
}
|
|
14
|
+
solve(t, h = !1) {
|
|
15
|
+
const n = this.def, r = h ? n.bulkyShoulder : 0, o = { x: n.chest[0], y: n.chest[1] + (t.by ?? 0) }, e = c(o, n.shoulderF[0] + r, n.shoulderF[1]), s = c(o, n.shoulderB[0] - r, n.shoulderB[1]), l = t.hipDx ?? 0, u = t.hipDy ?? 0, B = { x: n.hipF[0] + l, y: n.hipF[1] + u }, F = { x: n.hipB[0] + l, y: n.hipB[1] + u }, [x, y, m] = this.frontArm(e, t.armF ?? a), [w, b] = d(s, t.armB ?? a), [k, D] = d(B, t.legF ?? a), [M, A] = d(F, t.legB ?? a), g = c(o, t.headDx ?? 0, t.headDy ?? 0);
|
|
16
|
+
return { chest: o, head: g, shoulderF: e, elbowF: x, wristF: y, shoulderB: s, elbowB: w, wristB: b, hipF: B, kneeF: k, ankleF: D, hipB: F, kneeB: M, ankleB: A, forearm: m };
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Elbow, wrist and forearm direction of the front arm (or of its motion smear) hung from `shoulder`. The fist keeps
|
|
20
|
+
* the frame's last column for its outline: an arm reaching past that (a swing, a thrust, a draw on a bulky body) is
|
|
21
|
+
* pulled back whole, so the forearm — and the weapon laid along it — keeps its angle.
|
|
22
|
+
*/
|
|
23
|
+
frontArm(t, h) {
|
|
24
|
+
const n = this.def, [r, o, e] = d(t, h), s = Math.max(0, o.x - (n.width - n.limbWidth - 1));
|
|
25
|
+
return [c(r, -s, 0), c(o, -s, 0), e];
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
export {
|
|
29
|
+
p as Skeleton
|
|
30
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
const i = 1, l = 20, r = 24, t = [10, 13], s = [3, 1], c = [-4, 1], o = 1, h = [11, 19], e = [9, 19], n = 2, d = 0.75, a = 0.72, u = {
|
|
2
|
+
scale: 1,
|
|
3
|
+
width: 20,
|
|
4
|
+
height: 24,
|
|
5
|
+
chest: t,
|
|
6
|
+
shoulderF: s,
|
|
7
|
+
shoulderB: c,
|
|
8
|
+
bulkyShoulder: o,
|
|
9
|
+
hipF: h,
|
|
10
|
+
hipB: e,
|
|
11
|
+
limbWidth: n,
|
|
12
|
+
backShade: d,
|
|
13
|
+
backArmShade: a
|
|
14
|
+
};
|
|
15
|
+
export {
|
|
16
|
+
a as backArmShade,
|
|
17
|
+
d as backShade,
|
|
18
|
+
o as bulkyShoulder,
|
|
19
|
+
t as chest,
|
|
20
|
+
u as default,
|
|
21
|
+
r as height,
|
|
22
|
+
e as hipB,
|
|
23
|
+
h as hipF,
|
|
24
|
+
n as limbWidth,
|
|
25
|
+
i as scale,
|
|
26
|
+
c as shoulderB,
|
|
27
|
+
s as shoulderF,
|
|
28
|
+
l as width
|
|
29
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import e from "./poses.json.js";
|
|
2
|
+
const A = e, s = (o, p) => Array.from({ length: p }, (R, E) => `${o}${E}`), H = {
|
|
3
|
+
idle: { poses: s("BREATHE", 6), fps: 6 },
|
|
4
|
+
walk: { poses: s("STRIDE", 6), fps: 10 },
|
|
5
|
+
run: { poses: s("JOG", 8), fps: 14 },
|
|
6
|
+
roll: { poses: s("ROLL", 12), fps: 30, loop: !1, blend: !1 },
|
|
7
|
+
dash: { poses: ["DASH"], fps: 1, loop: !1 },
|
|
8
|
+
hurt: { poses: ["HURT", "BREATHE0"], fps: 5, loop: !1 },
|
|
9
|
+
dizzy: { poses: ["DIZZY", "BREATHE0"], fps: 2 },
|
|
10
|
+
crouch: { poses: ["CROUCH"], fps: 1, loop: !1 },
|
|
11
|
+
kneel: { poses: ["KNEEL"], fps: 1, loop: !1 },
|
|
12
|
+
sit: { poses: ["SIT"], fps: 1, loop: !1 },
|
|
13
|
+
sitGround: { poses: ["SIT_GROUND"], fps: 1, loop: !1 },
|
|
14
|
+
pick: { poses: ["CROUCH", "PICK", "CROUCH"], fps: 6, loop: !1 },
|
|
15
|
+
lookBack: { poses: ["LOOK_BACK"], fps: 1, loop: !1 },
|
|
16
|
+
stretch: { poses: ["BREATHE0", "STRETCH", "STRETCH", "BREATHE0"], fps: 3, loop: !1 },
|
|
17
|
+
cheer: { poses: ["BREATHE0", "CHEER", "CHEER"], fps: 6, loop: !1 },
|
|
18
|
+
wave: { poses: ["WAVE_A", "WAVE_B"], fps: 4 },
|
|
19
|
+
dance: { poses: ["DANCE_A", "DANCE_B"], fps: 3 },
|
|
20
|
+
slash: { poses: ["SLASH_READY", "SLASH_WIND", "SLASH_SWEEP", "SLASH_FOLLOW", "SLASH_END", "SLASH_RECOVER"], durations: [60, 90, 40, 60, 90, 120], loop: !1 },
|
|
21
|
+
thrust: { poses: ["THRUST_READY", "THRUST_LUNGE", "THRUST_MID", "THRUST_END", "THRUST_RECOVER"], durations: [80, 50, 60, 100, 120], loop: !1 },
|
|
22
|
+
overhead: { poses: ["OVERHEAD_READY", "OVERHEAD", "OVERHEAD_MID", "OVERHEAD_FALL"], durations: [90, 140, 50, 160], loop: !1 },
|
|
23
|
+
cast: { poses: ["CAST_CHARGE", "CAST", "CAST_RELEASE"], durations: [220, 120, 200], loop: !1 },
|
|
24
|
+
throw: { poses: ["THROW_READY", "THROW_WIND", "THROW_RELEASE", "THROW_MID", "THROW_RECOVER"], durations: [70, 110, 40, 70, 120], loop: !1 }
|
|
25
|
+
};
|
|
26
|
+
export {
|
|
27
|
+
H as HUMANOID_CLIPS,
|
|
28
|
+
A as HUMANOID_POSES
|
|
29
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
function n(r, e, i) {
|
|
2
|
+
return r + (e - r) * i;
|
|
3
|
+
}
|
|
4
|
+
function c(r, e, i) {
|
|
5
|
+
let t = (e - r) % 360;
|
|
6
|
+
return t > 180 && (t -= 360), t < -180 && (t += 360), r + t * i;
|
|
7
|
+
}
|
|
8
|
+
function l(r, e, i) {
|
|
9
|
+
return !r || !e ? i < 1 ? r ?? e : e ?? r : [c(r[0], e[0], i), n(r[1], e[1], i), c(r[2], e[2], i), n(r[3], e[3], i)];
|
|
10
|
+
}
|
|
11
|
+
function u(r, e, i) {
|
|
12
|
+
if (!(r === void 0 && e === void 0))
|
|
13
|
+
return n(r ?? 0, e ?? 0, i);
|
|
14
|
+
}
|
|
15
|
+
function h(r, e, i) {
|
|
16
|
+
return i <= 0 ? r : i >= 1 ? e : {
|
|
17
|
+
...r,
|
|
18
|
+
by: u(r.by, e.by, i),
|
|
19
|
+
armF: l(r.armF, e.armF, i),
|
|
20
|
+
armB: l(r.armB, e.armB, i),
|
|
21
|
+
legF: l(r.legF, e.legF, i),
|
|
22
|
+
legB: l(r.legB, e.legB, i),
|
|
23
|
+
hipDx: u(r.hipDx, e.hipDx, i),
|
|
24
|
+
hipDy: u(r.hipDy, e.hipDy, i),
|
|
25
|
+
headDx: u(r.headDx, e.headDx, i),
|
|
26
|
+
headDy: u(r.headDy, e.headDy, i),
|
|
27
|
+
smearArm: r.smearArm,
|
|
28
|
+
curl: r.curl && e.curl ? [n(r.curl[0], e.curl[0], i), n(r.curl[1], e.curl[1], i)] : r.curl
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
function o(r, e) {
|
|
32
|
+
const i = { ...r };
|
|
33
|
+
for (const [t, p] of Object.entries(e)) p !== void 0 && (i[t] = p);
|
|
34
|
+
return i;
|
|
35
|
+
}
|
|
36
|
+
function D(r, e) {
|
|
37
|
+
return {
|
|
38
|
+
...r,
|
|
39
|
+
by: Math.max(-1, (r.by ?? 0) + (e.by ?? 0)),
|
|
40
|
+
legF: e.legF,
|
|
41
|
+
legB: e.legB,
|
|
42
|
+
hipDx: e.hipDx,
|
|
43
|
+
hipDy: e.hipDy,
|
|
44
|
+
// the far arm swings with the run, unless it holds the bow the action draws
|
|
45
|
+
armB: r.armBFront ? r.armB : e.armB,
|
|
46
|
+
trail: e.trail ?? r.trail
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
export {
|
|
50
|
+
h as blendPose,
|
|
51
|
+
o as overlay,
|
|
52
|
+
D as upperOver
|
|
53
|
+
};
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
const a = { by: 0, armF: [45, 1.2, 45, 1.7], armB: [90, 2, 0, 1], legB: [135, 1.41, -45, 2], legF: [90, 1, 0, 2] }, e = { by: 0, armF: [45, 2.41, 45, 1.7], armB: [90, 2, 0, 1], legB: [135, 1.41, -45, 2], legF: [90, 1, 0, 2], breathe: !0, sway: 1 }, r = { by: -1, armF: [45, 2.41, 45, 1.7], armB: [90, 2, 0, 1], legB: [135, 1.41, -45, 2], legF: [90, 1, 0, 2], breathe: !0, sway: 1 }, l = { by: 0, armF: [45, 1.2, 45, 1.7], armB: [90, 2, 0, 1], legB: [135, 1.41, -45, 2], legF: [90, 1, 0, 2], sway: -1 }, m = { by: -1, armF: [45, 2.41, 45, 1.7], armB: [90, 2, 0, 1], legB: [135, 1.41, -45, 2], legF: [90, 1, 0, 2], breathe: !0, sway: 2 }, B = { by: 1, armF: [45, 1.2, 45, 1.7], armB: [90, 2, 0, 1], legB: [135, 1.41, -45, 2], legF: [90, 1, 0, 2], sway: -1 }, F = { by: 0, armF: [45, 1.2, 45, 1.7], armB: [90, 2, 0, 1], legB: [135, 1.41, -45, 2], legF: [90, 1, 0, 2] }, g = { by: 1, armF: [45, 1.2, 45, 1.7], armB: [90, 2, 0, 1], legB: [135, 1.41, -45, 2], legF: [90, 1, 0, 2] }, y = { by: 0, armF: [90, 1.7, 0, 0.85], armB: [90, 2, 0, 1], legB: [153.4, 2.24, -63.4, 1], legF: [45, 1.41, 45, 2], trail: 1 }, t = { by: -1, armF: [90, 1.7, 0, 0.85], armB: [90, 2, 0, 1], legB: [90, 1, 0, 1], legF: [90, 1, 0, 2], trail: 2 }, c = { by: 0, armF: [45, 1.2, 45, 1.7], armB: [90, 2, 0, 1], legB: [26.6, 2.24, 63.4, 1], legF: [153.4, 2.24, -63.4, 2], trail: 1 }, s = { by: 0, armF: [45, 1.2, 0, 1.2], armB: [90, 1, 45, 1.41], legB: [18.4, 3.16, 71.6, 2], legF: [166, 4.12, -76, 1], trail: 1 }, D = { by: -1, armF: [45, 1.2, 0, 1.2], armB: [90, 1, 45, 1.41], legB: [26.6, 2.24, 63.4, 2], legF: [153.4, 2.24, -63.4, 1], trail: 2 }, b = { by: 0, armF: [45, 1.2, 45, 1.7], armB: [90, 2, 0, 1], legB: [90, 1, 0, 2], legF: [90, 1, 0, 1], trail: 1 }, o = { by: 0, armF: [135, 2.41, 71.6, 1.9], armB: [21.8, 2.69, -55.5, 1.8], legB: [116.6, 2.24, 45, 3.16], legF: [90, 2, -71.6, 3.16], trail: 1 }, n = { by: 1, armF: [135, 2.41, 71.6, 1.9], armB: [21.8, 2.69, -55.5, 1.8], legB: [153.4, 2.24, 26.6, 2], legF: [63.4, 2.24, -18.4, 1.41], trail: 1 }, E = { by: 0, armF: [63.4, 1.9, -108.4, 1.2], armB: [21.8, 2.69, -55.5, 1.8], legB: [90, 0, 45, 1.41], legF: [90, 2, 45, 1.41], trail: 2 }, h = { by: -1, armF: [18.4, 2.69, -90, 2.69], armB: [21.8, 2.69, -55.5, 1.8], legB: [18.4, 3.16, -18.4, 1], legF: [153.4, 2.24, 0, 2.24], trail: 2 }, R = { by: 0, armF: [18.4, 2.69, -90, 2.69], armB: [116.6, 1.12, 63.4, 1.5], legB: [45, 2.83, -26.6, 3.16], legF: [146.3, 3.61, 15.3, 3.16], trail: 1 }, i = { by: 1, armF: [18.4, 2.69, -90, 2.69], armB: [116.6, 1.12, 63.4, 1.5], legB: [33.7, 3.61, 11.3, 1.41], legF: [166, 4.12, 14, 2], trail: 1 }, A = { by: 0, armF: [63.4, 1.9, -108.4, 1.2], armB: [116.6, 1.12, 63.4, 1.5], legB: [45, 2.83, 90, 1.41], legF: [180, 2, -45, 1.41], trail: 2 }, L = { by: -1, armF: [135, 2.41, 71.6, 1.9], armB: [116.6, 1.12, 63.4, 1.5], legB: [90, 1, 63.4, 2.24], legF: [45, 1.41, -45, 1], trail: 2 }, O = { by: 0, curl: [10, 18], hipDx: -1, hipDy: -1, headDx: 0, headDy: 5, legB: [14, 4.12, 57.5, 3.16], legF: [14, 4.12, 57.5, 3.16], armF: [94.4, 2.77, -17.4, 2.84], armB: [90, 2, 0, 1] }, p = { by: 0, curl: [10, 17], hipDx: -1, hipDy: -2, headDx: 3, headDy: 8, legB: [-9.5, 6.08, -80.5, 4], legF: [-9.5, 6.08, -80.5, 4], armF: [-45, 0.6, 63.4, 1.34], armB: [90, 2, 0, 1] }, T = { by: 0, curl: [9, 16], hipDx: -2, hipDy: -3, headDx: 3, headDy: 10, legB: [-39.8, 7.81, -103.3, 5], legF: [-39.8, 7.81, -103.3, 5], armF: [-114.8, 3.04, 46.6, 1.15], armB: [90, 2, 0, 1] }, S = { by: 0, curl: [8, 16], hipDx: -3, hipDy: -3, headDx: 1, headDy: 10, legB: [-74.1, 7.28, -117.3, 5.1], legF: [-74.1, 7.28, -117.3, 5.1], armF: [-145.6, 4.9, 1.2, 1.83], armB: [90, 2, 0, 1] }, H = { by: 0, curl: [9, 17], hipDx: -2, hipDy: -2, headDx: 0, headDy: 8, legB: [-135, 4.24, -135, 5], legF: [-135, 4.24, -135, 5], armF: [171.5, 4.3, -21.7, 2.95], armB: [90, 2, 0, 1] }, d = { by: 0, curl: [10, 18], hipDx: -1, hipDy: -1, headDx: 0, headDy: 5, legB: [90, 1, 18.4, 3.16], legF: [90, 1, 18.4, 3.16], armF: [130.2, 3.62, -11.9, 3.14], armB: [90, 2, 0, 1] }, _ = { by: 0, curl: [10, 18], hipDx: -1, hipDy: -1, headDx: 2, headDy: 7, legB: [0, 5, -45, 1.41], legF: [0, 5, -45, 1.41], armF: [81.9, 1.5, -27.4, 1.83], armB: [90, 2, 0, 1] }, x = { by: 0, curl: [10, 17], hipDx: -1, hipDy: -2, headDx: 3, headDy: 9, legB: [-26.6, 6.71, -90, 4.47], legF: [-26.6, 6.71, -90, 4.47], armF: [-90, 1.27, 63.4, 0.95], armB: [90, 2, 0, 1] }, u = { by: 0, curl: [9, 16], hipDx: -2, hipDy: -3, headDx: 2, headDy: 10, legB: [-56.3, 7.21, -112.4, 5.1], legF: [-56.3, 7.21, -112.4, 5.1], armF: [-130.2, 3.62, 9.3, 1.24], armB: [90, 2, 0, 1] }, I = { by: 0, curl: [9, 17], hipDx: -2, hipDy: -2, headDx: 1, headDy: 9, legB: [-101.3, 5.1, -135, 3.61], legF: [-101.3, 5.1, -135, 3.61], armF: [-170.5, 3.88, -15.2, 2.13], armB: [90, 2, 0, 1] }, C = { by: 0, curl: [10, 18], hipDx: -1, hipDy: -1, headDx: 0, headDy: 7, legB: [-153.4, 2.24, -116.6, 4], legF: [-153.4, 2.24, -116.6, 4], armF: [144.5, 3.66, -9.5, 3.01], armB: [90, 2, 0, 1] }, G = { by: 0, curl: [10, 18], hipDx: -1, hipDy: -1, headDx: 0, headDy: 3, legB: [45, 2.83, 45, 2], legF: [45, 2.83, 45, 2], armF: [113.2, 3.24, -15.1, 3.01], armB: [90, 2, 0, 1] }, W = { by: 1, armF: [90, 1.7, 0, 0.85], armB: [90, 2, 0, 1], legB: [153.4, 2.24, -63.4, 1], legF: [45, 1.41, 45, 2] }, f = { by: 0, armF: [45, 1.2, 45, 1.7], armB: [90, 2, 0, 1], legB: [135, 1.41, -45, 2], legF: [90, 1, 0, 2], face: "blink", headDx: -1 }, N = { by: 1, armF: [45, 1.2, 45, 1.7], armB: [90, 2, 0, 1], legB: [135, 1.41, -45, 2], legF: [90, 1, 0, 2], face: "dizzy" }, U = { by: 2, armF: [45, 1.2, 45, 1.7], armB: [90, 2, 0, 1], legB: [153.4, 2.24, -63.4, 2], legF: [45, 1.41, 45, 2] }, V = { by: 2, armF: [45, 1.2, 0, 1.2], armB: [90, 1, 45, 1.41], legB: [116.6, 2.24, 45, 3.16], legF: [26.6, 2.24, 63.4, 2] }, J = { by: 0, armF: [45, 1.2, 45, 1.7], armB: [90, 2, 0, 1], legB: [0, 2, 63.4, 2.24], legF: [0, 1, 63.4, 2.24] }, w = { by: 5, armF: [45, 1.2, 45, 1.7], armB: [90, 2, 0, 1], hipDy: 3, legB: [0, 2, -26.6, 2.24], legF: [0, 3, -26.6, 2.24] }, Y = { by: 2, armF: [63.4, 1.9, 8.1, 2.69], armB: [90, 2, 0, 1], legB: [116.6, 2.24, 45, 3.16], legF: [26.6, 2.24, 63.4, 2] }, k = { by: 0, armF: [45, 1.2, 45, 1.7], armB: [90, 2, 0, 1], legB: [135, 1.41, -45, 2], legF: [90, 1, 0, 2], lookBack: !0 }, K = { by: -1, armF: [-63.4, 1.9, -26.6, 1.7], armB: [-90, 2, 0, 2], legB: [135, 1.41, -45, 2], legF: [90, 1, 0, 2], face: "blink" }, M = { by: -1, armF: [-63.4, 1.9, -26.6, 1.7], armB: [-90, 2, 0, 2], legB: [135, 1.41, -45, 1], legF: [90, 1, 0, 1], face: "happy" }, z = { by: 0, armF: [-45, 2.41, -18.4, 3.8], armB: [90, 2, 0, 1], legB: [135, 1.41, -45, 2], legF: [90, 1, 0, 2], face: "happy" }, P = { by: 0, armF: [-45, 2.41, -56.3, 4.34], armB: [90, 2, 0, 1], legB: [135, 1.41, -45, 2], legF: [90, 1, 0, 2], face: "happy" }, Z = { by: -1, armF: [-63.4, 1.9, -26.6, 1.7], armB: [-90, 2, 0, 2], legB: [153.4, 2.24, -63.4, 1], legF: [45, 1.41, 45, 2], face: "happy" }, j = { by: 0, armF: [-45, 2.41, -18.4, 3.8], armB: [90, 2, 0, 1], legB: [18.4, 3.16, 71.6, 2], legF: [161.6, 3.16, -71.6, 1], face: "happy" }, q = { by: 1, armF: [-110, 1.9, 63, 3.06], armB: [90, 2, 0, 1], legB: [153.4, 2.24, -63.4, 2], legF: [45, 1.41, 45, 2] }, v = { by: 1, armF: [-90, 1.7, 11.3, 4.34], armB: [90, 2, 0, 1], legB: [153.4, 2.24, -63.4, 2], legF: [45, 1.41, 45, 2], smearArm: [-110, 1.9, 63, 3.06] }, Q = { by: 0, armF: [-33.7, 3.07, 15.3, 2.69], armB: [90, 2, 0, 1], legB: [153.4, 2.24, -63.4, 2], legF: [45, 1.41, 45, 2] }, X = { by: 1, armF: [33.7, 3.07, 22.6, 3.07], armB: [90, 2, 0, 1], legB: [153.4, 2.24, -63.4, 2], legF: [45, 1.41, 45, 2], smearArm: [33.7, 3.07, 11.3, 2.41] }, $ = { by: 1, armF: [33.7, 3.07, 11.3, 2.41], armB: [90, 2, 0, 1], legB: [153.4, 2.24, -63.4, 2], legF: [45, 1.41, 45, 2] }, a1 = { by: 0, armF: [45, 2.41, 18.4, 1.9], armB: [90, 2, 0, 1], legB: [153.4, 2.24, -63.4, 2], legF: [45, 1.41, 45, 2] }, e1 = { by: 1, armF: [116.6, 1.9, -180, 1.9], armB: [90, 2, 0, 1], legB: [153.4, 2.24, -63.4, 2], legF: [45, 1.41, 45, 2] }, r1 = { by: 1, armF: [0, 2.55, 0, 2.55], armB: [90, 2, 0, 1], legB: [153.4, 2.24, -63.4, 2], legF: [45, 1.41, 45, 2], smearArm: [0, 1.7, 0, 1.7] }, l1 = { by: 0, armF: [45, 1.2, -90, 1.2], armB: [90, 2, 0, 1], legB: [153.4, 2.24, -63.4, 2], legF: [45, 1.41, 45, 2], smearArm: [116.6, 1.9, -180, 1.9] }, m1 = { by: 0, armF: [0, 1.7, 0, 1.7], armB: [90, 2, 0, 1], legB: [153.4, 2.24, -63.4, 2], legF: [45, 1.41, 45, 2] }, B1 = { by: 0, armF: [45, 1.2, 0, 1.2], armB: [90, 2, 0, 1], legB: [153.4, 2.24, -63.4, 2], legF: [45, 1.41, 45, 2] }, F1 = { by: 1, armF: [-71.6, 2.69, -45, 1.9], armB: [90, 2, 0, 1], legB: [153.4, 2.24, -63.4, 2], legF: [45, 1.41, 45, 2] }, g1 = { by: 0, armF: [-59, 4.96, -40.4, 5.17], armB: [90, 2, 0, 1], legB: [153.4, 2.24, -63.4, 2], legF: [45, 1.41, 45, 2] }, y1 = { by: 0, armF: [-36.9, 4.25, 10.3, 1.9], armB: [90, 2, 0, 1], legB: [153.4, 2.24, -63.4, 2], legF: [45, 1.41, 45, 2], smearArm: [-59, 4.96, -40.4, 5.17] }, t1 = { by: 0, armF: [-26.6, 3.8, 53.1, 1.9], armB: [90, 2, 0, 1], legB: [153.4, 2.24, -63.4, 2], legF: [45, 1.41, 45, 2], smearArm: [-36.9, 4.25, 10.3, 1.9] }, c1 = { by: 1, armF: [45, 1.2, 0, 1.2], armB: [90, 1, 45, 1.41], legB: [135, 1.41, -45, 2], legF: [90, 1, 0, 2] }, s1 = { by: 0, armF: [-63.4, 1.9, -26.6, 1.7], armB: [-90, 2, 0, 2], legB: [135, 1.41, -45, 2], legF: [90, 1, 0, 2] }, D1 = { by: -1, armF: [-63.4, 1.9, -26.6, 1.7], armB: [-90, 2, 0, 2], legB: [135, 1.41, -45, 2], legF: [90, 1, 0, 2] }, b1 = { by: 1, armF: [-130, 2.41, 26.6, 2.69], armB: [90, 2, 0, 1], legB: [153.4, 2.24, -63.4, 2], legF: [45, 1.41, 45, 2] }, o1 = { by: 1, armF: [-123.7, 3.07, 0, 3.07], armB: [90, 2, 0, 1], legB: [153.4, 2.24, -63.4, 2], legF: [45, 1.41, 45, 2] }, n1 = { by: 0, armF: [-45, 2.41, 45, 1.7], armB: [90, 2, 0, 1], legB: [153.4, 2.24, -63.4, 2], legF: [45, 1.41, 45, 2] }, E1 = { by: 1, armF: [-90, 3.4, 18.4, 2.69], armB: [90, 2, 0, 1], legB: [153.4, 2.24, -63.4, 2], legF: [45, 1.41, 45, 2], smearArm: [-135, 2.41, 26.6, 2.69] }, h1 = { by: 0, armF: [26.6, 1.9, 63.4, 1.7], armB: [90, 2, 0, 1], legB: [153.4, 2.24, -63.4, 2], legF: [45, 1.41, 45, 2] }, R1 = {
|
|
2
|
+
BREATHE0: a,
|
|
3
|
+
BREATHE1: e,
|
|
4
|
+
BREATHE2: r,
|
|
5
|
+
BREATHE3: l,
|
|
6
|
+
BREATHE4: m,
|
|
7
|
+
BREATHE5: B,
|
|
8
|
+
IDLE0: F,
|
|
9
|
+
IDLE1: g,
|
|
10
|
+
STRIDE0: y,
|
|
11
|
+
STRIDE1: t,
|
|
12
|
+
STRIDE2: c,
|
|
13
|
+
STRIDE3: s,
|
|
14
|
+
STRIDE4: D,
|
|
15
|
+
STRIDE5: b,
|
|
16
|
+
JOG0: o,
|
|
17
|
+
JOG1: n,
|
|
18
|
+
JOG2: E,
|
|
19
|
+
JOG3: h,
|
|
20
|
+
JOG4: R,
|
|
21
|
+
JOG5: i,
|
|
22
|
+
JOG6: A,
|
|
23
|
+
JOG7: L,
|
|
24
|
+
ROLL0: O,
|
|
25
|
+
ROLL1: p,
|
|
26
|
+
ROLL2: T,
|
|
27
|
+
ROLL3: S,
|
|
28
|
+
ROLL4: H,
|
|
29
|
+
ROLL5: d,
|
|
30
|
+
ROLL6: _,
|
|
31
|
+
ROLL7: x,
|
|
32
|
+
ROLL8: u,
|
|
33
|
+
ROLL9: I,
|
|
34
|
+
ROLL10: C,
|
|
35
|
+
ROLL11: G,
|
|
36
|
+
DASH: W,
|
|
37
|
+
HURT: f,
|
|
38
|
+
DIZZY: N,
|
|
39
|
+
CROUCH: U,
|
|
40
|
+
KNEEL: V,
|
|
41
|
+
SIT: J,
|
|
42
|
+
SIT_GROUND: w,
|
|
43
|
+
PICK: Y,
|
|
44
|
+
LOOK_BACK: k,
|
|
45
|
+
STRETCH: K,
|
|
46
|
+
CHEER: M,
|
|
47
|
+
WAVE_A: z,
|
|
48
|
+
WAVE_B: P,
|
|
49
|
+
DANCE_A: Z,
|
|
50
|
+
DANCE_B: j,
|
|
51
|
+
SLASH_READY: q,
|
|
52
|
+
SLASH_WIND: v,
|
|
53
|
+
SLASH_SWEEP: Q,
|
|
54
|
+
SLASH_FOLLOW: X,
|
|
55
|
+
SLASH_END: $,
|
|
56
|
+
SLASH_RECOVER: a1,
|
|
57
|
+
THRUST_READY: e1,
|
|
58
|
+
THRUST_LUNGE: r1,
|
|
59
|
+
THRUST_MID: l1,
|
|
60
|
+
THRUST_END: m1,
|
|
61
|
+
THRUST_RECOVER: B1,
|
|
62
|
+
OVERHEAD_READY: F1,
|
|
63
|
+
OVERHEAD: g1,
|
|
64
|
+
OVERHEAD_MID: y1,
|
|
65
|
+
OVERHEAD_FALL: t1,
|
|
66
|
+
CAST_CHARGE: c1,
|
|
67
|
+
CAST: s1,
|
|
68
|
+
CAST_RELEASE: D1,
|
|
69
|
+
THROW_READY: b1,
|
|
70
|
+
THROW_WIND: o1,
|
|
71
|
+
THROW_RELEASE: n1,
|
|
72
|
+
THROW_MID: E1,
|
|
73
|
+
THROW_RECOVER: h1
|
|
74
|
+
};
|
|
75
|
+
export {
|
|
76
|
+
a as BREATHE0,
|
|
77
|
+
e as BREATHE1,
|
|
78
|
+
r as BREATHE2,
|
|
79
|
+
l as BREATHE3,
|
|
80
|
+
m as BREATHE4,
|
|
81
|
+
B as BREATHE5,
|
|
82
|
+
s1 as CAST,
|
|
83
|
+
c1 as CAST_CHARGE,
|
|
84
|
+
D1 as CAST_RELEASE,
|
|
85
|
+
M as CHEER,
|
|
86
|
+
U as CROUCH,
|
|
87
|
+
Z as DANCE_A,
|
|
88
|
+
j as DANCE_B,
|
|
89
|
+
W as DASH,
|
|
90
|
+
N as DIZZY,
|
|
91
|
+
f as HURT,
|
|
92
|
+
F as IDLE0,
|
|
93
|
+
g as IDLE1,
|
|
94
|
+
o as JOG0,
|
|
95
|
+
n as JOG1,
|
|
96
|
+
E as JOG2,
|
|
97
|
+
h as JOG3,
|
|
98
|
+
R as JOG4,
|
|
99
|
+
i as JOG5,
|
|
100
|
+
A as JOG6,
|
|
101
|
+
L as JOG7,
|
|
102
|
+
V as KNEEL,
|
|
103
|
+
k as LOOK_BACK,
|
|
104
|
+
g1 as OVERHEAD,
|
|
105
|
+
t1 as OVERHEAD_FALL,
|
|
106
|
+
y1 as OVERHEAD_MID,
|
|
107
|
+
F1 as OVERHEAD_READY,
|
|
108
|
+
Y as PICK,
|
|
109
|
+
O as ROLL0,
|
|
110
|
+
p as ROLL1,
|
|
111
|
+
C as ROLL10,
|
|
112
|
+
G as ROLL11,
|
|
113
|
+
T as ROLL2,
|
|
114
|
+
S as ROLL3,
|
|
115
|
+
H as ROLL4,
|
|
116
|
+
d as ROLL5,
|
|
117
|
+
_ as ROLL6,
|
|
118
|
+
x as ROLL7,
|
|
119
|
+
u as ROLL8,
|
|
120
|
+
I as ROLL9,
|
|
121
|
+
J as SIT,
|
|
122
|
+
w as SIT_GROUND,
|
|
123
|
+
$ as SLASH_END,
|
|
124
|
+
X as SLASH_FOLLOW,
|
|
125
|
+
q as SLASH_READY,
|
|
126
|
+
a1 as SLASH_RECOVER,
|
|
127
|
+
Q as SLASH_SWEEP,
|
|
128
|
+
v as SLASH_WIND,
|
|
129
|
+
K as STRETCH,
|
|
130
|
+
y as STRIDE0,
|
|
131
|
+
t as STRIDE1,
|
|
132
|
+
c as STRIDE2,
|
|
133
|
+
s as STRIDE3,
|
|
134
|
+
D as STRIDE4,
|
|
135
|
+
b as STRIDE5,
|
|
136
|
+
E1 as THROW_MID,
|
|
137
|
+
b1 as THROW_READY,
|
|
138
|
+
h1 as THROW_RECOVER,
|
|
139
|
+
n1 as THROW_RELEASE,
|
|
140
|
+
o1 as THROW_WIND,
|
|
141
|
+
m1 as THRUST_END,
|
|
142
|
+
r1 as THRUST_LUNGE,
|
|
143
|
+
l1 as THRUST_MID,
|
|
144
|
+
e1 as THRUST_READY,
|
|
145
|
+
B1 as THRUST_RECOVER,
|
|
146
|
+
z as WAVE_A,
|
|
147
|
+
P as WAVE_B,
|
|
148
|
+
R1 as default
|
|
149
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
const h = {
|
|
2
|
+
now: () => Date.now(),
|
|
3
|
+
setTimeout: (i, t) => setTimeout(i, t),
|
|
4
|
+
clearTimeout: (i) => clearTimeout(i)
|
|
5
|
+
};
|
|
6
|
+
class l {
|
|
7
|
+
constructor(t, s, r, e = {}) {
|
|
8
|
+
this.store = t, this.slot = s, this.snapshot = r, this.options = e, this.intervalMs = e.intervalMs ?? 3e4, this.timers = e.timers ?? h;
|
|
9
|
+
}
|
|
10
|
+
store;
|
|
11
|
+
slot;
|
|
12
|
+
snapshot;
|
|
13
|
+
options;
|
|
14
|
+
intervalMs;
|
|
15
|
+
timers;
|
|
16
|
+
lastSave = -1 / 0;
|
|
17
|
+
dirty = !1;
|
|
18
|
+
timer = null;
|
|
19
|
+
inFlight = null;
|
|
20
|
+
disposed = !1;
|
|
21
|
+
/** Something worth saving changed. */
|
|
22
|
+
request() {
|
|
23
|
+
if (this.disposed || (this.dirty = !0, this.timer !== null || this.inFlight)) return;
|
|
24
|
+
const t = this.lastSave + this.intervalMs - this.timers.now();
|
|
25
|
+
t <= 0 ? this.run() : this.timer = this.timers.setTimeout(() => {
|
|
26
|
+
this.timer = null, this.run();
|
|
27
|
+
}, t);
|
|
28
|
+
}
|
|
29
|
+
/** Saves now if anything is waiting (leaving the game, a scene change); resolves when it is written. */
|
|
30
|
+
async flush() {
|
|
31
|
+
this.timer !== null && (this.timers.clearTimeout(this.timer), this.timer = null), this.inFlight && await this.inFlight, this.dirty && await this.run();
|
|
32
|
+
}
|
|
33
|
+
/** Stops autosaving; a pending trailing save is dropped (call `flush` first to keep it). */
|
|
34
|
+
dispose() {
|
|
35
|
+
this.disposed = !0, this.timer !== null && this.timers.clearTimeout(this.timer), this.timer = null;
|
|
36
|
+
}
|
|
37
|
+
run() {
|
|
38
|
+
this.dirty = !1, this.lastSave = this.timers.now();
|
|
39
|
+
const t = (async () => {
|
|
40
|
+
try {
|
|
41
|
+
await this.store.save(this.slot, this.snapshot(), this.options.meta?.() ?? null);
|
|
42
|
+
} catch (s) {
|
|
43
|
+
this.options.onError ? this.options.onError(s) : console.error("[autosave] failed", s);
|
|
44
|
+
}
|
|
45
|
+
})();
|
|
46
|
+
return this.inFlight = t, t.then(() => {
|
|
47
|
+
this.inFlight = null, this.dirty && !this.disposed && (this.dirty = !1, this.request());
|
|
48
|
+
}), t;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
export {
|
|
52
|
+
l as Autosaver
|
|
53
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
class r {
|
|
2
|
+
entries = /* @__PURE__ */ new Map();
|
|
3
|
+
async read(e) {
|
|
4
|
+
return this.entries.get(e) ?? null;
|
|
5
|
+
}
|
|
6
|
+
async write(e, s) {
|
|
7
|
+
this.entries.set(e, s);
|
|
8
|
+
}
|
|
9
|
+
async remove(e) {
|
|
10
|
+
this.entries.delete(e);
|
|
11
|
+
}
|
|
12
|
+
async keys(e) {
|
|
13
|
+
return [...this.entries.keys()].filter((s) => s.startsWith(e));
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
r as MemoryBackend
|
|
18
|
+
};
|