excalibur 0.28.3 → 0.28.4
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/.gitattributes +63 -63
- package/CHANGELOG.md +2003 -1955
- package/LICENSE.md +25 -25
- package/README.md +134 -134
- package/STYLEGUIDE.md +136 -136
- package/build/dist/Actions/Action/ActionSequence.js +31 -0
- package/build/dist/Actions/Action/ActionSequence.js.map +1 -0
- package/build/dist/Actions/Action/Blink.js +54 -0
- package/build/dist/Actions/Action/Blink.js.map +1 -0
- package/build/dist/Actions/Action/CallMethod.js +21 -0
- package/build/dist/Actions/Action/CallMethod.js.map +1 -0
- package/build/dist/Actions/Action/Delay.js +26 -0
- package/build/dist/Actions/Action/Delay.js.map +1 -0
- package/build/dist/Actions/Action/Die.js +22 -0
- package/build/dist/Actions/Action/Die.js.map +1 -0
- package/build/dist/Actions/Action/EaseBy.js +70 -0
- package/build/dist/Actions/Action/EaseBy.js.map +1 -0
- package/build/dist/Actions/Action/EaseTo.js +69 -0
- package/build/dist/Actions/Action/EaseTo.js.map +1 -0
- package/build/dist/Actions/Action/Fade.js +48 -0
- package/build/dist/Actions/Action/Fade.js.map +1 -0
- package/build/dist/Actions/Action/Follow.js +56 -0
- package/build/dist/Actions/Action/Follow.js.map +1 -0
- package/build/dist/Actions/Action/Meet.js +54 -0
- package/build/dist/Actions/Action/Meet.js.map +1 -0
- package/build/dist/Actions/Action/MoveBy.js +48 -0
- package/build/dist/Actions/Action/MoveBy.js.map +1 -0
- package/build/dist/Actions/Action/MoveTo.js +41 -0
- package/build/dist/Actions/Action/MoveTo.js.map +1 -0
- package/build/dist/Actions/Action/ParallelActions.js +23 -0
- package/build/dist/Actions/Action/ParallelActions.js.map +1 -0
- package/build/dist/Actions/Action/Repeat.js +31 -0
- package/build/dist/Actions/Action/Repeat.js.map +1 -0
- package/build/dist/Actions/Action/RepeatForever.js +37 -0
- package/build/dist/Actions/Action/RepeatForever.js.map +1 -0
- package/build/dist/Actions/Action/RotateBy.js +95 -0
- package/build/dist/Actions/Action/RotateBy.js.map +1 -0
- package/build/dist/Actions/Action/RotateTo.js +91 -0
- package/build/dist/Actions/Action/RotateTo.js.map +1 -0
- package/build/dist/Actions/Action/ScaleBy.js +46 -0
- package/build/dist/Actions/Action/ScaleBy.js.map +1 -0
- package/build/dist/Actions/Action/ScaleTo.js +58 -0
- package/build/dist/Actions/Action/ScaleTo.js.map +1 -0
- package/build/dist/Actions/Action.js +2 -0
- package/build/dist/Actions/Action.js.map +1 -0
- package/build/dist/Actions/ActionContext.js +322 -0
- package/build/dist/Actions/ActionContext.js.map +1 -0
- package/build/dist/Actions/ActionQueue.js +87 -0
- package/build/dist/Actions/ActionQueue.js.map +1 -0
- package/build/dist/Actions/Actionable.js +2 -0
- package/build/dist/Actions/Actionable.js.map +1 -0
- package/build/dist/Actions/ActionsComponent.js +195 -0
- package/build/dist/Actions/ActionsComponent.js.map +1 -0
- package/build/dist/Actions/ActionsSystem.js +30 -0
- package/build/dist/Actions/ActionsSystem.js.map +1 -0
- package/build/dist/Actions/Index.js +26 -0
- package/build/dist/Actions/Index.js.map +1 -0
- package/build/dist/Actions/RotationType.js +27 -0
- package/build/dist/Actions/RotationType.js.map +1 -0
- package/build/dist/Actor.js +629 -0
- package/build/dist/Actor.js.map +1 -0
- package/build/dist/Camera.js +660 -0
- package/build/dist/Camera.js.map +1 -0
- package/build/dist/Collision/BoundingBox.js +415 -0
- package/build/dist/Collision/BoundingBox.js.map +1 -0
- package/build/dist/Collision/ColliderComponent.js +202 -0
- package/build/dist/Collision/ColliderComponent.js.map +1 -0
- package/build/dist/Collision/Colliders/CircleCollider.js +226 -0
- package/build/dist/Collision/Colliders/CircleCollider.js.map +1 -0
- package/build/dist/Collision/Colliders/ClosestLineJumpTable.js +211 -0
- package/build/dist/Collision/Colliders/ClosestLineJumpTable.js.map +1 -0
- package/build/dist/Collision/Colliders/Collider.js +32 -0
- package/build/dist/Collision/Colliders/Collider.js.map +1 -0
- package/build/dist/Collision/Colliders/CollisionJumpTable.js +300 -0
- package/build/dist/Collision/Colliders/CollisionJumpTable.js.map +1 -0
- package/build/dist/Collision/Colliders/EdgeCollider.js +229 -0
- package/build/dist/Collision/Colliders/EdgeCollider.js.map +1 -0
- package/build/dist/Collision/Colliders/PolygonCollider.js +556 -0
- package/build/dist/Collision/Colliders/PolygonCollider.js.map +1 -0
- package/build/dist/Collision/Colliders/SeparatingAxis.js +67 -0
- package/build/dist/Collision/Colliders/SeparatingAxis.js.map +1 -0
- package/build/dist/Collision/Colliders/Shape.js +99 -0
- package/build/dist/Collision/Colliders/Shape.js.map +1 -0
- package/build/dist/Collision/CollisionType.js +33 -0
- package/build/dist/Collision/CollisionType.js.map +1 -0
- package/build/dist/Collision/Detection/CollisionContact.js +51 -0
- package/build/dist/Collision/Detection/CollisionContact.js.map +1 -0
- package/build/dist/Collision/Detection/CollisionProcessor.js +2 -0
- package/build/dist/Collision/Detection/CollisionProcessor.js.map +1 -0
- package/build/dist/Collision/Detection/DynamicTree.js +442 -0
- package/build/dist/Collision/Detection/DynamicTree.js.map +1 -0
- package/build/dist/Collision/Detection/Pair.js +92 -0
- package/build/dist/Collision/Detection/Pair.js.map +1 -0
- package/build/dist/Collision/Detection/QuadTree.js +193 -0
- package/build/dist/Collision/Detection/QuadTree.js.map +1 -0
- package/build/dist/Collision/Group/CollisionGroup.js +3 -3
- package/build/dist/Collision/Integrator.js +25 -0
- package/build/dist/Collision/Integrator.js.map +1 -0
- package/build/dist/Collision/MotionSystem.js +35 -0
- package/build/dist/Collision/MotionSystem.js.map +1 -0
- package/build/dist/Collision/Physics.js +163 -0
- package/build/dist/Collision/Physics.js.map +1 -0
- package/build/dist/Collision/PhysicsWorld.js +10 -0
- package/build/dist/Collision/PhysicsWorld.js.map +1 -0
- package/build/dist/Collision/Side.js +51 -0
- package/build/dist/Collision/Side.js.map +1 -0
- package/build/dist/Collision/Solver/ArcadeSolver.js +154 -0
- package/build/dist/Collision/Solver/ArcadeSolver.js.map +1 -0
- package/build/dist/Collision/Solver/ContactConstraintPoint.js +87 -0
- package/build/dist/Collision/Solver/ContactConstraintPoint.js.map +1 -0
- package/build/dist/Collision/Solver/RealisticSolver.js +293 -0
- package/build/dist/Collision/Solver/RealisticSolver.js.map +1 -0
- package/build/dist/Collision/Solver/Solver.js +2 -0
- package/build/dist/Collision/Solver/Solver.js.map +1 -0
- package/build/dist/Color.js +417 -0
- package/build/dist/Color.js.map +1 -0
- package/build/dist/Configurable.js +32 -0
- package/build/dist/Configurable.js.map +1 -0
- package/build/dist/Debug/Debug.d.ts +11 -0
- package/build/dist/Debug/Debug.js +385 -0
- package/build/dist/Debug/Debug.js.map +1 -0
- package/build/dist/Debug/DebugFlags.js +40 -0
- package/build/dist/Debug/DebugFlags.js.map +1 -0
- package/build/dist/Debug/DebugSystem.js +263 -0
- package/build/dist/Debug/DebugSystem.js.map +1 -0
- package/build/dist/Debug/index.js +4 -0
- package/build/dist/Debug/index.js.map +1 -0
- package/build/dist/Deprecated.js +2 -0
- package/build/dist/Deprecated.js.map +1 -0
- package/build/dist/Engine.js +986 -0
- package/build/dist/Engine.js.map +1 -0
- package/build/dist/EntityComponentSystem/Component.js +65 -0
- package/build/dist/EntityComponentSystem/Component.js.map +1 -0
- package/build/dist/EntityComponentSystem/Components/MotionComponent.js +33 -0
- package/build/dist/EntityComponentSystem/Components/MotionComponent.js.map +1 -0
- package/build/dist/EntityComponentSystem/Components/TransformComponent.js +107 -0
- package/build/dist/EntityComponentSystem/Components/TransformComponent.js.map +1 -0
- package/build/dist/EntityComponentSystem/Entity.js +487 -0
- package/build/dist/EntityComponentSystem/Entity.js.map +1 -0
- package/build/dist/EntityComponentSystem/EntityManager.js +137 -0
- package/build/dist/EntityComponentSystem/EntityManager.js.map +1 -0
- package/build/dist/EntityComponentSystem/Query.js +90 -0
- package/build/dist/EntityComponentSystem/Query.js.map +1 -0
- package/build/dist/EntityComponentSystem/QueryManager.js +90 -0
- package/build/dist/EntityComponentSystem/QueryManager.js.map +1 -0
- package/build/dist/EntityComponentSystem/System.js +76 -0
- package/build/dist/EntityComponentSystem/System.js.map +1 -0
- package/build/dist/EntityComponentSystem/SystemManager.js +104 -0
- package/build/dist/EntityComponentSystem/SystemManager.js.map +1 -0
- package/build/dist/EntityComponentSystem/Util.js +5 -0
- package/build/dist/EntityComponentSystem/Util.js.map +1 -0
- package/build/dist/EntityComponentSystem/World.js +55 -0
- package/build/dist/EntityComponentSystem/World.js.map +1 -0
- package/build/dist/EntityComponentSystem/index.js +11 -0
- package/build/dist/EntityComponentSystem/index.js.map +1 -0
- package/build/dist/EventDispatcher.js +122 -0
- package/build/dist/EventDispatcher.js.map +1 -0
- package/build/dist/EventEmitter.js +86 -0
- package/build/dist/EventEmitter.js.map +1 -0
- package/build/dist/Events/ExEvent.js +12 -0
- package/build/dist/Events/ExEvent.js.map +1 -0
- package/build/dist/Events/MediaEvents.js +75 -0
- package/build/dist/Events/MediaEvents.js.map +1 -0
- package/build/dist/Events/PointerEvents.js +52 -0
- package/build/dist/Events/PointerEvents.js.map +1 -0
- package/build/dist/Events.js +473 -0
- package/build/dist/Events.js.map +1 -0
- package/build/dist/Flags.js +67 -0
- package/build/dist/Flags.js.map +1 -0
- package/build/dist/Graphics/Animation.js +344 -0
- package/build/dist/Graphics/Animation.js.map +1 -0
- package/build/dist/Graphics/Canvas.js +38 -0
- package/build/dist/Graphics/Canvas.js.map +1 -0
- package/build/dist/Graphics/Circle.js +48 -0
- package/build/dist/Graphics/Circle.js.map +1 -0
- package/build/dist/Graphics/Context/ExcaliburGraphicsContext.js +2 -0
- package/build/dist/Graphics/Context/ExcaliburGraphicsContext.js.map +1 -0
- package/build/dist/Graphics/Context/ExcaliburGraphicsContext2DCanvas.js +237 -0
- package/build/dist/Graphics/Context/ExcaliburGraphicsContext2DCanvas.js.map +1 -0
- package/build/dist/Graphics/Context/ExcaliburGraphicsContextWebGL.d.ts +1 -0
- package/build/dist/Graphics/Context/ExcaliburGraphicsContextWebGL.js +481 -0
- package/build/dist/Graphics/Context/ExcaliburGraphicsContextWebGL.js.map +1 -0
- package/build/dist/Graphics/Context/circle-renderer/circle-renderer.frag.glsl +52 -52
- package/build/dist/Graphics/Context/circle-renderer/circle-renderer.js +174 -0
- package/build/dist/Graphics/Context/circle-renderer/circle-renderer.js.map +1 -0
- package/build/dist/Graphics/Context/circle-renderer/circle-renderer.vert.glsl +37 -37
- package/build/dist/Graphics/Context/debug-text.js +47 -0
- package/build/dist/Graphics/Context/debug-text.js.map +1 -0
- package/build/dist/Graphics/Context/draw-call.js +16 -0
- package/build/dist/Graphics/Context/draw-call.js.map +1 -0
- package/build/dist/Graphics/Context/image-renderer/image-renderer.frag.glsl +32 -32
- package/build/dist/Graphics/Context/image-renderer/image-renderer.js +246 -0
- package/build/dist/Graphics/Context/image-renderer/image-renderer.js.map +1 -0
- package/build/dist/Graphics/Context/image-renderer/image-renderer.vert.glsl +32 -32
- package/build/dist/Graphics/Context/line-renderer/line-fragment.glsl +10 -10
- package/build/dist/Graphics/Context/line-renderer/line-renderer.js +90 -0
- package/build/dist/Graphics/Context/line-renderer/line-renderer.js.map +1 -0
- package/build/dist/Graphics/Context/line-renderer/line-vertex.glsl +14 -14
- package/build/dist/Graphics/Context/material-renderer/material-renderer.js +23 -2
- package/build/dist/Graphics/Context/material-renderer/material-renderer.js.map +1 -1
- package/build/dist/Graphics/Context/material.d.ts +2 -0
- package/build/dist/Graphics/Context/material.js +72 -0
- package/build/dist/Graphics/Context/material.js.map +1 -0
- package/build/dist/Graphics/Context/point-renderer/point-fragment.glsl +19 -19
- package/build/dist/Graphics/Context/point-renderer/point-renderer.js +91 -0
- package/build/dist/Graphics/Context/point-renderer/point-renderer.js.map +1 -0
- package/build/dist/Graphics/Context/point-renderer/point-vertex.glsl +11 -11
- package/build/dist/Graphics/Context/quad-index-buffer.js +67 -0
- package/build/dist/Graphics/Context/quad-index-buffer.js.map +1 -0
- package/build/dist/Graphics/Context/rectangle-renderer/rectangle-renderer.frag.glsl +85 -85
- package/build/dist/Graphics/Context/rectangle-renderer/rectangle-renderer.js +305 -0
- package/build/dist/Graphics/Context/rectangle-renderer/rectangle-renderer.js.map +1 -0
- package/build/dist/Graphics/Context/rectangle-renderer/rectangle-renderer.vert.glsl +42 -42
- package/build/dist/Graphics/Context/render-source.js +16 -0
- package/build/dist/Graphics/Context/render-source.js.map +1 -0
- package/build/dist/Graphics/Context/render-target.js +65 -0
- package/build/dist/Graphics/Context/render-target.js.map +1 -0
- package/build/dist/Graphics/Context/renderer.js +2 -0
- package/build/dist/Graphics/Context/renderer.js.map +1 -0
- package/build/dist/Graphics/Context/screen-pass-painter/screen-fragment.glsl +13 -13
- package/build/dist/Graphics/Context/screen-pass-painter/screen-pass-painter.js +56 -0
- package/build/dist/Graphics/Context/screen-pass-painter/screen-pass-painter.js.map +1 -0
- package/build/dist/Graphics/Context/screen-pass-painter/screen-vertex.glsl +11 -11
- package/build/dist/Graphics/Context/state-stack.js +37 -0
- package/build/dist/Graphics/Context/state-stack.js.map +1 -0
- package/build/dist/Graphics/Context/texture-loader.js +109 -0
- package/build/dist/Graphics/Context/texture-loader.js.map +1 -0
- package/build/dist/Graphics/Context/transform-stack.js +30 -0
- package/build/dist/Graphics/Context/transform-stack.js.map +1 -0
- package/build/dist/Graphics/Context/vertex-buffer.js +53 -0
- package/build/dist/Graphics/Context/vertex-buffer.js.map +1 -0
- package/build/dist/Graphics/Context/webgl-util.js +79 -0
- package/build/dist/Graphics/Context/webgl-util.js.map +1 -0
- package/build/dist/Graphics/DebugGraphicsComponent.d.ts +3 -2
- package/build/dist/Graphics/DebugGraphicsComponent.js +16 -0
- package/build/dist/Graphics/DebugGraphicsComponent.js.map +1 -0
- package/build/dist/Graphics/Filtering.js +17 -0
- package/build/dist/Graphics/Filtering.js.map +1 -0
- package/build/dist/Graphics/Font.js +148 -0
- package/build/dist/Graphics/Font.js.map +1 -0
- package/build/dist/Graphics/FontCache.d.ts +1 -0
- package/build/dist/Graphics/FontCache.js +80 -0
- package/build/dist/Graphics/FontCache.js.map +1 -0
- package/build/dist/Graphics/FontCommon.js +109 -0
- package/build/dist/Graphics/FontCommon.js.map +1 -0
- package/build/dist/Graphics/FontTextInstance.js +230 -0
- package/build/dist/Graphics/FontTextInstance.js.map +1 -0
- package/build/dist/Graphics/Graphic.js +208 -0
- package/build/dist/Graphics/Graphic.js.map +1 -0
- package/build/dist/Graphics/GraphicsComponent.js +336 -0
- package/build/dist/Graphics/GraphicsComponent.js.map +1 -0
- package/build/dist/Graphics/GraphicsDiagnostics.js +9 -0
- package/build/dist/Graphics/GraphicsDiagnostics.js.map +1 -0
- package/build/dist/Graphics/GraphicsGroup.js +69 -0
- package/build/dist/Graphics/GraphicsGroup.js.map +1 -0
- package/build/dist/Graphics/GraphicsSystem.js +210 -0
- package/build/dist/Graphics/GraphicsSystem.js.map +1 -0
- package/build/dist/Graphics/ImageSource.js +124 -0
- package/build/dist/Graphics/ImageSource.js.map +1 -0
- package/build/dist/Graphics/Line.js +45 -0
- package/build/dist/Graphics/Line.js.map +1 -0
- package/build/dist/Graphics/OffscreenSystem.js +64 -0
- package/build/dist/Graphics/OffscreenSystem.js.map +1 -0
- package/build/dist/Graphics/ParallaxComponent.js +11 -0
- package/build/dist/Graphics/ParallaxComponent.js.map +1 -0
- package/build/dist/Graphics/Polygon.js +59 -0
- package/build/dist/Graphics/Polygon.js.map +1 -0
- package/build/dist/Graphics/PostProcessor/ColorBlindnessMode.js +7 -0
- package/build/dist/Graphics/PostProcessor/ColorBlindnessMode.js.map +1 -0
- package/build/dist/Graphics/PostProcessor/ColorBlindnessPostProcessor.js +52 -0
- package/build/dist/Graphics/PostProcessor/ColorBlindnessPostProcessor.js.map +1 -0
- package/build/dist/Graphics/PostProcessor/PostProcessor.js +2 -0
- package/build/dist/Graphics/PostProcessor/PostProcessor.js.map +1 -0
- package/build/dist/Graphics/PostProcessor/ScreenShader.js +59 -0
- package/build/dist/Graphics/PostProcessor/ScreenShader.js.map +1 -0
- package/build/dist/Graphics/PostProcessor/color-blind-fragment.glsl +64 -64
- package/build/dist/Graphics/Raster.js +215 -0
- package/build/dist/Graphics/Raster.js.map +1 -0
- package/build/dist/Graphics/Rectangle.js +29 -0
- package/build/dist/Graphics/Rectangle.js.map +1 -0
- package/build/dist/Graphics/Sprite.js +82 -0
- package/build/dist/Graphics/Sprite.js.map +1 -0
- package/build/dist/Graphics/SpriteFont.js +139 -0
- package/build/dist/Graphics/SpriteFont.js.map +1 -0
- package/build/dist/Graphics/SpriteSheet.js +116 -0
- package/build/dist/Graphics/SpriteSheet.js.map +1 -0
- package/build/dist/Graphics/Text.js +103 -0
- package/build/dist/Graphics/Text.js.map +1 -0
- package/build/dist/Graphics/index.js +46 -0
- package/build/dist/Graphics/index.js.map +1 -0
- package/build/dist/Id.js +8 -0
- package/build/dist/Id.js.map +1 -0
- package/build/dist/Input/CapturePointerConfig.js +5 -0
- package/build/dist/Input/CapturePointerConfig.js.map +1 -0
- package/build/dist/Input/EngineInput.js +2 -0
- package/build/dist/Input/EngineInput.js.map +1 -0
- package/build/dist/Input/Gamepad.js +422 -0
- package/build/dist/Input/Gamepad.js.map +1 -0
- package/build/dist/Input/Index.js +88 -0
- package/build/dist/Input/Index.js.map +1 -0
- package/build/dist/Input/InputMapper.js +45 -0
- package/build/dist/Input/InputMapper.js.map +1 -0
- package/build/dist/Input/Keyboard.js +348 -0
- package/build/dist/Input/Keyboard.js.map +1 -0
- package/build/dist/Input/NativePointerButton.js +12 -0
- package/build/dist/Input/NativePointerButton.js.map +1 -0
- package/build/dist/Input/PointerAbstraction.js +44 -0
- package/build/dist/Input/PointerAbstraction.js.map +1 -0
- package/build/dist/Input/PointerButton.js +12 -0
- package/build/dist/Input/PointerButton.js.map +1 -0
- package/build/dist/Input/PointerComponent.js +28 -0
- package/build/dist/Input/PointerComponent.js.map +1 -0
- package/build/dist/Input/PointerEvent.js +25 -0
- package/build/dist/Input/PointerEvent.js.map +1 -0
- package/build/dist/Input/PointerEventReceiver.js +456 -0
- package/build/dist/Input/PointerEventReceiver.js.map +1 -0
- package/build/dist/Input/PointerScope.js +16 -0
- package/build/dist/Input/PointerScope.js.map +1 -0
- package/build/dist/Input/PointerSystem.js +249 -0
- package/build/dist/Input/PointerSystem.js.map +1 -0
- package/build/dist/Input/PointerType.js +11 -0
- package/build/dist/Input/PointerType.js.map +1 -0
- package/build/dist/Input/WheelDeltaMode.js +7 -0
- package/build/dist/Input/WheelDeltaMode.js.map +1 -0
- package/build/dist/Input/WheelEvent.js +21 -0
- package/build/dist/Input/WheelEvent.js.map +1 -0
- package/build/dist/Interfaces/Audio.js +2 -0
- package/build/dist/Interfaces/Audio.js.map +1 -0
- package/build/dist/Interfaces/AudioImplementation.js +11 -0
- package/build/dist/Interfaces/AudioImplementation.js.map +1 -0
- package/build/dist/Interfaces/Clonable.js +2 -0
- package/build/dist/Interfaces/Clonable.js.map +1 -0
- package/build/dist/Interfaces/Evented.js +2 -0
- package/build/dist/Interfaces/Evented.js.map +1 -0
- package/build/dist/Interfaces/Index.js +8 -0
- package/build/dist/Interfaces/Index.js.map +1 -0
- package/build/dist/Interfaces/LifecycleEvents.js +51 -0
- package/build/dist/Interfaces/LifecycleEvents.js.map +1 -0
- package/build/dist/Interfaces/Loadable.js +2 -0
- package/build/dist/Interfaces/Loadable.js.map +1 -0
- package/build/dist/Interfaces/PointerEventHandlers.js +2 -0
- package/build/dist/Interfaces/PointerEventHandlers.js.map +1 -0
- package/build/dist/Label.js +81 -0
- package/build/dist/Label.js.map +1 -0
- package/build/dist/Loader.js +416 -0
- package/build/dist/Loader.js.map +1 -0
- package/build/dist/Math/Index.js +13 -0
- package/build/dist/Math/Index.js.map +1 -0
- package/build/dist/Math/Random.js +239 -0
- package/build/dist/Math/Random.js.map +1 -0
- package/build/dist/Math/affine-matrix.js +331 -0
- package/build/dist/Math/affine-matrix.js.map +1 -0
- package/build/dist/Math/coord-plane.js +17 -0
- package/build/dist/Math/coord-plane.js.map +1 -0
- package/build/dist/Math/global-coordinates.js +30 -0
- package/build/dist/Math/global-coordinates.js.map +1 -0
- package/build/dist/Math/line-segment.js +205 -0
- package/build/dist/Math/line-segment.js.map +1 -0
- package/build/dist/Math/matrix.js +457 -0
- package/build/dist/Math/matrix.js.map +1 -0
- package/build/dist/Math/projection.js +24 -0
- package/build/dist/Math/projection.js.map +1 -0
- package/build/dist/Math/ray.js +52 -0
- package/build/dist/Math/ray.js.map +1 -0
- package/build/dist/Math/transform.js +219 -0
- package/build/dist/Math/transform.js.map +1 -0
- package/build/dist/Math/util.js +82 -0
- package/build/dist/Math/util.js.map +1 -0
- package/build/dist/Math/vector-view.js +25 -0
- package/build/dist/Math/vector-view.js.map +1 -0
- package/build/dist/Math/vector.js +340 -0
- package/build/dist/Math/vector.js.map +1 -0
- package/build/dist/Math/watch-vector.js +26 -0
- package/build/dist/Math/watch-vector.js.map +1 -0
- package/build/dist/Particles.js +430 -0
- package/build/dist/Particles.js.map +1 -0
- package/build/dist/Polyfill.js +56 -0
- package/build/dist/Polyfill.js.map +1 -0
- package/build/dist/Resources/Gif.js +464 -0
- package/build/dist/Resources/Gif.js.map +1 -0
- package/build/dist/Resources/Index.js +4 -0
- package/build/dist/Resources/Index.js.map +1 -0
- package/build/dist/Resources/Resource.js +81 -0
- package/build/dist/Resources/Resource.js.map +1 -0
- package/build/dist/Resources/Sound/AudioContext.js +16 -0
- package/build/dist/Resources/Sound/AudioContext.js.map +1 -0
- package/build/dist/Resources/Sound/Index.js +4 -0
- package/build/dist/Resources/Sound/Index.js.map +1 -0
- package/build/dist/Resources/Sound/Sound.js +326 -0
- package/build/dist/Resources/Sound/Sound.js.map +1 -0
- package/build/dist/Resources/Sound/WebAudioInstance.js +190 -0
- package/build/dist/Resources/Sound/WebAudioInstance.js.map +1 -0
- package/build/dist/Scene.js +444 -0
- package/build/dist/Scene.js.map +1 -0
- package/build/dist/Screen.js +782 -0
- package/build/dist/Screen.js.map +1 -0
- package/build/dist/ScreenElement.js +43 -0
- package/build/dist/ScreenElement.js.map +1 -0
- package/build/dist/TileMap/IsometricEntityComponent.js +17 -0
- package/build/dist/TileMap/IsometricEntityComponent.js.map +1 -0
- package/build/dist/TileMap/IsometricEntitySystem.js +23 -0
- package/build/dist/TileMap/IsometricEntitySystem.js.map +1 -0
- package/build/dist/TileMap/IsometricMap.js +311 -0
- package/build/dist/TileMap/IsometricMap.js.map +1 -0
- package/build/dist/TileMap/TileMap.d.ts +2 -1
- package/build/dist/TileMap/TileMap.js +630 -0
- package/build/dist/TileMap/TileMap.js.map +1 -0
- package/build/dist/TileMap/index.js +5 -0
- package/build/dist/TileMap/index.js.map +1 -0
- package/build/dist/Timer.js +202 -0
- package/build/dist/Timer.js.map +1 -0
- package/build/dist/Trigger.js +94 -0
- package/build/dist/Trigger.js.map +1 -0
- package/build/dist/Util/Browser.js +66 -0
- package/build/dist/Util/Browser.js.map +1 -0
- package/build/dist/Util/Clock.js +219 -0
- package/build/dist/Util/Clock.js.map +1 -0
- package/build/dist/Util/Decorators.js +78 -0
- package/build/dist/Util/Decorators.js.map +1 -0
- package/build/dist/Util/Detector.js +167 -0
- package/build/dist/Util/Detector.js.map +1 -0
- package/build/dist/Util/DrawUtil.js +115 -0
- package/build/dist/Util/DrawUtil.js.map +1 -0
- package/build/dist/Util/EasingFunctions.js +102 -0
- package/build/dist/Util/EasingFunctions.js.map +1 -0
- package/build/dist/Util/Fps.js +47 -0
- package/build/dist/Util/Fps.js.map +1 -0
- package/build/dist/Util/Future.js +30 -0
- package/build/dist/Util/Future.js.map +1 -0
- package/build/dist/Util/IFrame.js +23 -0
- package/build/dist/Util/IFrame.js.map +1 -0
- package/build/dist/Util/Index.js +7 -0
- package/build/dist/Util/Index.js.map +1 -0
- package/build/dist/Util/Log.js +195 -0
- package/build/dist/Util/Log.js.map +1 -0
- package/build/dist/Util/Observable.js +66 -0
- package/build/dist/Util/Observable.js.map +1 -0
- package/build/dist/Util/Pool.js +74 -0
- package/build/dist/Util/Pool.js.map +1 -0
- package/build/dist/Util/Semaphore.js +55 -0
- package/build/dist/Util/Semaphore.js.map +1 -0
- package/build/dist/Util/Sound.js +22 -0
- package/build/dist/Util/Sound.js.map +1 -0
- package/build/dist/Util/StateMachine.js +79 -0
- package/build/dist/Util/StateMachine.js.map +1 -0
- package/build/dist/Util/Toaster.css +28 -28
- package/build/dist/Util/Toaster.js +84 -0
- package/build/dist/Util/Toaster.js.map +1 -0
- package/build/dist/Util/Util.d.ts +6 -0
- package/build/dist/Util/Util.js +95 -0
- package/build/dist/Util/Util.js.map +1 -0
- package/build/dist/Util/Watch.js +67 -0
- package/build/dist/Util/Watch.js.map +1 -0
- package/build/dist/Util/WebAudio.js +62 -0
- package/build/dist/Util/WebAudio.js.map +1 -0
- package/build/dist/excalibur.d.ts +2 -2
- package/build/dist/excalibur.js +389 -258
- package/build/dist/excalibur.js.map +1 -1
- package/build/dist/excalibur.min.js +1 -1
- package/build/dist/excalibur.min.js.LICENSE.txt +1 -1
- package/build/dist/excalibur.min.js.map +1 -1
- package/build/dist/index.js +81 -0
- package/build/dist/index.js.map +1 -0
- package/build/esm/Debug/Debug.d.ts +11 -0
- package/build/esm/Graphics/Context/ExcaliburGraphicsContextWebGL.d.ts +1 -0
- package/build/esm/Graphics/Context/material.d.ts +2 -0
- package/build/esm/Graphics/DebugGraphicsComponent.d.ts +3 -2
- package/build/esm/Graphics/FontCache.d.ts +1 -0
- package/build/esm/TileMap/TileMap.d.ts +2 -1
- package/build/esm/Util/Util.d.ts +6 -0
- package/build/esm/excalibur.d.ts +2 -2
- package/build/esm/excalibur.js +389 -258
- package/build/esm/excalibur.js.map +1 -1
- package/build/esm/excalibur.min.js +1 -1
- package/build/esm/excalibur.min.js.LICENSE.txt +1 -1
- package/build/esm/excalibur.min.js.map +1 -1
- package/docker-compose.yml +11 -11
- package/package.json +131 -131
- package/build/dist/Loader.css +0 -122
- package/build/nuget/Excalibur.0.28.3.nupkg +0 -0
- package/build/v0.28.3.zip +0 -0
- package/excalibur-0.28.3.tgz +0 -0
|
@@ -0,0 +1,322 @@
|
|
|
1
|
+
import { EasingFunctions } from '../Util/EasingFunctions';
|
|
2
|
+
import { ActionQueue } from './ActionQueue';
|
|
3
|
+
import { Repeat } from './Action/Repeat';
|
|
4
|
+
import { RepeatForever } from './Action/RepeatForever';
|
|
5
|
+
import { MoveBy } from './Action/MoveBy';
|
|
6
|
+
import { MoveTo } from './Action/MoveTo';
|
|
7
|
+
import { RotateTo } from './Action/RotateTo';
|
|
8
|
+
import { RotateBy } from './Action/RotateBy';
|
|
9
|
+
import { ScaleTo } from './Action/ScaleTo';
|
|
10
|
+
import { ScaleBy } from './Action/ScaleBy';
|
|
11
|
+
import { CallMethod } from './Action/CallMethod';
|
|
12
|
+
import { EaseTo } from './Action/EaseTo';
|
|
13
|
+
import { EaseBy } from './Action/EaseBy';
|
|
14
|
+
import { Blink } from './Action/Blink';
|
|
15
|
+
import { Fade } from './Action/Fade';
|
|
16
|
+
import { Delay } from './Action/Delay';
|
|
17
|
+
import { Die } from './Action/Die';
|
|
18
|
+
import { Follow } from './Action/Follow';
|
|
19
|
+
import { Meet } from './Action/Meet';
|
|
20
|
+
import { Vector } from '../Math/vector';
|
|
21
|
+
/**
|
|
22
|
+
* The fluent Action API allows you to perform "actions" on
|
|
23
|
+
* [[Actor|Actors]] such as following, moving, rotating, and
|
|
24
|
+
* more. You can implement your own actions by implementing
|
|
25
|
+
* the [[Action]] interface.
|
|
26
|
+
*/
|
|
27
|
+
export class ActionContext {
|
|
28
|
+
constructor(entity) {
|
|
29
|
+
this._entity = entity;
|
|
30
|
+
this._queue = new ActionQueue(entity);
|
|
31
|
+
}
|
|
32
|
+
getQueue() {
|
|
33
|
+
return this._queue;
|
|
34
|
+
}
|
|
35
|
+
update(elapsedMs) {
|
|
36
|
+
this._queue.update(elapsedMs);
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Clears all queued actions from the Actor
|
|
40
|
+
*/
|
|
41
|
+
clearActions() {
|
|
42
|
+
this._queue.clearActions();
|
|
43
|
+
}
|
|
44
|
+
runAction(action) {
|
|
45
|
+
action.reset();
|
|
46
|
+
this._queue.add(action);
|
|
47
|
+
return this;
|
|
48
|
+
}
|
|
49
|
+
easeTo(...args) {
|
|
50
|
+
var _a, _b;
|
|
51
|
+
let x = 0;
|
|
52
|
+
let y = 0;
|
|
53
|
+
let duration = 0;
|
|
54
|
+
let easingFcn = EasingFunctions.Linear;
|
|
55
|
+
if (args[0] instanceof Vector) {
|
|
56
|
+
x = args[0].x;
|
|
57
|
+
y = args[0].y;
|
|
58
|
+
duration = args[1];
|
|
59
|
+
easingFcn = (_a = args[2]) !== null && _a !== void 0 ? _a : easingFcn;
|
|
60
|
+
}
|
|
61
|
+
else {
|
|
62
|
+
x = args[0];
|
|
63
|
+
y = args[1];
|
|
64
|
+
duration = args[2];
|
|
65
|
+
easingFcn = (_b = args[3]) !== null && _b !== void 0 ? _b : easingFcn;
|
|
66
|
+
}
|
|
67
|
+
this._queue.add(new EaseTo(this._entity, x, y, duration, easingFcn));
|
|
68
|
+
return this;
|
|
69
|
+
}
|
|
70
|
+
easeBy(...args) {
|
|
71
|
+
var _a, _b;
|
|
72
|
+
let offsetX = 0;
|
|
73
|
+
let offsetY = 0;
|
|
74
|
+
let duration = 0;
|
|
75
|
+
let easingFcn = EasingFunctions.Linear;
|
|
76
|
+
if (args[0] instanceof Vector) {
|
|
77
|
+
offsetX = args[0].x;
|
|
78
|
+
offsetY = args[0].y;
|
|
79
|
+
duration = args[1];
|
|
80
|
+
easingFcn = (_a = args[2]) !== null && _a !== void 0 ? _a : easingFcn;
|
|
81
|
+
}
|
|
82
|
+
else {
|
|
83
|
+
offsetX = args[0];
|
|
84
|
+
offsetY = args[1];
|
|
85
|
+
duration = args[2];
|
|
86
|
+
easingFcn = (_b = args[3]) !== null && _b !== void 0 ? _b : easingFcn;
|
|
87
|
+
}
|
|
88
|
+
this._queue.add(new EaseBy(this._entity, offsetX, offsetY, duration, easingFcn));
|
|
89
|
+
return this;
|
|
90
|
+
}
|
|
91
|
+
moveTo(xOrPos, yOrSpeed, speedOrUndefined) {
|
|
92
|
+
let x = 0;
|
|
93
|
+
let y = 0;
|
|
94
|
+
let speed = 0;
|
|
95
|
+
if (xOrPos instanceof Vector) {
|
|
96
|
+
x = xOrPos.x;
|
|
97
|
+
y = xOrPos.y;
|
|
98
|
+
speed = yOrSpeed;
|
|
99
|
+
}
|
|
100
|
+
else {
|
|
101
|
+
x = xOrPos;
|
|
102
|
+
y = yOrSpeed;
|
|
103
|
+
speed = speedOrUndefined;
|
|
104
|
+
}
|
|
105
|
+
this._queue.add(new MoveTo(this._entity, x, y, speed));
|
|
106
|
+
return this;
|
|
107
|
+
}
|
|
108
|
+
moveBy(xOffsetOrVector, yOffsetOrSpeed, speedOrUndefined) {
|
|
109
|
+
let xOffset = 0;
|
|
110
|
+
let yOffset = 0;
|
|
111
|
+
let speed = 0;
|
|
112
|
+
if (xOffsetOrVector instanceof Vector) {
|
|
113
|
+
xOffset = xOffsetOrVector.x;
|
|
114
|
+
yOffset = xOffsetOrVector.y;
|
|
115
|
+
speed = yOffsetOrSpeed;
|
|
116
|
+
}
|
|
117
|
+
else {
|
|
118
|
+
xOffset = xOffsetOrVector;
|
|
119
|
+
yOffset = yOffsetOrSpeed;
|
|
120
|
+
speed = speedOrUndefined;
|
|
121
|
+
}
|
|
122
|
+
this._queue.add(new MoveBy(this._entity, xOffset, yOffset, speed));
|
|
123
|
+
return this;
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* This method will rotate an actor to the specified angle at the speed
|
|
127
|
+
* specified (in radians per second) and return back the actor. This
|
|
128
|
+
* method is part of the actor 'Action' fluent API allowing action chaining.
|
|
129
|
+
* @param angleRadians The angle to rotate to in radians
|
|
130
|
+
* @param speed The angular velocity of the rotation specified in radians per second
|
|
131
|
+
* @param rotationType The [[RotationType]] to use for this rotation
|
|
132
|
+
*/
|
|
133
|
+
rotateTo(angleRadians, speed, rotationType) {
|
|
134
|
+
this._queue.add(new RotateTo(this._entity, angleRadians, speed, rotationType));
|
|
135
|
+
return this;
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* This method will rotate an actor by the specified angle offset, from it's current rotation given a certain speed
|
|
139
|
+
* in radians/sec and return back the actor. This method is part
|
|
140
|
+
* of the actor 'Action' fluent API allowing action chaining.
|
|
141
|
+
* @param angleRadiansOffset The angle to rotate to in radians relative to the current rotation
|
|
142
|
+
* @param speed The speed in radians/sec the actor should rotate at
|
|
143
|
+
* @param rotationType The [[RotationType]] to use for this rotation, default is shortest path
|
|
144
|
+
*/
|
|
145
|
+
rotateBy(angleRadiansOffset, speed, rotationType) {
|
|
146
|
+
this._queue.add(new RotateBy(this._entity, angleRadiansOffset, speed, rotationType));
|
|
147
|
+
return this;
|
|
148
|
+
}
|
|
149
|
+
scaleTo(sizeXOrVector, sizeYOrSpeed, speedXOrUndefined, speedYOrUndefined) {
|
|
150
|
+
let sizeX = 1;
|
|
151
|
+
let sizeY = 1;
|
|
152
|
+
let speedX = 0;
|
|
153
|
+
let speedY = 0;
|
|
154
|
+
if (sizeXOrVector instanceof Vector && sizeYOrSpeed instanceof Vector) {
|
|
155
|
+
sizeX = sizeXOrVector.x;
|
|
156
|
+
sizeY = sizeXOrVector.y;
|
|
157
|
+
speedX = sizeYOrSpeed.x;
|
|
158
|
+
speedY = sizeYOrSpeed.y;
|
|
159
|
+
}
|
|
160
|
+
if (typeof sizeXOrVector === 'number' && typeof sizeYOrSpeed === 'number') {
|
|
161
|
+
sizeX = sizeXOrVector;
|
|
162
|
+
sizeY = sizeYOrSpeed;
|
|
163
|
+
speedX = speedXOrUndefined;
|
|
164
|
+
speedY = speedYOrUndefined;
|
|
165
|
+
}
|
|
166
|
+
this._queue.add(new ScaleTo(this._entity, sizeX, sizeY, speedX, speedY));
|
|
167
|
+
return this;
|
|
168
|
+
}
|
|
169
|
+
scaleBy(sizeOffsetXOrVector, sizeOffsetYOrSpeed, speed) {
|
|
170
|
+
let sizeOffsetX = 1;
|
|
171
|
+
let sizeOffsetY = 1;
|
|
172
|
+
if (sizeOffsetXOrVector instanceof Vector) {
|
|
173
|
+
sizeOffsetX = sizeOffsetXOrVector.x;
|
|
174
|
+
sizeOffsetY = sizeOffsetXOrVector.y;
|
|
175
|
+
speed = sizeOffsetYOrSpeed;
|
|
176
|
+
}
|
|
177
|
+
if (typeof sizeOffsetXOrVector === 'number' && typeof sizeOffsetYOrSpeed === 'number') {
|
|
178
|
+
sizeOffsetX = sizeOffsetXOrVector;
|
|
179
|
+
sizeOffsetY = sizeOffsetYOrSpeed;
|
|
180
|
+
}
|
|
181
|
+
this._queue.add(new ScaleBy(this._entity, sizeOffsetX, sizeOffsetY, speed));
|
|
182
|
+
return this;
|
|
183
|
+
}
|
|
184
|
+
/**
|
|
185
|
+
* This method will cause an actor to blink (become visible and not
|
|
186
|
+
* visible). Optionally, you may specify the number of blinks. Specify the amount of time
|
|
187
|
+
* the actor should be visible per blink, and the amount of time not visible.
|
|
188
|
+
* This method is part of the actor 'Action' fluent API allowing action chaining.
|
|
189
|
+
* @param timeVisible The amount of time to stay visible per blink in milliseconds
|
|
190
|
+
* @param timeNotVisible The amount of time to stay not visible per blink in milliseconds
|
|
191
|
+
* @param numBlinks The number of times to blink
|
|
192
|
+
*/
|
|
193
|
+
blink(timeVisible, timeNotVisible, numBlinks = 1) {
|
|
194
|
+
this._queue.add(new Blink(this._entity, timeVisible, timeNotVisible, numBlinks));
|
|
195
|
+
return this;
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
* This method will cause an actor's opacity to change from its current value
|
|
199
|
+
* to the provided value by a specified time (in milliseconds). This method is
|
|
200
|
+
* part of the actor 'Action' fluent API allowing action chaining.
|
|
201
|
+
* @param opacity The ending opacity
|
|
202
|
+
* @param time The time it should take to fade the actor (in milliseconds)
|
|
203
|
+
*/
|
|
204
|
+
fade(opacity, time) {
|
|
205
|
+
this._queue.add(new Fade(this._entity, opacity, time));
|
|
206
|
+
return this;
|
|
207
|
+
}
|
|
208
|
+
/**
|
|
209
|
+
* This method will delay the next action from executing for a certain
|
|
210
|
+
* amount of time (in milliseconds). This method is part of the actor
|
|
211
|
+
* 'Action' fluent API allowing action chaining.
|
|
212
|
+
* @param time The amount of time to delay the next action in the queue from executing in milliseconds
|
|
213
|
+
*/
|
|
214
|
+
delay(time) {
|
|
215
|
+
this._queue.add(new Delay(time));
|
|
216
|
+
return this;
|
|
217
|
+
}
|
|
218
|
+
/**
|
|
219
|
+
* This method will add an action to the queue that will remove the actor from the
|
|
220
|
+
* scene once it has completed its previous Any actions on the
|
|
221
|
+
* action queue after this action will not be executed.
|
|
222
|
+
*/
|
|
223
|
+
die() {
|
|
224
|
+
this._queue.add(new Die(this._entity));
|
|
225
|
+
return this;
|
|
226
|
+
}
|
|
227
|
+
/**
|
|
228
|
+
* This method allows you to call an arbitrary method as the next action in the
|
|
229
|
+
* action queue. This is useful if you want to execute code in after a specific
|
|
230
|
+
* action, i.e An actor arrives at a destination after traversing a path
|
|
231
|
+
*/
|
|
232
|
+
callMethod(method) {
|
|
233
|
+
this._queue.add(new CallMethod(method));
|
|
234
|
+
return this;
|
|
235
|
+
}
|
|
236
|
+
/**
|
|
237
|
+
* This method will cause the actor to repeat all of the actions built in
|
|
238
|
+
* the `repeatBuilder` callback. If the number of repeats
|
|
239
|
+
* is not specified it will repeat forever. This method is part of
|
|
240
|
+
* the actor 'Action' fluent API allowing action chaining
|
|
241
|
+
*
|
|
242
|
+
* ```typescript
|
|
243
|
+
* // Move up in a zig-zag by repeated moveBy's
|
|
244
|
+
* actor.actions.repeat(repeatCtx => {
|
|
245
|
+
* repeatCtx.moveBy(10, 0, 10);
|
|
246
|
+
* repeatCtx.moveBy(0, 10, 10);
|
|
247
|
+
* }, 5);
|
|
248
|
+
* ```
|
|
249
|
+
* @param repeatBuilder The builder to specify the repeatable list of actions
|
|
250
|
+
* @param times The number of times to repeat all the previous actions in the action queue. If nothing is specified the actions
|
|
251
|
+
* will repeat forever
|
|
252
|
+
*/
|
|
253
|
+
repeat(repeatBuilder, times) {
|
|
254
|
+
if (!times) {
|
|
255
|
+
this.repeatForever(repeatBuilder);
|
|
256
|
+
return this;
|
|
257
|
+
}
|
|
258
|
+
this._queue.add(new Repeat(this._entity, repeatBuilder, times));
|
|
259
|
+
return this;
|
|
260
|
+
}
|
|
261
|
+
/**
|
|
262
|
+
* This method will cause the actor to repeat all of the actions built in
|
|
263
|
+
* the `repeatBuilder` callback. If the number of repeats
|
|
264
|
+
* is not specified it will repeat forever. This method is part of
|
|
265
|
+
* the actor 'Action' fluent API allowing action chaining
|
|
266
|
+
*
|
|
267
|
+
* ```typescript
|
|
268
|
+
* // Move up in a zig-zag by repeated moveBy's
|
|
269
|
+
* actor.actions.repeat(repeatCtx => {
|
|
270
|
+
* repeatCtx.moveBy(10, 0, 10);
|
|
271
|
+
* repeatCtx.moveBy(0, 10, 10);
|
|
272
|
+
* }, 5);
|
|
273
|
+
* ```
|
|
274
|
+
* @param repeatBuilder The builder to specify the repeatable list of actions
|
|
275
|
+
*/
|
|
276
|
+
repeatForever(repeatBuilder) {
|
|
277
|
+
this._queue.add(new RepeatForever(this._entity, repeatBuilder));
|
|
278
|
+
return this;
|
|
279
|
+
}
|
|
280
|
+
/**
|
|
281
|
+
* This method will cause the entity to follow another at a specified distance
|
|
282
|
+
* @param entity The entity to follow
|
|
283
|
+
* @param followDistance The distance to maintain when following, if not specified the actor will follow at the current distance.
|
|
284
|
+
*/
|
|
285
|
+
follow(entity, followDistance) {
|
|
286
|
+
if (followDistance === undefined) {
|
|
287
|
+
this._queue.add(new Follow(this._entity, entity));
|
|
288
|
+
}
|
|
289
|
+
else {
|
|
290
|
+
this._queue.add(new Follow(this._entity, entity, followDistance));
|
|
291
|
+
}
|
|
292
|
+
return this;
|
|
293
|
+
}
|
|
294
|
+
/**
|
|
295
|
+
* This method will cause the entity to move towards another until they
|
|
296
|
+
* collide "meet" at a specified speed.
|
|
297
|
+
* @param entity The entity to meet
|
|
298
|
+
* @param speed The speed in pixels per second to move, if not specified it will match the speed of the other actor
|
|
299
|
+
*/
|
|
300
|
+
meet(entity, speed) {
|
|
301
|
+
if (speed === undefined) {
|
|
302
|
+
this._queue.add(new Meet(this._entity, entity));
|
|
303
|
+
}
|
|
304
|
+
else {
|
|
305
|
+
this._queue.add(new Meet(this._entity, entity, speed));
|
|
306
|
+
}
|
|
307
|
+
return this;
|
|
308
|
+
}
|
|
309
|
+
/**
|
|
310
|
+
* Returns a promise that resolves when the current action queue up to now
|
|
311
|
+
* is finished.
|
|
312
|
+
*/
|
|
313
|
+
toPromise() {
|
|
314
|
+
const temp = new Promise((resolve) => {
|
|
315
|
+
this._queue.add(new CallMethod(() => {
|
|
316
|
+
resolve();
|
|
317
|
+
}));
|
|
318
|
+
});
|
|
319
|
+
return temp;
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
//# sourceMappingURL=ActionContext.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ActionContext.js","sourceRoot":"","sources":["../../../src/engine/Actions/ActionContext.ts"],"names":[],"mappings":"AAEA,OAAO,EAAkB,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1E,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,UA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@
|
|
|
1
|
+
/**
|
|
2
|
+
* Action Queues represent an ordered sequence of actions
|
|
3
|
+
*
|
|
4
|
+
* Action queues are part of the [[ActionContext|Action API]] and
|
|
5
|
+
* store the list of actions to be executed for an [[Actor]].
|
|
6
|
+
*
|
|
7
|
+
* Actors implement [[Actor.actions]] which can be manipulated by
|
|
8
|
+
* advanced users to adjust the actions currently being executed in the
|
|
9
|
+
* queue.
|
|
10
|
+
*/
|
|
11
|
+
export class ActionQueue {
|
|
12
|
+
constructor(entity) {
|
|
13
|
+
this._actions = [];
|
|
14
|
+
this._completedActions = [];
|
|
15
|
+
this._entity = entity;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Add an action to the sequence
|
|
19
|
+
* @param action
|
|
20
|
+
*/
|
|
21
|
+
add(action) {
|
|
22
|
+
this._actions.push(action);
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Remove an action by reference from the sequence
|
|
26
|
+
* @param action
|
|
27
|
+
*/
|
|
28
|
+
remove(action) {
|
|
29
|
+
const index = this._actions.indexOf(action);
|
|
30
|
+
this._actions.splice(index, 1);
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Removes all actions from this sequence
|
|
34
|
+
*/
|
|
35
|
+
clearActions() {
|
|
36
|
+
this._actions.length = 0;
|
|
37
|
+
this._completedActions.length = 0;
|
|
38
|
+
if (this._currentAction) {
|
|
39
|
+
this._currentAction.stop();
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @returns The total list of actions in this sequence complete or not
|
|
45
|
+
*/
|
|
46
|
+
getActions() {
|
|
47
|
+
return this._actions.concat(this._completedActions);
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @returns `true` if there are more actions to process in the sequence
|
|
52
|
+
*/
|
|
53
|
+
hasNext() {
|
|
54
|
+
return this._actions.length > 0;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* @returns `true` if the current sequence of actions is done
|
|
58
|
+
*/
|
|
59
|
+
isComplete() {
|
|
60
|
+
return this._actions.length === 0;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Resets the sequence of actions, this is used to restart a sequence from the beginning
|
|
64
|
+
*/
|
|
65
|
+
reset() {
|
|
66
|
+
this._actions = this.getActions();
|
|
67
|
+
const len = this._actions.length;
|
|
68
|
+
for (let i = 0; i < len; i++) {
|
|
69
|
+
this._actions[i].reset();
|
|
70
|
+
}
|
|
71
|
+
this._completedActions = [];
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Update the queue which updates actions and handles completing actions
|
|
75
|
+
* @param elapsedMs
|
|
76
|
+
*/
|
|
77
|
+
update(elapsedMs) {
|
|
78
|
+
if (this._actions.length > 0) {
|
|
79
|
+
this._currentAction = this._actions[0];
|
|
80
|
+
this._currentAction.update(elapsedMs);
|
|
81
|
+
if (this._currentAction.isComplete(this._entity)) {
|
|
82
|
+
this._completedActions.push(this._actions.shift());
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
//# sourceMappingURL=ActionQueue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ActionQueue.js","sourceRoot":"","sources":["../../../src/engine/Actions/ActionQueue.ts"],"names":[],"mappings":"AAGA;;;;;;;;;GASG;AACH,MAAM,OAAO,WAAW;IAKtB,YAAY,MAAc;QAHlB,aAAQ,GAAa,EAAE,CAAC;QAExB,sBAAiB,GAAa,EAAE,CAAC;QAEvC,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;IACxB,CAAC;IAED;;;OAGG;IACI,GAAG,CAAC,MAAc;QACvB,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAC7B,CAAC;IAED;;;OAGG;IACI,MAAM,CAAC,MAAc;QAC1B,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ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AC;YACvC,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;YAEtC,IAAI,IAAI,CAAC,cAAc,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC;gBACjD,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,CAAC,CAAC;YACrD,CAAC;QACH,CAAC;IACH,CAAC;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Actionable.js","sourceRoot":"","sources":["../../../src/engine/Actions/Actionable.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
import { ActionContext } from './ActionContext';
|
|
2
|
+
import { Component } from '../EntityComponentSystem/Component';
|
|
3
|
+
import { MotionComponent } from '../EntityComponentSystem/Components/MotionComponent';
|
|
4
|
+
import { TransformComponent } from '../EntityComponentSystem/Components/TransformComponent';
|
|
5
|
+
;
|
|
6
|
+
export class ActionsComponent extends Component {
|
|
7
|
+
constructor() {
|
|
8
|
+
super(...arguments);
|
|
9
|
+
this.type = 'ex.actions';
|
|
10
|
+
this.dependencies = [TransformComponent, MotionComponent];
|
|
11
|
+
}
|
|
12
|
+
onAdd(entity) {
|
|
13
|
+
this._ctx = new ActionContext(entity);
|
|
14
|
+
}
|
|
15
|
+
onRemove() {
|
|
16
|
+
this._ctx = null;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Returns the internal action queue
|
|
20
|
+
* @returns action queue
|
|
21
|
+
*/
|
|
22
|
+
getQueue() {
|
|
23
|
+
var _a;
|
|
24
|
+
return (_a = this._ctx) === null || _a === void 0 ? void 0 : _a.getQueue();
|
|
25
|
+
}
|
|
26
|
+
runAction(action) {
|
|
27
|
+
var _a;
|
|
28
|
+
return (_a = this._ctx) === null || _a === void 0 ? void 0 : _a.runAction(action);
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Updates the internal action context, performing action and moving through the internal queue
|
|
32
|
+
* @param elapsedMs
|
|
33
|
+
*/
|
|
34
|
+
update(elapsedMs) {
|
|
35
|
+
var _a;
|
|
36
|
+
return (_a = this._ctx) === null || _a === void 0 ? void 0 : _a.update(elapsedMs);
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Clears all queued actions from the Actor
|
|
40
|
+
*/
|
|
41
|
+
clearActions() {
|
|
42
|
+
var _a;
|
|
43
|
+
(_a = this._ctx) === null || _a === void 0 ? void 0 : _a.clearActions();
|
|
44
|
+
}
|
|
45
|
+
easeTo(...args) {
|
|
46
|
+
return this._ctx.easeTo.apply(this._ctx, args);
|
|
47
|
+
}
|
|
48
|
+
easeBy(...args) {
|
|
49
|
+
return this._ctx.easeBy.apply(this._ctx, args);
|
|
50
|
+
}
|
|
51
|
+
moveTo(xOrPos, yOrSpeed, speedOrUndefined) {
|
|
52
|
+
return this._ctx.moveTo.apply(this._ctx, [xOrPos, yOrSpeed, speedOrUndefined]);
|
|
53
|
+
}
|
|
54
|
+
moveBy(xOffsetOrVector, yOffsetOrSpeed, speedOrUndefined) {
|
|
55
|
+
return this._ctx.moveBy.apply(this._ctx, [xOffsetOrVector, yOffsetOrSpeed, speedOrUndefined]);
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* This method will rotate an actor to the specified angle at the speed
|
|
59
|
+
* specified (in radians per second) and return back the actor. This
|
|
60
|
+
* method is part of the actor 'Action' fluent API allowing action chaining.
|
|
61
|
+
* @param angleRadians The angle to rotate to in radians
|
|
62
|
+
* @param speed The angular velocity of the rotation specified in radians per second
|
|
63
|
+
* @param rotationType The [[RotationType]] to use for this rotation
|
|
64
|
+
*/
|
|
65
|
+
rotateTo(angleRadians, speed, rotationType) {
|
|
66
|
+
return this._ctx.rotateTo(angleRadians, speed, rotationType);
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* This method will rotate an actor by the specified angle offset, from it's current rotation given a certain speed
|
|
70
|
+
* in radians/sec and return back the actor. This method is part
|
|
71
|
+
* of the actor 'Action' fluent API allowing action chaining.
|
|
72
|
+
* @param angleRadiansOffset The angle to rotate to in radians relative to the current rotation
|
|
73
|
+
* @param speed The speed in radians/sec the actor should rotate at
|
|
74
|
+
* @param rotationType The [[RotationType]] to use for this rotation, default is shortest path
|
|
75
|
+
*/
|
|
76
|
+
rotateBy(angleRadiansOffset, speed, rotationType) {
|
|
77
|
+
return this._ctx.rotateBy(angleRadiansOffset, speed, rotationType);
|
|
78
|
+
}
|
|
79
|
+
scaleTo(sizeXOrVector, sizeYOrSpeed, speedXOrUndefined, speedYOrUndefined) {
|
|
80
|
+
return this._ctx.scaleTo.apply(this._ctx, [sizeXOrVector, sizeYOrSpeed, speedXOrUndefined, speedYOrUndefined]);
|
|
81
|
+
}
|
|
82
|
+
scaleBy(sizeOffsetXOrVector, sizeOffsetYOrSpeed, speed) {
|
|
83
|
+
return this._ctx.scaleBy.apply(this._ctx, [sizeOffsetXOrVector, sizeOffsetYOrSpeed, speed]);
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* This method will cause an actor to blink (become visible and not
|
|
87
|
+
* visible). Optionally, you may specify the number of blinks. Specify the amount of time
|
|
88
|
+
* the actor should be visible per blink, and the amount of time not visible.
|
|
89
|
+
* This method is part of the actor 'Action' fluent API allowing action chaining.
|
|
90
|
+
* @param timeVisible The amount of time to stay visible per blink in milliseconds
|
|
91
|
+
* @param timeNotVisible The amount of time to stay not visible per blink in milliseconds
|
|
92
|
+
* @param numBlinks The number of times to blink
|
|
93
|
+
*/
|
|
94
|
+
blink(timeVisible, timeNotVisible, numBlinks) {
|
|
95
|
+
return this._ctx.blink(timeVisible, timeNotVisible, numBlinks);
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* This method will cause an actor's opacity to change from its current value
|
|
99
|
+
* to the provided value by a specified time (in milliseconds). This method is
|
|
100
|
+
* part of the actor 'Action' fluent API allowing action chaining.
|
|
101
|
+
* @param opacity The ending opacity
|
|
102
|
+
* @param time The time it should take to fade the actor (in milliseconds)
|
|
103
|
+
*/
|
|
104
|
+
fade(opacity, time) {
|
|
105
|
+
return this._ctx.fade(opacity, time);
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* This method will delay the next action from executing for a certain
|
|
109
|
+
* amount of time (in milliseconds). This method is part of the actor
|
|
110
|
+
* 'Action' fluent API allowing action chaining.
|
|
111
|
+
* @param time The amount of time to delay the next action in the queue from executing in milliseconds
|
|
112
|
+
*/
|
|
113
|
+
delay(time) {
|
|
114
|
+
return this._ctx.delay(time);
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* This method will add an action to the queue that will remove the actor from the
|
|
118
|
+
* scene once it has completed its previous Any actions on the
|
|
119
|
+
* action queue after this action will not be executed.
|
|
120
|
+
*/
|
|
121
|
+
die() {
|
|
122
|
+
return this._ctx.die();
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* This method allows you to call an arbitrary method as the next action in the
|
|
126
|
+
* action queue. This is useful if you want to execute code in after a specific
|
|
127
|
+
* action, i.e An actor arrives at a destination after traversing a path
|
|
128
|
+
*/
|
|
129
|
+
callMethod(method) {
|
|
130
|
+
return this._ctx.callMethod(method);
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* This method will cause the actor to repeat all of the actions built in
|
|
134
|
+
* the `repeatBuilder` callback. If the number of repeats
|
|
135
|
+
* is not specified it will repeat forever. This method is part of
|
|
136
|
+
* the actor 'Action' fluent API allowing action chaining
|
|
137
|
+
*
|
|
138
|
+
* ```typescript
|
|
139
|
+
* // Move up in a zig-zag by repeated moveBy's
|
|
140
|
+
* actor.actions.repeat(repeatCtx => {
|
|
141
|
+
* repeatCtx.moveBy(10, 0, 10);
|
|
142
|
+
* repeatCtx.moveBy(0, 10, 10);
|
|
143
|
+
* }, 5);
|
|
144
|
+
* ```
|
|
145
|
+
* @param repeatBuilder The builder to specify the repeatable list of actions
|
|
146
|
+
* @param times The number of times to repeat all the previous actions in the action queue. If nothing is specified the actions
|
|
147
|
+
* will repeat forever
|
|
148
|
+
*/
|
|
149
|
+
repeat(repeatBuilder, times) {
|
|
150
|
+
return this._ctx.repeat(repeatBuilder, times);
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* This method will cause the actor to repeat all of the actions built in
|
|
154
|
+
* the `repeatBuilder` callback. If the number of repeats
|
|
155
|
+
* is not specified it will repeat forever. This method is part of
|
|
156
|
+
* the actor 'Action' fluent API allowing action chaining
|
|
157
|
+
*
|
|
158
|
+
* ```typescript
|
|
159
|
+
* // Move up in a zig-zag by repeated moveBy's
|
|
160
|
+
* actor.actions.repeat(repeatCtx => {
|
|
161
|
+
* repeatCtx.moveBy(10, 0, 10);
|
|
162
|
+
* repeatCtx.moveBy(0, 10, 10);
|
|
163
|
+
* }, 5);
|
|
164
|
+
* ```
|
|
165
|
+
* @param repeatBuilder The builder to specify the repeatable list of actions
|
|
166
|
+
*/
|
|
167
|
+
repeatForever(repeatBuilder) {
|
|
168
|
+
return this._ctx.repeatForever(repeatBuilder);
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* This method will cause the entity to follow another at a specified distance
|
|
172
|
+
* @param entity The entity to follow
|
|
173
|
+
* @param followDistance The distance to maintain when following, if not specified the actor will follow at the current distance.
|
|
174
|
+
*/
|
|
175
|
+
follow(entity, followDistance) {
|
|
176
|
+
return this._ctx.follow(entity, followDistance);
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* This method will cause the entity to move towards another until they
|
|
180
|
+
* collide "meet" at a specified speed.
|
|
181
|
+
* @param entity The entity to meet
|
|
182
|
+
* @param speed The speed in pixels per second to move, if not specified it will match the speed of the other actor
|
|
183
|
+
*/
|
|
184
|
+
meet(entity, speed) {
|
|
185
|
+
return this._ctx.meet(entity, speed);
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
* Returns a promise that resolves when the current action queue up to now
|
|
189
|
+
* is finished.
|
|
190
|
+
*/
|
|
191
|
+
toPromise() {
|
|
192
|
+
return this._ctx.toPromise();
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
//# sourceMappingURL=ActionsComponent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ActionsComponent.js","sourceRoot":"","sources":["../../../src/engine/Actions/ActionsComponent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,oCAAoC,CAAC;AAG/D,OAAO,EAAE,eAAe,EAAE,MAAM,qDAAqD,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wDAAwD,CAAC;AAOF,CAAC;AAE3F,MAAM,OAAO,gBAAiB,SAAQ,SAAuB;IAA7D;;QACkB,SAAI,GAAG,YAAY,CAAC;QACpC,iBAAY,GAAG,CAAC,kBAAkB,EAAE,eAAe,CAAC,CAAC;IA0SvD,CAAC;IAvSC,KAAK,CAAC,MAAc;QAClB,IAAI,CAAC,IAAI,GAAG,IAAI,aAAa,CAAC,MAAM,CAAC,CAAC;IACxC,CAAC;IAED,QAAQ;QACN,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;IAED;;;OAGG;IACI,QAAQ;;QACb,OAAO,MAAA,IAAI,CAAC,IAAI,0CAAE,QAAQ,EAAE,CAAC;IAC/B,CAAC;IAEM,SAAS,CAAC,MAAc;;QAC7B,OAAO,MAAA,IAAI,CAAC,IAAI,0CAAE,SAAS,CAAC,MAAM,CAAC,CAAC;IACtC,CAAC;IAED;;;OAGG;IACI,MAAM,CAAC,SAAiB;;QAC7B,OAAO,MAAA,IAAI,CAAC,IAAI,0CAAE,MAAM,CAAC,SAAS,CAAC,CAAC;IACtC,CAAC;IAED;;OAEG;IACI,YAAY;;QACjB,MAAA,IAAI,CAAC,IAAI,0CAAE,YAAY,EAAE,CAAC;IAC5B,CAAC;IAqBM,MAAM,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E,cAAuB;QAClD,OAAO,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;IAClD,CAAC;IAED;;;;;OAKG;IACI,IAAI,CAAC,MAAa,EAAE,KAAc;QACvC,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IACvC,CAAC;IAED;;;OAGG;IACI,SAAS;QACd,OAAO,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,CAAC;IAC/B,CAAC;CACF"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { isAddedSystemEntity, System, SystemType } from '../EntityComponentSystem/System';
|
|
2
|
+
import { ActionsComponent } from './ActionsComponent';
|
|
3
|
+
export class ActionsSystem extends System {
|
|
4
|
+
constructor() {
|
|
5
|
+
super(...arguments);
|
|
6
|
+
this.types = ['ex.actions'];
|
|
7
|
+
this.systemType = SystemType.Update;
|
|
8
|
+
this.priority = -1;
|
|
9
|
+
this._actions = [];
|
|
10
|
+
}
|
|
11
|
+
notify(entityAddedOrRemoved) {
|
|
12
|
+
if (isAddedSystemEntity(entityAddedOrRemoved)) {
|
|
13
|
+
const action = entityAddedOrRemoved.data.get(ActionsComponent);
|
|
14
|
+
this._actions.push(action);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
const action = entityAddedOrRemoved.data.get(ActionsComponent);
|
|
18
|
+
const index = this._actions.indexOf(action);
|
|
19
|
+
if (index > -1) {
|
|
20
|
+
this._actions.splice(index, 1);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
update(_entities, delta) {
|
|
25
|
+
for (const actions of this._actions) {
|
|
26
|
+
actions.update(delta);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=ActionsSystem.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ActionsSystem.js","sourceRoot":"","sources":["../../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