@rb-games/core 0.1.0
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/README.md +488 -0
- package/dist/devtools/DraggableController.d.ts +10 -0
- package/dist/devtools/DraggableController.d.ts.map +1 -0
- package/dist/devtools/ResizableController.d.ts +19 -0
- package/dist/devtools/ResizableController.d.ts.map +1 -0
- package/dist/devtools/index.d.ts +7 -0
- package/dist/devtools/index.d.ts.map +1 -0
- package/dist/devtools/index.js +884 -0
- package/dist/devtools/index.js.map +1 -0
- package/dist/devtools/overlayPlugin.d.ts +3 -0
- package/dist/devtools/overlayPlugin.d.ts.map +1 -0
- package/dist/devtools/spinePropertiesPlugin.d.ts +3 -0
- package/dist/devtools/spinePropertiesPlugin.d.ts.map +1 -0
- package/dist/devtools/spriteTextPropertiesPlugin.d.ts +3 -0
- package/dist/devtools/spriteTextPropertiesPlugin.d.ts.map +1 -0
- package/dist/devtools/treePlugin.d.ts +7 -0
- package/dist/devtools/treePlugin.d.ts.map +1 -0
- package/dist/engine/PixiEngine.d.ts +404 -0
- package/dist/engine/PixiEngine.d.ts.map +1 -0
- package/dist/engine/index.d.ts +2 -0
- package/dist/engine/index.d.ts.map +1 -0
- package/dist/engine/index.js +1818 -0
- package/dist/engine/index.js.map +1 -0
- package/dist/filters/ChromaKeyFilter.d.ts +64 -0
- package/dist/filters/ChromaKeyFilter.d.ts.map +1 -0
- package/dist/filters/index.d.ts +2 -0
- package/dist/filters/index.d.ts.map +1 -0
- package/dist/filters/index.js +248 -0
- package/dist/filters/index.js.map +1 -0
- package/dist/helpers/AssetHelper.d.ts +117 -0
- package/dist/helpers/AssetHelper.d.ts.map +1 -0
- package/dist/helpers/SVGAssetHelper.d.ts +397 -0
- package/dist/helpers/SVGAssetHelper.d.ts.map +1 -0
- package/dist/helpers/SVGLoader.d.ts +46 -0
- package/dist/helpers/SVGLoader.d.ts.map +1 -0
- package/dist/helpers/SVGParser.d.ts +121 -0
- package/dist/helpers/SVGParser.d.ts.map +1 -0
- package/dist/helpers/eventBridge.d.ts +150 -0
- package/dist/helpers/eventBridge.d.ts.map +1 -0
- package/dist/helpers/index.d.ts +8 -0
- package/dist/helpers/index.d.ts.map +1 -0
- package/dist/helpers/index.js +702 -0
- package/dist/helpers/index.js.map +1 -0
- package/dist/helpers/mergeUtils.d.ts +21 -0
- package/dist/helpers/mergeUtils.d.ts.map +1 -0
- package/dist/helpers/resolvePublicPath.d.ts +6 -0
- package/dist/helpers/resolvePublicPath.d.ts.map +1 -0
- package/dist/i18n/index.d.ts +2 -0
- package/dist/i18n/index.d.ts.map +1 -0
- package/dist/i18n/index.js +527 -0
- package/dist/i18n/index.js.map +1 -0
- package/dist/i18n/sharedI18n.d.ts +11 -0
- package/dist/i18n/sharedI18n.d.ts.map +1 -0
- package/dist/layout/Align.d.ts +126 -0
- package/dist/layout/Align.d.ts.map +1 -0
- package/dist/layout/Bounds.d.ts +120 -0
- package/dist/layout/Bounds.d.ts.map +1 -0
- package/dist/layout/Distribute.d.ts +103 -0
- package/dist/layout/Distribute.d.ts.map +1 -0
- package/dist/layout/Flow.d.ts +213 -0
- package/dist/layout/Flow.d.ts.map +1 -0
- package/dist/layout/PositionUtils.d.ts +57 -0
- package/dist/layout/PositionUtils.d.ts.map +1 -0
- package/dist/layout/index.d.ts +6 -0
- package/dist/layout/index.d.ts.map +1 -0
- package/dist/layout/index.js +673 -0
- package/dist/layout/index.js.map +1 -0
- package/dist/particle/Emitter.d.ts +290 -0
- package/dist/particle/Emitter.d.ts.map +1 -0
- package/dist/particle/EmitterConfig.d.ts +228 -0
- package/dist/particle/EmitterConfig.d.ts.map +1 -0
- package/dist/particle/LinkedListContainer.d.ts +7 -0
- package/dist/particle/LinkedListContainer.d.ts.map +1 -0
- package/dist/particle/Particle.d.ts +63 -0
- package/dist/particle/Particle.d.ts.map +1 -0
- package/dist/particle/ParticleUtils.d.ts +97 -0
- package/dist/particle/ParticleUtils.d.ts.map +1 -0
- package/dist/particle/PropertyList.d.ts +40 -0
- package/dist/particle/PropertyList.d.ts.map +1 -0
- package/dist/particle/PropertyNode.d.ts +74 -0
- package/dist/particle/PropertyNode.d.ts.map +1 -0
- package/dist/particle/SpineEmitter.d.ts +55 -0
- package/dist/particle/SpineEmitter.d.ts.map +1 -0
- package/dist/particle/SpineParticle.d.ts +74 -0
- package/dist/particle/SpineParticle.d.ts.map +1 -0
- package/dist/particle/behaviors/AccelerationMovement.d.ts +62 -0
- package/dist/particle/behaviors/AccelerationMovement.d.ts.map +1 -0
- package/dist/particle/behaviors/Alpha.d.ts +60 -0
- package/dist/particle/behaviors/Alpha.d.ts.map +1 -0
- package/dist/particle/behaviors/AnimatedTexture.d.ts +111 -0
- package/dist/particle/behaviors/AnimatedTexture.d.ts.map +1 -0
- package/dist/particle/behaviors/Behaviors.d.ts +71 -0
- package/dist/particle/behaviors/Behaviors.d.ts.map +1 -0
- package/dist/particle/behaviors/BlendMode.d.ts +31 -0
- package/dist/particle/behaviors/BlendMode.d.ts.map +1 -0
- package/dist/particle/behaviors/BurstSpawn.d.ts +43 -0
- package/dist/particle/behaviors/BurstSpawn.d.ts.map +1 -0
- package/dist/particle/behaviors/Color.d.ts +60 -0
- package/dist/particle/behaviors/Color.d.ts.map +1 -0
- package/dist/particle/behaviors/MultiStateAnimatedTexture.d.ts +99 -0
- package/dist/particle/behaviors/MultiStateAnimatedTexture.d.ts.map +1 -0
- package/dist/particle/behaviors/OrderedTexture.d.ts +33 -0
- package/dist/particle/behaviors/OrderedTexture.d.ts.map +1 -0
- package/dist/particle/behaviors/PathMovement.d.ts +68 -0
- package/dist/particle/behaviors/PathMovement.d.ts.map +1 -0
- package/dist/particle/behaviors/PointSpawn.d.ts +21 -0
- package/dist/particle/behaviors/PointSpawn.d.ts.map +1 -0
- package/dist/particle/behaviors/RandomColor.d.ts +17 -0
- package/dist/particle/behaviors/RandomColor.d.ts.map +1 -0
- package/dist/particle/behaviors/RandomTexture.d.ts +32 -0
- package/dist/particle/behaviors/RandomTexture.d.ts.map +1 -0
- package/dist/particle/behaviors/Rotation.d.ts +114 -0
- package/dist/particle/behaviors/Rotation.d.ts.map +1 -0
- package/dist/particle/behaviors/Scale.d.ts +74 -0
- package/dist/particle/behaviors/Scale.d.ts.map +1 -0
- package/dist/particle/behaviors/ShapeSpawn.d.ts +58 -0
- package/dist/particle/behaviors/ShapeSpawn.d.ts.map +1 -0
- package/dist/particle/behaviors/SingleTexture.d.ts +32 -0
- package/dist/particle/behaviors/SingleTexture.d.ts.map +1 -0
- package/dist/particle/behaviors/SpeedMovement.d.ts +76 -0
- package/dist/particle/behaviors/SpeedMovement.d.ts.map +1 -0
- package/dist/particle/behaviors/SpineTexture.d.ts +173 -0
- package/dist/particle/behaviors/SpineTexture.d.ts.map +1 -0
- package/dist/particle/behaviors/ZindexBehavior.d.ts +16 -0
- package/dist/particle/behaviors/ZindexBehavior.d.ts.map +1 -0
- package/dist/particle/behaviors/editor/Types.d.ts +104 -0
- package/dist/particle/behaviors/editor/Types.d.ts.map +1 -0
- package/dist/particle/behaviors/editor/behaviors/AccelerationMovement.d.ts +2 -0
- package/dist/particle/behaviors/editor/behaviors/AccelerationMovement.d.ts.map +1 -0
- package/dist/particle/behaviors/editor/behaviors/Alpha.d.ts +2 -0
- package/dist/particle/behaviors/editor/behaviors/Alpha.d.ts.map +1 -0
- package/dist/particle/behaviors/editor/behaviors/AnimatedTexture.d.ts +2 -0
- package/dist/particle/behaviors/editor/behaviors/AnimatedTexture.d.ts.map +1 -0
- package/dist/particle/behaviors/editor/behaviors/BlendMode.d.ts +2 -0
- package/dist/particle/behaviors/editor/behaviors/BlendMode.d.ts.map +1 -0
- package/dist/particle/behaviors/editor/behaviors/BurstSpawn.d.ts +2 -0
- package/dist/particle/behaviors/editor/behaviors/BurstSpawn.d.ts.map +1 -0
- package/dist/particle/behaviors/editor/behaviors/Color.d.ts +2 -0
- package/dist/particle/behaviors/editor/behaviors/Color.d.ts.map +1 -0
- package/dist/particle/behaviors/editor/behaviors/OrderedTexture.d.ts +2 -0
- package/dist/particle/behaviors/editor/behaviors/OrderedTexture.d.ts.map +1 -0
- package/dist/particle/behaviors/editor/behaviors/PathMovement.d.ts +2 -0
- package/dist/particle/behaviors/editor/behaviors/PathMovement.d.ts.map +1 -0
- package/dist/particle/behaviors/editor/behaviors/PointSpawn.d.ts +2 -0
- package/dist/particle/behaviors/editor/behaviors/PointSpawn.d.ts.map +1 -0
- package/dist/particle/behaviors/editor/behaviors/RandomTexture.d.ts +2 -0
- package/dist/particle/behaviors/editor/behaviors/RandomTexture.d.ts.map +1 -0
- package/dist/particle/behaviors/editor/behaviors/Rotation.d.ts +2 -0
- package/dist/particle/behaviors/editor/behaviors/Rotation.d.ts.map +1 -0
- package/dist/particle/behaviors/editor/behaviors/Scale.d.ts +2 -0
- package/dist/particle/behaviors/editor/behaviors/Scale.d.ts.map +1 -0
- package/dist/particle/behaviors/editor/behaviors/ShapeSpawn.d.ts +2 -0
- package/dist/particle/behaviors/editor/behaviors/ShapeSpawn.d.ts.map +1 -0
- package/dist/particle/behaviors/editor/behaviors/SingleTexture.d.ts +2 -0
- package/dist/particle/behaviors/editor/behaviors/SingleTexture.d.ts.map +1 -0
- package/dist/particle/behaviors/editor/behaviors/SpeedMovement.d.ts +2 -0
- package/dist/particle/behaviors/editor/behaviors/SpeedMovement.d.ts.map +1 -0
- package/dist/particle/behaviors/editor/behaviors/index.d.ts +15 -0
- package/dist/particle/behaviors/editor/behaviors/index.d.ts.map +1 -0
- package/dist/particle/behaviors/editor/index.d.ts +5 -0
- package/dist/particle/behaviors/editor/index.d.ts.map +1 -0
- package/dist/particle/behaviors/editor/shapes/PolygonalChain.d.ts +2 -0
- package/dist/particle/behaviors/editor/shapes/PolygonalChain.d.ts.map +1 -0
- package/dist/particle/behaviors/editor/shapes/Rectangle.d.ts +2 -0
- package/dist/particle/behaviors/editor/shapes/Rectangle.d.ts.map +1 -0
- package/dist/particle/behaviors/editor/shapes/Torus.d.ts +2 -0
- package/dist/particle/behaviors/editor/shapes/Torus.d.ts.map +1 -0
- package/dist/particle/behaviors/index.d.ts +25 -0
- package/dist/particle/behaviors/index.d.ts.map +1 -0
- package/dist/particle/behaviors/shapes/PolygonalChain.d.ts +57 -0
- package/dist/particle/behaviors/shapes/PolygonalChain.d.ts.map +1 -0
- package/dist/particle/behaviors/shapes/Rectangle.d.ts +59 -0
- package/dist/particle/behaviors/shapes/Rectangle.d.ts.map +1 -0
- package/dist/particle/behaviors/shapes/SpawnShape.d.ts +32 -0
- package/dist/particle/behaviors/shapes/SpawnShape.d.ts.map +1 -0
- package/dist/particle/behaviors/shapes/Torus.d.ts +71 -0
- package/dist/particle/behaviors/shapes/Torus.d.ts.map +1 -0
- package/dist/particle/behaviors/shapes/index.d.ts +5 -0
- package/dist/particle/behaviors/shapes/index.d.ts.map +1 -0
- package/dist/particle/index.d.ts +11 -0
- package/dist/particle/index.d.ts.map +1 -0
- package/dist/particle/index.js +2845 -0
- package/dist/particle/index.js.map +1 -0
- package/dist/plugins/Plugin.types.d.ts +80 -0
- package/dist/plugins/Plugin.types.d.ts.map +1 -0
- package/dist/plugins/device/DeviceOptimizerPlugin.d.ts +187 -0
- package/dist/plugins/device/DeviceOptimizerPlugin.d.ts.map +1 -0
- package/dist/plugins/device/DeviceOptimizerPlugin.types.d.ts +134 -0
- package/dist/plugins/device/DeviceOptimizerPlugin.types.d.ts.map +1 -0
- package/dist/plugins/device/index.d.ts +3 -0
- package/dist/plugins/device/index.d.ts.map +1 -0
- package/dist/plugins/display/DisplayPlugin.d.ts +208 -0
- package/dist/plugins/display/DisplayPlugin.d.ts.map +1 -0
- package/dist/plugins/display/DisplayPlugin.types.d.ts +174 -0
- package/dist/plugins/display/DisplayPlugin.types.d.ts.map +1 -0
- package/dist/plugins/display/displayViewport.d.ts +10 -0
- package/dist/plugins/display/displayViewport.d.ts.map +1 -0
- package/dist/plugins/display/index.d.ts +4 -0
- package/dist/plugins/display/index.d.ts.map +1 -0
- package/dist/plugins/eventbus/EventBusPlugin.d.ts +21 -0
- package/dist/plugins/eventbus/EventBusPlugin.d.ts.map +1 -0
- package/dist/plugins/eventbus/EventBusPlugin.types.d.ts +24 -0
- package/dist/plugins/eventbus/EventBusPlugin.types.d.ts.map +1 -0
- package/dist/plugins/eventbus/index.d.ts +3 -0
- package/dist/plugins/eventbus/index.d.ts.map +1 -0
- package/dist/plugins/gsap/GsapPlugin.d.ts +307 -0
- package/dist/plugins/gsap/GsapPlugin.d.ts.map +1 -0
- package/dist/plugins/gsap/index.d.ts +2 -0
- package/dist/plugins/gsap/index.d.ts.map +1 -0
- package/dist/plugins/index.d.ts +13 -0
- package/dist/plugins/index.d.ts.map +1 -0
- package/dist/plugins/index.js +12806 -0
- package/dist/plugins/index.js.map +1 -0
- package/dist/plugins/input/InputPlugin.const.d.ts +80 -0
- package/dist/plugins/input/InputPlugin.const.d.ts.map +1 -0
- package/dist/plugins/input/InputPlugin.d.ts +141 -0
- package/dist/plugins/input/InputPlugin.d.ts.map +1 -0
- package/dist/plugins/input/InputPlugin.types.d.ts +41 -0
- package/dist/plugins/input/InputPlugin.types.d.ts.map +1 -0
- package/dist/plugins/input/KeyboardManager.d.ts +139 -0
- package/dist/plugins/input/KeyboardManager.d.ts.map +1 -0
- package/dist/plugins/input/KeyboardManager.types.d.ts +27 -0
- package/dist/plugins/input/KeyboardManager.types.d.ts.map +1 -0
- package/dist/plugins/input/index.d.ts +4 -0
- package/dist/plugins/input/index.d.ts.map +1 -0
- package/dist/plugins/language/I18NextPlugin.d.ts +30 -0
- package/dist/plugins/language/I18NextPlugin.d.ts.map +1 -0
- package/dist/plugins/language/I18NextPlugin.types.d.ts +29 -0
- package/dist/plugins/language/I18NextPlugin.types.d.ts.map +1 -0
- package/dist/plugins/language/index.d.ts +3 -0
- package/dist/plugins/language/index.d.ts.map +1 -0
- package/dist/plugins/resource/ResourcePlugin.d.ts +189 -0
- package/dist/plugins/resource/ResourcePlugin.d.ts.map +1 -0
- package/dist/plugins/resource/ResourcePlugin.types.d.ts +153 -0
- package/dist/plugins/resource/ResourcePlugin.types.d.ts.map +1 -0
- package/dist/plugins/resource/index.d.ts +3 -0
- package/dist/plugins/resource/index.d.ts.map +1 -0
- package/dist/plugins/scene/Scene.d.ts +203 -0
- package/dist/plugins/scene/Scene.d.ts.map +1 -0
- package/dist/plugins/scene/ScenePlugin.d.ts +162 -0
- package/dist/plugins/scene/ScenePlugin.d.ts.map +1 -0
- package/dist/plugins/scene/ScenePlugin.types.d.ts +35 -0
- package/dist/plugins/scene/ScenePlugin.types.d.ts.map +1 -0
- package/dist/plugins/scene/index.d.ts +4 -0
- package/dist/plugins/scene/index.d.ts.map +1 -0
- package/dist/plugins/sentry/SentryPlugin.d.ts +66 -0
- package/dist/plugins/sentry/SentryPlugin.d.ts.map +1 -0
- package/dist/plugins/sentry/SentryPlugin.types.d.ts +8 -0
- package/dist/plugins/sentry/SentryPlugin.types.d.ts.map +1 -0
- package/dist/plugins/sentry/index.d.ts +3 -0
- package/dist/plugins/sentry/index.d.ts.map +1 -0
- package/dist/plugins/service/ServiceAdapter.d.ts +88 -0
- package/dist/plugins/service/ServiceAdapter.d.ts.map +1 -0
- package/dist/plugins/service/ServiceEventHelper.d.ts +6 -0
- package/dist/plugins/service/ServiceEventHelper.d.ts.map +1 -0
- package/dist/plugins/service/ServicePlugin.d.ts +135 -0
- package/dist/plugins/service/ServicePlugin.d.ts.map +1 -0
- package/dist/plugins/service/ServicePlugin.types.d.ts +14 -0
- package/dist/plugins/service/ServicePlugin.types.d.ts.map +1 -0
- package/dist/plugins/service/adapters/DevAuthAdapter.d.ts +56 -0
- package/dist/plugins/service/adapters/DevAuthAdapter.d.ts.map +1 -0
- package/dist/plugins/service/adapters/RGSAdapter.d.ts +82 -0
- package/dist/plugins/service/adapters/RGSAdapter.d.ts.map +1 -0
- package/dist/plugins/service/adapters/index.d.ts +7 -0
- package/dist/plugins/service/adapters/index.d.ts.map +1 -0
- package/dist/plugins/service/adapters/resolvePublicIp.d.ts +10 -0
- package/dist/plugins/service/adapters/resolvePublicIp.d.ts.map +1 -0
- package/dist/plugins/service/index.d.ts +10 -0
- package/dist/plugins/service/index.d.ts.map +1 -0
- package/dist/plugins/service/types/api.types.d.ts +299 -0
- package/dist/plugins/service/types/api.types.d.ts.map +1 -0
- package/dist/plugins/service/types/index.d.ts +6 -0
- package/dist/plugins/service/types/index.d.ts.map +1 -0
- package/dist/plugins/skin/ISkin.d.ts +62 -0
- package/dist/plugins/skin/ISkin.d.ts.map +1 -0
- package/dist/plugins/skin/Skin.d.ts +155 -0
- package/dist/plugins/skin/Skin.d.ts.map +1 -0
- package/dist/plugins/skin/SkinPlugin.d.ts +285 -0
- package/dist/plugins/skin/SkinPlugin.d.ts.map +1 -0
- package/dist/plugins/skin/SkinPlugin.types.d.ts +56 -0
- package/dist/plugins/skin/SkinPlugin.types.d.ts.map +1 -0
- package/dist/plugins/skin/index.d.ts +5 -0
- package/dist/plugins/skin/index.d.ts.map +1 -0
- package/dist/plugins/sound/SoundPlugin.d.ts +319 -0
- package/dist/plugins/sound/SoundPlugin.d.ts.map +1 -0
- package/dist/plugins/sound/SoundPlugin.types.d.ts +102 -0
- package/dist/plugins/sound/SoundPlugin.types.d.ts.map +1 -0
- package/dist/plugins/sound/SoundTestGUI.d.ts +42 -0
- package/dist/plugins/sound/SoundTestGUI.d.ts.map +1 -0
- package/dist/plugins/sound/index.d.ts +4 -0
- package/dist/plugins/sound/index.d.ts.map +1 -0
- package/dist/state-machine/ConfigBuilder.d.ts +239 -0
- package/dist/state-machine/ConfigBuilder.d.ts.map +1 -0
- package/dist/state-machine/StateMachine.d.ts +251 -0
- package/dist/state-machine/StateMachine.d.ts.map +1 -0
- package/dist/state-machine/guards.d.ts +151 -0
- package/dist/state-machine/guards.d.ts.map +1 -0
- package/dist/state-machine/index.d.ts +5 -0
- package/dist/state-machine/index.d.ts.map +1 -0
- package/dist/state-machine/index.js +954 -0
- package/dist/state-machine/index.js.map +1 -0
- package/dist/state-machine/types.d.ts +65 -0
- package/dist/state-machine/types.d.ts.map +1 -0
- package/dist/store/DataStore.d.ts +167 -0
- package/dist/store/DataStore.d.ts.map +1 -0
- package/dist/store/index.d.ts +3 -0
- package/dist/store/index.d.ts.map +1 -0
- package/dist/store/index.js +197 -0
- package/dist/store/index.js.map +1 -0
- package/dist/ui/behaviors/ButtonBehavior.d.ts +245 -0
- package/dist/ui/behaviors/ButtonBehavior.d.ts.map +1 -0
- package/dist/ui/behaviors/InputBehavior.d.ts +169 -0
- package/dist/ui/behaviors/InputBehavior.d.ts.map +1 -0
- package/dist/ui/behaviors/ScrollbarBehavior.d.ts +371 -0
- package/dist/ui/behaviors/ScrollbarBehavior.d.ts.map +1 -0
- package/dist/ui/behaviors/index.d.ts +4 -0
- package/dist/ui/behaviors/index.d.ts.map +1 -0
- package/dist/ui/components/ButtonComp.d.ts +138 -0
- package/dist/ui/components/ButtonComp.d.ts.map +1 -0
- package/dist/ui/components/Comp.utils.d.ts +390 -0
- package/dist/ui/components/Comp.utils.d.ts.map +1 -0
- package/dist/ui/components/Component.types.d.ts +41 -0
- package/dist/ui/components/Component.types.d.ts.map +1 -0
- package/dist/ui/components/InputComp.d.ts +43 -0
- package/dist/ui/components/InputComp.d.ts.map +1 -0
- package/dist/ui/components/LabelBox.d.ts +49 -0
- package/dist/ui/components/LabelBox.d.ts.map +1 -0
- package/dist/ui/components/ListTableComp.d.ts +106 -0
- package/dist/ui/components/ListTableComp.d.ts.map +1 -0
- package/dist/ui/components/Skinable.d.ts +261 -0
- package/dist/ui/components/Skinable.d.ts.map +1 -0
- package/dist/ui/components/SliderComp.d.ts +60 -0
- package/dist/ui/components/SliderComp.d.ts.map +1 -0
- package/dist/ui/components/SpriteTextBBCode.d.ts +16 -0
- package/dist/ui/components/SpriteTextBBCode.d.ts.map +1 -0
- package/dist/ui/components/StepperComp.d.ts +89 -0
- package/dist/ui/components/StepperComp.d.ts.map +1 -0
- package/dist/ui/components/index.d.ts +12 -0
- package/dist/ui/components/index.d.ts.map +1 -0
- package/dist/ui/components/spriteText/SpriteText.d.ts +114 -0
- package/dist/ui/components/spriteText/SpriteText.d.ts.map +1 -0
- package/dist/ui/components/spriteText/SpriteText.types.d.ts +109 -0
- package/dist/ui/components/spriteText/SpriteText.types.d.ts.map +1 -0
- package/dist/ui/components/spriteText/SpriteTextAlignment.d.ts +25 -0
- package/dist/ui/components/spriteText/SpriteTextAlignment.d.ts.map +1 -0
- package/dist/ui/components/spriteText/SpriteTextBezier.d.ts +20 -0
- package/dist/ui/components/spriteText/SpriteTextBezier.d.ts.map +1 -0
- package/dist/ui/components/spriteText/SpriteTextCurve.d.ts +4 -0
- package/dist/ui/components/spriteText/SpriteTextCurve.d.ts.map +1 -0
- package/dist/ui/components/spriteText/SpriteTextKerning.d.ts +7 -0
- package/dist/ui/components/spriteText/SpriteTextKerning.d.ts.map +1 -0
- package/dist/ui/components/spriteText/SpriteTextTexture.d.ts +16 -0
- package/dist/ui/components/spriteText/SpriteTextTexture.d.ts.map +1 -0
- package/dist/ui/components/spriteText/SpriteTextWrap.d.ts +19 -0
- package/dist/ui/components/spriteText/SpriteTextWrap.d.ts.map +1 -0
- package/dist/ui/components/spriteText/index.d.ts +3 -0
- package/dist/ui/components/spriteText/index.d.ts.map +1 -0
- package/dist/ui/index.d.ts +3 -0
- package/dist/ui/index.d.ts.map +1 -0
- package/dist/ui/index.js +4778 -0
- package/dist/ui/index.js.map +1 -0
- package/dist/utils/ArrayUtils.d.ts +24 -0
- package/dist/utils/ArrayUtils.d.ts.map +1 -0
- package/dist/utils/ColorUtils.d.ts +34 -0
- package/dist/utils/ColorUtils.d.ts.map +1 -0
- package/dist/utils/DataInjector.d.ts +67 -0
- package/dist/utils/DataInjector.d.ts.map +1 -0
- package/dist/utils/Logger.d.ts +332 -0
- package/dist/utils/Logger.d.ts.map +1 -0
- package/dist/utils/NumberFormatter.d.ts +126 -0
- package/dist/utils/NumberFormatter.d.ts.map +1 -0
- package/dist/utils/ObjectUtils.d.ts +64 -0
- package/dist/utils/ObjectUtils.d.ts.map +1 -0
- package/dist/utils/PixiUtils.d.ts +118 -0
- package/dist/utils/PixiUtils.d.ts.map +1 -0
- package/dist/utils/Throttle.d.ts +103 -0
- package/dist/utils/Throttle.d.ts.map +1 -0
- package/dist/utils/index.d.ts +9 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +899 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/vite/index.d.ts +3 -0
- package/dist/vite/index.d.ts.map +1 -0
- package/dist/vite/index.js +126 -0
- package/dist/vite/index.js.map +1 -0
- package/dist/vite/mergeLocalesPlugin.d.ts +22 -0
- package/dist/vite/mergeLocalesPlugin.d.ts.map +1 -0
- package/package.json +143 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SpineParticle.d.ts","sourceRoot":"","sources":["../../particle/SpineParticle.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACpC,OAAO,EAAE,KAAK,EAAE,MAAM,iCAAiC,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAExD;;;GAGG;AACH,qBAAa,aAAc,SAAQ,SAAU,YAAW,eAAe;IACrE;;OAEG;IACI,KAAK,EAAG,KAAK,CAAC;IAErB;;;OAGG;IACI,OAAO,EAAE,GAAG,CAAC;IAEpB;;OAEG;IACI,OAAO,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACI,GAAG,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACI,UAAU,EAAE,MAAM,CAAC;IAE1B;;OAEG;IACI,WAAW,EAAE,MAAM,CAAC;IAE3B;;OAEG;IACI,IAAI,EAAE,aAAa,CAAC;IAE3B;;OAEG;IACI,IAAI,EAAE,aAAa,CAAC;IAEpB,SAAS,EAAE,eAAe,CAAC;IAC3B,SAAS,EAAE,eAAe,CAAC;IAElC;;OAEG;IACI,MAAM,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IAEtC;;OAEG;gBACS,OAAO,EAAE,GAAG;IAmBxB;;;OAGG;IACI,QAAQ,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI;IAKnC;;;OAGG;IACI,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAsBlC;;;OAGG;IACI,IAAI,IAAI,IAAI;IAInB;;OAEG;IACI,OAAO,IAAI,IAAI;CAUvB"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { Particle } from '../Particle';
|
|
2
|
+
import { IEmitterBehavior, BehaviorOrder } from './Behaviors';
|
|
3
|
+
import { BehaviorEditorConfig } from './editor/Types';
|
|
4
|
+
/**
|
|
5
|
+
* A Movement behavior that handles movement by applying a constant acceleration to all particles.
|
|
6
|
+
*
|
|
7
|
+
* Example configuration:
|
|
8
|
+
* ```javascript
|
|
9
|
+
* {
|
|
10
|
+
* "type": "moveAcceleration",
|
|
11
|
+
* "config": {
|
|
12
|
+
* "accel": {
|
|
13
|
+
* "x": 0,
|
|
14
|
+
* "y": 2000
|
|
15
|
+
* },
|
|
16
|
+
* "minStart": 600,
|
|
17
|
+
* "maxStart": 600,
|
|
18
|
+
* "rotate": true
|
|
19
|
+
* }
|
|
20
|
+
*}
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
export declare class AccelerationBehavior implements IEmitterBehavior {
|
|
24
|
+
static type: string;
|
|
25
|
+
static editorConfig: BehaviorEditorConfig;
|
|
26
|
+
order: BehaviorOrder;
|
|
27
|
+
private minStart;
|
|
28
|
+
private maxStart;
|
|
29
|
+
private accel;
|
|
30
|
+
private rotate;
|
|
31
|
+
private maxSpeed;
|
|
32
|
+
constructor(config: {
|
|
33
|
+
/**
|
|
34
|
+
* Minimum speed when initializing the particle, in world units/second.
|
|
35
|
+
*/
|
|
36
|
+
minStart: number;
|
|
37
|
+
/**
|
|
38
|
+
* Maximum speed when initializing the particle. in world units/second.
|
|
39
|
+
*/
|
|
40
|
+
maxStart: number;
|
|
41
|
+
/**
|
|
42
|
+
* Constant acceleration, in the coordinate space of the particle parent, in world units/second.
|
|
43
|
+
*/
|
|
44
|
+
accel: {
|
|
45
|
+
x: number;
|
|
46
|
+
y: number;
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* Rotate the particle with its direction of movement.
|
|
50
|
+
* While initial movement direction reacts to rotation settings, this overrides any dynamic rotation.
|
|
51
|
+
* Defaults to false.
|
|
52
|
+
*/
|
|
53
|
+
rotate?: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* Maximum linear speed. 0 is unlimited. Defaults to 0.
|
|
56
|
+
*/
|
|
57
|
+
maxSpeed?: number;
|
|
58
|
+
});
|
|
59
|
+
initParticles(first: Particle): void;
|
|
60
|
+
updateParticle(particle: Particle, deltaSec: number): void;
|
|
61
|
+
}
|
|
62
|
+
//# sourceMappingURL=AccelerationMovement.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AccelerationMovement.d.ts","sourceRoot":"","sources":["../../../particle/behaviors/AccelerationMovement.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAEtD;;;;;;;;;;;;;;;;;;GAkBG;AACH,qBAAa,oBAAqB,YAAW,gBAAgB;IAC3D,OAAc,IAAI,SAAsB;IACxC,OAAc,YAAY,EAAE,oBAAoB,CAAe;IAIxD,KAAK,gBAAsB;IAClC,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,KAAK,CAA2B;IACxC,OAAO,CAAC,MAAM,CAAU;IACxB,OAAO,CAAC,QAAQ,CAAS;gBACb,MAAM,EAAE;QAClB;;WAEG;QACH,QAAQ,EAAE,MAAM,CAAC;QACjB;;WAEG;QACH,QAAQ,EAAE,MAAM,CAAC;QACjB;;WAEG;QACH,KAAK,EAAE;YAAE,CAAC,EAAE,MAAM,CAAC;YAAC,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC;QAChC;;;;WAIG;QACH,MAAM,CAAC,EAAE,OAAO,CAAC;QACjB;;WAEG;QACH,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB;IAQD,aAAa,CAAC,KAAK,EAAE,QAAQ,GAAG,IAAI;IAkBpC,cAAc,CAAC,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI;CAuB3D"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { Particle } from '../Particle';
|
|
2
|
+
import { ValueList } from '../PropertyNode';
|
|
3
|
+
import { IEmitterBehavior, BehaviorOrder } from './Behaviors';
|
|
4
|
+
import { BehaviorEditorConfig } from './editor/Types';
|
|
5
|
+
/**
|
|
6
|
+
* An Alpha behavior that applies an interpolated or stepped list of values to the particle's opacity.
|
|
7
|
+
*
|
|
8
|
+
* Example config:
|
|
9
|
+
* ```javascript
|
|
10
|
+
* {
|
|
11
|
+
* type: 'alpha',
|
|
12
|
+
* config: {
|
|
13
|
+
* alpha: {
|
|
14
|
+
* list: [{value: 0, time: 0}, {value: 1, time: 0.25}, {value: 0, time: 1}]
|
|
15
|
+
* },
|
|
16
|
+
* }
|
|
17
|
+
* }
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
export declare class AlphaBehavior implements IEmitterBehavior {
|
|
21
|
+
static type: string;
|
|
22
|
+
static editorConfig: BehaviorEditorConfig;
|
|
23
|
+
order: BehaviorOrder;
|
|
24
|
+
private list;
|
|
25
|
+
constructor(config: {
|
|
26
|
+
/**
|
|
27
|
+
* Transparency of the particles from 0 (transparent) to 1 (opaque)
|
|
28
|
+
*/
|
|
29
|
+
alpha: ValueList<number>;
|
|
30
|
+
});
|
|
31
|
+
initParticles(first: Particle): void;
|
|
32
|
+
updateParticle(particle: Particle): void;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* An Alpha behavior that applies a static value to the particle's opacity at particle initialization.
|
|
36
|
+
*
|
|
37
|
+
* Example config:
|
|
38
|
+
* ```javascript
|
|
39
|
+
* {
|
|
40
|
+
* type: 'alphaStatic',
|
|
41
|
+
* config: {
|
|
42
|
+
* alpha: 0.75,
|
|
43
|
+
* }
|
|
44
|
+
* }
|
|
45
|
+
* ```
|
|
46
|
+
*/
|
|
47
|
+
export declare class StaticAlphaBehavior implements IEmitterBehavior {
|
|
48
|
+
static type: string;
|
|
49
|
+
static editorConfig: BehaviorEditorConfig;
|
|
50
|
+
order: BehaviorOrder;
|
|
51
|
+
private value;
|
|
52
|
+
constructor(config: {
|
|
53
|
+
/**
|
|
54
|
+
* Transparency of the particles from 0 (transparent) to 1 (opaque)
|
|
55
|
+
*/
|
|
56
|
+
alpha: number;
|
|
57
|
+
});
|
|
58
|
+
initParticles(first: Particle): void;
|
|
59
|
+
}
|
|
60
|
+
//# sourceMappingURL=Alpha.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Alpha.d.ts","sourceRoot":"","sources":["../../../particle/behaviors/Alpha.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,OAAO,EAAgB,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAEtD;;;;;;;;;;;;;;GAcG;AACH,qBAAa,aAAc,YAAW,gBAAgB;IAClD,OAAc,IAAI,SAAW;IAC7B,OAAc,YAAY,EAAE,oBAAoB,CAAe;IAExD,KAAK,gBAAwB;IACpC,OAAO,CAAC,IAAI,CAAuB;gBACvB,MAAM,EAAE;QAChB;;WAEG;QACH,KAAK,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC;KAC5B;IAKD,aAAa,CAAC,KAAK,EAAE,QAAQ,GAAG,IAAI;IASpC,cAAc,CAAC,QAAQ,EAAE,QAAQ,GAAG,IAAI;CAG3C;AAED;;;;;;;;;;;;GAYG;AACH,qBAAa,mBAAoB,YAAW,gBAAgB;IACxD,OAAc,IAAI,SAAiB;IACnC,OAAc,YAAY,EAAE,oBAAoB,CAAe;IAExD,KAAK,gBAAwB;IACpC,OAAO,CAAC,KAAK,CAAS;gBACV,MAAM,EAAE;QAChB;;WAEG;QACH,KAAK,EAAE,MAAM,CAAC;KACjB;IAID,aAAa,CAAC,KAAK,EAAE,QAAQ,GAAG,IAAI;CAQvC"}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { Particle } from '../Particle';
|
|
2
|
+
import { IEmitterBehavior, BehaviorOrder } from './Behaviors';
|
|
3
|
+
import { Texture } from 'pixi.js';
|
|
4
|
+
import { BehaviorEditorConfig } from './editor/Types';
|
|
5
|
+
/**
|
|
6
|
+
* The format of a single animation to be used on a particle.
|
|
7
|
+
*/
|
|
8
|
+
export interface AnimatedParticleArt {
|
|
9
|
+
/**
|
|
10
|
+
* Framerate for the animation (in frames per second). A value of -1 will tie the framerate to
|
|
11
|
+
* the particle's lifetime so that the animation lasts exactly as long as the particle.
|
|
12
|
+
*/
|
|
13
|
+
framerate: -1 | number;
|
|
14
|
+
/**
|
|
15
|
+
* If the animation should loop. Defaults to false.
|
|
16
|
+
*/
|
|
17
|
+
loop?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* A list of textures or frame descriptions for duplicated frames.
|
|
20
|
+
* String values will be converted to textures with {@link ParticleUtils.GetTextureFromString}.
|
|
21
|
+
* Example of a texture repeated for 5 frames, followed by a second texture for one frame:
|
|
22
|
+
* ```javascript
|
|
23
|
+
* [{texture: 'myFirstTex', count: 5}, 'mySecondTex']
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
textures: (string | Texture | {
|
|
27
|
+
texture: string | Texture;
|
|
28
|
+
count: number;
|
|
29
|
+
})[];
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Internal data format for playback.
|
|
33
|
+
*/
|
|
34
|
+
export interface ParsedAnimatedParticleArt {
|
|
35
|
+
textures: Texture[];
|
|
36
|
+
duration: number;
|
|
37
|
+
framerate: number;
|
|
38
|
+
loop: boolean;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* A Texture behavior that picks a random animation for each particle to play.
|
|
42
|
+
* See {@link AnimatedParticleArt} for detailed configuration info.
|
|
43
|
+
*
|
|
44
|
+
* Example config:
|
|
45
|
+
* ```javascript
|
|
46
|
+
* {
|
|
47
|
+
* type: 'animatedRandom',
|
|
48
|
+
* config: {
|
|
49
|
+
* anims: [
|
|
50
|
+
* {
|
|
51
|
+
* framerate: 25,
|
|
52
|
+
* loop: true,
|
|
53
|
+
* textures: ['frame1', 'frame2', 'frame3']
|
|
54
|
+
* },
|
|
55
|
+
* {
|
|
56
|
+
* framerate: 25,
|
|
57
|
+
* loop: true,
|
|
58
|
+
* textures: ['frame3', 'frame2', 'frame1']
|
|
59
|
+
* }
|
|
60
|
+
* ],
|
|
61
|
+
* }
|
|
62
|
+
* }
|
|
63
|
+
* ```
|
|
64
|
+
*/
|
|
65
|
+
export declare class RandomAnimatedTextureBehavior implements IEmitterBehavior {
|
|
66
|
+
static type: string;
|
|
67
|
+
static editorConfig: BehaviorEditorConfig;
|
|
68
|
+
order: BehaviorOrder;
|
|
69
|
+
private anims;
|
|
70
|
+
constructor(config: {
|
|
71
|
+
/**
|
|
72
|
+
* Animation configuration to use for each particle, randomly chosen from the list.
|
|
73
|
+
*/
|
|
74
|
+
anims: AnimatedParticleArt[];
|
|
75
|
+
});
|
|
76
|
+
initParticles(first: Particle): void;
|
|
77
|
+
updateParticle(particle: Particle, deltaSec: number): void;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* A Texture behavior that uses a single animation for each particle to play.
|
|
81
|
+
* See {@link AnimatedParticleArt} for detailed configuration info.
|
|
82
|
+
*
|
|
83
|
+
* Example config:
|
|
84
|
+
* ```javascript
|
|
85
|
+
* {
|
|
86
|
+
* type: 'animatedSingle',
|
|
87
|
+
* config: {
|
|
88
|
+
* anim: {
|
|
89
|
+
* framerate: 25,
|
|
90
|
+
* loop: true,
|
|
91
|
+
* textures: ['frame1', 'frame2', 'frame3']
|
|
92
|
+
* }
|
|
93
|
+
* }
|
|
94
|
+
* }
|
|
95
|
+
* ```
|
|
96
|
+
*/
|
|
97
|
+
export declare class SingleAnimatedTextureBehavior implements IEmitterBehavior {
|
|
98
|
+
static type: string;
|
|
99
|
+
static editorConfig: BehaviorEditorConfig;
|
|
100
|
+
order: BehaviorOrder;
|
|
101
|
+
private anim;
|
|
102
|
+
constructor(config: {
|
|
103
|
+
/**
|
|
104
|
+
* Animation configuration to use for each particle.
|
|
105
|
+
*/
|
|
106
|
+
anim: AnimatedParticleArt;
|
|
107
|
+
});
|
|
108
|
+
initParticles(first: Particle): void;
|
|
109
|
+
updateParticle(particle: Particle, deltaSec: number): void;
|
|
110
|
+
}
|
|
111
|
+
//# sourceMappingURL=AnimatedTexture.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AnimatedTexture.d.ts","sourceRoot":"","sources":["../../../particle/behaviors/AnimatedTexture.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE9D,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAEtD;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAChC;;;OAGG;IACH,SAAS,EAAE,CAAC,CAAC,GAAG,MAAM,CAAC;IACvB;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;;;;;;OAOG;IACH,QAAQ,EAAE,CAAC,MAAM,GAAG,OAAO,GAAG;QAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,EAAE,CAAC;CACjF;AAED;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACtC,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,OAAO,CAAC;CACjB;AAkCD;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,qBAAa,6BAA8B,YAAW,gBAAgB;IAClE,OAAc,IAAI,SAAoB;IACtC,OAAc,YAAY,EAAE,oBAAoB,CAAe;IAExD,KAAK,gBAAwB;IACpC,OAAO,CAAC,KAAK,CAA8B;gBAC/B,MAAM,EAAE;QAChB;;WAEG;QACH,KAAK,EAAE,mBAAmB,EAAE,CAAC;KAChC;IAkBD,aAAa,CAAC,KAAK,EAAE,QAAQ,GAAG,IAAI;IAuBpC,cAAc,CAAC,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI;CAsB7D;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,qBAAa,6BAA8B,YAAW,gBAAgB;IAClE,OAAc,IAAI,SAAoB;IACtC,OAAc,YAAY,EAAE,oBAAoB,CAAe;IAExD,KAAK,gBAAwB;IACpC,OAAO,CAAC,IAAI,CAA4B;gBAC5B,MAAM,EAAE;QAChB;;WAEG;QACH,IAAI,EAAE,mBAAmB,CAAC;KAC7B;IAcD,aAAa,CAAC,KAAK,EAAE,QAAQ,GAAG,IAAI;IAqBpC,cAAc,CAAC,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI;CAsB7D"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { Particle } from '../Particle';
|
|
2
|
+
import { BehaviorEditorConfig } from './editor/Types';
|
|
3
|
+
/**
|
|
4
|
+
* All behaviors instances must implement this interface, and the class must match the
|
|
5
|
+
* {@link IEmitterBehaviorClass} interface. All behaviors must have an order property and
|
|
6
|
+
* `initParticles` method. Implementing the `updateParticle` or `recycleParticle` methods is optional.
|
|
7
|
+
*/
|
|
8
|
+
export interface IEmitterBehavior {
|
|
9
|
+
/**
|
|
10
|
+
* Order in which the behavior will be handled. Lower numbers are handled earlier, with an order of 0 getting
|
|
11
|
+
* special treatment before the Emitter's transformation is applied.
|
|
12
|
+
*/
|
|
13
|
+
order: number;
|
|
14
|
+
/**
|
|
15
|
+
* Called to initialize a wave of particles, with a reference to the first particle in the linked list.
|
|
16
|
+
* @param first The first (maybe only) particle in a newly spawned wave of particles.
|
|
17
|
+
*/
|
|
18
|
+
initParticles(first: Particle): void;
|
|
19
|
+
/**
|
|
20
|
+
* Updates a single particle for a given period of time elapsed. Return `true` to recycle the particle.
|
|
21
|
+
* @param particle The particle to update.
|
|
22
|
+
* @param deltaSec The time to advance the particle by in seconds.
|
|
23
|
+
*/
|
|
24
|
+
updateParticle?(particle: Particle, deltaSec: number): void | boolean;
|
|
25
|
+
/**
|
|
26
|
+
* A hook for when a particle is recycled.
|
|
27
|
+
* @param particle The particle that was just recycled.
|
|
28
|
+
* @param natural `true` if the reycling was due to natural lifecycle, `false` if it was due to emitter cleanup.
|
|
29
|
+
*/
|
|
30
|
+
recycleParticle?(particle: Particle, natural: boolean): void;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* All behavior classes must match this interface. The instances need to implement the {@link IEmitterBehavior} interface.
|
|
34
|
+
*/
|
|
35
|
+
export interface IEmitterBehaviorClass {
|
|
36
|
+
/**
|
|
37
|
+
* The unique type name that the behavior is registered under.
|
|
38
|
+
*/
|
|
39
|
+
type: string;
|
|
40
|
+
/**
|
|
41
|
+
* Configuration data for an editor to display this behavior. Does not need to exist in production code.
|
|
42
|
+
*/
|
|
43
|
+
editorConfig?: BehaviorEditorConfig;
|
|
44
|
+
/**
|
|
45
|
+
* The behavior constructor itself.
|
|
46
|
+
* @param config The config for the behavior, which should match its defined specifications.
|
|
47
|
+
*/
|
|
48
|
+
new (config: any): IEmitterBehavior;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Standard behavior order values, specifying when/how they are used. Other numeric values can be used,
|
|
52
|
+
* but only the Spawn value will be handled in a special way. All other values will be sorted numerically.
|
|
53
|
+
* Behaviors with the same value will not be given any specific sort order, as they are assumed to not
|
|
54
|
+
* interfere with each other.
|
|
55
|
+
*/
|
|
56
|
+
export declare enum BehaviorOrder {
|
|
57
|
+
/**
|
|
58
|
+
* Spawn - initial placement and/or rotation. This happens before rotation/translation due to
|
|
59
|
+
* emitter rotation/position is applied.
|
|
60
|
+
*/
|
|
61
|
+
Spawn = 0,
|
|
62
|
+
/**
|
|
63
|
+
* Normal priority, for things that don't matter when they are applied.
|
|
64
|
+
*/
|
|
65
|
+
Normal = 2,
|
|
66
|
+
/**
|
|
67
|
+
* Delayed priority, for things that need to read other values in order to act correctly.
|
|
68
|
+
*/
|
|
69
|
+
Late = 5
|
|
70
|
+
}
|
|
71
|
+
//# sourceMappingURL=Behaviors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Behaviors.d.ts","sourceRoot":"","sources":["../../../particle/behaviors/Behaviors.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAEtD;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC7B;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,aAAa,CAAC,KAAK,EAAE,QAAQ,GAAG,IAAI,CAAC;IACrC;;;;OAIG;IACH,cAAc,CAAC,CAAC,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,GAAG,OAAO,CAAC;IACtE;;;;OAIG;IACH,eAAe,CAAC,CAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,IAAI,CAAC;CAChE;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IAClC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,YAAY,CAAC,EAAE,oBAAoB,CAAC;IACpC;;;OAGG;IACH,KAAI,MAAM,EAAE,GAAG,GAAG,gBAAgB,CAAC;CACtC;AAED;;;;;GAKG;AACH,oBAAY,aAAa;IACrB;;;OAGG;IACH,KAAK,IAAI;IACT;;OAEG;IACH,MAAM,IAAI;IACV;;OAEG;IACH,IAAI,IAAI;CACX"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Particle } from '../Particle';
|
|
2
|
+
import { IEmitterBehavior, BehaviorOrder } from './Behaviors';
|
|
3
|
+
import { BehaviorEditorConfig } from './editor/Types';
|
|
4
|
+
/**
|
|
5
|
+
* A Blend Mode behavior that applies a blend mode value to the particle at initialization.
|
|
6
|
+
*
|
|
7
|
+
* Example config:
|
|
8
|
+
* ```javascript
|
|
9
|
+
* {
|
|
10
|
+
* type: 'blendMode',
|
|
11
|
+
* config: {
|
|
12
|
+
* blendMode: 'multiply',
|
|
13
|
+
* }
|
|
14
|
+
* }
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
export declare class BlendModeBehavior implements IEmitterBehavior {
|
|
18
|
+
static type: string;
|
|
19
|
+
static editorConfig: BehaviorEditorConfig;
|
|
20
|
+
order: BehaviorOrder;
|
|
21
|
+
private value;
|
|
22
|
+
constructor(config: {
|
|
23
|
+
/**
|
|
24
|
+
* Blend mode of all particles. This value is a key from
|
|
25
|
+
* [PixiJs's BLEND_MODE enum](https://pixijs.download/release/docs/PIXI.html#BLEND_MODES).
|
|
26
|
+
*/
|
|
27
|
+
blendMode: string;
|
|
28
|
+
});
|
|
29
|
+
initParticles(first: Particle): void;
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=BlendMode.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BlendMode.d.ts","sourceRoot":"","sources":["../../../particle/behaviors/BlendMode.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAEtD;;;;;;;;;;;;GAYG;AACH,qBAAa,iBAAkB,YAAW,gBAAgB;IACtD,OAAc,IAAI,SAAe;IACjC,OAAc,YAAY,EAAE,oBAAoB,CAAe;IAExD,KAAK,gBAAwB;IACpC,OAAO,CAAC,KAAK,CAAS;gBACV,MAAM,EAAE;QAChB;;;WAGG;QACH,SAAS,EAAE,MAAM,CAAC;KACrB;IAID,aAAa,CAAC,KAAK,EAAE,QAAQ,GAAG,IAAI;CAQvC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { Particle } from '../Particle';
|
|
2
|
+
import { IEmitterBehavior, BehaviorOrder } from './Behaviors';
|
|
3
|
+
import { BehaviorEditorConfig } from './editor/Types';
|
|
4
|
+
/**
|
|
5
|
+
* A Spawn behavior that sends particles out from a single point or ring, and is capable of evenly spacing
|
|
6
|
+
* the particle's starting angles.
|
|
7
|
+
*
|
|
8
|
+
* Example config:
|
|
9
|
+
* ```javascript
|
|
10
|
+
* {
|
|
11
|
+
* type: 'spawnBurst',
|
|
12
|
+
* config: {
|
|
13
|
+
* spacing: 90,
|
|
14
|
+
* start: 0,
|
|
15
|
+
* distance: 40,
|
|
16
|
+
* }
|
|
17
|
+
* }
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
export declare class BurstSpawnBehavior implements IEmitterBehavior {
|
|
21
|
+
static type: string;
|
|
22
|
+
static editorConfig: BehaviorEditorConfig;
|
|
23
|
+
order: BehaviorOrder;
|
|
24
|
+
private spacing;
|
|
25
|
+
private start;
|
|
26
|
+
private distance;
|
|
27
|
+
constructor(config: {
|
|
28
|
+
/**
|
|
29
|
+
* Description: Spacing between each particle spawned in a wave, in degrees.
|
|
30
|
+
*/
|
|
31
|
+
spacing: number;
|
|
32
|
+
/**
|
|
33
|
+
* Description: Angle to start placing particles at, in degrees. 0 is facing right, 90 is facing upwards.
|
|
34
|
+
*/
|
|
35
|
+
start: number;
|
|
36
|
+
/**
|
|
37
|
+
* Description: Distance from the emitter to spawn particles, forming a ring/arc.
|
|
38
|
+
*/
|
|
39
|
+
distance: number;
|
|
40
|
+
});
|
|
41
|
+
initParticles(first: Particle): void;
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=BurstSpawn.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BurstSpawn.d.ts","sourceRoot":"","sources":["../../../particle/behaviors/BurstSpawn.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAEtD;;;;;;;;;;;;;;;GAeG;AACH,qBAAa,kBAAmB,YAAW,gBAAgB;IACvD,OAAc,IAAI,SAAgB;IAClC,OAAc,YAAY,EAAE,oBAAoB,CAAe;IAE/D,KAAK,gBAAuB;IAC5B,OAAO,CAAC,OAAO,CAAS;IACxB,OAAO,CAAC,KAAK,CAAS;IACtB,OAAO,CAAC,QAAQ,CAAS;gBAEb,MAAM,EAAE;QAChB;;WAEG;QACH,OAAO,EAAE,MAAM,CAAC;QAChB;;WAEG;QACH,KAAK,EAAE,MAAM,CAAC;QACd;;WAEG;QACH,QAAQ,EAAE,MAAM,CAAC;KACpB;IAMD,aAAa,CAAC,KAAK,EAAE,QAAQ,GAAG,IAAI;CAuBvC"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { Particle } from '../Particle';
|
|
2
|
+
import { ValueList } from '../PropertyNode';
|
|
3
|
+
import { IEmitterBehavior, BehaviorOrder } from './Behaviors';
|
|
4
|
+
import { BehaviorEditorConfig } from './editor/Types';
|
|
5
|
+
/**
|
|
6
|
+
* A Color behavior that applies an interpolated or stepped list of values to the particle's tint property.
|
|
7
|
+
*
|
|
8
|
+
* Example config:
|
|
9
|
+
* ```javascript
|
|
10
|
+
* {
|
|
11
|
+
* type: 'color',
|
|
12
|
+
* config: {
|
|
13
|
+
* color: {
|
|
14
|
+
* list: [{value: '#ff0000' time: 0}, {value: '#00ff00', time: 0.5}, {value: '#0000ff', time: 1}]
|
|
15
|
+
* },
|
|
16
|
+
* }
|
|
17
|
+
* }
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
export declare class ColorBehavior implements IEmitterBehavior {
|
|
21
|
+
static type: string;
|
|
22
|
+
static editorConfig: BehaviorEditorConfig;
|
|
23
|
+
order: BehaviorOrder;
|
|
24
|
+
private list;
|
|
25
|
+
constructor(config: {
|
|
26
|
+
/**
|
|
27
|
+
* Color of the particles as 6 digit hex codes.
|
|
28
|
+
*/
|
|
29
|
+
color: ValueList<string>;
|
|
30
|
+
});
|
|
31
|
+
initParticles(first: Particle): void;
|
|
32
|
+
updateParticle(particle: Particle): void;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* A Color behavior that applies a single color to the particle's tint property at initialization.
|
|
36
|
+
*
|
|
37
|
+
* Example config:
|
|
38
|
+
* ```javascript
|
|
39
|
+
* {
|
|
40
|
+
* type: 'colorStatic',
|
|
41
|
+
* config: {
|
|
42
|
+
* color: '#ffff00',
|
|
43
|
+
* }
|
|
44
|
+
* }
|
|
45
|
+
* ```
|
|
46
|
+
*/
|
|
47
|
+
export declare class StaticColorBehavior implements IEmitterBehavior {
|
|
48
|
+
static type: string;
|
|
49
|
+
static editorConfig: BehaviorEditorConfig;
|
|
50
|
+
order: BehaviorOrder;
|
|
51
|
+
private value;
|
|
52
|
+
constructor(config: {
|
|
53
|
+
/**
|
|
54
|
+
* Color of the particles as 6 digit hex codes.
|
|
55
|
+
*/
|
|
56
|
+
color: string;
|
|
57
|
+
});
|
|
58
|
+
initParticles(first: Particle): void;
|
|
59
|
+
}
|
|
60
|
+
//# sourceMappingURL=Color.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Color.d.ts","sourceRoot":"","sources":["../../../particle/behaviors/Color.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGvC,OAAO,EAAgB,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAEtD;;;;;;;;;;;;;;GAcG;AACH,qBAAa,aAAc,YAAW,gBAAgB;IAClD,OAAc,IAAI,SAAW;IAC7B,OAAc,YAAY,EAAE,oBAAoB,CAAe;IAExD,KAAK,gBAAwB;IACpC,OAAO,CAAC,IAAI,CAAsB;gBACtB,MAAM,EAAE;QAChB;;WAEG;QACH,KAAK,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC;KAC5B;IAKD,aAAa,CAAC,KAAK,EAAE,QAAQ,GAAG,IAAI;IAWpC,cAAc,CAAC,QAAQ,EAAE,QAAQ,GAAG,IAAI;CAG3C;AAED;;;;;;;;;;;;GAYG;AACH,qBAAa,mBAAoB,YAAW,gBAAgB;IACxD,OAAc,IAAI,SAAiB;IACnC,OAAc,YAAY,EAAE,oBAAoB,CAAe;IAExD,KAAK,gBAAwB;IACpC,OAAO,CAAC,KAAK,CAAS;gBACV,MAAM,EAAE;QAChB;;WAEG;QACH,KAAK,EAAE,MAAM,CAAC;KACjB;IAaD,aAAa,CAAC,KAAK,EAAE,QAAQ,GAAG,IAAI;CAQvC"}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { Particle } from '../Particle';
|
|
2
|
+
import { IEmitterBehavior, BehaviorOrder } from './Behaviors';
|
|
3
|
+
import { Texture } from 'pixi.js';
|
|
4
|
+
import { BehaviorEditorConfig } from './editor/Types';
|
|
5
|
+
/**
|
|
6
|
+
* Animation state configuration for a single state (e.g., 'default', 'splash')
|
|
7
|
+
*/
|
|
8
|
+
export interface AnimationStateConfig {
|
|
9
|
+
/**
|
|
10
|
+
* Framerate for the animation (in frames per second).
|
|
11
|
+
* A value of -1 will tie the framerate to the particle's lifetime.
|
|
12
|
+
*/
|
|
13
|
+
framerate: -1 | number;
|
|
14
|
+
/**
|
|
15
|
+
* If the animation should loop. Defaults to false.
|
|
16
|
+
*/
|
|
17
|
+
loop?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* A list of texture names or Texture objects for this animation state.
|
|
20
|
+
*/
|
|
21
|
+
textures: (string | Texture | {
|
|
22
|
+
texture: string | Texture;
|
|
23
|
+
count: number;
|
|
24
|
+
})[];
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* A set of animation states for a single particle type (e.g., 'symbol1')
|
|
28
|
+
*/
|
|
29
|
+
export interface AnimationSet {
|
|
30
|
+
/**
|
|
31
|
+
* Unique identifier for this animation set (e.g., 'symbol1', 'symbol2')
|
|
32
|
+
*/
|
|
33
|
+
id: string;
|
|
34
|
+
/**
|
|
35
|
+
* Map of state names to animation configurations
|
|
36
|
+
*/
|
|
37
|
+
states: Record<string, AnimationStateConfig>;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Configuration for MultiStateAnimatedTextureBehavior
|
|
41
|
+
*/
|
|
42
|
+
export interface MultiStateAnimatedTextureConfig {
|
|
43
|
+
/**
|
|
44
|
+
* Array of animation sets, one will be randomly chosen per particle
|
|
45
|
+
*/
|
|
46
|
+
sets: AnimationSet[];
|
|
47
|
+
/**
|
|
48
|
+
* Initial state to use when particle spawns. Defaults to 'default'.
|
|
49
|
+
*/
|
|
50
|
+
initialState?: string;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* A Texture behavior that supports multiple animation states per particle.
|
|
54
|
+
* Each particle randomly selects an animation set (e.g., 'symbol1', 'symbol2'),
|
|
55
|
+
* and can switch between states (e.g., 'default', 'splash') at runtime.
|
|
56
|
+
*
|
|
57
|
+
* Example config:
|
|
58
|
+
* ```javascript
|
|
59
|
+
* {
|
|
60
|
+
* type: 'multiStateAnimated',
|
|
61
|
+
* config: {
|
|
62
|
+
* sets: [
|
|
63
|
+
* {
|
|
64
|
+
* id: 'symbol1',
|
|
65
|
+
* states: {
|
|
66
|
+
* default: { framerate: 12, loop: true, textures: ['s1_0', 's1_1', 's1_2'] },
|
|
67
|
+
* splash: { framerate: 24, loop: false, textures: ['s1_splash_0', 's1_splash_1'] }
|
|
68
|
+
* }
|
|
69
|
+
* },
|
|
70
|
+
* {
|
|
71
|
+
* id: 'symbol2',
|
|
72
|
+
* states: {
|
|
73
|
+
* default: { framerate: 12, loop: true, textures: ['s2_0', 's2_1', 's2_2'] },
|
|
74
|
+
* splash: { framerate: 24, loop: false, textures: ['s2_splash_0', 's2_splash_1'] }
|
|
75
|
+
* }
|
|
76
|
+
* }
|
|
77
|
+
* ],
|
|
78
|
+
* initialState: 'default'
|
|
79
|
+
* }
|
|
80
|
+
* }
|
|
81
|
+
* ```
|
|
82
|
+
*
|
|
83
|
+
* To change state at runtime:
|
|
84
|
+
* ```javascript
|
|
85
|
+
* particle.config.setState('splash');
|
|
86
|
+
* ```
|
|
87
|
+
*/
|
|
88
|
+
export declare class MultiStateAnimatedTextureBehavior implements IEmitterBehavior {
|
|
89
|
+
static type: string;
|
|
90
|
+
static editorConfig: BehaviorEditorConfig;
|
|
91
|
+
order: BehaviorOrder;
|
|
92
|
+
private sets;
|
|
93
|
+
private initialState;
|
|
94
|
+
constructor(config: MultiStateAnimatedTextureConfig);
|
|
95
|
+
initParticles(first: Particle): void;
|
|
96
|
+
private applyState;
|
|
97
|
+
updateParticle(particle: Particle, deltaSec: number): void;
|
|
98
|
+
}
|
|
99
|
+
//# sourceMappingURL=MultiStateAnimatedTexture.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MultiStateAnimatedTexture.d.ts","sourceRoot":"","sources":["../../../particle/behaviors/MultiStateAnimatedTexture.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE9D,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAEtD;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC;;;OAGG;IACH,SAAS,EAAE,CAAC,CAAC,GAAG,MAAM,CAAC;IACvB;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;OAEG;IACH,QAAQ,EAAE,CAAC,MAAM,GAAG,OAAO,GAAG;QAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,EAAE,CAAC;CAC/E;AAYD;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAC;CAC9C;AAUD;;GAEG;AACH,MAAM,WAAW,+BAA+B;IAC9C;;OAEG;IACH,IAAI,EAAE,YAAY,EAAE,CAAC;IACrB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AA4CD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,qBAAa,iCAAkC,YAAW,gBAAgB;IACxE,OAAc,IAAI,SAAwB;IAC1C,OAAc,YAAY,EAAE,oBAAoB,CAAe;IAExD,KAAK,gBAAwB;IACpC,OAAO,CAAC,IAAI,CAAuB;IACnC,OAAO,CAAC,YAAY,CAAS;gBAEjB,MAAM,EAAE,+BAA+B;IAkBnD,aAAa,CAAC,KAAK,EAAE,QAAQ,GAAG,IAAI;IA8BpC,OAAO,CAAC,UAAU;IA0BlB,cAAc,CAAC,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI;CAoB3D"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Particle } from '../Particle';
|
|
2
|
+
import { IEmitterBehavior, BehaviorOrder } from './Behaviors';
|
|
3
|
+
import { BehaviorEditorConfig } from './editor/Types';
|
|
4
|
+
import { Texture } from 'pixi.js';
|
|
5
|
+
/**
|
|
6
|
+
* A Texture behavior that assigns a texture to each particle from its list, in order, before looping around to the first
|
|
7
|
+
* texture again. String values will be converted to textures with {@link ParticleUtils.GetTextureFromString}.
|
|
8
|
+
*
|
|
9
|
+
* Example config:
|
|
10
|
+
* ```javascript
|
|
11
|
+
* {
|
|
12
|
+
* type: 'textureOrdered',
|
|
13
|
+
* config: {
|
|
14
|
+
* textures: ["myTex1Id", "myTex2Id", "myTex3Id", "myTex4Id"],
|
|
15
|
+
* }
|
|
16
|
+
* }
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
export declare class OrderedTextureBehavior implements IEmitterBehavior {
|
|
20
|
+
static type: string;
|
|
21
|
+
static editorConfig: BehaviorEditorConfig;
|
|
22
|
+
order: BehaviorOrder;
|
|
23
|
+
private textures;
|
|
24
|
+
private index;
|
|
25
|
+
constructor(config: {
|
|
26
|
+
/**
|
|
27
|
+
* Images to use for each particle, used in order before looping around
|
|
28
|
+
*/
|
|
29
|
+
textures: Texture[];
|
|
30
|
+
});
|
|
31
|
+
initParticles(first: Particle): void;
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=OrderedTexture.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OrderedTexture.d.ts","sourceRoot":"","sources":["../../../particle/behaviors/OrderedTexture.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAElC;;;;;;;;;;;;;GAaG;AACH,qBAAa,sBAAuB,YAAW,gBAAgB;IAC3D,OAAc,IAAI,SAAoB;IACtC,OAAc,YAAY,EAAE,oBAAoB,CAAe;IAExD,KAAK,gBAAwB;IACpC,OAAO,CAAC,QAAQ,CAAY;IAC5B,OAAO,CAAC,KAAK,CAAS;gBACV,MAAM,EAAE;QAChB;;WAEG;QACH,QAAQ,EAAE,OAAO,EAAE,CAAC;KACvB;IAKD,aAAa,CAAC,KAAK,EAAE,QAAQ,GAAG,IAAI;CAWvC"}
|