@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,82 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* RGS Adapter for production use with backend API
|
|
3
|
+
* @module ServicePlugin/Adapters
|
|
4
|
+
*/
|
|
5
|
+
import { ServiceAdapter } from '../ServiceAdapter';
|
|
6
|
+
import { type SessionResponse, type GameplayRequest, type GameplayResponse, type HistoryEntry, type HistoryResponse, type PlatformResponse } from '../types';
|
|
7
|
+
/**
|
|
8
|
+
* RGS Adapter configuration
|
|
9
|
+
*/
|
|
10
|
+
export interface RGSAdapterConfig {
|
|
11
|
+
/** Base URL for the backend API (e.g., 'http://localhost:3000') */
|
|
12
|
+
baseUrl: string;
|
|
13
|
+
/** Session ID for authentication */
|
|
14
|
+
sessionId: string;
|
|
15
|
+
/** Request timeout in milliseconds */
|
|
16
|
+
requestTimeout?: number;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Production RGS adapter for backend API communication
|
|
20
|
+
*
|
|
21
|
+
* This adapter handles HTTP communication with the backend API:
|
|
22
|
+
* - GET /session/{sessionId} - Fetch session and game config
|
|
23
|
+
* - POST /session/{sessionId}/play - Execute spin action
|
|
24
|
+
* - GET /session/{sessionId}/history - Fetch game history
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```typescript
|
|
28
|
+
* const adapter = new RGSAdapter({
|
|
29
|
+
* baseUrl: 'http://localhost:3000',
|
|
30
|
+
* sessionId: 'test-session-123',
|
|
31
|
+
* debug: true,
|
|
32
|
+
* });
|
|
33
|
+
*
|
|
34
|
+
* const session = await adapter.getSession();
|
|
35
|
+
* const spin = await adapter.spin({ action: { type: 'spin', totalBet: 2000 } });
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
38
|
+
export declare class RGSAdapter extends ServiceAdapter {
|
|
39
|
+
private _sessionId;
|
|
40
|
+
private baseUrl;
|
|
41
|
+
private requestTimeout;
|
|
42
|
+
constructor(config: RGSAdapterConfig);
|
|
43
|
+
/**
|
|
44
|
+
* Get the current session ID
|
|
45
|
+
*/
|
|
46
|
+
get sessionId(): string;
|
|
47
|
+
/**
|
|
48
|
+
* Get session info and game configuration
|
|
49
|
+
* GET /session/{sessionId}
|
|
50
|
+
*/
|
|
51
|
+
getSession(): Promise<SessionResponse>;
|
|
52
|
+
/**
|
|
53
|
+
* Execute a gameplay action (spin)
|
|
54
|
+
* POST /session/{sessionId}/play
|
|
55
|
+
*/
|
|
56
|
+
spin(request: GameplayRequest): Promise<GameplayResponse>;
|
|
57
|
+
/**
|
|
58
|
+
* Get game history
|
|
59
|
+
* GET /session/{sessionId}/history
|
|
60
|
+
*/
|
|
61
|
+
getHistory(limit?: number, pointer?: number): Promise<HistoryResponse>;
|
|
62
|
+
/**
|
|
63
|
+
* Get a single round summary by round ID
|
|
64
|
+
* GET /session/{sessionId}/round/{roundId}
|
|
65
|
+
*/
|
|
66
|
+
getRound(roundId: string): Promise<HistoryEntry>;
|
|
67
|
+
/**
|
|
68
|
+
* Get player balance
|
|
69
|
+
* GET /session/{sessionId}/balance
|
|
70
|
+
*/
|
|
71
|
+
getBalance(): Promise<PlatformResponse>;
|
|
72
|
+
/**
|
|
73
|
+
* Replay a completed spin by nonce
|
|
74
|
+
* GET /session/{sessionId}/replay/{nonce}
|
|
75
|
+
*/
|
|
76
|
+
replay(nonce: number): Promise<GameplayResponse>;
|
|
77
|
+
/**
|
|
78
|
+
* Make an HTTP request to the backend API
|
|
79
|
+
*/
|
|
80
|
+
private request;
|
|
81
|
+
}
|
|
82
|
+
//# sourceMappingURL=RGSAdapter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RGSAdapter.d.ts","sourceRoot":"","sources":["../../../../plugins/service/adapters/RGSAdapter.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAEL,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,KAAK,gBAAgB,EAEtB,MAAM,UAAU,CAAC;AAGlB;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,mEAAmE;IACnE,OAAO,EAAE,MAAM,CAAC;IAChB,oCAAoC;IACpC,SAAS,EAAE,MAAM,CAAC;IAClB,sCAAsC;IACtC,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,qBAAa,UAAW,SAAQ,cAAc;IAC5C,OAAO,CAAC,UAAU,CAAS;IAC3B,OAAO,CAAC,OAAO,CAAS;IACxB,OAAO,CAAC,cAAc,CAAS;gBAEnB,MAAM,EAAE,gBAAgB;IAcpC;;OAEG;IACH,IAAW,SAAS,IAAI,MAAM,CAE7B;IAED;;;OAGG;IACU,UAAU,IAAI,OAAO,CAAC,eAAe,CAAC;IAanD;;;OAGG;IACU,IAAI,CAAC,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAYtE;;;OAGG;IACU,UAAU,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC;IAmBnF;;;OAGG;IACU,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC;IAc7D;;;OAGG;IACU,UAAU,IAAI,OAAO,CAAC,gBAAgB,CAAC;IAYpD;;;OAGG;IACU,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAY7D;;OAEG;YACW,OAAO;CAwFtB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../plugins/service/adapters/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface ResolvePublicIpOptions {
|
|
2
|
+
configIp?: string;
|
|
3
|
+
queryParams?: URLSearchParams;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* Resolves the client's public IP for dev session creation.
|
|
7
|
+
* Priority: ?clientIP= / ?ip= query param → config override → ipify.org lookup.
|
|
8
|
+
*/
|
|
9
|
+
export declare function resolvePublicIp(options?: ResolvePublicIpOptions): Promise<string>;
|
|
10
|
+
//# sourceMappingURL=resolvePublicIp.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolvePublicIp.d.ts","sourceRoot":"","sources":["../../../../plugins/service/adapters/resolvePublicIp.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,eAAe,CAAC;CAC/B;AAED;;;GAGG;AACH,wBAAsB,eAAe,CAAC,OAAO,GAAE,sBAA2B,GAAG,OAAO,CAAC,MAAM,CAAC,CAyC3F"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Service plugin for backend API communication
|
|
3
|
+
* @module ServicePlugin
|
|
4
|
+
*/
|
|
5
|
+
export * from './ServicePlugin';
|
|
6
|
+
export * from './ServiceAdapter';
|
|
7
|
+
export * from './adapters';
|
|
8
|
+
export * from './types';
|
|
9
|
+
export * from './ServicePlugin.types';
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../plugins/service/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,299 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Backend API Type Definitions
|
|
3
|
+
* Based on Swagger API at /api-json
|
|
4
|
+
* @module ServicePlugin/Types
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Session state enum
|
|
8
|
+
*/
|
|
9
|
+
export type SessionState = 'ready' | 'processing' | 'finished';
|
|
10
|
+
/**
|
|
11
|
+
* Symbol type enum
|
|
12
|
+
*/
|
|
13
|
+
export type SymbolType = 'regular' | 'wild' | 'scatter' | 'bonus' | 'cluster';
|
|
14
|
+
/**
|
|
15
|
+
* Win model type
|
|
16
|
+
*/
|
|
17
|
+
export type WinModel = 'cluster' | 'line' | 'ways';
|
|
18
|
+
/**
|
|
19
|
+
* Game state type
|
|
20
|
+
*/
|
|
21
|
+
export type GameStateType = 'basic' | 'bonus';
|
|
22
|
+
/**
|
|
23
|
+
* Symbol definition
|
|
24
|
+
*/
|
|
25
|
+
export interface SymbolDefinition {
|
|
26
|
+
id: number;
|
|
27
|
+
name: string;
|
|
28
|
+
type: SymbolType;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Board configuration
|
|
32
|
+
*/
|
|
33
|
+
export interface BoardConfig {
|
|
34
|
+
reels: number;
|
|
35
|
+
rows: number;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Payout entry for a specific count
|
|
39
|
+
*/
|
|
40
|
+
export interface PayoutEntry {
|
|
41
|
+
count: number;
|
|
42
|
+
value: number;
|
|
43
|
+
andMore?: boolean;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Symbol payout configuration
|
|
47
|
+
*/
|
|
48
|
+
export interface SymbolPayout {
|
|
49
|
+
symbolId: number;
|
|
50
|
+
payouts: PayoutEntry[];
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Cluster paytable configuration
|
|
54
|
+
*/
|
|
55
|
+
export interface ClusterPaytable {
|
|
56
|
+
minCount: number;
|
|
57
|
+
decimalBase: number;
|
|
58
|
+
payouts: SymbolPayout[];
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Paytable configuration
|
|
62
|
+
*/
|
|
63
|
+
export interface PaytableConfig {
|
|
64
|
+
cluster?: ClusterPaytable;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Free spins award entry
|
|
68
|
+
*/
|
|
69
|
+
export interface FreeSpinsAward {
|
|
70
|
+
count: number;
|
|
71
|
+
spins: number;
|
|
72
|
+
andMore?: boolean;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Free spins configuration
|
|
76
|
+
*/
|
|
77
|
+
export interface FreeSpinsConfig {
|
|
78
|
+
awards: FreeSpinsAward[];
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* buy bonus configuration
|
|
82
|
+
*/
|
|
83
|
+
export interface GameActions {
|
|
84
|
+
type: string;
|
|
85
|
+
totalBetMultiplier: number;
|
|
86
|
+
count?: number;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Complete game configuration from backend
|
|
90
|
+
*/
|
|
91
|
+
export interface GameConfig {
|
|
92
|
+
winModel: WinModel;
|
|
93
|
+
spinCost: number;
|
|
94
|
+
betMultipliers: BetMultiplierDefinition[];
|
|
95
|
+
board: BoardConfig;
|
|
96
|
+
symbols: SymbolDefinition[];
|
|
97
|
+
reels: number[][];
|
|
98
|
+
paytable: PaytableConfig;
|
|
99
|
+
freeSpins: FreeSpinsConfig;
|
|
100
|
+
actions: GameActions[];
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Basic game state
|
|
104
|
+
*/
|
|
105
|
+
export interface BasicGameState {
|
|
106
|
+
state: 'basic';
|
|
107
|
+
totalWin?: number;
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Bonus game state (active freespin round)
|
|
111
|
+
*/
|
|
112
|
+
export interface BonusGameState {
|
|
113
|
+
state: 'bonus';
|
|
114
|
+
bonusOrigin: 'spin' | 'buy-bonus' | 'buy-super-bonus';
|
|
115
|
+
remainingFreespins: number;
|
|
116
|
+
usedFreespins: number;
|
|
117
|
+
totalFreespins: number;
|
|
118
|
+
bet: number;
|
|
119
|
+
totalWin: number;
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Bonus ended game state (carries summary until next spin)
|
|
123
|
+
*/
|
|
124
|
+
export interface BonusEndedGameState {
|
|
125
|
+
state: 'bonus_ended';
|
|
126
|
+
bonusOrigin: 'spin' | 'buy-bonus' | 'buy-super-bonus';
|
|
127
|
+
usedFreespins: number;
|
|
128
|
+
totalFreespins: number;
|
|
129
|
+
bet: number;
|
|
130
|
+
totalWin: number;
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* Game state union type
|
|
134
|
+
*/
|
|
135
|
+
export type GameState = BasicGameState | BonusGameState | BonusEndedGameState;
|
|
136
|
+
/**
|
|
137
|
+
* Session response from GET /session
|
|
138
|
+
*/
|
|
139
|
+
export interface SessionResponse {
|
|
140
|
+
sessionId: string;
|
|
141
|
+
state: SessionState;
|
|
142
|
+
nonce: number;
|
|
143
|
+
serverSeedCommit: string;
|
|
144
|
+
gameState: GameState;
|
|
145
|
+
currentRoundId?: string | null;
|
|
146
|
+
gameConfig: GameConfig;
|
|
147
|
+
platform: PlatformResponse;
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* Spin action request
|
|
151
|
+
*/
|
|
152
|
+
export interface SpinAction {
|
|
153
|
+
type: string;
|
|
154
|
+
totalBet: number;
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* Gameplay request body
|
|
158
|
+
*/
|
|
159
|
+
export interface GameplayRequest {
|
|
160
|
+
action: SpinAction;
|
|
161
|
+
clientSeed?: string;
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* Platform response (balance info)
|
|
165
|
+
*/
|
|
166
|
+
export interface PlatformResponse {
|
|
167
|
+
balanceMinor: number;
|
|
168
|
+
currency: string;
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* Bet multiplier response
|
|
172
|
+
*/
|
|
173
|
+
export type BetMultiplierDefinition = number;
|
|
174
|
+
/**
|
|
175
|
+
* Cluster win information
|
|
176
|
+
*/
|
|
177
|
+
export interface ClusterWin {
|
|
178
|
+
id: number;
|
|
179
|
+
symbol: number;
|
|
180
|
+
size: number;
|
|
181
|
+
multiplier: number;
|
|
182
|
+
payout: number;
|
|
183
|
+
cells: number[];
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
* Scatter win information (temporary frontend implementation)
|
|
187
|
+
*/
|
|
188
|
+
export interface ScatterWin {
|
|
189
|
+
symbol: number;
|
|
190
|
+
count: number;
|
|
191
|
+
cells: number[];
|
|
192
|
+
}
|
|
193
|
+
/**
|
|
194
|
+
* Cluster mutation (one cascade step)
|
|
195
|
+
*/
|
|
196
|
+
export interface ClusterMutation {
|
|
197
|
+
generationId: number;
|
|
198
|
+
board: number[];
|
|
199
|
+
cellMultipliers: number[];
|
|
200
|
+
hitCounts?: number[];
|
|
201
|
+
win: number;
|
|
202
|
+
clusters: ClusterWin[];
|
|
203
|
+
scatters?: ScatterWin;
|
|
204
|
+
}
|
|
205
|
+
/**
|
|
206
|
+
* Gameplay action result payload
|
|
207
|
+
*/
|
|
208
|
+
export interface GameplayPayload {
|
|
209
|
+
type?: 'spin-result';
|
|
210
|
+
mutations: ClusterMutation[];
|
|
211
|
+
}
|
|
212
|
+
/**
|
|
213
|
+
* Game state info for basic/bonus transitions
|
|
214
|
+
*/
|
|
215
|
+
export interface GameStateInfo {
|
|
216
|
+
state: 'basic' | 'bonus' | 'bonus_ended';
|
|
217
|
+
bonusOrigin?: string;
|
|
218
|
+
remainingFreespins?: number;
|
|
219
|
+
usedFreespins?: number;
|
|
220
|
+
totalFreespins?: number;
|
|
221
|
+
bet?: number;
|
|
222
|
+
totalWin?: number;
|
|
223
|
+
}
|
|
224
|
+
/**
|
|
225
|
+
* Gameplay response from POST /gameplay
|
|
226
|
+
*/
|
|
227
|
+
export interface GameplayResponse {
|
|
228
|
+
type: 'finished';
|
|
229
|
+
action: string;
|
|
230
|
+
sessionId: string;
|
|
231
|
+
roundId: string;
|
|
232
|
+
roundStartNonce?: number;
|
|
233
|
+
totalBet: number;
|
|
234
|
+
winAmount: number;
|
|
235
|
+
actionCost: number;
|
|
236
|
+
actionResult: GameplayPayload;
|
|
237
|
+
/** @deprecated Prefer `state` / `previousState` — not always present on play responses */
|
|
238
|
+
gameState?: GameState;
|
|
239
|
+
previousState?: GameStateInfo;
|
|
240
|
+
state?: GameStateInfo;
|
|
241
|
+
usedNonce: number;
|
|
242
|
+
nextNonce: number;
|
|
243
|
+
platform: PlatformResponse;
|
|
244
|
+
}
|
|
245
|
+
/**
|
|
246
|
+
* History entry nonce — single action uses a number; multi-action range uses start/end.
|
|
247
|
+
*/
|
|
248
|
+
export type HistoryNonce = number | {
|
|
249
|
+
start: number;
|
|
250
|
+
end: number;
|
|
251
|
+
};
|
|
252
|
+
/**
|
|
253
|
+
* History entry
|
|
254
|
+
*/
|
|
255
|
+
export interface HistoryEntry {
|
|
256
|
+
roundId: string;
|
|
257
|
+
nonce: HistoryNonce;
|
|
258
|
+
action: string;
|
|
259
|
+
totalBet: number;
|
|
260
|
+
winAmount: number;
|
|
261
|
+
timestamp?: number;
|
|
262
|
+
nonces?: number[];
|
|
263
|
+
kind?: 'single' | 'range';
|
|
264
|
+
}
|
|
265
|
+
/**
|
|
266
|
+
* History response from GET /history
|
|
267
|
+
*/
|
|
268
|
+
export interface HistoryResponse {
|
|
269
|
+
entries: HistoryEntry[];
|
|
270
|
+
nextPointer?: number | null;
|
|
271
|
+
}
|
|
272
|
+
/**
|
|
273
|
+
* Service action event types
|
|
274
|
+
*/
|
|
275
|
+
export declare enum ServiceActions {
|
|
276
|
+
SESSION = "service:session",
|
|
277
|
+
GAMEPLAY = "service:gameplay",
|
|
278
|
+
HISTORY = "service:history",
|
|
279
|
+
ERROR = "service:error",
|
|
280
|
+
TIMEOUT = "service:timeout",
|
|
281
|
+
BALANCE_UPDATE = "service:balance"
|
|
282
|
+
}
|
|
283
|
+
/**
|
|
284
|
+
* Service event structure
|
|
285
|
+
*/
|
|
286
|
+
export interface ServiceEvent<T = unknown> {
|
|
287
|
+
target: unknown;
|
|
288
|
+
data: T;
|
|
289
|
+
error?: unknown;
|
|
290
|
+
}
|
|
291
|
+
/**
|
|
292
|
+
* Service error response
|
|
293
|
+
*/
|
|
294
|
+
export interface ServiceError {
|
|
295
|
+
code?: number;
|
|
296
|
+
message?: string;
|
|
297
|
+
error?: string;
|
|
298
|
+
}
|
|
299
|
+
//# sourceMappingURL=api.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api.types.d.ts","sourceRoot":"","sources":["../../../../plugins/service/types/api.types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAMH;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,YAAY,GAAG,UAAU,CAAC;AAE/D;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,CAAC;AAE9E;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,CAAC;AAEnD;;GAEG;AACH,MAAM,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AC3B;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B;AAMD;;GAEG;AACH,oBAAY,cAAc;IACxB,OAAO,oBAAoB;IAC3B,QAAQ,qBAAqB;IAC7B,OAAO,oBAAoB;IAC3B,KAAK,kBAAkB;IACvB,OAAO,oBAAoB;IAC3B,cAAc,oBAAoB;CACnC;AAED;;GAEG;AACH,MAAM,WAAW,YAAY,CAAC,CAAC,GAAG,OAAO;IACvC,MAAM,EAAE,OAAO,CAAC;IAChB,IAAI,EAAE,CAAC,CAAC;IACR,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAMD;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../plugins/service/types/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,aAAa,CAAC"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { EventEmitter } from 'pixi.js';
|
|
2
|
+
/**
|
|
3
|
+
* Interface for skin objects.
|
|
4
|
+
*
|
|
5
|
+
* ISkin provides a contract for theme-based configuration objects that can
|
|
6
|
+
* emit events when themes change or data is injected.
|
|
7
|
+
*
|
|
8
|
+
* @typeParam T - The type of properties this skin manages
|
|
9
|
+
*
|
|
10
|
+
* @public
|
|
11
|
+
*/
|
|
12
|
+
export interface ISkin<T = any> extends EventEmitter<SkinEvents<T>> {
|
|
13
|
+
getProperties(): Readonly<T>;
|
|
14
|
+
getProperty<K extends keyof T>(key: K): T[K] | undefined;
|
|
15
|
+
getId(): string;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Event data for theme changes.
|
|
19
|
+
*
|
|
20
|
+
* @typeParam T - The type of skin properties
|
|
21
|
+
*
|
|
22
|
+
* @public
|
|
23
|
+
*/
|
|
24
|
+
export interface SkinChangeEvent<T = any> {
|
|
25
|
+
/** The skin that changed */
|
|
26
|
+
skin: ISkin<T>;
|
|
27
|
+
/** Previous theme name */
|
|
28
|
+
oldTheme: string;
|
|
29
|
+
/** New theme name */
|
|
30
|
+
newTheme: string;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Event data for data injection.
|
|
34
|
+
*
|
|
35
|
+
* Fired when global data is injected into skin properties.
|
|
36
|
+
*
|
|
37
|
+
* @public
|
|
38
|
+
*/
|
|
39
|
+
export interface DataInjectionEvent {
|
|
40
|
+
/** Property path that was injected (e.g., 'ui.button.color') */
|
|
41
|
+
path: string;
|
|
42
|
+
/** Previous value */
|
|
43
|
+
oldValue: any;
|
|
44
|
+
/** New injected value */
|
|
45
|
+
newValue: any;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Events emitted by skin objects.
|
|
49
|
+
*
|
|
50
|
+
* @typeParam T - The type of skin properties
|
|
51
|
+
*
|
|
52
|
+
* @public
|
|
53
|
+
*/
|
|
54
|
+
export interface SkinEvents<T = any> {
|
|
55
|
+
/** Fired when theme changes */
|
|
56
|
+
themeChanged: (event: SkinChangeEvent<T>) => void;
|
|
57
|
+
/** Fired when global data is injected */
|
|
58
|
+
dataInjected: (event: DataInjectionEvent) => void;
|
|
59
|
+
/** Fired when skin is destroyed */
|
|
60
|
+
destroyed: () => void;
|
|
61
|
+
}
|
|
62
|
+
//# sourceMappingURL=ISkin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ISkin.d.ts","sourceRoot":"","sources":["../../../plugins/skin/ISkin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEvC;;;;;;;;;GASG;AACH,MAAM,WAAW,KAAK,CAAC,CAAC,GAAG,GAAG,CAAE,SAAQ,YAAY,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;IACjE,aAAa,IAAI,QAAQ,CAAC,CAAC,CAAC,CAAC;IAC7B,WAAW,CAAC,CAAC,SAAS,MAAM,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC;IACzD,KAAK,IAAI,MAAM,CAAC;CAyBjB;AAED;;;;;;GAMG;AACH,MAAM,WAAW,eAAe,CAAC,CAAC,GAAG,GAAG;IACtC,4BAA4B;IAC5B,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC;IACf,0BAA0B;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,qBAAqB;IACrB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;;;;;GAMG;AACH,MAAM,WAAW,kBAAkB;IACjC,gEAAgE;IAChE,IAAI,EAAE,MAAM,CAAC;IACb,qBAAqB;IACrB,QAAQ,EAAE,GAAG,CAAC;IACd,yBAAyB;IACzB,QAAQ,EAAE,GAAG,CAAC;CACf;AAED;;;;;;GAMG;AACH,MAAM,WAAW,UAAU,CAAC,CAAC,GAAG,GAAG;IACjC,+BAA+B;IAC/B,YAAY,EAAE,CAAC,KAAK,EAAE,eAAe,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;IAClD,yCAAyC;IACzC,YAAY,EAAE,CAAC,KAAK,EAAE,kBAAkB,KAAK,IAAI,CAAC;IAClD,mCAAmC;IACnC,SAAS,EAAE,MAAM,IAAI,CAAC;CACvB"}
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import { EventEmitter } from 'pixi.js';
|
|
2
|
+
import type { SkinOptions } from './SkinPlugin.types';
|
|
3
|
+
import type { ISkin, SkinEvents } from './ISkin';
|
|
4
|
+
/**
|
|
5
|
+
* Skin implementation for theme-based configuration.
|
|
6
|
+
*
|
|
7
|
+
* Skin manages theme data and provides property access with automatic merging
|
|
8
|
+
* of default and current theme properties. Supports global data injection.
|
|
9
|
+
*
|
|
10
|
+
* ## Features
|
|
11
|
+
*
|
|
12
|
+
* - **Multi-Theme Support**: Switch between different themes at runtime
|
|
13
|
+
* - **Property Merging**: Current theme inherits from default theme
|
|
14
|
+
* - **Data Injection**: Global data can be injected using template strings
|
|
15
|
+
* - **Event Emission**: Fires events on theme changes and data injection
|
|
16
|
+
* - **Fallback Handling**: Falls back to default theme if theme not found
|
|
17
|
+
*
|
|
18
|
+
* ## Data Injection
|
|
19
|
+
*
|
|
20
|
+
* Skin supports template string injection using `${path}` syntax:
|
|
21
|
+
*
|
|
22
|
+
* ```typescript
|
|
23
|
+
* // Skin data with template strings
|
|
24
|
+
* const skinData = {
|
|
25
|
+
* default: {
|
|
26
|
+
* color: '${ui.default.themeColor.default}',
|
|
27
|
+
* fontSize: '${ui.default.fontSize.normal}'
|
|
28
|
+
* }
|
|
29
|
+
* };
|
|
30
|
+
*
|
|
31
|
+
* // Set global data
|
|
32
|
+
* skinPlugin.setGlobalData('ui.default.themeColor.default', 0xFFD100);
|
|
33
|
+
* skinPlugin.setGlobalData('ui.default.fontSize.normal', 24);
|
|
34
|
+
*
|
|
35
|
+
* // Properties are automatically injected
|
|
36
|
+
* const props = skin.getProperties();
|
|
37
|
+
* // { color: 0xFFD100, fontSize: 24 }
|
|
38
|
+
* ```
|
|
39
|
+
*
|
|
40
|
+
* @typeParam T - The type of properties this skin manages
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* ```typescript
|
|
44
|
+
* // Create skin with multiple themes
|
|
45
|
+
* const { skin } = skinPlugin.createSkin({
|
|
46
|
+
* data: {
|
|
47
|
+
* default: {
|
|
48
|
+
* background: { color: 0xFF0000 },
|
|
49
|
+
* text: { fontSize: 24 }
|
|
50
|
+
* },
|
|
51
|
+
* dark: {
|
|
52
|
+
* background: { color: 0x000000 }
|
|
53
|
+
* // text inherits from default
|
|
54
|
+
* },
|
|
55
|
+
* mobile: {
|
|
56
|
+
* text: { fontSize: 18 }
|
|
57
|
+
* // background inherits from default
|
|
58
|
+
* }
|
|
59
|
+
* },
|
|
60
|
+
* defaultTheme: 'default'
|
|
61
|
+
* });
|
|
62
|
+
*
|
|
63
|
+
* // Get properties (merges default + current theme)
|
|
64
|
+
* const props = skin.getProperties();
|
|
65
|
+
*
|
|
66
|
+
* // Switch theme
|
|
67
|
+
* skin.setTheme('dark');
|
|
68
|
+
*
|
|
69
|
+
* // Listen to theme changes
|
|
70
|
+
* skin.on('themeChanged', (event) => {
|
|
71
|
+
* console.log(`Theme changed from ${event.oldTheme} to ${event.newTheme}`);
|
|
72
|
+
* updateUI(skin.getProperties());
|
|
73
|
+
* });
|
|
74
|
+
* ```
|
|
75
|
+
*
|
|
76
|
+
* @public
|
|
77
|
+
*/
|
|
78
|
+
export declare class Skin<T = any> extends EventEmitter<SkinEvents<T>> implements ISkin<T> {
|
|
79
|
+
private data;
|
|
80
|
+
private currentTheme;
|
|
81
|
+
private defaultTheme;
|
|
82
|
+
private id;
|
|
83
|
+
private plugin;
|
|
84
|
+
constructor(options: SkinOptions<T>, plugin: any);
|
|
85
|
+
/**
|
|
86
|
+
* Sets the current theme.
|
|
87
|
+
*
|
|
88
|
+
* If the theme doesn't exist, falls back to default theme.
|
|
89
|
+
* Emits 'themeChanged' event if theme actually changes.
|
|
90
|
+
*
|
|
91
|
+
* @param themeName - Name of the theme to activate
|
|
92
|
+
*
|
|
93
|
+
* @example
|
|
94
|
+
* ```typescript
|
|
95
|
+
* skin.setTheme('dark');
|
|
96
|
+
* skin.setTheme('mobile');
|
|
97
|
+
* ```
|
|
98
|
+
*/
|
|
99
|
+
setTheme(themeName: string): void;
|
|
100
|
+
/**
|
|
101
|
+
* Gets the current theme name.
|
|
102
|
+
*
|
|
103
|
+
* @returns Current theme name
|
|
104
|
+
*/
|
|
105
|
+
getCurrentTheme(): string;
|
|
106
|
+
/**
|
|
107
|
+
* Gets all properties for the current theme.
|
|
108
|
+
*
|
|
109
|
+
* Merges default theme properties with current theme properties.
|
|
110
|
+
* Current theme properties override default theme properties.
|
|
111
|
+
* Applies global data injection if configured.
|
|
112
|
+
*
|
|
113
|
+
* @returns Readonly properties object
|
|
114
|
+
*
|
|
115
|
+
* @example
|
|
116
|
+
* ```typescript
|
|
117
|
+
* const props = skin.getProperties();
|
|
118
|
+
* button.applyStyle(props);
|
|
119
|
+
* ```
|
|
120
|
+
*/
|
|
121
|
+
getProperties(): Readonly<T>;
|
|
122
|
+
/**
|
|
123
|
+
* Gets a specific property by key.
|
|
124
|
+
*
|
|
125
|
+
* @param key - Property key
|
|
126
|
+
* @returns Property value or undefined
|
|
127
|
+
*
|
|
128
|
+
* @example
|
|
129
|
+
* ```typescript
|
|
130
|
+
* const color = skin.getProperty('color');
|
|
131
|
+
* ```
|
|
132
|
+
*/
|
|
133
|
+
getProperty<K extends keyof T>(key: K): T[K] | undefined;
|
|
134
|
+
/**
|
|
135
|
+
* Gets the unique skin ID.
|
|
136
|
+
*
|
|
137
|
+
* @returns Skin ID
|
|
138
|
+
*/
|
|
139
|
+
getId(): string;
|
|
140
|
+
getDefaultTheme(): string;
|
|
141
|
+
/**
|
|
142
|
+
* Checks if a theme exists.
|
|
143
|
+
*
|
|
144
|
+
* @param themeName - Theme name to check
|
|
145
|
+
* @returns True if theme exists
|
|
146
|
+
*/
|
|
147
|
+
hasTheme(themeName: string): boolean;
|
|
148
|
+
/**
|
|
149
|
+
* Destroys the skin.
|
|
150
|
+
*
|
|
151
|
+
* Emits 'destroyed' event, removes all listeners, and unregisters from plugin.
|
|
152
|
+
*/
|
|
153
|
+
destroy(): void;
|
|
154
|
+
}
|
|
155
|
+
//# sourceMappingURL=Skin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Skin.d.ts","sourceRoot":"","sources":["../../../plugins/skin/Skin.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,KAAK,E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