vue-phaserjs 1.19.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/LICENSE +201 -0
- package/dist/components/Circle.vue.d.ts +280 -0
- package/dist/components/Container.vue.d.ts +260 -0
- package/dist/components/Game.vue.d.ts +16 -0
- package/dist/components/Image.vue.d.ts +312 -0
- package/dist/components/Nineslice.vue.d.ts +281 -0
- package/dist/components/PathFollower.vue.d.ts +320 -0
- package/dist/components/Rectangle.vue.d.ts +280 -0
- package/dist/components/Scene.vue.d.ts +25 -0
- package/dist/components/Sprite.vue.d.ts +313 -0
- package/dist/components/Text.vue.d.ts +299 -0
- package/dist/components/TileSprite.vue.d.ts +158 -0
- package/dist/components/Tilemap.vue.d.ts +17 -0
- package/dist/components/Zone.vue.d.ts +259 -0
- package/dist/components/index.d.ts +14 -0
- package/dist/composables/useAnimations.d.ts +45 -0
- package/dist/composables/useGame.d.ts +2 -0
- package/dist/composables/useInitializeGameObject.d.ts +5 -0
- package/dist/composables/useInitializeGameObjectEvents.d.ts +7 -0
- package/dist/composables/useInitializeGameObjectSetters.d.ts +7 -0
- package/dist/composables/useInjectSceneKey.d.ts +2 -0
- package/dist/composables/useTween.d.ts +2 -0
- package/dist/hooks/onCreate.d.ts +1 -0
- package/dist/hooks/onInit.d.ts +1 -0
- package/dist/hooks/onNextTick.d.ts +1 -0
- package/dist/hooks/onPreload.d.ts +1 -0
- package/dist/hooks/onShutdown.d.ts +1 -0
- package/dist/hooks/onUpdate.d.ts +1 -0
- package/dist/index.d.ts +151 -0
- package/dist/index.js +168977 -0
- package/dist/models/configuration/ArcConfiguration.d.ts +8 -0
- package/dist/models/configuration/ContainerConfiguration.d.ts +11 -0
- package/dist/models/configuration/ImageConfiguration.d.ts +17 -0
- package/dist/models/configuration/NineSliceConfiguration.d.ts +14 -0
- package/dist/models/configuration/PathFollowerConfiguration.d.ts +17 -0
- package/dist/models/configuration/RectangleConfiguration.d.ts +6 -0
- package/dist/models/configuration/SpriteConfiguration.d.ts +18 -0
- package/dist/models/configuration/TextConfiguration.d.ts +18 -0
- package/dist/models/configuration/TileSpriteConfiguration.d.ts +17 -0
- package/dist/models/configuration/ZoneConfiguration.d.ts +12 -0
- package/dist/models/configuration/components/AlphaConfiguration.d.ts +3 -0
- package/dist/models/configuration/components/AlphaSingleConfiguration.d.ts +3 -0
- package/dist/models/configuration/components/BaseTextureConfiguration.d.ts +4 -0
- package/dist/models/configuration/components/BlendModeConfiguration.d.ts +3 -0
- package/dist/models/configuration/components/ComputedSizeConfiguration.d.ts +3 -0
- package/dist/models/configuration/components/DepthConfiguration.d.ts +3 -0
- package/dist/models/configuration/components/FXConfiguration.d.ts +3 -0
- package/dist/models/configuration/components/FlipConfiguration.d.ts +3 -0
- package/dist/models/configuration/components/MaskConfiguration.d.ts +3 -0
- package/dist/models/configuration/components/OriginConfiguration.d.ts +5 -0
- package/dist/models/configuration/components/PathFollowerComponentConfiguration.d.ts +3 -0
- package/dist/models/configuration/components/PipelineConfiguration.d.ts +3 -0
- package/dist/models/configuration/components/ScrollFactorConfiguration.d.ts +5 -0
- package/dist/models/configuration/components/SizeConfiguration.d.ts +3 -0
- package/dist/models/configuration/components/TextureConfiguration.d.ts +5 -0
- package/dist/models/configuration/components/TextureCropConfiguration.d.ts +5 -0
- package/dist/models/configuration/components/TintConfiguration.d.ts +3 -0
- package/dist/models/configuration/components/TransformConfiguration.d.ts +3 -0
- package/dist/models/configuration/components/VisibleConfiguration.d.ts +3 -0
- package/dist/models/configuration/global/GameObjectConfiguration.d.ts +2 -0
- package/dist/models/configuration/global/GlobalConfiguration.d.ts +3 -0
- package/dist/models/configuration/global/TweenConfiguration.d.ts +5 -0
- package/dist/models/configuration/shared/AnimationConfiguration.d.ts +6 -0
- package/dist/models/configuration/shared/ShapeConfiguration.d.ts +19 -0
- package/dist/models/configuration/shared/TweenBuilderConfiguration.d.ts +3 -0
- package/dist/models/emit/ArcEventEmitsOptions.d.ts +7 -0
- package/dist/models/emit/ContainerEventEmitsOptions.d.ts +7 -0
- package/dist/models/emit/ImageEventEmitsOptions.d.ts +7 -0
- package/dist/models/emit/NineSliceEventEmitsOptions.d.ts +7 -0
- package/dist/models/emit/PathFollowerEventEmitsOptions.d.ts +7 -0
- package/dist/models/emit/RectangleEventEmitsOptions.d.ts +7 -0
- package/dist/models/emit/SpriteEventEmitsOptions.d.ts +7 -0
- package/dist/models/emit/TextEventEmitsOptions.d.ts +7 -0
- package/dist/models/emit/TileSpriteEventEmitsOptions.d.ts +7 -0
- package/dist/models/emit/ZoneEventEmitsOptions.d.ts +7 -0
- package/dist/models/emit/components/AlphaEventEmitsOptions.d.ts +6 -0
- package/dist/models/emit/components/AlphaSingleEventEmitsOptions.d.ts +6 -0
- package/dist/models/emit/components/BaseTextureEventEmitsOptions.d.ts +6 -0
- package/dist/models/emit/components/BlendModeEventEmitsOptions.d.ts +6 -0
- package/dist/models/emit/components/ComputedSizeEventEmitsOptions.d.ts +6 -0
- package/dist/models/emit/components/DepthEventEmitsOptions.d.ts +6 -0
- package/dist/models/emit/components/FXEventEmitsOptions.d.ts +6 -0
- package/dist/models/emit/components/FlipEventEmitsOptions.d.ts +6 -0
- package/dist/models/emit/components/MaskEventEmitsOptions.d.ts +6 -0
- package/dist/models/emit/components/OriginEventEmitsOptions.d.ts +6 -0
- package/dist/models/emit/components/PathFollowerComponentEventEmitsOptions.d.ts +8 -0
- package/dist/models/emit/components/PipelineEventEmitsOptions.d.ts +6 -0
- package/dist/models/emit/components/ScrollFactorEventEmitsOptions.d.ts +6 -0
- package/dist/models/emit/components/SizeEventEmitsOptions.d.ts +6 -0
- package/dist/models/emit/components/TextureCropEventEmitsOptions.d.ts +6 -0
- package/dist/models/emit/components/TextureEventEmitsOptions.d.ts +6 -0
- package/dist/models/emit/components/TintEventEmitsOptions.d.ts +6 -0
- package/dist/models/emit/components/TransformEventEmitsOptions.d.ts +6 -0
- package/dist/models/emit/components/VisibleEventEmitsOptions.d.ts +6 -0
- package/dist/models/emit/global/GameObjectEventEmitsOptions.d.ts +10 -0
- package/dist/models/emit/global/GlobalEventEmitsOptions.d.ts +3 -0
- package/dist/models/emit/global/TweenEventEmitsOptions.d.ts +6 -0
- package/dist/models/emit/shared/GameObjectEventMapEmitsOptions.d.ts +5 -0
- package/dist/models/emit/shared/ShapeEventEmitsOptions.d.ts +6 -0
- package/dist/models/keys/AnimationKey.d.ts +3 -0
- package/dist/models/lifecycle/HookArgs.d.ts +2 -0
- package/dist/models/lifecycle/Lifecycle.d.ts +8 -0
- package/dist/models/lifecycle/ListenersMap.d.ts +2 -0
- package/dist/models/plugins/TiledJSONExternalFile.d.ts +11 -0
- package/dist/models/plugins/TilemapFile.d.ts +5 -0
- package/dist/models/plugins/TilesetFile.d.ts +7 -0
- package/dist/models/scene/ScenePlugins.d.ts +2 -0
- package/dist/models/scene/SceneProps.d.ts +5 -0
- package/dist/models/scene/SceneWithPlugins.d.ts +4 -0
- package/dist/models/setterMap/SetterMap.d.ts +4 -0
- package/dist/models/text/TextProps.d.ts +6 -0
- package/dist/plugins/registerTiledJSONExternalLoader.d.ts +1 -0
- package/dist/store/camera.d.ts +14 -0
- package/dist/store/index.d.ts +30 -0
- package/dist/store/input.d.ts +7 -0
- package/dist/store/parentContainer.d.ts +8 -0
- package/dist/store/scene.d.ts +6 -0
- package/dist/store/text.d.ts +8 -0
- package/dist/utils/InjectionKeyMap.d.ts +4 -0
- package/dist/utils/constants.d.ts +1 -0
- package/dist/utils/emit/GameObjectEventMap.d.ts +42 -0
- package/dist/utils/emit/getEventName.d.ts +1 -0
- package/dist/utils/emit/getUpdateEvent.d.ts +3 -0
- package/dist/utils/emit/isEvent.d.ts +1 -0
- package/dist/utils/getScene.d.ts +2 -0
- package/dist/utils/hooks/getInitializeGameObjectLifecycleHook.d.ts +1 -0
- package/dist/utils/hooks/pushListener.d.ts +3 -0
- package/dist/utils/hooks/resetLifecycleListeners.d.ts +3 -0
- package/dist/utils/hooks/runLifecycleListeners.d.ts +3 -0
- package/dist/utils/setterMap/ArcSetterMap.d.ts +5 -0
- package/dist/utils/setterMap/ContainerSetterMap.d.ts +5 -0
- package/dist/utils/setterMap/ImageSetterMap.d.ts +5 -0
- package/dist/utils/setterMap/NineSliceSetterMap.d.ts +5 -0
- package/dist/utils/setterMap/PathFollowerSetterMap.d.ts +5 -0
- package/dist/utils/setterMap/RectangleSetterMap.d.ts +5 -0
- package/dist/utils/setterMap/SpriteSetterMap.d.ts +5 -0
- package/dist/utils/setterMap/TextSetterMap.d.ts +5 -0
- package/dist/utils/setterMap/TileSpriteSetterMap.d.ts +5 -0
- package/dist/utils/setterMap/ZoneSetterMap.d.ts +5 -0
- package/dist/utils/setterMap/components/AlphaSetterMap.d.ts +8 -0
- package/dist/utils/setterMap/components/AlphaSingleSetterMap.d.ts +4 -0
- package/dist/utils/setterMap/components/BaseTextureSetterMap.d.ts +5 -0
- package/dist/utils/setterMap/components/BlendModeSetterMap.d.ts +4 -0
- package/dist/utils/setterMap/components/ComputedSizeSetterMap.d.ts +7 -0
- package/dist/utils/setterMap/components/DepthSetterMap.d.ts +4 -0
- package/dist/utils/setterMap/components/FXSetterMap.d.ts +4 -0
- package/dist/utils/setterMap/components/FlipSetterMap.d.ts +5 -0
- package/dist/utils/setterMap/components/MaskSetterMap.d.ts +4 -0
- package/dist/utils/setterMap/components/OriginSetterMap.d.ts +8 -0
- package/dist/utils/setterMap/components/PathFollowerComponentSetterMap.d.ts +4 -0
- package/dist/utils/setterMap/components/PipelineSetterMap.d.ts +4 -0
- package/dist/utils/setterMap/components/ScrollFactorSetterMap.d.ts +6 -0
- package/dist/utils/setterMap/components/SizeSetterMap.d.ts +7 -0
- package/dist/utils/setterMap/components/TextureCropSetterMap.d.ts +5 -0
- package/dist/utils/setterMap/components/TextureSetterMap.d.ts +5 -0
- package/dist/utils/setterMap/components/TintSetterMap.d.ts +8 -0
- package/dist/utils/setterMap/components/TransformSetterMap.d.ts +12 -0
- package/dist/utils/setterMap/components/VisibleSetterMap.d.ts +4 -0
- package/dist/utils/setterMap/global/GameObjectSetterMap.d.ts +4 -0
- package/dist/utils/setterMap/global/GlobalSetterMap.d.ts +258 -0
- package/dist/utils/setterMap/global/TweenSetterMap.d.ts +257 -0
- package/dist/utils/setterMap/shared/AnimationSetterMap.d.ts +89 -0
- package/dist/utils/setterMap/shared/ShapeSetterMap.d.ts +32 -0
- package/dist/utils/types/ExcludeFunctionProperties.d.ts +5 -0
- package/dist/utils/types/ExtractUpdateEvent.d.ts +1 -0
- package/dist/utils/types/FunctionProperties.d.ts +3 -0
- package/dist/utils/types/UpdateEvent.d.ts +1 -0
- package/package.json +44 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ShapeConfiguration } from './shared/ShapeConfiguration';
|
|
2
|
+
import { GameObjects } from 'phaser';
|
|
3
|
+
export type ArcConfiguration = {
|
|
4
|
+
closePath: GameObjects.Arc["closePath"];
|
|
5
|
+
endAngle: GameObjects.Arc["endAngle"];
|
|
6
|
+
radius: GameObjects.Arc["radius"];
|
|
7
|
+
startAngle: GameObjects.Arc["startAngle"];
|
|
8
|
+
} & ShapeConfiguration;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { AlphaSingleConfiguration } from './components/AlphaSingleConfiguration';
|
|
2
|
+
import { BlendModeConfiguration } from './components/BlendModeConfiguration';
|
|
3
|
+
import { ComputedSizeConfiguration } from './components/ComputedSizeConfiguration';
|
|
4
|
+
import { DepthConfiguration } from './components/DepthConfiguration';
|
|
5
|
+
import { MaskConfiguration } from './components/MaskConfiguration';
|
|
6
|
+
import { TransformConfiguration } from './components/TransformConfiguration';
|
|
7
|
+
import { VisibleConfiguration } from './components/VisibleConfiguration';
|
|
8
|
+
import { GlobalConfiguration } from './global/GlobalConfiguration';
|
|
9
|
+
import { Types } from 'phaser';
|
|
10
|
+
import { Except } from 'type-fest';
|
|
11
|
+
export type ContainerConfiguration = AlphaSingleConfiguration & BlendModeConfiguration & ComputedSizeConfiguration & DepthConfiguration & Except<Types.GameObjects.Container.ContainerConfig, keyof Types.GameObjects.GameObjectConfig> & GlobalConfiguration & MaskConfiguration & TransformConfiguration & VisibleConfiguration;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { AlphaConfiguration } from './components/AlphaConfiguration';
|
|
2
|
+
import { BlendModeConfiguration } from './components/BlendModeConfiguration';
|
|
3
|
+
import { DepthConfiguration } from './components/DepthConfiguration';
|
|
4
|
+
import { FlipConfiguration } from './components/FlipConfiguration';
|
|
5
|
+
import { MaskConfiguration } from './components/MaskConfiguration';
|
|
6
|
+
import { OriginConfiguration } from './components/OriginConfiguration';
|
|
7
|
+
import { PipelineConfiguration } from './components/PipelineConfiguration';
|
|
8
|
+
import { ScrollFactorConfiguration } from './components/ScrollFactorConfiguration';
|
|
9
|
+
import { SizeConfiguration } from './components/SizeConfiguration';
|
|
10
|
+
import { TextureCropConfiguration } from './components/TextureCropConfiguration';
|
|
11
|
+
import { TintConfiguration } from './components/TintConfiguration';
|
|
12
|
+
import { TransformConfiguration } from './components/TransformConfiguration';
|
|
13
|
+
import { VisibleConfiguration } from './components/VisibleConfiguration';
|
|
14
|
+
import { GlobalConfiguration } from './global/GlobalConfiguration';
|
|
15
|
+
import { Types } from 'phaser';
|
|
16
|
+
import { Except } from 'type-fest';
|
|
17
|
+
export type ImageConfiguration = AlphaConfiguration & BlendModeConfiguration & DepthConfiguration & Except<Types.GameObjects.Sprite.SpriteConfig, keyof Types.GameObjects.GameObjectConfig> & FlipConfiguration & GlobalConfiguration & MaskConfiguration & OriginConfiguration & PipelineConfiguration & ScrollFactorConfiguration & SizeConfiguration & TextureCropConfiguration & TintConfiguration & TransformConfiguration & VisibleConfiguration;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { AlphaSingleConfiguration } from './components/AlphaSingleConfiguration';
|
|
2
|
+
import { BlendModeConfiguration } from './components/BlendModeConfiguration';
|
|
3
|
+
import { DepthConfiguration } from './components/DepthConfiguration';
|
|
4
|
+
import { MaskConfiguration } from './components/MaskConfiguration';
|
|
5
|
+
import { OriginConfiguration } from './components/OriginConfiguration';
|
|
6
|
+
import { PipelineConfiguration } from './components/PipelineConfiguration';
|
|
7
|
+
import { ScrollFactorConfiguration } from './components/ScrollFactorConfiguration';
|
|
8
|
+
import { TextureConfiguration } from './components/TextureConfiguration';
|
|
9
|
+
import { TransformConfiguration } from './components/TransformConfiguration';
|
|
10
|
+
import { VisibleConfiguration } from './components/VisibleConfiguration';
|
|
11
|
+
import { GlobalConfiguration } from './global/GlobalConfiguration';
|
|
12
|
+
import { Types } from 'phaser';
|
|
13
|
+
import { Except } from 'type-fest';
|
|
14
|
+
export type NineSliceConfiguration = AlphaSingleConfiguration & BlendModeConfiguration & DepthConfiguration & Except<Types.GameObjects.NineSlice.NineSliceConfig, keyof Types.GameObjects.GameObjectConfig> & GlobalConfiguration & MaskConfiguration & OriginConfiguration & PipelineConfiguration & ScrollFactorConfiguration & TextureConfiguration & TransformConfiguration & VisibleConfiguration;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { AlphaConfiguration } from './components/AlphaConfiguration';
|
|
2
|
+
import { BlendModeConfiguration } from './components/BlendModeConfiguration';
|
|
3
|
+
import { DepthConfiguration } from './components/DepthConfiguration';
|
|
4
|
+
import { FlipConfiguration } from './components/FlipConfiguration';
|
|
5
|
+
import { MaskConfiguration } from './components/MaskConfiguration';
|
|
6
|
+
import { OriginConfiguration } from './components/OriginConfiguration';
|
|
7
|
+
import { PathFollowerComponentConfiguration } from './components/PathFollowerComponentConfiguration';
|
|
8
|
+
import { PipelineConfiguration } from './components/PipelineConfiguration';
|
|
9
|
+
import { ScrollFactorConfiguration } from './components/ScrollFactorConfiguration';
|
|
10
|
+
import { SizeConfiguration } from './components/SizeConfiguration';
|
|
11
|
+
import { TextureConfiguration } from './components/TextureConfiguration';
|
|
12
|
+
import { TintConfiguration } from './components/TintConfiguration';
|
|
13
|
+
import { TransformConfiguration } from './components/TransformConfiguration';
|
|
14
|
+
import { VisibleConfiguration } from './components/VisibleConfiguration';
|
|
15
|
+
import { GlobalConfiguration } from './global/GlobalConfiguration';
|
|
16
|
+
import { Types } from 'phaser';
|
|
17
|
+
export type PathFollowerConfiguration = AlphaConfiguration & BlendModeConfiguration & DepthConfiguration & FlipConfiguration & GlobalConfiguration & MaskConfiguration & OriginConfiguration & PathFollowerComponentConfiguration & PipelineConfiguration & ScrollFactorConfiguration & SizeConfiguration & TextureConfiguration & TintConfiguration & TransformConfiguration & Types.GameObjects.PathFollower.PathConfig & VisibleConfiguration;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { AlphaConfiguration } from './components/AlphaConfiguration';
|
|
2
|
+
import { BlendModeConfiguration } from './components/BlendModeConfiguration';
|
|
3
|
+
import { DepthConfiguration } from './components/DepthConfiguration';
|
|
4
|
+
import { FlipConfiguration } from './components/FlipConfiguration';
|
|
5
|
+
import { MaskConfiguration } from './components/MaskConfiguration';
|
|
6
|
+
import { OriginConfiguration } from './components/OriginConfiguration';
|
|
7
|
+
import { PipelineConfiguration } from './components/PipelineConfiguration';
|
|
8
|
+
import { ScrollFactorConfiguration } from './components/ScrollFactorConfiguration';
|
|
9
|
+
import { SizeConfiguration } from './components/SizeConfiguration';
|
|
10
|
+
import { TextureConfiguration } from './components/TextureConfiguration';
|
|
11
|
+
import { TintConfiguration } from './components/TintConfiguration';
|
|
12
|
+
import { TransformConfiguration } from './components/TransformConfiguration';
|
|
13
|
+
import { VisibleConfiguration } from './components/VisibleConfiguration';
|
|
14
|
+
import { GlobalConfiguration } from './global/GlobalConfiguration';
|
|
15
|
+
import { AnimationConfiguration } from './shared/AnimationConfiguration';
|
|
16
|
+
import { Types } from 'phaser';
|
|
17
|
+
import { Except } from 'type-fest';
|
|
18
|
+
export type SpriteConfiguration = AlphaConfiguration & AnimationConfiguration & BlendModeConfiguration & DepthConfiguration & Except<Types.GameObjects.Sprite.SpriteConfig, "anims" | keyof Types.GameObjects.GameObjectConfig> & FlipConfiguration & GlobalConfiguration & MaskConfiguration & OriginConfiguration & PipelineConfiguration & ScrollFactorConfiguration & SizeConfiguration & TextureConfiguration & TintConfiguration & TransformConfiguration & VisibleConfiguration;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { AlphaConfiguration } from './components/AlphaConfiguration';
|
|
2
|
+
import { BlendModeConfiguration } from './components/BlendModeConfiguration';
|
|
3
|
+
import { ComputedSizeConfiguration } from './components/ComputedSizeConfiguration';
|
|
4
|
+
import { DepthConfiguration } from './components/DepthConfiguration';
|
|
5
|
+
import { FlipConfiguration } from './components/FlipConfiguration';
|
|
6
|
+
import { MaskConfiguration } from './components/MaskConfiguration';
|
|
7
|
+
import { OriginConfiguration } from './components/OriginConfiguration';
|
|
8
|
+
import { PipelineConfiguration } from './components/PipelineConfiguration';
|
|
9
|
+
import { ScrollFactorConfiguration } from './components/ScrollFactorConfiguration';
|
|
10
|
+
import { TintConfiguration } from './components/TintConfiguration';
|
|
11
|
+
import { TransformConfiguration } from './components/TransformConfiguration';
|
|
12
|
+
import { VisibleConfiguration } from './components/VisibleConfiguration';
|
|
13
|
+
import { GlobalConfiguration } from './global/GlobalConfiguration';
|
|
14
|
+
import { Types } from 'phaser';
|
|
15
|
+
import { Except } from 'type-fest';
|
|
16
|
+
export type TextConfiguration = {
|
|
17
|
+
text: string;
|
|
18
|
+
} & AlphaConfiguration & BlendModeConfiguration & ComputedSizeConfiguration & DepthConfiguration & Except<Types.GameObjects.Text.TextConfig, keyof Types.GameObjects.GameObjectConfig> & FlipConfiguration & GlobalConfiguration & MaskConfiguration & OriginConfiguration & PipelineConfiguration & ScrollFactorConfiguration & TintConfiguration & TransformConfiguration & VisibleConfiguration;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { AlphaConfiguration } from './components/AlphaConfiguration';
|
|
2
|
+
import { BlendModeConfiguration } from './components/BlendModeConfiguration';
|
|
3
|
+
import { ComputedSizeConfiguration } from './components/ComputedSizeConfiguration';
|
|
4
|
+
import { DepthConfiguration } from './components/DepthConfiguration';
|
|
5
|
+
import { FlipConfiguration } from './components/FlipConfiguration';
|
|
6
|
+
import { MaskConfiguration } from './components/MaskConfiguration';
|
|
7
|
+
import { OriginConfiguration } from './components/OriginConfiguration';
|
|
8
|
+
import { PipelineConfiguration } from './components/PipelineConfiguration';
|
|
9
|
+
import { ScrollFactorConfiguration } from './components/ScrollFactorConfiguration';
|
|
10
|
+
import { TextureConfiguration } from './components/TextureConfiguration';
|
|
11
|
+
import { TintConfiguration } from './components/TintConfiguration';
|
|
12
|
+
import { TransformConfiguration } from './components/TransformConfiguration';
|
|
13
|
+
import { VisibleConfiguration } from './components/VisibleConfiguration';
|
|
14
|
+
import { GlobalConfiguration } from './global/GlobalConfiguration';
|
|
15
|
+
import { Types } from 'phaser';
|
|
16
|
+
import { Except } from 'type-fest';
|
|
17
|
+
export type TileSpriteConfiguration = AlphaConfiguration & BlendModeConfiguration & ComputedSizeConfiguration & DepthConfiguration & Except<Types.GameObjects.TileSprite.TileSpriteConfig, keyof Types.GameObjects.GameObjectConfig> & FlipConfiguration & GlobalConfiguration & MaskConfiguration & OriginConfiguration & PipelineConfiguration & ScrollFactorConfiguration & TextureConfiguration & TintConfiguration & TransformConfiguration & VisibleConfiguration;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DepthConfiguration } from './components/DepthConfiguration';
|
|
2
|
+
import { OriginConfiguration } from './components/OriginConfiguration';
|
|
3
|
+
import { ScrollFactorConfiguration } from './components/ScrollFactorConfiguration';
|
|
4
|
+
import { TransformConfiguration } from './components/TransformConfiguration';
|
|
5
|
+
import { VisibleConfiguration } from './components/VisibleConfiguration';
|
|
6
|
+
import { GlobalConfiguration } from './global/GlobalConfiguration';
|
|
7
|
+
import { GameObjects, Types } from 'phaser';
|
|
8
|
+
import { Except } from 'type-fest';
|
|
9
|
+
export type ZoneConfiguration = {
|
|
10
|
+
displayHeight: GameObjects.Zone["displayHeight"];
|
|
11
|
+
displayWidth: GameObjects.Zone["displayWidth"];
|
|
12
|
+
} & DepthConfiguration & Except<Types.GameObjects.Zone.ZoneConfig, keyof Types.GameObjects.GameObjectConfig> & GlobalConfiguration & OriginConfiguration & ScrollFactorConfiguration & TransformConfiguration & VisibleConfiguration;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { BaseTextureConfiguration } from './BaseTextureConfiguration';
|
|
2
|
+
import { ExcludeFunctionProperties } from '../../../utils/types/ExcludeFunctionProperties';
|
|
3
|
+
import { GameObjects } from 'phaser';
|
|
4
|
+
import { Except } from 'type-fest';
|
|
5
|
+
export type TextureConfiguration = ExcludeFunctionProperties<BaseTextureConfiguration & Except<GameObjects.Components.Texture, keyof BaseTextureConfiguration>>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { BaseTextureConfiguration } from './BaseTextureConfiguration';
|
|
2
|
+
import { ExcludeFunctionProperties } from '../../../utils/types/ExcludeFunctionProperties';
|
|
3
|
+
import { GameObjects } from 'phaser';
|
|
4
|
+
import { Except } from 'type-fest';
|
|
5
|
+
export type TextureCropConfiguration = ExcludeFunctionProperties<BaseTextureConfiguration & Except<GameObjects.Components.TextureCrop, keyof BaseTextureConfiguration>>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { AlphaSingleConfiguration } from '../components/AlphaSingleConfiguration';
|
|
2
|
+
import { BlendModeConfiguration } from '../components/BlendModeConfiguration';
|
|
3
|
+
import { DepthConfiguration } from '../components/DepthConfiguration';
|
|
4
|
+
import { MaskConfiguration } from '../components/MaskConfiguration';
|
|
5
|
+
import { OriginConfiguration } from '../components/OriginConfiguration';
|
|
6
|
+
import { PipelineConfiguration } from '../components/PipelineConfiguration';
|
|
7
|
+
import { ScrollFactorConfiguration } from '../components/ScrollFactorConfiguration';
|
|
8
|
+
import { TransformConfiguration } from '../components/TransformConfiguration';
|
|
9
|
+
import { VisibleConfiguration } from '../components/VisibleConfiguration';
|
|
10
|
+
import { GlobalConfiguration } from '../global/GlobalConfiguration';
|
|
11
|
+
import { GameObjects } from 'phaser';
|
|
12
|
+
export type ShapeConfiguration = {
|
|
13
|
+
active: GameObjects.Shape["active"];
|
|
14
|
+
displayHeight: GameObjects.Shape["displayHeight"];
|
|
15
|
+
displayWidth: GameObjects.Shape["displayWidth"];
|
|
16
|
+
fillAlpha: GameObjects.Shape["fillAlpha"];
|
|
17
|
+
fillColor: GameObjects.Shape["fillColor"];
|
|
18
|
+
strokeStyle: Parameters<GameObjects.Shape["setStrokeStyle"]>;
|
|
19
|
+
} & AlphaSingleConfiguration & BlendModeConfiguration & DepthConfiguration & GlobalConfiguration & MaskConfiguration & OriginConfiguration & PipelineConfiguration & ScrollFactorConfiguration & TransformConfiguration & VisibleConfiguration;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ArcConfiguration } from '../configuration/ArcConfiguration';
|
|
2
|
+
import { GameObjectEventMapEmitsOptions } from './shared/GameObjectEventMapEmitsOptions';
|
|
3
|
+
import { ExtractUpdateEvent } from '../../utils/types/ExtractUpdateEvent';
|
|
4
|
+
import { UpdateEvent } from '../../utils/types/UpdateEvent';
|
|
5
|
+
export type ArcEventEmitsOptions = {
|
|
6
|
+
[P in UpdateEvent<keyof ArcConfiguration>]: [ArcConfiguration[ExtractUpdateEvent<P>]?];
|
|
7
|
+
} & GameObjectEventMapEmitsOptions;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ContainerConfiguration } from '../configuration/ContainerConfiguration';
|
|
2
|
+
import { GameObjectEventMapEmitsOptions } from './shared/GameObjectEventMapEmitsOptions';
|
|
3
|
+
import { ExtractUpdateEvent } from '../../utils/types/ExtractUpdateEvent';
|
|
4
|
+
import { UpdateEvent } from '../../utils/types/UpdateEvent';
|
|
5
|
+
export type ContainerEventEmitsOptions = {
|
|
6
|
+
[P in UpdateEvent<keyof ContainerConfiguration>]: [ContainerConfiguration[ExtractUpdateEvent<P>]?];
|
|
7
|
+
} & GameObjectEventMapEmitsOptions;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ImageConfiguration } from '../configuration/ImageConfiguration';
|
|
2
|
+
import { GameObjectEventMapEmitsOptions } from './shared/GameObjectEventMapEmitsOptions';
|
|
3
|
+
import { ExtractUpdateEvent } from '../../utils/types/ExtractUpdateEvent';
|
|
4
|
+
import { UpdateEvent } from '../../utils/types/UpdateEvent';
|
|
5
|
+
export type ImageEventEmitsOptions = {
|
|
6
|
+
[P in UpdateEvent<keyof ImageConfiguration>]: [ImageConfiguration[ExtractUpdateEvent<P>]?];
|
|
7
|
+
} & GameObjectEventMapEmitsOptions;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { NineSliceConfiguration } from '../configuration/NineSliceConfiguration';
|
|
2
|
+
import { GameObjectEventMapEmitsOptions } from './shared/GameObjectEventMapEmitsOptions';
|
|
3
|
+
import { ExtractUpdateEvent } from '../../utils/types/ExtractUpdateEvent';
|
|
4
|
+
import { UpdateEvent } from '../../utils/types/UpdateEvent';
|
|
5
|
+
export type NineSliceEventEmitsOptions = {
|
|
6
|
+
[P in UpdateEvent<keyof NineSliceConfiguration>]: [NineSliceConfiguration[ExtractUpdateEvent<P>]?];
|
|
7
|
+
} & GameObjectEventMapEmitsOptions;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PathFollowerConfiguration } from '../configuration/PathFollowerConfiguration';
|
|
2
|
+
import { GameObjectEventMapEmitsOptions } from './shared/GameObjectEventMapEmitsOptions';
|
|
3
|
+
import { ExtractUpdateEvent } from '../../utils/types/ExtractUpdateEvent';
|
|
4
|
+
import { UpdateEvent } from '../../utils/types/UpdateEvent';
|
|
5
|
+
export type PathFollowerEventEmitsOptions = {
|
|
6
|
+
[P in UpdateEvent<keyof PathFollowerConfiguration>]: [PathFollowerConfiguration[ExtractUpdateEvent<P>]?];
|
|
7
|
+
} & GameObjectEventMapEmitsOptions;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { RectangleConfiguration } from '../configuration/RectangleConfiguration';
|
|
2
|
+
import { GameObjectEventMapEmitsOptions } from './shared/GameObjectEventMapEmitsOptions';
|
|
3
|
+
import { ExtractUpdateEvent } from '../../utils/types/ExtractUpdateEvent';
|
|
4
|
+
import { UpdateEvent } from '../../utils/types/UpdateEvent';
|
|
5
|
+
export type RectangleEventEmitsOptions = {
|
|
6
|
+
[P in UpdateEvent<keyof RectangleConfiguration>]: [RectangleConfiguration[ExtractUpdateEvent<P>]?];
|
|
7
|
+
} & GameObjectEventMapEmitsOptions;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SpriteConfiguration } from '../configuration/SpriteConfiguration';
|
|
2
|
+
import { GameObjectEventMapEmitsOptions } from './shared/GameObjectEventMapEmitsOptions';
|
|
3
|
+
import { ExtractUpdateEvent } from '../../utils/types/ExtractUpdateEvent';
|
|
4
|
+
import { UpdateEvent } from '../../utils/types/UpdateEvent';
|
|
5
|
+
export type SpriteEventEmitsOptions = {
|
|
6
|
+
[P in UpdateEvent<keyof SpriteConfiguration>]: [SpriteConfiguration[ExtractUpdateEvent<P>]?];
|
|
7
|
+
} & GameObjectEventMapEmitsOptions;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { TextConfiguration } from '../configuration/TextConfiguration';
|
|
2
|
+
import { GameObjectEventMapEmitsOptions } from './shared/GameObjectEventMapEmitsOptions';
|
|
3
|
+
import { ExtractUpdateEvent } from '../../utils/types/ExtractUpdateEvent';
|
|
4
|
+
import { UpdateEvent } from '../../utils/types/UpdateEvent';
|
|
5
|
+
export type TextEventEmitsOptions = {
|
|
6
|
+
[P in UpdateEvent<keyof TextConfiguration>]: [TextConfiguration[ExtractUpdateEvent<P>]?];
|
|
7
|
+
} & GameObjectEventMapEmitsOptions;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { TileSpriteConfiguration } from '../configuration/TileSpriteConfiguration';
|
|
2
|
+
import { GameObjectEventMapEmitsOptions } from './shared/GameObjectEventMapEmitsOptions';
|
|
3
|
+
import { ExtractUpdateEvent } from '../../utils/types/ExtractUpdateEvent';
|
|
4
|
+
import { UpdateEvent } from '../../utils/types/UpdateEvent';
|
|
5
|
+
export type TileSpriteEventEmitsOptions = {
|
|
6
|
+
[P in UpdateEvent<keyof TileSpriteConfiguration>]: [TileSpriteConfiguration[ExtractUpdateEvent<P>]?];
|
|
7
|
+
} & GameObjectEventMapEmitsOptions & Record<string, unknown[]>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ZoneConfiguration } from '../configuration/ZoneConfiguration';
|
|
2
|
+
import { GameObjectEventMapEmitsOptions } from './shared/GameObjectEventMapEmitsOptions';
|
|
3
|
+
import { ExtractUpdateEvent } from '../../utils/types/ExtractUpdateEvent';
|
|
4
|
+
import { UpdateEvent } from '../../utils/types/UpdateEvent';
|
|
5
|
+
export type ZoneEventEmitsOptions = {
|
|
6
|
+
[P in UpdateEvent<keyof ZoneConfiguration>]: [ZoneConfiguration[ExtractUpdateEvent<P>]?];
|
|
7
|
+
} & GameObjectEventMapEmitsOptions;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { AlphaConfiguration } from '../../configuration/components/AlphaConfiguration';
|
|
2
|
+
import { ExtractUpdateEvent } from '../../../utils/types/ExtractUpdateEvent';
|
|
3
|
+
import { UpdateEvent } from '../../../utils/types/UpdateEvent';
|
|
4
|
+
export type AlphaEventEmitsOptions = {
|
|
5
|
+
[P in UpdateEvent<keyof AlphaConfiguration>]: [AlphaConfiguration[ExtractUpdateEvent<P>]?];
|
|
6
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { AlphaSingleConfiguration } from '../../configuration/components/AlphaSingleConfiguration';
|
|
2
|
+
import { ExtractUpdateEvent } from '../../../utils/types/ExtractUpdateEvent';
|
|
3
|
+
import { UpdateEvent } from '../../../utils/types/UpdateEvent';
|
|
4
|
+
export type AlphaSingleEventEmitsOptions = {
|
|
5
|
+
[P in UpdateEvent<keyof AlphaSingleConfiguration>]: [AlphaSingleConfiguration[ExtractUpdateEvent<P>]?];
|
|
6
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { BaseTextureConfiguration } from '../../configuration/components/BaseTextureConfiguration';
|
|
2
|
+
import { ExtractUpdateEvent } from '../../../utils/types/ExtractUpdateEvent';
|
|
3
|
+
import { UpdateEvent } from '../../../utils/types/UpdateEvent';
|
|
4
|
+
export type BaseTextureEventEmitsOptions = {
|
|
5
|
+
[P in UpdateEvent<keyof BaseTextureConfiguration>]: [BaseTextureConfiguration[ExtractUpdateEvent<P>]?];
|
|
6
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { BlendModeConfiguration } from '../../configuration/components/BlendModeConfiguration';
|
|
2
|
+
import { ExtractUpdateEvent } from '../../../utils/types/ExtractUpdateEvent';
|
|
3
|
+
import { UpdateEvent } from '../../../utils/types/UpdateEvent';
|
|
4
|
+
export type BlendModeEventEmitsOptions = {
|
|
5
|
+
[P in UpdateEvent<keyof BlendModeConfiguration>]: [BlendModeConfiguration[ExtractUpdateEvent<P>]?];
|
|
6
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ComputedSizeConfiguration } from '../../configuration/components/ComputedSizeConfiguration';
|
|
2
|
+
import { ExtractUpdateEvent } from '../../../utils/types/ExtractUpdateEvent';
|
|
3
|
+
import { UpdateEvent } from '../../../utils/types/UpdateEvent';
|
|
4
|
+
export type ComputedSizeEventEmitsOptions = {
|
|
5
|
+
[P in UpdateEvent<keyof ComputedSizeConfiguration>]: [ComputedSizeConfiguration[ExtractUpdateEvent<P>]?];
|
|
6
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { DepthConfiguration } from '../../configuration/components/DepthConfiguration';
|
|
2
|
+
import { ExtractUpdateEvent } from '../../../utils/types/ExtractUpdateEvent';
|
|
3
|
+
import { UpdateEvent } from '../../../utils/types/UpdateEvent';
|
|
4
|
+
export type DepthEventEmitsOptions = {
|
|
5
|
+
[P in UpdateEvent<keyof DepthConfiguration>]: [DepthConfiguration[ExtractUpdateEvent<P>]?];
|
|
6
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { FXConfiguration } from '../../configuration/components/FXConfiguration';
|
|
2
|
+
import { ExtractUpdateEvent } from '../../../utils/types/ExtractUpdateEvent';
|
|
3
|
+
import { UpdateEvent } from '../../../utils/types/UpdateEvent';
|
|
4
|
+
export type FXEventEmitsOptions = {
|
|
5
|
+
[P in UpdateEvent<keyof FXConfiguration>]: [FXConfiguration[ExtractUpdateEvent<P>]?];
|
|
6
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { FlipConfiguration } from '../../configuration/components/FlipConfiguration';
|
|
2
|
+
import { ExtractUpdateEvent } from '../../../utils/types/ExtractUpdateEvent';
|
|
3
|
+
import { UpdateEvent } from '../../../utils/types/UpdateEvent';
|
|
4
|
+
export type FlipEventEmitsOptions = {
|
|
5
|
+
[P in UpdateEvent<keyof FlipConfiguration>]: [FlipConfiguration[ExtractUpdateEvent<P>]?];
|
|
6
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { MaskConfiguration } from '../../configuration/components/MaskConfiguration';
|
|
2
|
+
import { ExtractUpdateEvent } from '../../../utils/types/ExtractUpdateEvent';
|
|
3
|
+
import { UpdateEvent } from '../../../utils/types/UpdateEvent';
|
|
4
|
+
export type MaskEventEmitsOptions = {
|
|
5
|
+
[P in UpdateEvent<keyof MaskConfiguration>]: [MaskConfiguration[ExtractUpdateEvent<P>]?];
|
|
6
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { OriginConfiguration } from '../../configuration/components/OriginConfiguration';
|
|
2
|
+
import { ExtractUpdateEvent } from '../../../utils/types/ExtractUpdateEvent';
|
|
3
|
+
import { UpdateEvent } from '../../../utils/types/UpdateEvent';
|
|
4
|
+
export type OriginEventEmitsOptions = {
|
|
5
|
+
[P in UpdateEvent<keyof OriginConfiguration>]: [OriginConfiguration[ExtractUpdateEvent<P>]?];
|
|
6
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PathFollowerComponentConfiguration } from '../../configuration/components/PathFollowerComponentConfiguration';
|
|
2
|
+
import { ExtractUpdateEvent } from '../../../utils/types/ExtractUpdateEvent';
|
|
3
|
+
import { UpdateEvent } from '../../../utils/types/UpdateEvent';
|
|
4
|
+
export type PathFollowerComponentEventEmitsOptions = {
|
|
5
|
+
[P in UpdateEvent<keyof PathFollowerComponentConfiguration>]: [
|
|
6
|
+
PathFollowerComponentConfiguration[ExtractUpdateEvent<P>]?
|
|
7
|
+
];
|
|
8
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { PipelineConfiguration } from '../../configuration/components/PipelineConfiguration';
|
|
2
|
+
import { ExtractUpdateEvent } from '../../../utils/types/ExtractUpdateEvent';
|
|
3
|
+
import { UpdateEvent } from '../../../utils/types/UpdateEvent';
|
|
4
|
+
export type PipelineEventEmitsOptions = {
|
|
5
|
+
[P in UpdateEvent<keyof PipelineConfiguration>]: [PipelineConfiguration[ExtractUpdateEvent<P>]?];
|
|
6
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ScrollFactorConfiguration } from '../../configuration/components/ScrollFactorConfiguration';
|
|
2
|
+
import { ExtractUpdateEvent } from '../../../utils/types/ExtractUpdateEvent';
|
|
3
|
+
import { UpdateEvent } from '../../../utils/types/UpdateEvent';
|
|
4
|
+
export type ScrollFactorEventEmitsOptions = {
|
|
5
|
+
[P in UpdateEvent<keyof ScrollFactorConfiguration>]: [ScrollFactorConfiguration[ExtractUpdateEvent<P>]?];
|
|
6
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { SizeConfiguration } from '../../configuration/components/SizeConfiguration';
|
|
2
|
+
import { ExtractUpdateEvent } from '../../../utils/types/ExtractUpdateEvent';
|
|
3
|
+
import { UpdateEvent } from '../../../utils/types/UpdateEvent';
|
|
4
|
+
export type SizeEventEmitsOptions = {
|
|
5
|
+
[P in UpdateEvent<keyof SizeConfiguration>]: [SizeConfiguration[ExtractUpdateEvent<P>]?];
|
|
6
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { TextureCropConfiguration } from '../../configuration/components/TextureCropConfiguration';
|
|
2
|
+
import { ExtractUpdateEvent } from '../../../utils/types/ExtractUpdateEvent';
|
|
3
|
+
import { UpdateEvent } from '../../../utils/types/UpdateEvent';
|
|
4
|
+
export type TextureCropEventEmitsOptions = {
|
|
5
|
+
[P in UpdateEvent<keyof TextureCropConfiguration>]: [TextureCropConfiguration[ExtractUpdateEvent<P>]?];
|
|
6
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { TextureConfiguration } from '../../configuration/components/TextureConfiguration';
|
|
2
|
+
import { ExtractUpdateEvent } from '../../../utils/types/ExtractUpdateEvent';
|
|
3
|
+
import { UpdateEvent } from '../../../utils/types/UpdateEvent';
|
|
4
|
+
export type TextureEventEmitsOptions = {
|
|
5
|
+
[P in UpdateEvent<keyof TextureConfiguration>]: [TextureConfiguration[ExtractUpdateEvent<P>]?];
|
|
6
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { TintConfiguration } from '../../configuration/components/TintConfiguration';
|
|
2
|
+
import { ExtractUpdateEvent } from '../../../utils/types/ExtractUpdateEvent';
|
|
3
|
+
import { UpdateEvent } from '../../../utils/types/UpdateEvent';
|
|
4
|
+
export type TintEventEmitsOptions = {
|
|
5
|
+
[P in UpdateEvent<keyof TintConfiguration>]: [TintConfiguration[ExtractUpdateEvent<P>]?];
|
|
6
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { TransformConfiguration } from '../../configuration/components/TransformConfiguration';
|
|
2
|
+
import { ExtractUpdateEvent } from '../../../utils/types/ExtractUpdateEvent';
|
|
3
|
+
import { UpdateEvent } from '../../../utils/types/UpdateEvent';
|
|
4
|
+
export type TransformEventEmitsOptions = {
|
|
5
|
+
[P in UpdateEvent<keyof TransformConfiguration>]: [TransformConfiguration[ExtractUpdateEvent<P>]?];
|
|
6
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { VisibleConfiguration } from '../../configuration/components/VisibleConfiguration';
|
|
2
|
+
import { ExtractUpdateEvent } from '../../../utils/types/ExtractUpdateEvent';
|
|
3
|
+
import { UpdateEvent } from '../../../utils/types/UpdateEvent';
|
|
4
|
+
export type VisibleEventEmitsOptions = {
|
|
5
|
+
[P in UpdateEvent<keyof VisibleConfiguration>]: [VisibleConfiguration[ExtractUpdateEvent<P>]?];
|
|
6
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { GameObjectConfiguration } from '../../configuration/global/GameObjectConfiguration';
|
|
2
|
+
import { GameObjectEventMap } from '../../../utils/emit/GameObjectEventMap';
|
|
3
|
+
import { ExtractUpdateEvent } from '../../../utils/types/ExtractUpdateEvent';
|
|
4
|
+
import { UpdateEvent } from '../../../utils/types/UpdateEvent';
|
|
5
|
+
import { Types } from 'phaser';
|
|
6
|
+
export type GameObjectEventEmitsOptions = {
|
|
7
|
+
[P in keyof typeof GameObjectEventMap]: Types.Input.EventData[];
|
|
8
|
+
} & {
|
|
9
|
+
[P in UpdateEvent<keyof GameObjectConfiguration>]: [GameObjectConfiguration[ExtractUpdateEvent<P>]?];
|
|
10
|
+
};
|