bard-legends-framework 0.12.1 → 1.0.0-rc1
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/dist/index.d.mts +976 -0
- package/dist/index.d.ts +976 -4
- package/dist/index.js +67 -21
- package/dist/index.mjs +67 -0
- package/package.json +26 -11
- package/dist/_interfaces/index.d.ts +0 -6
- package/dist/_interfaces/index.js +0 -2
- package/dist/actions-performance.test.d.ts +0 -1
- package/dist/actions-performance.test.js +0 -83
- package/dist/game-entities/_base/attachable.d.ts +0 -10
- package/dist/game-entities/_base/attachable.js +0 -47
- package/dist/game-entities/_base/attachable.store.d.ts +0 -8
- package/dist/game-entities/_base/attachable.store.js +0 -43
- package/dist/game-entities/_base/attachment-target.d.ts +0 -16
- package/dist/game-entities/_base/attachment-target.js +0 -53
- package/dist/game-entities/_base/destroyable.d.ts +0 -3
- package/dist/game-entities/_base/destroyable.js +0 -10
- package/dist/game-entities/_base/interfaces.d.ts +0 -3
- package/dist/game-entities/_base/interfaces.js +0 -3
- package/dist/game-entities/_base/mixins.d.ts +0 -22
- package/dist/game-entities/_base/mixins.js +0 -60
- package/dist/game-entities/attachable/attachable.d.ts +0 -10
- package/dist/game-entities/attachable/attachable.js +0 -34
- package/dist/game-entities/attachable/attachable.spec.d.ts +0 -1
- package/dist/game-entities/attachable/attachable.spec.js +0 -137
- package/dist/game-entities/attachable/attachable.store.d.ts +0 -8
- package/dist/game-entities/attachable/attachable.store.js +0 -41
- package/dist/game-entities/attachable/attachable.test.d.ts +0 -1
- package/dist/game-entities/attachable/attachable.test.js +0 -140
- package/dist/game-entities/attachable/destroyable.d.ts +0 -17
- package/dist/game-entities/attachable/destroyable.js +0 -71
- package/dist/game-entities/attachable/helpers/decorate-actions-lib.d.ts +0 -20
- package/dist/game-entities/attachable/helpers/decorate-actions-lib.js +0 -134
- package/dist/game-entities/attachable/helpers/referance-variable.d.ts +0 -19
- package/dist/game-entities/attachable/helpers/referance-variable.js +0 -51
- package/dist/game-entities/attachable/interfaces.d.ts +0 -14
- package/dist/game-entities/attachable/interfaces.js +0 -2
- package/dist/game-entities/base/attachable.d.ts +0 -18
- package/dist/game-entities/base/attachable.js +0 -94
- package/dist/game-entities/base/attachable.test.d.ts +0 -1
- package/dist/game-entities/base/attachable.test.js +0 -125
- package/dist/game-entities/base/attachment-target.d.ts +0 -9
- package/dist/game-entities/base/attachment-target.js +0 -53
- package/dist/game-entities/base/attachment-target.test.d.ts +0 -1
- package/dist/game-entities/base/attachment-target.test.js +0 -131
- package/dist/game-entities/base/destroyable.d.ts +0 -16
- package/dist/game-entities/base/destroyable.js +0 -61
- package/dist/game-entities/base/helpers/attachable.store.d.ts +0 -2
- package/dist/game-entities/base/helpers/attachable.store.js +0 -68
- package/dist/game-entities/base/helpers/attachable.store.test.d.ts +0 -1
- package/dist/game-entities/base/helpers/attachable.store.test.js +0 -234
- package/dist/game-entities/base/helpers/attachment-target.store.d.ts +0 -1
- package/dist/game-entities/base/helpers/attachment-target.store.js +0 -40
- package/dist/game-entities/base/helpers/decorate-actions-lib.d.ts +0 -20
- package/dist/game-entities/base/helpers/decorate-actions-lib.js +0 -124
- package/dist/game-entities/base/helpers/referance-variable.d.ts +0 -19
- package/dist/game-entities/base/helpers/referance-variable.js +0 -52
- package/dist/game-entities/base/interfaces.d.ts +0 -14
- package/dist/game-entities/base/interfaces.js +0 -3
- package/dist/game-entities/controller/controller.d.ts +0 -9
- package/dist/game-entities/controller/controller.js +0 -53
- package/dist/game-entities/controller/controller.spec.d.ts +0 -1
- package/dist/game-entities/controller/controller.spec.js +0 -131
- package/dist/game-entities/controller/controller.test.d.ts +0 -1
- package/dist/game-entities/controller/controller.test.js +0 -128
- package/dist/game-entities/entity/entity.d.ts +0 -15
- package/dist/game-entities/entity/entity.js +0 -73
- package/dist/game-entities/entity/entity.spec.d.ts +0 -1
- package/dist/game-entities/entity/entity.spec.js +0 -271
- package/dist/game-entities/entity/entity.test.d.ts +0 -1
- package/dist/game-entities/entity/entity.test.js +0 -253
- package/dist/game-entities/entity/helpers/entity-store.helper.d.ts +0 -11
- package/dist/game-entities/entity/helpers/entity-store.helper.js +0 -46
- package/dist/game-entities/entity/helpers/entity-store.helper.test.d.ts +0 -1
- package/dist/game-entities/entity/helpers/entity-store.helper.test.js +0 -136
- package/dist/game-entities/entity/helpers/entity-views.helper.d.ts +0 -14
- package/dist/game-entities/entity/helpers/entity-views.helper.js +0 -71
- package/dist/game-entities/entity/helpers/view-creation.helper.d.ts +0 -11
- package/dist/game-entities/entity/helpers/view-creation.helper.js +0 -57
- package/dist/game-entities/entity/singleton-entity.d.ts +0 -6
- package/dist/game-entities/entity/singleton-entity.js +0 -23
- package/dist/game-entities/entity/singleton-entity.test.d.ts +0 -1
- package/dist/game-entities/entity/singleton-entity.test.js +0 -66
- package/dist/game-entities/hard-reset.d.ts +0 -5
- package/dist/game-entities/hard-reset.js +0 -14
- package/dist/game-entities/index.d.ts +0 -8
- package/dist/game-entities/index.js +0 -25
- package/dist/game-entities/scene/scene.d.ts +0 -27
- package/dist/game-entities/scene/scene.js +0 -106
- package/dist/game-entities/scene/scene.spec.d.ts +0 -1
- package/dist/game-entities/scene/scene.spec.js +0 -227
- package/dist/game-entities/scene/scene.test.d.ts +0 -1
- package/dist/game-entities/scene/scene.test.js +0 -275
- package/dist/game-entities/service/service.d.ts +0 -6
- package/dist/game-entities/service/service.js +0 -59
- package/dist/game-entities/service/service.spec.d.ts +0 -1
- package/dist/game-entities/service/service.spec.js +0 -273
- package/dist/game-entities/service/service.test.d.ts +0 -1
- package/dist/game-entities/service/service.test.js +0 -273
- package/dist/game-entities/unit-test.helper.d.ts +0 -5
- package/dist/game-entities/unit-test.helper.js +0 -14
- package/dist/game-entities/update-cycle.d.ts +0 -25
- package/dist/game-entities/update-cycle.js +0 -67
- package/dist/game-entities/update-loop.d.ts +0 -21
- package/dist/game-entities/update-loop.js +0 -53
- package/dist/game-entities/view/view.d.ts +0 -16
- package/dist/game-entities/view/view.js +0 -56
- package/dist/game-entities/view/view.spec.d.ts +0 -1
- package/dist/game-entities/view/view.spec.js +0 -498
- package/dist/game-entities/view/view.test.d.ts +0 -1
- package/dist/game-entities/view/view.test.js +0 -348
- package/dist/lib/animator/animations.d.ts +0 -25
- package/dist/lib/animator/animations.js +0 -61
- package/dist/lib/animator/animator.d.ts +0 -52
- package/dist/lib/animator/animator.js +0 -219
- package/dist/lib/animator/animator.spec.d.ts +0 -1
- package/dist/lib/animator/animator.spec.js +0 -702
- package/dist/lib/animator/index.d.ts +0 -2
- package/dist/lib/animator/index.js +0 -24
- package/dist/lib/libraries/animator/animations.d.ts +0 -25
- package/dist/lib/libraries/animator/animations.js +0 -61
- package/dist/lib/libraries/animator/animator.d.ts +0 -52
- package/dist/lib/libraries/animator/animator.js +0 -219
- package/dist/lib/libraries/animator/animator.spec.d.ts +0 -1
- package/dist/lib/libraries/animator/animator.spec.js +0 -702
- package/dist/lib/libraries/animator/index.d.ts +0 -2
- package/dist/lib/libraries/animator/index.js +0 -24
- package/dist/lib/libraries/path-finder/path-finder.d.ts +0 -5
- package/dist/lib/libraries/path-finder/path-finder.js +0 -23
- package/dist/lib/path-finder/path-finder.d.ts +0 -5
- package/dist/lib/path-finder/path-finder.js +0 -23
- package/dist/lib/services/keyboard/keyboard.d.ts +0 -7
- package/dist/lib/services/keyboard/keyboard.js +0 -44
- package/dist/lib/services/mouse/mouse.service.d.ts +0 -12
- package/dist/lib/services/mouse/mouse.service.js +0 -70
- package/dist/lib/services/mouse/mouser-target-focus.service.d.ts +0 -16
- package/dist/lib/services/mouse/mouser-target-focus.service.js +0 -93
- package/dist/lib/update-loop.d.ts +0 -13
- package/dist/lib/update-loop.js +0 -44
- package/dist/physics/entitity-types/immovable-physics-entity.d.ts +0 -13
- package/dist/physics/entitity-types/immovable-physics-entity.js +0 -27
- package/dist/physics/entitity-types/movable-entity.d.ts +0 -11
- package/dist/physics/entitity-types/movable-entity.js +0 -25
- package/dist/physics/entitity-types/movable-physics-entity.d.ts +0 -21
- package/dist/physics/entitity-types/movable-physics-entity.js +0 -87
- package/dist/physics/entitity-types/physics-entity.d.ts +0 -31
- package/dist/physics/entitity-types/physics-entity.js +0 -106
- package/dist/physics/entity-types/immovable-physics-entity.d.ts +0 -9
- package/dist/physics/entity-types/immovable-physics-entity.js +0 -25
- package/dist/physics/entity-types/movable-entity.d.ts +0 -11
- package/dist/physics/entity-types/movable-entity.js +0 -26
- package/dist/physics/entity-types/movable-physics-entity.d.ts +0 -19
- package/dist/physics/entity-types/movable-physics-entity.js +0 -94
- package/dist/physics/entity-types/physics-entity.d.ts +0 -30
- package/dist/physics/entity-types/physics-entity.js +0 -90
- package/dist/physics/helpers/closest-available-space.helper.d.ts +0 -19
- package/dist/physics/helpers/closest-available-space.helper.js +0 -109
- package/dist/physics/helpers/closest-available-space.helper.spec.d.ts +0 -1
- package/dist/physics/helpers/closest-available-space.helper.spec.js +0 -118
- package/dist/physics/helpers/p2js.helper.d.ts +0 -7
- package/dist/physics/helpers/p2js.helper.js +0 -25
- package/dist/physics/helpers/shape-factory.d.ts +0 -13
- package/dist/physics/helpers/shape-factory.js +0 -109
- package/dist/physics/index.d.ts +0 -6
- package/dist/physics/index.js +0 -28
- package/dist/physics/interfaces.d.ts +0 -48
- package/dist/physics/interfaces.js +0 -13
- package/dist/physics/libs/p2js.helper.d.ts +0 -10
- package/dist/physics/libs/p2js.helper.js +0 -46
- package/dist/physics/libs/physics-body-groups.d.ts +0 -1
- package/dist/physics/libs/physics-body-groups.js +0 -3
- package/dist/physics/libs/position-to-grid-position-converter.d.ts +0 -6
- package/dist/physics/libs/position-to-grid-position-converter.js +0 -19
- package/dist/physics/module//342/232/234/357/270/217gateways/controllers/physics-internal.controller.d.ts +0 -29
- package/dist/physics/module//342/232/234/357/270/217gateways/controllers/physics-internal.controller.js +0 -62
- package/dist/physics/module//342/232/234/357/270/217gateways/controllers/physics.controller.d.ts +0 -34
- package/dist/physics/module//342/232/234/357/270/217gateways/controllers/physics.controller.js +0 -80
- package/dist/physics/module//342/232/234/357/270/217gateways/dtos/requests.dto.d.ts +0 -24
- package/dist/physics/module//342/232/234/357/270/217gateways/dtos/requests.dto.js +0 -3
- package/dist/physics/module//342/232/234/357/270/217gateways/dtos/responses.dto.d.ts +0 -30
- package/dist/physics/module//342/232/234/357/270/217gateways/dtos/responses.dto.js +0 -3
- package/dist/physics/module//342/232/234/357/270/217gateways/dtos/shared-interfaces.dto.d.ts +0 -21
- package/dist/physics/module//342/232/234/357/270/217gateways/dtos/shared-interfaces.dto.js +0 -5
- package/dist/physics/module//342/232/234/357/270/217gateways/index.d.ts +0 -4
- package/dist/physics/module//342/232/234/357/270/217gateways/index.js +0 -26
- package/dist/physics/module//342/232/234/357/270/217gateways/physics-internal.gateway.d.ts +0 -20
- package/dist/physics/module//342/232/234/357/270/217gateways/physics-internal.gateway.js +0 -42
- package/dist/physics/module//342/232/234/357/270/217gateways/physics.gateway.d.ts +0 -19
- package/dist/physics/module//342/232/234/357/270/217gateways/physics.gateway.js +0 -49
- package/dist/physics/module//360/237/223/220services/availability-grid.service.d.ts +0 -17
- package/dist/physics/module//360/237/223/220services/availability-grid.service.js +0 -83
- package/dist/physics/module//360/237/223/220services/border.service.d.ts +0 -5
- package/dist/physics/module//360/237/223/220services/border.service.js +0 -62
- package/dist/physics/module//360/237/223/220services/collision/collisions.service.d.ts +0 -10
- package/dist/physics/module//360/237/223/220services/collision/collisions.service.js +0 -113
- package/dist/physics/module//360/237/223/220services/collision/hit-test.service.d.ts +0 -10
- package/dist/physics/module//360/237/223/220services/collision/hit-test.service.js +0 -75
- package/dist/physics/module//360/237/223/220services/collision/physics-body-group.service.d.ts +0 -12
- package/dist/physics/module//360/237/223/220services/collision/physics-body-group.service.js +0 -61
- package/dist/physics/module//360/237/223/220services/collisions.service.d.ts +0 -10
- package/dist/physics/module//360/237/223/220services/collisions.service.js +0 -118
- package/dist/physics/module//360/237/223/220services/creation/border.service.d.ts +0 -6
- package/dist/physics/module//360/237/223/220services/creation/border.service.js +0 -42
- package/dist/physics/module//360/237/223/220services/creation/materials.service.d.ts +0 -15
- package/dist/physics/module//360/237/223/220services/creation/materials.service.js +0 -120
- package/dist/physics/module//360/237/223/220services/creation/physics-world.service.d.ts +0 -21
- package/dist/physics/module//360/237/223/220services/creation/physics-world.service.js +0 -116
- package/dist/physics/module//360/237/223/220services/creation/shape-creation.service.d.ts +0 -9
- package/dist/physics/module//360/237/223/220services/creation/shape-creation.service.js +0 -98
- package/dist/physics/module//360/237/223/220services/debug-visuals.service.d.ts +0 -36
- package/dist/physics/module//360/237/223/220services/debug-visuals.service.js +0 -127
- package/dist/physics/module//360/237/223/220services/eliptic-explosion.service.d.ts +0 -22
- package/dist/physics/module//360/237/223/220services/eliptic-explosion.service.js +0 -126
- package/dist/physics/module//360/237/223/220services/explosion.service.d.ts +0 -21
- package/dist/physics/module//360/237/223/220services/explosion.service.js +0 -112
- package/dist/physics/module//360/237/223/220services/explosions/eliptic-explosion.service.d.ts +0 -22
- package/dist/physics/module//360/237/223/220services/explosions/eliptic-explosion.service.js +0 -126
- package/dist/physics/module//360/237/223/220services/explosions/explosion.service.d.ts +0 -21
- package/dist/physics/module//360/237/223/220services/explosions/explosion.service.js +0 -112
- package/dist/physics/module//360/237/223/220services/explosions/helpers/ray-cast-hit-converter.d.ts +0 -9
- package/dist/physics/module//360/237/223/220services/explosions/helpers/ray-cast-hit-converter.js +0 -77
- package/dist/physics/module//360/237/223/220services/helpers/ray-cast-hit-converter.d.ts +0 -9
- package/dist/physics/module//360/237/223/220services/helpers/ray-cast-hit-converter.js +0 -77
- package/dist/physics/module//360/237/223/220services/impact/eliptic-explosion.service.d.ts +0 -18
- package/dist/physics/module//360/237/223/220services/impact/eliptic-explosion.service.js +0 -107
- package/dist/physics/module//360/237/223/220services/impact/explosion.service.d.ts +0 -18
- package/dist/physics/module//360/237/223/220services/impact/explosion.service.js +0 -93
- package/dist/physics/module//360/237/223/220services/impact/impact.service.d.ts +0 -5
- package/dist/physics/module//360/237/223/220services/impact/impact.service.js +0 -23
- package/dist/physics/module//360/237/223/220services/impact/ray-cast-hit-converter.d.ts +0 -9
- package/dist/physics/module//360/237/223/220services/impact/ray-cast-hit-converter.js +0 -83
- package/dist/physics/module//360/237/223/220services/materials.service.d.ts +0 -20
- package/dist/physics/module//360/237/223/220services/materials.service.js +0 -130
- package/dist/physics/module//360/237/223/220services/path-finder.service.d.ts +0 -26
- package/dist/physics/module//360/237/223/220services/path-finder.service.js +0 -131
- package/dist/physics/module//360/237/223/220services/path-finding/availability-grid-cache.service.d.ts +0 -15
- package/dist/physics/module//360/237/223/220services/path-finding/availability-grid-cache.service.js +0 -51
- package/dist/physics/module//360/237/223/220services/path-finding/availability-grid.service.d.ts +0 -16
- package/dist/physics/module//360/237/223/220services/path-finding/availability-grid.service.js +0 -76
- package/dist/physics/module//360/237/223/220services/path-finding/path-finder.service.d.ts +0 -14
- package/dist/physics/module//360/237/223/220services/path-finding/path-finder.service.js +0 -86
- package/dist/physics/module//360/237/223/220services/physics-world.service.d.ts +0 -41
- package/dist/physics/module//360/237/223/220services/physics-world.service.js +0 -134
- package/dist/physics/module//360/237/223/220services/query/physics-query.service.d.ts +0 -9
- package/dist/physics/module//360/237/223/220services/query/physics-query.service.js +0 -25
- package/dist/physics/module//360/237/223/220services/ray-casting/ray-casting.service.d.ts +0 -9
- package/dist/physics/module//360/237/223/220services/ray-casting/ray-casting.service.js +0 -91
- package/dist/physics/module//360/237/223/220services/ray-casting.service.d.ts +0 -9
- package/dist/physics/module//360/237/223/220services/ray-casting.service.js +0 -93
- package/dist/physics/module//360/237/223/220services/shape-creation.service.d.ts +0 -14
- package/dist/physics/module//360/237/223/220services/shape-creation.service.js +0 -124
- package/dist/physics/module//360/237/223/220services/test-visuals/test-visuals.service.d.ts +0 -22
- package/dist/physics/module//360/237/223/220services/test-visuals/test-visuals.service.js +0 -157
- package/dist/physics/module//360/237/247/212entities/border.entity.d.ts +0 -5
- package/dist/physics/module//360/237/247/212entities/border.entity.js +0 -25
- package/dist/physics/module//360/237/247/212entities/data-structures/availability-grid-cache.d.ts +0 -12
- package/dist/physics/module//360/237/247/212entities/data-structures/availability-grid-cache.js +0 -39
- package/dist/physics/module//360/237/247/212entities/physics-world.entity.d.ts +0 -33
- package/dist/physics/module//360/237/247/212entities/physics-world.entity.js +0 -51
- package/dist/physics/physics-world.d.ts +0 -62
- package/dist/physics/physics-world.js +0 -153
- package/dist/physics/sub-elements/available-spaces/helpers/availability-grid.helper.d.ts +0 -6
- package/dist/physics/sub-elements/available-spaces/helpers/availability-grid.helper.js +0 -19
- package/dist/physics/sub-elements/available-spaces/physics-availability-grid.d.ts +0 -15
- package/dist/physics/sub-elements/available-spaces/physics-availability-grid.js +0 -92
- package/dist/physics/sub-elements/available-spaces/physics-available-spaces.d.ts +0 -26
- package/dist/physics/sub-elements/available-spaces/physics-available-spaces.js +0 -102
- package/dist/physics/sub-elements/collisions/contact-equation-orginiser.d.ts +0 -18
- package/dist/physics/sub-elements/collisions/contact-equation-orginiser.js +0 -90
- package/dist/physics/sub-elements/collisions/physics-collision.d.ts +0 -12
- package/dist/physics/sub-elements/collisions/physics-collision.js +0 -50
- package/dist/physics/sub-elements/elements/physics-body-groups.d.ts +0 -15
- package/dist/physics/sub-elements/elements/physics-body-groups.js +0 -76
- package/dist/physics/sub-elements/elements/physics-materials.d.ts +0 -19
- package/dist/physics/sub-elements/elements/physics-materials.js +0 -108
- package/dist/physics/sub-elements/elements/physics-world-borders.d.ts +0 -11
- package/dist/physics/sub-elements/elements/physics-world-borders.js +0 -77
- package/dist/physics/sub-elements/physics-body-groups.d.ts +0 -12
- package/dist/physics/sub-elements/physics-body-groups.js +0 -54
- package/dist/physics/sub-elements/physics-collision.d.ts +0 -22
- package/dist/physics/sub-elements/physics-collision.js +0 -155
- package/dist/physics/sub-elements/physics-materials.d.ts +0 -19
- package/dist/physics/sub-elements/physics-materials.js +0 -108
- package/dist/physics/sub-elements/physics-world-borders.d.ts +0 -6
- package/dist/physics/sub-elements/physics-world-borders.js +0 -29
- package/dist/physics/sub-elements/raycasting/physics-body-explosion-hit.d.ts +0 -20
- package/dist/physics/sub-elements/raycasting/physics-body-explosion-hit.js +0 -65
- package/dist/physics/sub-elements/raycasting/physics-explosion.d.ts +0 -20
- package/dist/physics/sub-elements/raycasting/physics-explosion.js +0 -115
- package/dist/physics/sub-elements/raycasting/ray-cast.d.ts +0 -27
- package/dist/physics/sub-elements/raycasting/ray-cast.js +0 -101
- package/dist/pixi/components/display-object-array.d.ts +0 -28
- package/dist/pixi/components/display-object-array.js +0 -62
- package/dist/pixi/components/helpers/smooth-scroller.d.ts +0 -25
- package/dist/pixi/components/helpers/smooth-scroller.js +0 -63
- package/dist/pixi/components/helpers/smooth-scroller.test.d.ts +0 -1
- package/dist/pixi/components/helpers/smooth-scroller.test.js +0 -137
- package/dist/pixi/components/menu/menu-entity.d.ts +0 -14
- package/dist/pixi/components/menu/menu-entity.js +0 -48
- package/dist/pixi/components/menu/menu.ui.d.ts +0 -23
- package/dist/pixi/components/menu/menu.ui.js +0 -97
- package/dist/pixi/components/mouse-wheel-listener.ui.d.ts +0 -11
- package/dist/pixi/components/mouse-wheel-listener.ui.js +0 -63
- package/dist/pixi/components/scroll-area.ui.d.ts +0 -18
- package/dist/pixi/components/scroll-area.ui.js +0 -56
- package/dist/pixi/components/scroll-mask.ui.d.ts +0 -17
- package/dist/pixi/components/scroll-mask.ui.js +0 -132
- package/dist/pixi/display-object/components/filters.d.ts +0 -21
- package/dist/pixi/display-object/components/filters.js +0 -116
- package/dist/pixi/display-object/components/glow-effect.d.ts +0 -12
- package/dist/pixi/display-object/components/glow-effect.js +0 -40
- package/dist/pixi/display-object/components/glow-filter.d.ts +0 -12
- package/dist/pixi/display-object/components/glow-filter.js +0 -40
- package/dist/pixi/display-object/container-attributes.d.ts +0 -99
- package/dist/pixi/display-object/container-attributes.js +0 -313
- package/dist/pixi/display-object/container.d.ts +0 -22
- package/dist/pixi/display-object/container.js +0 -72
- package/dist/pixi/display-object/display-object-attributes.d.ts +0 -45
- package/dist/pixi/display-object/display-object-attributes.js +0 -152
- package/dist/pixi/display-object/display-object.d.ts +0 -25
- package/dist/pixi/display-object/display-object.js +0 -87
- package/dist/pixi/display-object/filters/base-filters/alpha-primer-color.filter.d.ts +0 -13
- package/dist/pixi/display-object/filters/base-filters/alpha-primer-color.filter.js +0 -103
- package/dist/pixi/display-object/filters/base-filters/blur.filter.d.ts +0 -11
- package/dist/pixi/display-object/filters/base-filters/blur.filter.js +0 -115
- package/dist/pixi/display-object/filters/base-filters/contrast-filter.d.ts +0 -12
- package/dist/pixi/display-object/filters/base-filters/contrast-filter.js +0 -72
- package/dist/pixi/display-object/filters/base-filters/expand-with-alpha-color.d.ts +0 -14
- package/dist/pixi/display-object/filters/base-filters/expand-with-alpha-color.js +0 -107
- package/dist/pixi/display-object/filters/base-filters/expand-with-color-gradient.d.ts +0 -16
- package/dist/pixi/display-object/filters/base-filters/expand-with-color-gradient.js +0 -133
- package/dist/pixi/display-object/filters/base-filters/expand-with-color.d.ts +0 -14
- package/dist/pixi/display-object/filters/base-filters/expand-with-color.filter.d.ts +0 -9
- package/dist/pixi/display-object/filters/base-filters/expand-with-color.filter.js +0 -103
- package/dist/pixi/display-object/filters/base-filters/expand-with-color.js +0 -107
- package/dist/pixi/display-object/filters/composite-filters/glow-filter.d.ts +0 -8
- package/dist/pixi/display-object/filters/composite-filters/glow-filter.js +0 -59
- package/dist/pixi/display-object/filters/helpers/gaussian-values.helper.d.ts +0 -10
- package/dist/pixi/display-object/filters/helpers/gaussian-values.helper.js +0 -64
- package/dist/pixi/display-object/filters/helpers/gaussian-values.helper.test.d.ts +0 -1
- package/dist/pixi/display-object/filters/helpers/gaussian-values.helper.test.js +0 -31
- package/dist/pixi/display-object/filters/templates/checking-neighbors.template.d.ts +0 -7
- package/dist/pixi/display-object/filters/templates/checking-neighbors.template.js +0 -74
- package/dist/pixi/display-object/filters/templates/plane.template.d.ts +0 -7
- package/dist/pixi/display-object/filters/templates/plane.template.js +0 -65
- package/dist/pixi/display-object/filters.d.ts +0 -29
- package/dist/pixi/display-object/filters.js +0 -151
- package/dist/pixi/display-object/index.d.ts +0 -9
- package/dist/pixi/display-object/index.js +0 -19
- package/dist/pixi/display-object/objects/components/filters.d.ts +0 -21
- package/dist/pixi/display-object/objects/components/filters.js +0 -116
- package/dist/pixi/display-object/objects/container.d.ts +0 -6
- package/dist/pixi/display-object/objects/container.js +0 -47
- package/dist/pixi/display-object/objects/graphics/graphics.d.ts +0 -34
- package/dist/pixi/display-object/objects/graphics/graphics.js +0 -201
- package/dist/pixi/display-object/objects/graphics/helpers/dashed-line.helper.d.ts +0 -16
- package/dist/pixi/display-object/objects/graphics/helpers/dashed-line.helper.js +0 -45
- package/dist/pixi/display-object/objects/graphics.d.ts +0 -40
- package/dist/pixi/display-object/objects/graphics.js +0 -229
- package/dist/pixi/display-object/objects/helpers/filters.d.ts +0 -29
- package/dist/pixi/display-object/objects/helpers/filters.js +0 -161
- package/dist/pixi/display-object/objects/helpers/glow-sprite-generator.d.ts +0 -11
- package/dist/pixi/display-object/objects/helpers/glow-sprite-generator.js +0 -129
- package/dist/pixi/display-object/objects/placeholder.d.ts +0 -7
- package/dist/pixi/display-object/objects/placeholder.js +0 -46
- package/dist/pixi/display-object/objects/premade-objects/sprite-with-glowing-shapes.d.ts +0 -9
- package/dist/pixi/display-object/objects/premade-objects/sprite-with-glowing-shapes.js +0 -89
- package/dist/pixi/display-object/objects/sprite/glow-sprite-generator.d.ts +0 -11
- package/dist/pixi/display-object/objects/sprite/glow-sprite-generator.js +0 -113
- package/dist/pixi/display-object/objects/sprite/sprite.d.ts +0 -52
- package/dist/pixi/display-object/objects/sprite/sprite.js +0 -269
- package/dist/pixi/display-object/objects/sprite.d.ts +0 -51
- package/dist/pixi/display-object/objects/sprite.js +0 -273
- package/dist/pixi/display-object/objects/text/helpers/index.d.ts +0 -8
- package/dist/pixi/display-object/objects/text/helpers/index.js +0 -6
- package/dist/pixi/display-object/objects/text/helpers/process-steps/1-data-in-converter/pixi-text-style-converter.d.ts +0 -30
- package/dist/pixi/display-object/objects/text/helpers/process-steps/1-data-in-converter/pixi-text-style-converter.js +0 -53
- package/dist/pixi/display-object/objects/text/helpers/process-steps/1-data-in-converter/rich-text-data-in-converter.d.ts +0 -19
- package/dist/pixi/display-object/objects/text/helpers/process-steps/1-data-in-converter/rich-text-data-in-converter.js +0 -162
- package/dist/pixi/display-object/objects/text/helpers/process-steps/1-data-in-converter/rich-text-data-in-converter.test.d.ts +0 -1
- package/dist/pixi/display-object/objects/text/helpers/process-steps/1-data-in-converter/rich-text-data-in-converter.test.js +0 -371
- package/dist/pixi/display-object/objects/text/helpers/process-steps/2-wrapping-text/consistent-space-text-wrapper.d.ts +0 -6
- package/dist/pixi/display-object/objects/text/helpers/process-steps/2-wrapping-text/consistent-space-text-wrapper.js +0 -70
- package/dist/pixi/display-object/objects/text/helpers/process-steps/2-wrapping-text/consistent-space-text-wrapper.test.d.ts +0 -1
- package/dist/pixi/display-object/objects/text/helpers/process-steps/2-wrapping-text/consistent-space-text-wrapper.test.js +0 -136
- package/dist/pixi/display-object/objects/text/helpers/process-steps/2-wrapping-text/rich-text-typewriter.d.ts +0 -37
- package/dist/pixi/display-object/objects/text/helpers/process-steps/2-wrapping-text/rich-text-typewriter.js +0 -169
- package/dist/pixi/display-object/objects/text/helpers/process-steps/2-wrapping-text/rich-text-typewriter.test.d.ts +0 -1
- package/dist/pixi/display-object/objects/text/helpers/process-steps/2-wrapping-text/rich-text-typewriter.test.js +0 -283
- package/dist/pixi/display-object/objects/text/helpers/process-steps/3-data-out-converter/rich-text-data-out-converter.d.ts +0 -8
- package/dist/pixi/display-object/objects/text/helpers/process-steps/3-data-out-converter/rich-text-data-out-converter.js +0 -88
- package/dist/pixi/display-object/objects/text/helpers/process-steps/3-data-out-converter/rich-text-data-out-converter.test.d.ts +0 -1
- package/dist/pixi/display-object/objects/text/helpers/process-steps/3-data-out-converter/rich-text-data-out-converter.test.js +0 -152
- package/dist/pixi/display-object/objects/text/helpers/rich-text-to-plane-text.d.ts +0 -28
- package/dist/pixi/display-object/objects/text/helpers/rich-text-to-plane-text.js +0 -37
- package/dist/pixi/display-object/objects/text/helpers/rich-text-to-plane-text.test.d.ts +0 -5
- package/dist/pixi/display-object/objects/text/helpers/rich-text-to-plane-text.test.js +0 -669
- package/dist/pixi/display-object/objects/text/rich-text.d.ts +0 -19
- package/dist/pixi/display-object/objects/text/rich-text.js +0 -15
- package/dist/pixi/display-object/objects/text/text.d.ts +0 -25
- package/dist/pixi/display-object/objects/text/text.js +0 -132
- package/dist/pixi/display-object/objects/text.d.ts +0 -35
- package/dist/pixi/display-object/objects/text.js +0 -124
- package/dist/pixi/display-object/premade-objects/sprite-with-glowing-shapes.d.ts +0 -22
- package/dist/pixi/display-object/premade-objects/sprite-with-glowing-shapes.js +0 -107
- package/dist/pixi/game.d.ts +0 -47
- package/dist/pixi/game.js +0 -137
- package/dist/pixi/helpers/game-assets.d.ts +0 -15
- package/dist/pixi/helpers/game-assets.js +0 -103
- package/dist/pixi/helpers/glow-sprite-generator.d.ts +0 -10
- package/dist/pixi/helpers/glow-sprite-generator.js +0 -113
- package/dist/pixi/helpers/pixi-container.helper.d.ts +0 -5
- package/dist/pixi/helpers/pixi-container.helper.js +0 -14
- package/dist/pixi/helpers/position-conversion.helper.d.ts +0 -12
- package/dist/pixi/helpers/position-conversion.helper.js +0 -54
- package/dist/pixi/helpers/position-conversion.helper.test.d.ts +0 -1
- package/dist/pixi/helpers/position-conversion.helper.test.js +0 -83
- package/dist/pixi/helpers/screen-position-to-stage.helper.d.ts +0 -4
- package/dist/pixi/helpers/screen-position-to-stage.helper.js +0 -17
- package/dist/pixi/helpers/screen-position-to-stage.helper.test.d.ts +0 -1
- package/dist/pixi/helpers/screen-position-to-stage.helper.test.js +0 -178
- package/dist/pixi/index.d.ts +0 -14
- package/dist/pixi/index.js +0 -44
- package/dist/pixi/modules/CAMERA/camera.d.ts +0 -13
- package/dist/pixi/modules/CAMERA/camera.js +0 -27
- package/dist/pixi/modules/CAMERA/index.d.ts +0 -2
- package/dist/pixi/modules/CAMERA/index.js +0 -9
- package/dist/pixi/modules/CAMERA//342/232/234/357/270/217gateways/camera-view.gateway.d.ts +0 -8
- package/dist/pixi/modules/CAMERA//342/232/234/357/270/217gateways/camera-view.gateway.js +0 -24
- package/dist/pixi/modules/CAMERA//342/232/234/357/270/217gateways/camera.gateway.d.ts +0 -11
- package/dist/pixi/modules/CAMERA//342/232/234/357/270/217gateways/camera.gateway.js +0 -33
- package/dist/pixi/modules/CAMERA//342/232/234/357/270/217gateways/controllers/camera-view.controller.d.ts +0 -6
- package/dist/pixi/modules/CAMERA//342/232/234/357/270/217gateways/controllers/camera-view.controller.js +0 -30
- package/dist/pixi/modules/CAMERA//342/232/234/357/270/217gateways/controllers/camera.controller.d.ts +0 -12
- package/dist/pixi/modules/CAMERA//342/232/234/357/270/217gateways/controllers/camera.controller.js +0 -41
- package/dist/pixi/modules/CAMERA//342/232/234/357/270/217gateways/dtos/requests.dto.d.ts +0 -19
- package/dist/pixi/modules/CAMERA//342/232/234/357/270/217gateways/dtos/requests.dto.js +0 -18
- package/dist/pixi/modules/CAMERA//342/232/234/357/270/217gateways/index.d.ts +0 -3
- package/dist/pixi/modules/CAMERA//342/232/234/357/270/217gateways/index.js +0 -27
- package/dist/pixi/modules/CAMERA//360/237/223/220services/camera.service.d.ts +0 -12
- package/dist/pixi/modules/CAMERA//360/237/223/220services/camera.service.js +0 -96
- package/dist/pixi/modules/CAMERA//360/237/247/212entities/camera.entity.d.ts +0 -18
- package/dist/pixi/modules/CAMERA//360/237/247/212entities/camera.entity.js +0 -26
- package/dist/pixi/modules/CAMERA//360/237/247/251views/camera.view.d.ts +0 -23
- package/dist/pixi/modules/CAMERA//360/237/247/251views/camera.view.js +0 -115
- package/dist/pixi/pixi-definitions.d.ts +0 -38
- package/dist/pixi/pixi-definitions.js +0 -37
- package/dist/pixi/services/keyboard/keyboard.d.ts +0 -12
- package/dist/pixi/services/keyboard/keyboard.js +0 -54
- package/dist/pixi/services/mouse/mouse-target-focus.service.d.ts +0 -21
- package/dist/pixi/services/mouse/mouse-target-focus.service.js +0 -86
- package/dist/pixi/services/mouse/mouse.service.d.ts +0 -21
- package/dist/pixi/services/mouse/mouse.service.js +0 -101
- package/dist/services/keyboard/keyboard.d.ts +0 -7
- package/dist/services/keyboard/keyboard.js +0 -44
- package/dist/services/mouse/mouse.service.d.ts +0 -12
- package/dist/services/mouse/mouse.service.js +0 -70
- package/dist/services/mouse/mouser-target-focus.service.d.ts +0 -16
- package/dist/services/mouse/mouser-target-focus.service.js +0 -93
- package/dist/utilities/animator/animating-content/fade-in-content.d.ts +0 -18
- package/dist/utilities/animator/animating-content/fade-in-content.js +0 -37
- package/dist/utilities/animator/animating-content/fade-in-content.test.d.ts +0 -1
- package/dist/utilities/animator/animating-content/fade-in-content.test.js +0 -10
- package/dist/utilities/animator/animating-content/slide-in-content.d.ts +0 -37
- package/dist/utilities/animator/animating-content/slide-in-content.js +0 -99
- package/dist/utilities/animator/animating-content/slide-in-content.test.d.ts +0 -1
- package/dist/utilities/animator/animating-content/slide-in-content.test.js +0 -10
- package/dist/utilities/animator/animations.d.ts +0 -45
- package/dist/utilities/animator/animations.js +0 -92
- package/dist/utilities/animator/animator/animator.d.ts +0 -44
- package/dist/utilities/animator/animator/animator.js +0 -234
- package/dist/utilities/animator/animator/animator.memory-leak.test.d.ts +0 -1
- package/dist/utilities/animator/animator/animator.memory-leak.test.js +0 -73
- package/dist/utilities/animator/animator/animator.performance.test.d.ts +0 -1
- package/dist/utilities/animator/animator/animator.performance.test.js +0 -116
- package/dist/utilities/animator/animator/animator.test.d.ts +0 -1
- package/dist/utilities/animator/animator/animator.test.js +0 -1046
- package/dist/utilities/animator/animator.d.ts +0 -60
- package/dist/utilities/animator/animator.js +0 -322
- package/dist/utilities/animator/animator.performance.test.d.ts +0 -1
- package/dist/utilities/animator/animator.performance.test.js +0 -46
- package/dist/utilities/animator/animator.test.d.ts +0 -1
- package/dist/utilities/animator/animator.test.js +0 -928
- package/dist/utilities/animator/animator2/animator.d.ts +0 -42
- package/dist/utilities/animator/animator2/animator.js +0 -222
- package/dist/utilities/animator/animator2/animator.memory-leak.test.d.ts +0 -1
- package/dist/utilities/animator/animator2/animator.memory-leak.test.js +0 -73
- package/dist/utilities/animator/animator2/animator.performance.test.d.ts +0 -1
- package/dist/utilities/animator/animator2/animator.performance.test.js +0 -65
- package/dist/utilities/animator/animator2/animator.test.d.ts +0 -1
- package/dist/utilities/animator/animator2/animator.test.js +0 -1007
- package/dist/utilities/animator/animator_old/animator.d.ts +0 -60
- package/dist/utilities/animator/animator_old/animator.js +0 -337
- package/dist/utilities/animator/animator_old/animator.performance.test.d.ts +0 -1
- package/dist/utilities/animator/animator_old/animator.performance.test.js +0 -121
- package/dist/utilities/animator/animator_old/animator.test.d.ts +0 -1
- package/dist/utilities/animator/animator_old/animator.test.js +0 -996
- package/dist/utilities/animator/content-animations/fade-in/fade-in-content.d.ts +0 -18
- package/dist/utilities/animator/content-animations/fade-in/fade-in-content.js +0 -37
- package/dist/utilities/animator/content-animations/fade-in/fade-in-content.test.d.ts +0 -1
- package/dist/utilities/animator/content-animations/fade-in/fade-in-content.test.js +0 -10
- package/dist/utilities/animator/content-animations/fade-in/fade-in-state-animation.d.ts +0 -38
- package/dist/utilities/animator/content-animations/fade-in/fade-in-state-animation.js +0 -208
- package/dist/utilities/animator/content-animations/fade-in/fade-in-state-animation.test.d.ts +0 -1
- package/dist/utilities/animator/content-animations/fade-in/fade-in-state-animation.test.js +0 -439
- package/dist/utilities/animator/content-animations/slide/slide-in-content.d.ts +0 -41
- package/dist/utilities/animator/content-animations/slide/slide-in-content.js +0 -107
- package/dist/utilities/animator/content-animations/slide/slide-in-content.test.d.ts +0 -1
- package/dist/utilities/animator/content-animations/slide/slide-in-content.test.js +0 -10
- package/dist/utilities/animator/content-animations/slide/slide-state-animation.d.ts +0 -24
- package/dist/utilities/animator/content-animations/slide/slide-state-animation.js +0 -138
- package/dist/utilities/animator/content-animations/slide/slide-state-animation.test.d.ts +0 -1
- package/dist/utilities/animator/content-animations/slide/slide-state-animation.test.js +0 -307
- package/dist/utilities/animator/content-animations/slide/state-animation.d.ts +0 -37
- package/dist/utilities/animator/content-animations/slide/state-animation.js +0 -170
- package/dist/utilities/animator/content-animations/slide/state-animation.test.d.ts +0 -1
- package/dist/utilities/animator/content-animations/slide/state-animation.test.js +0 -340
- package/dist/utilities/animator/index.d.ts +0 -7
- package/dist/utilities/animator/index.js +0 -24
- package/dist/utilities/animator/state-animation/fade-in/fade-in-content.d.ts +0 -18
- package/dist/utilities/animator/state-animation/fade-in/fade-in-content.js +0 -37
- package/dist/utilities/animator/state-animation/fade-in/fade-in-content.test.d.ts +0 -1
- package/dist/utilities/animator/state-animation/fade-in/fade-in-content.test.js +0 -10
- package/dist/utilities/animator/state-animation/fade-in/fade-in-state-animation.d.ts +0 -32
- package/dist/utilities/animator/state-animation/fade-in/fade-in-state-animation.js +0 -168
- package/dist/utilities/animator/state-animation/fade-in/fade-in-state-animation.test.d.ts +0 -1
- package/dist/utilities/animator/state-animation/fade-in/fade-in-state-animation.test.js +0 -431
- package/dist/utilities/animator/state-animation/slide/slide-in-content.d.ts +0 -37
- package/dist/utilities/animator/state-animation/slide/slide-in-content.js +0 -100
- package/dist/utilities/animator/state-animation/slide/slide-in-content.test.d.ts +0 -1
- package/dist/utilities/animator/state-animation/slide/slide-in-content.test.js +0 -10
- package/dist/utilities/animator/state-animation/slide/slide-state-animation.d.ts +0 -24
- package/dist/utilities/animator/state-animation/slide/slide-state-animation.js +0 -130
- package/dist/utilities/animator/state-animation/slide/slide-state-animation.test.d.ts +0 -1
- package/dist/utilities/animator/state-animation/slide/slide-state-animation.test.js +0 -301
- package/dist/utilities/animator/state-animation/slide-state-animation.d.ts +0 -24
- package/dist/utilities/animator/state-animation/slide-state-animation.js +0 -130
- package/dist/utilities/animator/state-animation/slide-state-animation.test.d.ts +0 -1
- package/dist/utilities/animator/state-animation/slide-state-animation.test.js +0 -301
- package/dist/utilities/animator/state-animation/state-animation.d.ts +0 -33
- package/dist/utilities/animator/state-animation/state-animation.js +0 -146
- package/dist/utilities/animator/state-animation/state-animation.test.d.ts +0 -1
- package/dist/utilities/animator/state-animation/state-animation.test.js +0 -335
- package/dist/utilities/animator/state-animation/visit-disappear-state-animation.d.ts +0 -32
- package/dist/utilities/animator/state-animation/visit-disappear-state-animation.js +0 -168
- package/dist/utilities/animator/state-animation/visit-disappear-state-animation.test.d.ts +0 -1
- package/dist/utilities/animator/state-animation/visit-disappear-state-animation.test.js +0 -431
- package/dist/utilities/data-structures/vector-set/vector-set.d.ts +0 -7
- package/dist/utilities/data-structures/vector-set/vector-set.js +0 -26
- package/dist/utilities/delta-time/delta-time.d.ts +0 -3
- package/dist/utilities/delta-time/delta-time.js +0 -10
- package/dist/utilities/grid-algorithms/closest-available-space/closest-available-space.helper.d.ts +0 -6
- package/dist/utilities/grid-algorithms/closest-available-space/closest-available-space.helper.js +0 -55
- package/dist/utilities/grid-algorithms/closest-available-space/closest-available-space.helper.test.d.ts +0 -1
- package/dist/utilities/grid-algorithms/closest-available-space/closest-available-space.helper.test.js +0 -100
- package/dist/utilities/grid-algorithms/path-finder/path-finder.d.ts +0 -8
- package/dist/utilities/grid-algorithms/path-finder/path-finder.js +0 -98
- package/dist/utilities/grid-algorithms/path-finder/path-finder.test.d.ts +0 -1
- package/dist/utilities/grid-algorithms/path-finder/path-finder.test.js +0 -155
- package/dist/utilities/grid-algorithms/position-to-grid-position-converter.d.ts +0 -6
- package/dist/utilities/grid-algorithms/position-to-grid-position-converter.js +0 -17
- package/dist/utilities/grid-algorithms/vector-field-path-finder/vector-field-path-finder.d.ts +0 -18
- package/dist/utilities/grid-algorithms/vector-field-path-finder/vector-field-path-finder.js +0 -129
- package/dist/utilities/grid-algorithms/vector-field-path-finder/vector-field-path-finder.test.d.ts +0 -1
- package/dist/utilities/grid-algorithms/vector-field-path-finder/vector-field-path-finder.test.js +0 -254
- package/dist/utilities/index.d.ts +0 -6
- package/dist/utilities/index.js +0 -29
- package/dist/utilities/libraries/animator/animating-content/fade-in-content.d.ts +0 -18
- package/dist/utilities/libraries/animator/animating-content/fade-in-content.js +0 -37
- package/dist/utilities/libraries/animator/animating-content/slide-in-content.d.ts +0 -37
- package/dist/utilities/libraries/animator/animating-content/slide-in-content.js +0 -99
- package/dist/utilities/libraries/animator/animating-content/state-animation.d.ts +0 -36
- package/dist/utilities/libraries/animator/animating-content/state-animation.js +0 -174
- package/dist/utilities/libraries/animator/animating-content/state-animation.test.d.ts +0 -1
- package/dist/utilities/libraries/animator/animating-content/state-animation.test.js +0 -399
- package/dist/utilities/libraries/animator/animations.d.ts +0 -37
- package/dist/utilities/libraries/animator/animations.js +0 -88
- package/dist/utilities/libraries/animator/animator.d.ts +0 -63
- package/dist/utilities/libraries/animator/animator.js +0 -325
- package/dist/utilities/libraries/animator/animator.spec.d.ts +0 -1
- package/dist/utilities/libraries/animator/animator.spec.js +0 -779
- package/dist/utilities/libraries/animator/animator.test.d.ts +0 -1
- package/dist/utilities/libraries/animator/animator.test.js +0 -893
- package/dist/utilities/libraries/animator/index.d.ts +0 -7
- package/dist/utilities/libraries/animator/index.js +0 -24
- package/dist/utilities/libraries/animator/state-animation/slide-state-animation.d.ts +0 -24
- package/dist/utilities/libraries/animator/state-animation/slide-state-animation.js +0 -131
- package/dist/utilities/libraries/animator/state-animation/slide-state-animation.test.d.ts +0 -1
- package/dist/utilities/libraries/animator/state-animation/slide-state-animation.test.js +0 -326
- package/dist/utilities/libraries/animator/state-animation/state-animation.d.ts +0 -33
- package/dist/utilities/libraries/animator/state-animation/state-animation.js +0 -147
- package/dist/utilities/libraries/animator/state-animation/state-animation.test.d.ts +0 -1
- package/dist/utilities/libraries/animator/state-animation/state-animation.test.js +0 -360
- package/dist/utilities/libraries/animator/state-animation/visit-disappear-state-animation.d.ts +0 -32
- package/dist/utilities/libraries/animator/state-animation/visit-disappear-state-animation.js +0 -169
- package/dist/utilities/libraries/animator/state-animation/visit-disappear-state-animation.test.d.ts +0 -1
- package/dist/utilities/libraries/animator/state-animation/visit-disappear-state-animation.test.js +0 -456
- package/dist/utilities/libraries/binary-heap/binary-heap.d.ts +0 -13
- package/dist/utilities/libraries/binary-heap/binary-heap.js +0 -110
- package/dist/utilities/libraries/data-structures/binary-heap/binary-heap.d.ts +0 -13
- package/dist/utilities/libraries/data-structures/binary-heap/binary-heap.js +0 -110
- package/dist/utilities/libraries/data-structures/grid/grid.d.ts +0 -38
- package/dist/utilities/libraries/data-structures/grid/grid.js +0 -133
- package/dist/utilities/libraries/data-structures/grid/grid.spec.d.ts +0 -1
- package/dist/utilities/libraries/data-structures/grid/grid.spec.js +0 -178
- package/dist/utilities/libraries/data-structures/grid/grid.test.d.ts +0 -1
- package/dist/utilities/libraries/data-structures/grid/grid.test.js +0 -220
- package/dist/utilities/libraries/data-structures/grid/position-to-grid-position-converter.d.ts +0 -6
- package/dist/utilities/libraries/data-structures/grid/position-to-grid-position-converter.js +0 -19
- package/dist/utilities/libraries/data-structures/queue/queue.d.ts +0 -23
- package/dist/utilities/libraries/data-structures/queue/queue.js +0 -72
- package/dist/utilities/libraries/data-structures/queue/queue.test.d.ts +0 -1
- package/dist/utilities/libraries/data-structures/queue/queue.test.js +0 -57
- package/dist/utilities/libraries/data-structures/vector-set/vector-set.d.ts +0 -7
- package/dist/utilities/libraries/data-structures/vector-set/vector-set.js +0 -26
- package/dist/utilities/libraries/delta-time/delta-time.d.ts +0 -3
- package/dist/utilities/libraries/delta-time/delta-time.js +0 -10
- package/dist/utilities/libraries/grid-algorithms/closest-available-space/closest-available-space.helper.d.ts +0 -6
- package/dist/utilities/libraries/grid-algorithms/closest-available-space/closest-available-space.helper.js +0 -55
- package/dist/utilities/libraries/grid-algorithms/closest-available-space/closest-available-space.helper.spec.d.ts +0 -1
- package/dist/utilities/libraries/grid-algorithms/closest-available-space/closest-available-space.helper.spec.js +0 -124
- package/dist/utilities/libraries/grid-algorithms/closest-available-space/closest-available-space.helper.test.d.ts +0 -1
- package/dist/utilities/libraries/grid-algorithms/closest-available-space/closest-available-space.helper.test.js +0 -100
- package/dist/utilities/libraries/grid-algorithms/path-finder/path-finder.d.ts +0 -8
- package/dist/utilities/libraries/grid-algorithms/path-finder/path-finder.js +0 -98
- package/dist/utilities/libraries/grid-algorithms/path-finder/path-finder.spec.d.ts +0 -1
- package/dist/utilities/libraries/grid-algorithms/path-finder/path-finder.spec.js +0 -169
- package/dist/utilities/libraries/grid-algorithms/path-finder/path-finder.test.d.ts +0 -1
- package/dist/utilities/libraries/grid-algorithms/path-finder/path-finder.test.js +0 -155
- package/dist/utilities/libraries/grid-algorithms/position-to-grid-position-converter.d.ts +0 -6
- package/dist/utilities/libraries/grid-algorithms/position-to-grid-position-converter.js +0 -17
- package/dist/utilities/libraries/grid-algorithms/vector-field-path-finder/vector-field-path-finder.d.ts +0 -18
- package/dist/utilities/libraries/grid-algorithms/vector-field-path-finder/vector-field-path-finder.js +0 -129
- package/dist/utilities/libraries/grid-algorithms/vector-field-path-finder/vector-field-path-finder.spec.d.ts +0 -1
- package/dist/utilities/libraries/grid-algorithms/vector-field-path-finder/vector-field-path-finder.spec.js +0 -296
- package/dist/utilities/libraries/grid-algorithms/vector-field-path-finder/vector-field-path-finder.test.d.ts +0 -1
- package/dist/utilities/libraries/grid-algorithms/vector-field-path-finder/vector-field-path-finder.test.js +0 -254
- package/dist/utilities/libraries/path-finder/path-finder.d.ts +0 -12
- package/dist/utilities/libraries/path-finder/path-finder.js +0 -127
- package/dist/utilities/libraries/path-finder/path-finder.spec.d.ts +0 -1
- package/dist/utilities/libraries/path-finder/path-finder.spec.js +0 -158
- package/dist/utilities/services/keyboard/keyboard.d.ts +0 -7
- package/dist/utilities/services/keyboard/keyboard.js +0 -47
- package/dist/utilities/services/mouse/helpers/mouse-position.helper.d.ts +0 -4
- package/dist/utilities/services/mouse/helpers/mouse-position.helper.js +0 -17
- package/dist/utilities/services/mouse/helpers/mouse-position.helper.test.d.ts +0 -1
- package/dist/utilities/services/mouse/helpers/mouse-position.helper.test.js +0 -172
- package/dist/utilities/services/mouse/mouse-target-focus.service.d.ts +0 -20
- package/dist/utilities/services/mouse/mouse-target-focus.service.js +0 -88
- package/dist/utilities/services/mouse/mouse.service.d.ts +0 -13
- package/dist/utilities/services/mouse/mouse.service.js +0 -91
- package/dist/utilities/services/mouse/mouser-target-focus.service.d.ts +0 -16
- package/dist/utilities/services/mouse/mouser-target-focus.service.js +0 -93
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,976 @@
|
|
|
1
|
+
import * as actions_lib from 'actions-lib';
|
|
2
|
+
import { IDAttachable, Attachable, SingleEvent, IAttachment, Action, Notifier, Reducer, Variable } from 'actions-lib';
|
|
3
|
+
import { Vector, Radian, Vec2, RGBColor, Rectangle, Grid, GridNeighborType, Line } from 'helpers-lib';
|
|
4
|
+
import * as Pixi from 'pixi.js';
|
|
5
|
+
|
|
6
|
+
declare class ControllerLink {
|
|
7
|
+
trigger<T>(functionName: string, ...args: any[]): T;
|
|
8
|
+
}
|
|
9
|
+
interface ControllerDecoratorMeta {
|
|
10
|
+
controllerLink: ControllerLink;
|
|
11
|
+
}
|
|
12
|
+
declare function ControllerDecorator(meta: ControllerDecoratorMeta): (ControllerClass: any) => any;
|
|
13
|
+
|
|
14
|
+
type EntityClassType<T extends Entity = Entity> = (new (...args: any[]) => T) & {
|
|
15
|
+
id: number;
|
|
16
|
+
};
|
|
17
|
+
declare function EntityDecorator(): <T extends Entity>(EntityClass: EntityClassType<T>) => any;
|
|
18
|
+
declare abstract class Entity extends IDAttachable {
|
|
19
|
+
static getInstanceByID<T extends Entity>(this: EntityClassType<T>, entityID: number | undefined): T | undefined;
|
|
20
|
+
static getInstanceByIDOrFail<T extends Entity>(this: EntityClassType<T>, entityID: number): T;
|
|
21
|
+
static getEntities<T extends Entity>(this: EntityClassType<T>): T[];
|
|
22
|
+
constructor();
|
|
23
|
+
destroy(): void;
|
|
24
|
+
attach(parent: Attachable): this;
|
|
25
|
+
attachByID(id: number): this;
|
|
26
|
+
attachToRoot(): this;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
declare abstract class SingletonEntity extends Entity {
|
|
30
|
+
static getInstance<T extends SingletonEntity>(this: EntityClassType<T>): T | undefined;
|
|
31
|
+
static getInstanceOrFail<T extends SingletonEntity>(this: EntityClassType<T>): T;
|
|
32
|
+
constructor();
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
declare class BardLegendsHardReset {
|
|
36
|
+
static readonly onHardReset: actions_lib.Notifier<void>;
|
|
37
|
+
static hardReset(): void;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
type SceneClassType = new (...services: unknown[]) => Scene<unknown, unknown>;
|
|
41
|
+
type SceneInput<T> = T extends Scene<infer I, any> ? I : never;
|
|
42
|
+
declare function SceneDecorator(): (SceneClass: SceneClassType) => any;
|
|
43
|
+
declare abstract class Scene<InputType, OutputType> extends IDAttachable {
|
|
44
|
+
static readonly activeScene: actions_lib.Notifier<Scene<unknown, unknown> | undefined>;
|
|
45
|
+
static getActiveScene(this: typeof Scene): Scene<unknown, unknown> | undefined;
|
|
46
|
+
static getActiveSceneOrFail(this: typeof Scene): Scene<unknown, unknown>;
|
|
47
|
+
static isActive<T extends Scene<unknown, unknown>>(this: new (...args: unknown[]) => T): boolean;
|
|
48
|
+
static getInstance<T extends Scene<unknown, unknown>>(this: new (...args: unknown[]) => T): T | undefined;
|
|
49
|
+
static getInstanceOrFail<T extends Scene<unknown, unknown>>(this: new (...args: unknown[]) => T): T;
|
|
50
|
+
static open<T extends Scene<any, any>>(this: new (...args1: unknown[]) => T, ...args2: T extends Scene<void, any> ? [] : [SceneInput<T>]): SingleEvent<T>;
|
|
51
|
+
readonly onClose: actions_lib.Notifier<OutputType>;
|
|
52
|
+
constructor();
|
|
53
|
+
close(...args: OutputType extends void ? [] : [OutputType]): SingleEvent<OutputType>;
|
|
54
|
+
protected abstract init(input: InputType): SingleEvent;
|
|
55
|
+
protected abstract update(time: number, delta: number): void;
|
|
56
|
+
protected abstract prepareToClose(): SingleEvent;
|
|
57
|
+
/**
|
|
58
|
+
* @deprecated
|
|
59
|
+
*/
|
|
60
|
+
destroy(): void;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
declare function ServiceDecorator(): (ServiceClass: any) => any;
|
|
64
|
+
declare class Service {
|
|
65
|
+
static get<T extends Service>(ServiceClass: new (...args: any[]) => T): T;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
declare class UpdateCycle {
|
|
69
|
+
static readonly beforeSceneUpdateAction: actions_lib.Notifier<{
|
|
70
|
+
time: number;
|
|
71
|
+
delta: number;
|
|
72
|
+
}>;
|
|
73
|
+
static readonly sceneUpdateAction: actions_lib.Notifier<{
|
|
74
|
+
time: number;
|
|
75
|
+
delta: number;
|
|
76
|
+
}>;
|
|
77
|
+
static readonly afterSceneUpdateAction: actions_lib.Notifier<{
|
|
78
|
+
time: number;
|
|
79
|
+
delta: number;
|
|
80
|
+
}>;
|
|
81
|
+
static wait(duration: number): SingleEvent;
|
|
82
|
+
static registerUpdateModifier(callback: (time: number, delta: number) => number): void;
|
|
83
|
+
static cleanUpdateModifier(): void;
|
|
84
|
+
static triggerUpdateTick(delta: number): void;
|
|
85
|
+
static get lastDelta(): number;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
type ViewClassType<EntityType extends Entity> = new (entity: EntityType, ...services: any[]) => View;
|
|
89
|
+
interface ViewDecoratorMeta<EntityType extends Entity> {
|
|
90
|
+
entity: EntityClassType<EntityType>;
|
|
91
|
+
}
|
|
92
|
+
declare function ViewDecorator<EntityType extends Entity>(meta: ViewDecoratorMeta<EntityType>): (ViewClass: ViewClassType<EntityType>) => any;
|
|
93
|
+
declare abstract class View extends IDAttachable {
|
|
94
|
+
static getInstance<T extends View>(this: new (...args: any[]) => T, entityID: number): T | undefined;
|
|
95
|
+
static getInstanceOrFail<T extends View>(this: new (...args: any[]) => T, entityID: number): T;
|
|
96
|
+
constructor();
|
|
97
|
+
destroy(): void;
|
|
98
|
+
update(time: number, delta: number): void;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
declare enum ContainerEventType {
|
|
102
|
+
Click = "click",
|
|
103
|
+
MouseOver = "mouseover",
|
|
104
|
+
MouseOut = "mouseout",
|
|
105
|
+
PointerDown = "pointerdown",
|
|
106
|
+
PointerUp = "pointerup",
|
|
107
|
+
PointerUpOutside = "pointerupoutside",
|
|
108
|
+
PointerMove = "pointermove",
|
|
109
|
+
PointerCancel = "pointercancel",
|
|
110
|
+
PointerOver = "pointerover",
|
|
111
|
+
PointerOut = "pointerout",
|
|
112
|
+
PointerEnter = "pointerenter",
|
|
113
|
+
PointerLeave = "pointerleave",
|
|
114
|
+
Added = "added",
|
|
115
|
+
Removed = "removed",
|
|
116
|
+
Update = "update",
|
|
117
|
+
Change = "change"
|
|
118
|
+
}
|
|
119
|
+
declare enum Cursor {
|
|
120
|
+
Default = "default",
|
|
121
|
+
Pointer = "pointer"
|
|
122
|
+
}
|
|
123
|
+
declare abstract class ContainerAttributes extends IDAttachable {
|
|
124
|
+
protected constructor();
|
|
125
|
+
get size(): Vector;
|
|
126
|
+
set size(value: Vector);
|
|
127
|
+
getSize(): Vector;
|
|
128
|
+
setSize(value: Vector): this;
|
|
129
|
+
/**
|
|
130
|
+
* @param value The position to set
|
|
131
|
+
* @param options.holdFrom An anchor point to hold the position from
|
|
132
|
+
* @param options.round Default: true
|
|
133
|
+
* @returns this
|
|
134
|
+
*/
|
|
135
|
+
setPosition(value: Vector, options?: {
|
|
136
|
+
holdFrom?: Vector;
|
|
137
|
+
round?: boolean;
|
|
138
|
+
}): this;
|
|
139
|
+
get position(): Vector;
|
|
140
|
+
set position(value: Vector);
|
|
141
|
+
get x(): number;
|
|
142
|
+
set x(value: number);
|
|
143
|
+
get y(): number;
|
|
144
|
+
set y(value: number);
|
|
145
|
+
on(eventType: ContainerEventType, callback: () => void): IAttachment;
|
|
146
|
+
setRotation(value: Radian): this;
|
|
147
|
+
get rotation(): Radian;
|
|
148
|
+
set rotation(value: Radian);
|
|
149
|
+
/**
|
|
150
|
+
* Number value of the rotation, in order to be animated
|
|
151
|
+
*/
|
|
152
|
+
get rotationValue(): number;
|
|
153
|
+
set rotationValue(value: number);
|
|
154
|
+
setZIndex(value: number): this;
|
|
155
|
+
get zIndex(): number;
|
|
156
|
+
set zIndex(value: number);
|
|
157
|
+
setSkewX(radian: Radian): this;
|
|
158
|
+
get skewX(): Radian;
|
|
159
|
+
set skewX(radian: Radian);
|
|
160
|
+
setSkewY(radian: Radian): this;
|
|
161
|
+
get skewY(): Radian;
|
|
162
|
+
set skewY(radian: Radian);
|
|
163
|
+
setSortableChildren(value: boolean): this;
|
|
164
|
+
get sortableChildren(): boolean;
|
|
165
|
+
set sortableChildren(value: boolean);
|
|
166
|
+
setAlpha(value: number): this;
|
|
167
|
+
get alpha(): number;
|
|
168
|
+
set alpha(value: number);
|
|
169
|
+
setInteractive(value: boolean): this;
|
|
170
|
+
get interactive(): boolean;
|
|
171
|
+
set interactive(value: boolean);
|
|
172
|
+
setCursor(value: Cursor): this;
|
|
173
|
+
get cursor(): Cursor;
|
|
174
|
+
set cursor(value: Cursor);
|
|
175
|
+
protected getMask(): Pixi.Container;
|
|
176
|
+
setMask(mask: ContainerAttributes | undefined): this;
|
|
177
|
+
hitTest(stagePosition: Vector): boolean;
|
|
178
|
+
setMirror(mirror?: boolean): this;
|
|
179
|
+
get mirror(): boolean;
|
|
180
|
+
set mirror(value: boolean);
|
|
181
|
+
setFlip(flip?: boolean): this;
|
|
182
|
+
get flip(): boolean;
|
|
183
|
+
set flip(value: boolean);
|
|
184
|
+
setScale(value: number): this;
|
|
185
|
+
get scale(): number;
|
|
186
|
+
set scale(value: number);
|
|
187
|
+
setAspectRatio(value: number): this;
|
|
188
|
+
get aspectRatio(): number;
|
|
189
|
+
set aspectRatio(value: number);
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
declare class Filters {
|
|
193
|
+
get red(): number;
|
|
194
|
+
set red(value: number);
|
|
195
|
+
get green(): number;
|
|
196
|
+
set green(value: number);
|
|
197
|
+
get blue(): number;
|
|
198
|
+
set blue(value: number);
|
|
199
|
+
get brightness(): number;
|
|
200
|
+
set brightness(value: number);
|
|
201
|
+
get contrast(): number;
|
|
202
|
+
set contrast(value: number);
|
|
203
|
+
get blur(): Vector | undefined;
|
|
204
|
+
set blur(value: Vector | number | undefined);
|
|
205
|
+
constructor(_container: Pixi.Container);
|
|
206
|
+
removeColorFilter(): void;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
declare const DEFAULT_RESOLUTION = 2;
|
|
210
|
+
interface AssetDefinition<T extends string = string> {
|
|
211
|
+
readonly id: string;
|
|
212
|
+
readonly url: T;
|
|
213
|
+
}
|
|
214
|
+
declare enum BlendMode {
|
|
215
|
+
Normal = 0,
|
|
216
|
+
Add = 1,
|
|
217
|
+
Screen = 3,
|
|
218
|
+
Luminosity = 16,
|
|
219
|
+
ColorDodge = 7
|
|
220
|
+
}
|
|
221
|
+
interface SpriteDefinition {
|
|
222
|
+
readonly id: string;
|
|
223
|
+
readonly scale: number;
|
|
224
|
+
readonly anchor: Vec2;
|
|
225
|
+
readonly size: Vec2;
|
|
226
|
+
readonly boundingShapes?: PolygonDefinition;
|
|
227
|
+
readonly destroyAssetOnDestroy?: boolean;
|
|
228
|
+
}
|
|
229
|
+
interface GlowingShapeDefinition {
|
|
230
|
+
readonly color: RGBColor;
|
|
231
|
+
readonly shapeAlpha: number;
|
|
232
|
+
readonly glowAlpha: number;
|
|
233
|
+
readonly glowOptions: GlowOptions;
|
|
234
|
+
readonly shapes: PolygonDefinition;
|
|
235
|
+
}
|
|
236
|
+
type PolygonDefinition = readonly (readonly Vec2[])[];
|
|
237
|
+
interface GlowOptions {
|
|
238
|
+
readonly color: RGBColor;
|
|
239
|
+
readonly blurRadius: number | Vector;
|
|
240
|
+
readonly expand: number;
|
|
241
|
+
readonly blendMode: BlendMode;
|
|
242
|
+
}
|
|
243
|
+
type GlowEffectOptions = Partial<GlowOptions> & {
|
|
244
|
+
glowAlpha?: number;
|
|
245
|
+
};
|
|
246
|
+
|
|
247
|
+
interface SpriteOptions {
|
|
248
|
+
readonly textureSize?: Vector;
|
|
249
|
+
readonly texturePosition?: Vector;
|
|
250
|
+
readonly ignoreAnchor?: boolean;
|
|
251
|
+
}
|
|
252
|
+
declare class Sprite extends Container {
|
|
253
|
+
static createByName(spriteName: string): Sprite;
|
|
254
|
+
static createSnapshotSprite(container: Container): Sprite;
|
|
255
|
+
readonly pixiSprite: Pixi.Sprite;
|
|
256
|
+
constructor(spriteDefinition: SpriteDefinition, options?: SpriteOptions);
|
|
257
|
+
destroy(): void;
|
|
258
|
+
setTextureScale(value: number): this;
|
|
259
|
+
get textureScale(): number;
|
|
260
|
+
set textureScale(value: number);
|
|
261
|
+
get size(): Vector;
|
|
262
|
+
protected getMask(): Pixi.Container;
|
|
263
|
+
set interactive(value: boolean);
|
|
264
|
+
setMipmap(value: boolean): this;
|
|
265
|
+
get mipmap(): boolean;
|
|
266
|
+
set mipmap(value: boolean);
|
|
267
|
+
setBlendMode(value: BlendMode): this;
|
|
268
|
+
get blendMode(): BlendMode;
|
|
269
|
+
set blendMode(value: BlendMode);
|
|
270
|
+
setTint(tint: RGBColor): this;
|
|
271
|
+
get tint(): RGBColor;
|
|
272
|
+
set tint(value: RGBColor);
|
|
273
|
+
setShapeAlpha(value: number): this;
|
|
274
|
+
get shapeAlpha(): number;
|
|
275
|
+
set shapeAlpha(value: number);
|
|
276
|
+
setGlowAlpha(alpha: number): this;
|
|
277
|
+
get glowAlpha(): number;
|
|
278
|
+
set glowAlpha(value: number);
|
|
279
|
+
/**
|
|
280
|
+
* @param align the anchor of the desired alignment dimentions of the Sprite is from 0 to 1 like the anchor
|
|
281
|
+
* @returns the vector of the alignment to set the position for the children
|
|
282
|
+
*/
|
|
283
|
+
getAlignmentVector(alignment: Vector): Vector;
|
|
284
|
+
setGlowEffect(partialOptions: GlowEffectOptions | undefined): this;
|
|
285
|
+
showBoundingShape(value: boolean): this;
|
|
286
|
+
getBoundingMask(): Sprite;
|
|
287
|
+
download(): this;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
interface SetParentOptions {
|
|
291
|
+
addUnder: boolean;
|
|
292
|
+
cropOverflowingParts: boolean;
|
|
293
|
+
}
|
|
294
|
+
declare class Container extends ContainerAttributes {
|
|
295
|
+
protected static allContainers: Map<number, Container>;
|
|
296
|
+
readonly filters: Filters;
|
|
297
|
+
protected addChildTo: Container;
|
|
298
|
+
protected defaultChildOptions: {
|
|
299
|
+
addUnder: boolean;
|
|
300
|
+
cropOverflowingParts: boolean;
|
|
301
|
+
};
|
|
302
|
+
constructor();
|
|
303
|
+
destroy(): void;
|
|
304
|
+
getBoundingMask(): Sprite;
|
|
305
|
+
displayParent(parent: Container | number, partialOptions?: Partial<SetParentOptions>): this;
|
|
306
|
+
get boundingBox(): Rectangle;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
interface CreateDashedLineOptions {
|
|
310
|
+
readonly color: RGBColor;
|
|
311
|
+
readonly width: number;
|
|
312
|
+
readonly dashLength: number;
|
|
313
|
+
readonly dashGap: number;
|
|
314
|
+
readonly lineStartGap: number;
|
|
315
|
+
readonly lineEndGap: number;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
interface ToSpriteOptions {
|
|
319
|
+
readonly cache: boolean;
|
|
320
|
+
readonly cacheName: string;
|
|
321
|
+
readonly keepBounds: boolean;
|
|
322
|
+
}
|
|
323
|
+
declare class Graphics extends Container {
|
|
324
|
+
static createArrow(size: number, color: RGBColor): Graphics;
|
|
325
|
+
static createDashedLine(from: Vector, to: Vector, partialOptions?: Partial<CreateDashedLineOptions>): Graphics;
|
|
326
|
+
static createVector(from: Vector, to: Vector, color: RGBColor): Graphics;
|
|
327
|
+
static createRectangleBorders(size: Vector, borderSize: number, color: RGBColor): Graphics;
|
|
328
|
+
static createRectangle(size: Vector, color?: RGBColor): Graphics;
|
|
329
|
+
static createCircle(radius: number, color: RGBColor): Graphics;
|
|
330
|
+
static createElipse(size: Vector, color: RGBColor): Graphics;
|
|
331
|
+
static createPolygon(polygon: PolygonDefinition, color: RGBColor): Graphics;
|
|
332
|
+
static createRegularPolygon(sides: number, radius: number, color: RGBColor): Graphics;
|
|
333
|
+
readonly pixiGraphics: Pixi.Graphics;
|
|
334
|
+
protected constructor(pixiGraphics: Pixi.Graphics, cacheName: string);
|
|
335
|
+
destroy(): void;
|
|
336
|
+
toSprite(partialOptions?: Partial<ToSpriteOptions>): Sprite;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
declare class Placeholder extends Container {
|
|
340
|
+
constructor(size: Vector);
|
|
341
|
+
destroy(): void;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
interface DropShadowOptions {
|
|
345
|
+
readonly blur: number;
|
|
346
|
+
readonly angle: Radian;
|
|
347
|
+
readonly distance: number;
|
|
348
|
+
readonly color: RGBColor;
|
|
349
|
+
readonly alpha: number;
|
|
350
|
+
}
|
|
351
|
+
type TextAlignment = 'center' | 'left' | 'right';
|
|
352
|
+
interface TextOptions {
|
|
353
|
+
readonly color: RGBColor;
|
|
354
|
+
readonly align: TextAlignment;
|
|
355
|
+
readonly fontFamily: string;
|
|
356
|
+
readonly fontSize: number;
|
|
357
|
+
readonly fontStyle: 'normal' | 'italic' | 'oblique';
|
|
358
|
+
readonly lineHeight: number | undefined;
|
|
359
|
+
readonly dropShadow: DropShadowOptions | undefined;
|
|
360
|
+
readonly wordWrapWidth: number | undefined;
|
|
361
|
+
readonly lineThrough: boolean;
|
|
362
|
+
}
|
|
363
|
+
type PartialTextOptions = Partial<Omit<TextOptions, 'dropShadow'>> & {
|
|
364
|
+
dropShadow?: Partial<DropShadowOptions> | true;
|
|
365
|
+
};
|
|
366
|
+
|
|
367
|
+
interface RichTextRectangleCut {
|
|
368
|
+
readonly position: Vector;
|
|
369
|
+
readonly direction: 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight';
|
|
370
|
+
}
|
|
371
|
+
interface RichTextStyles {
|
|
372
|
+
readonly [key: string]: Omit<PartialTextOptions, 'align' | 'wordWrapWidth' | 'dropShadow'>;
|
|
373
|
+
}
|
|
374
|
+
interface RichTextOptions {
|
|
375
|
+
readonly default: PartialTextOptions;
|
|
376
|
+
readonly styles?: RichTextStyles;
|
|
377
|
+
readonly rectangleCut?: RichTextRectangleCut;
|
|
378
|
+
readonly verticalAlignment?: 'top' | 'center' | 'bottom';
|
|
379
|
+
}
|
|
380
|
+
declare class RichText extends Container {
|
|
381
|
+
constructor(text: string, options: RichTextOptions);
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
declare class Text extends Container {
|
|
385
|
+
get ascent(): number;
|
|
386
|
+
constructor(text: string, partialOptions?: PartialTextOptions);
|
|
387
|
+
destroy(): void;
|
|
388
|
+
setAnchor(value: Vector): this;
|
|
389
|
+
get anchor(): Vector;
|
|
390
|
+
set anchor(value: Vector);
|
|
391
|
+
setPosition(value: Vector, options?: {
|
|
392
|
+
holdFrom?: Vector | undefined;
|
|
393
|
+
round?: boolean | undefined;
|
|
394
|
+
} | undefined): this;
|
|
395
|
+
setText(text: string): this;
|
|
396
|
+
setColor(color: RGBColor): this;
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
declare abstract class UpdatableContainer<T> extends Container {
|
|
400
|
+
abstract update(value: T): void;
|
|
401
|
+
}
|
|
402
|
+
interface DisplayObjectArrayOptions<T> {
|
|
403
|
+
readonly trackBy: (item: T, index: number) => string | number;
|
|
404
|
+
readonly positioning: {
|
|
405
|
+
readonly direction: 'horizontal' | 'vertical';
|
|
406
|
+
readonly spacing: number;
|
|
407
|
+
};
|
|
408
|
+
}
|
|
409
|
+
declare class DisplayObjectArray<T> extends Container {
|
|
410
|
+
/**
|
|
411
|
+
* @param _createFunction function to create the display object
|
|
412
|
+
* @param partialOptions.trackBy default is index
|
|
413
|
+
* @param partialOptions.positioning.direction default is vertical
|
|
414
|
+
* @param partialOptions.positioning.spacing default is 0
|
|
415
|
+
*/
|
|
416
|
+
constructor(_createFunction: (item: T) => UpdatableContainer<T>, partialOptions?: Partial<DisplayObjectArrayOptions<T>>);
|
|
417
|
+
/**
|
|
418
|
+
* Updates the display objects. Removes the deleted ones, updates the existing ones with their "trackBy" key, creates the new ones.
|
|
419
|
+
* @param items new items list
|
|
420
|
+
*/
|
|
421
|
+
set(items: T[]): void;
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
interface MenuOptions {
|
|
425
|
+
readonly closeOnBackgroundClick: boolean;
|
|
426
|
+
readonly appearAnimationDuration: number;
|
|
427
|
+
readonly darkeningAlpha: number;
|
|
428
|
+
}
|
|
429
|
+
declare class Menu extends Container {
|
|
430
|
+
static closeAll(): SingleEvent;
|
|
431
|
+
readonly onOpen: actions_lib.Notifier<void>;
|
|
432
|
+
readonly onClose: actions_lib.Notifier<void>;
|
|
433
|
+
constructor(background: string, partialOptions: Partial<MenuOptions>);
|
|
434
|
+
getBoundingMask(): Sprite;
|
|
435
|
+
close(): SingleEvent;
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
declare class MenuEntity extends SingletonEntity {
|
|
439
|
+
readonly onCreate: actions_lib.Notifier<Menu>;
|
|
440
|
+
readonly onOpen: actions_lib.Notifier<void>;
|
|
441
|
+
readonly onClose: actions_lib.Notifier<void>;
|
|
442
|
+
constructor(background: string, partialOptions: Partial<MenuOptions>);
|
|
443
|
+
close(): SingleEvent;
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
declare class MouseWheelListenerUI extends Container {
|
|
447
|
+
readonly _onWheel: Action<number>;
|
|
448
|
+
readonly onWheel: actions_lib.Notifier<number>;
|
|
449
|
+
constructor(size: Vector);
|
|
450
|
+
destroy(): void;
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
interface ScrollAreaUIOptions {
|
|
454
|
+
readonly padding: number;
|
|
455
|
+
readonly smallContentAlign: 'start' | 'center' | 'end';
|
|
456
|
+
}
|
|
457
|
+
interface ScrollingOptions {
|
|
458
|
+
readonly instant: boolean;
|
|
459
|
+
}
|
|
460
|
+
declare class ScrollAreaUI extends Container {
|
|
461
|
+
get contentAreaSize(): Vector;
|
|
462
|
+
get contentSize(): Vector;
|
|
463
|
+
constructor(scrollAreaSize: Vector, partialOptions?: Partial<ScrollAreaUIOptions>);
|
|
464
|
+
scrollToTop(options?: ScrollingOptions): void;
|
|
465
|
+
scrollToBottom(options?: ScrollingOptions): void;
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
interface AnimatorAnimation {
|
|
469
|
+
start(): void;
|
|
470
|
+
multiplierFunction(t: number): number;
|
|
471
|
+
}
|
|
472
|
+
declare class AnimationInterpolationFunctions {
|
|
473
|
+
static boomerangTime(time: number): number;
|
|
474
|
+
static lineer(time: number): number;
|
|
475
|
+
static easeIn(time: number): number;
|
|
476
|
+
static easeOut(time: number): number;
|
|
477
|
+
static easeInOut(time: number): number;
|
|
478
|
+
static easeInOutCubic(t: number): number;
|
|
479
|
+
}
|
|
480
|
+
declare class AnimationLineer implements AnimatorAnimation {
|
|
481
|
+
start(): void;
|
|
482
|
+
multiplierFunction(t: number): number;
|
|
483
|
+
}
|
|
484
|
+
declare class AnimationEaseIn implements AnimatorAnimation {
|
|
485
|
+
start(): void;
|
|
486
|
+
multiplierFunction(t: number): number;
|
|
487
|
+
}
|
|
488
|
+
declare class AnimationEaseOut implements AnimatorAnimation {
|
|
489
|
+
start(): void;
|
|
490
|
+
multiplierFunction(t: number): number;
|
|
491
|
+
}
|
|
492
|
+
declare class AnimationEaseInOut implements AnimatorAnimation {
|
|
493
|
+
start(): void;
|
|
494
|
+
multiplierFunction(t: number): number;
|
|
495
|
+
}
|
|
496
|
+
declare class AnimationEaseInOutCubic implements AnimatorAnimation {
|
|
497
|
+
start(): void;
|
|
498
|
+
multiplierFunction(t: number): number;
|
|
499
|
+
}
|
|
500
|
+
declare class AnimationFlicker implements AnimatorAnimation {
|
|
501
|
+
start(): void;
|
|
502
|
+
multiplierFunction(t: number): number;
|
|
503
|
+
}
|
|
504
|
+
declare class Animations {
|
|
505
|
+
static lineer: AnimationLineer;
|
|
506
|
+
static easeIn: AnimationEaseIn;
|
|
507
|
+
static easeOut: AnimationEaseOut;
|
|
508
|
+
static easeInOut: AnimationEaseInOut;
|
|
509
|
+
static easeInOutCubic: AnimationEaseInOutCubic;
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
declare enum ReAnimateHandlingType {
|
|
513
|
+
ThrowError = 1,
|
|
514
|
+
IgnoreNewAnimation = 2,
|
|
515
|
+
CompletePrevious = 3
|
|
516
|
+
}
|
|
517
|
+
declare enum AnimationsCompletionHandlingType {
|
|
518
|
+
ReturnToOriginal = 1,
|
|
519
|
+
StayInCurrentState = 2,
|
|
520
|
+
JumpToEnd = 3,
|
|
521
|
+
Loop = 4
|
|
522
|
+
}
|
|
523
|
+
interface AnimationOptions {
|
|
524
|
+
readonly duration: number;
|
|
525
|
+
readonly animation: AnimatorAnimation;
|
|
526
|
+
readonly reAnimateHandling: ReAnimateHandlingType;
|
|
527
|
+
readonly completionHandling: AnimationsCompletionHandlingType;
|
|
528
|
+
}
|
|
529
|
+
type NumericKeys<T> = {
|
|
530
|
+
[P in keyof T]: T[P] extends number ? P : never;
|
|
531
|
+
}[keyof T] & string;
|
|
532
|
+
declare class Animator<T extends object = any, K extends NumericKeys<T> = NumericKeys<T>> {
|
|
533
|
+
get animating(): boolean;
|
|
534
|
+
get target(): T;
|
|
535
|
+
get value(): Notifier<T>;
|
|
536
|
+
constructor(target: T & Record<K, number>, animatedProperties: K | K[], partialOptions?: Partial<AnimationOptions>);
|
|
537
|
+
animate(values: Record<K, number>, partialOptions?: Partial<AnimationOptions>): SingleEvent<void>;
|
|
538
|
+
set(values: Record<K, number>): void;
|
|
539
|
+
completeAnimation(completionHandling?: AnimationsCompletionHandlingType): void;
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
interface FadeInContentOptions {
|
|
543
|
+
duration: number;
|
|
544
|
+
animation: AnimatorAnimation;
|
|
545
|
+
}
|
|
546
|
+
declare class FadeInContent<T> extends Container {
|
|
547
|
+
constructor(_createFunction: (value: {
|
|
548
|
+
state: T;
|
|
549
|
+
container: Container;
|
|
550
|
+
}) => void, partialOptions?: Partial<FadeInContentOptions>);
|
|
551
|
+
setState(state: T | undefined, options?: {
|
|
552
|
+
instant?: boolean;
|
|
553
|
+
}): this;
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
interface StateAnimationOptions {
|
|
557
|
+
readonly duration: number;
|
|
558
|
+
readonly animation: AnimatorAnimation;
|
|
559
|
+
}
|
|
560
|
+
declare enum AnimationState$1 {
|
|
561
|
+
Idle = 1,
|
|
562
|
+
Transitioning = 2,
|
|
563
|
+
Reverting = 3
|
|
564
|
+
}
|
|
565
|
+
declare class StateAnimation<T> extends Attachable {
|
|
566
|
+
get currentState(): {
|
|
567
|
+
value: number;
|
|
568
|
+
state: T | undefined;
|
|
569
|
+
nextState: T | undefined;
|
|
570
|
+
queuedState: T | undefined;
|
|
571
|
+
animationState: AnimationState$1;
|
|
572
|
+
};
|
|
573
|
+
constructor(partialOptions?: Partial<StateAnimationOptions>);
|
|
574
|
+
setState(state: T, options?: {
|
|
575
|
+
instant?: boolean;
|
|
576
|
+
}): void;
|
|
577
|
+
onStateChange(callback: (state: T, nextState?: T) => void): this;
|
|
578
|
+
onValueChange(callback: (value: number) => void): this;
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
declare enum AnimationState {
|
|
582
|
+
Hidden = 1,
|
|
583
|
+
Visible = 2,
|
|
584
|
+
Appearing = 3,
|
|
585
|
+
Disappearing = 4,
|
|
586
|
+
DisappearToChange = 5
|
|
587
|
+
}
|
|
588
|
+
declare class FadeInStateAnimation<T> extends Attachable {
|
|
589
|
+
get currentState(): {
|
|
590
|
+
value: number;
|
|
591
|
+
state: T | undefined;
|
|
592
|
+
queuedState: T | undefined;
|
|
593
|
+
animationState: AnimationState;
|
|
594
|
+
};
|
|
595
|
+
constructor(partialOptions?: Partial<StateAnimationOptions>);
|
|
596
|
+
/**
|
|
597
|
+
* @param state - The new state to set. Keep in mind falsy values are also considered as a new state. To set the state to "disappear" use undefined.
|
|
598
|
+
* @param options - Optional options.
|
|
599
|
+
* @param options.instant - If true, the state will be set immediately.
|
|
600
|
+
*/
|
|
601
|
+
setState(state: T | undefined, options?: {
|
|
602
|
+
instant?: boolean;
|
|
603
|
+
}): void;
|
|
604
|
+
onStateChange(callback: (state: T | undefined) => void): this;
|
|
605
|
+
onValueChange(callback: (value: number) => void): this;
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
declare enum ScrollDirection {
|
|
609
|
+
Horizontal = 1,
|
|
610
|
+
Vertical = 2
|
|
611
|
+
}
|
|
612
|
+
interface ScrollInContentOptions {
|
|
613
|
+
readonly duration: number;
|
|
614
|
+
readonly animation: AnimatorAnimation;
|
|
615
|
+
readonly size: Vector;
|
|
616
|
+
readonly margin: number;
|
|
617
|
+
readonly direction: ScrollDirection;
|
|
618
|
+
}
|
|
619
|
+
declare class SlideInContentByIndex extends Container {
|
|
620
|
+
constructor(_createFunction: (value: {
|
|
621
|
+
index: number;
|
|
622
|
+
container: Container;
|
|
623
|
+
}) => void, partialOptions?: Partial<ScrollInContentOptions>);
|
|
624
|
+
setIndex(index: number, options?: {
|
|
625
|
+
instant?: boolean;
|
|
626
|
+
}): this;
|
|
627
|
+
}
|
|
628
|
+
declare class SlideInContent<T> extends SlideInContentByIndex {
|
|
629
|
+
readonly itemToIndex: Map<T, number>;
|
|
630
|
+
readonly indexToItem: Map<number, T>;
|
|
631
|
+
constructor(items: T[], createFunction: (value: {
|
|
632
|
+
index: number;
|
|
633
|
+
item: T;
|
|
634
|
+
container: Container;
|
|
635
|
+
}) => void, partialOptions?: Partial<ScrollInContentOptions>);
|
|
636
|
+
setItem(item: T, options?: {
|
|
637
|
+
instant?: boolean;
|
|
638
|
+
}): this;
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
declare enum SlideStateAnimationState {
|
|
642
|
+
Appear = 1,
|
|
643
|
+
Disappear = 2
|
|
644
|
+
}
|
|
645
|
+
declare class SlideStateAnimation extends Attachable {
|
|
646
|
+
constructor(partialOptions?: Partial<StateAnimationOptions>);
|
|
647
|
+
setIndex(index: number, options?: {
|
|
648
|
+
instant?: boolean;
|
|
649
|
+
}): void;
|
|
650
|
+
onStateChange(callback: (state: SlideStateAnimationState, index: number) => void): this;
|
|
651
|
+
onValueChange(callback: (value: number, index: number) => void): this;
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
declare class VectorSet {
|
|
655
|
+
add(vector: Vector): void;
|
|
656
|
+
has(vector: Vector): boolean;
|
|
657
|
+
delete(vector: Vector): boolean;
|
|
658
|
+
}
|
|
659
|
+
|
|
660
|
+
declare class DeltaTime {
|
|
661
|
+
static adjustMultiplier(multiplier: number, delta: number): number;
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
declare class ClosestAvailableSpaceHelper {
|
|
665
|
+
static findByConvertingGridSpace(grid: Grid<boolean>, boundingBox: Rectangle, cellSize: number): Vector | undefined;
|
|
666
|
+
static find(availabilityGrid: Grid<boolean>, desiredPosition: Vector, objectSize: Vector): Vector | undefined;
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
interface PathFinderResult {
|
|
670
|
+
directPathAvailable: boolean;
|
|
671
|
+
path: Vector[];
|
|
672
|
+
}
|
|
673
|
+
declare class PathFinder {
|
|
674
|
+
static findPath(grid: Grid<boolean>, startingPosition: Vector, targetPosition: Vector, type: GridNeighborType): PathFinderResult;
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
declare class VectorFieldPathFinder {
|
|
678
|
+
constructor(_targetArea: Rectangle, _availabilityGrid: Grid<boolean>);
|
|
679
|
+
getDirectionToTarget(startingPosition: Vector): Radian | undefined;
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
declare class ScrollMaskUI extends Container {
|
|
683
|
+
constructor(container: Container, size: Vector, padding: number, direction?: ScrollDirection);
|
|
684
|
+
}
|
|
685
|
+
|
|
686
|
+
declare enum CameraLayer {
|
|
687
|
+
BackgroundScreen = "backgroundScreen",
|
|
688
|
+
Background = "background",
|
|
689
|
+
Main = "main",
|
|
690
|
+
Foreground = "foreground",
|
|
691
|
+
ForegroundScreen = "foregroundScreen"
|
|
692
|
+
}
|
|
693
|
+
declare enum FocusingAnimation {
|
|
694
|
+
Instant = 1,
|
|
695
|
+
EaseInOut = 2,
|
|
696
|
+
EaseOut = 3
|
|
697
|
+
}
|
|
698
|
+
interface FocusingOptions {
|
|
699
|
+
duration?: number;
|
|
700
|
+
animation?: FocusingAnimation;
|
|
701
|
+
roundPosition?: boolean;
|
|
702
|
+
roundPositionThreshold?: number;
|
|
703
|
+
}
|
|
704
|
+
type CameraAppearTransitionType = 'alpha' | 'pureBlack' | 'instant';
|
|
705
|
+
|
|
706
|
+
declare class CameraGateway {
|
|
707
|
+
createCamera(): string;
|
|
708
|
+
update(time: number, delta: number): void;
|
|
709
|
+
setPosition(position: Vector): void;
|
|
710
|
+
setTransition(options: FocusingOptions): void;
|
|
711
|
+
getCameraPosition(): Vector;
|
|
712
|
+
}
|
|
713
|
+
|
|
714
|
+
declare class Camera {
|
|
715
|
+
readonly layers: Record<CameraLayer, number>;
|
|
716
|
+
get position(): Vector;
|
|
717
|
+
constructor();
|
|
718
|
+
setPosition(position: Vector): void;
|
|
719
|
+
setTransition(options: FocusingOptions): void;
|
|
720
|
+
appear(on: boolean, type?: CameraAppearTransitionType): SingleEvent;
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
interface GameConfiguration {
|
|
724
|
+
readonly screenResolution?: {
|
|
725
|
+
readonly width: number;
|
|
726
|
+
readonly height: number;
|
|
727
|
+
};
|
|
728
|
+
readonly devMode: boolean;
|
|
729
|
+
readonly backgroundColor: RGBColor;
|
|
730
|
+
}
|
|
731
|
+
interface GameSetupOptions {
|
|
732
|
+
readonly assetDefinitions: readonly AssetDefinition<string>[];
|
|
733
|
+
readonly spriteDefinitions: Readonly<Record<string, SpriteDefinition>>;
|
|
734
|
+
}
|
|
735
|
+
declare class Game {
|
|
736
|
+
static get instance(): Game;
|
|
737
|
+
static readonly pause: Reducer<boolean, boolean>;
|
|
738
|
+
static get camera(): Camera;
|
|
739
|
+
static get time(): number;
|
|
740
|
+
readonly stage: Container;
|
|
741
|
+
readonly renderer: Pixi.Renderer;
|
|
742
|
+
readonly _screenSize: Variable<Vector>;
|
|
743
|
+
readonly screenSize: actions_lib.Notifier<Vector>;
|
|
744
|
+
getScreenSize(): Vector;
|
|
745
|
+
readonly _screenSizeCenter: Variable<Vector>;
|
|
746
|
+
readonly screenSizeCenter: actions_lib.Notifier<Vector>;
|
|
747
|
+
getScreenSizeCenter(): Vector;
|
|
748
|
+
readonly devMode: boolean;
|
|
749
|
+
constructor(partialConfiguration?: Partial<GameConfiguration>);
|
|
750
|
+
setup(setupOptions: GameSetupOptions): Promise<void>;
|
|
751
|
+
setResolution(resolution: number): void;
|
|
752
|
+
screenPositonToStagePosition(screenPosition: Vector): Vector;
|
|
753
|
+
setScreenPositionToStagePositionFunction(converterFunction: (screenPosition: Vector) => Vector): void;
|
|
754
|
+
resetScreenPositionToStagePositionFunction(): void;
|
|
755
|
+
destroyAsset(assetID: string): void;
|
|
756
|
+
}
|
|
757
|
+
|
|
758
|
+
declare class PositionConversionHelper {
|
|
759
|
+
static includeScaleInScreenPosition(screenPosition: Vector, gameInstanceScale: number, screenSizeCenter: Vector): Vector;
|
|
760
|
+
static normalizePolygonByAnchor(polygon: PolygonDefinition, frameSize: Vector, frameAnchor: Vector): PolygonDefinition;
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
declare class KeyboardService {
|
|
764
|
+
readonly _keyPressed: Action<string>;
|
|
765
|
+
readonly keyPressed: actions_lib.Notifier<string>;
|
|
766
|
+
readonly _keyReleased: Action<string>;
|
|
767
|
+
readonly keyReleased: actions_lib.Notifier<string>;
|
|
768
|
+
constructor();
|
|
769
|
+
isKeyDown(key: string): boolean;
|
|
770
|
+
isKeyJustPressed(key: string): boolean;
|
|
771
|
+
}
|
|
772
|
+
|
|
773
|
+
declare class MouseService {
|
|
774
|
+
readonly _initialMouseMovementHappened: Variable<boolean>;
|
|
775
|
+
readonly onInitialMouseMove: actions_lib.Notifier<boolean>;
|
|
776
|
+
get initialMouseMoveHappened(): boolean;
|
|
777
|
+
readonly _stagePosition: Variable<Vector>;
|
|
778
|
+
readonly stagePosition: actions_lib.Notifier<Vector>;
|
|
779
|
+
getStagePosition(): Vector;
|
|
780
|
+
readonly _screenPosition: Variable<Vector>;
|
|
781
|
+
readonly screenPosition: actions_lib.Notifier<Vector>;
|
|
782
|
+
getScreenPosition(): Vector;
|
|
783
|
+
readonly _mainButtonState: Variable<boolean>;
|
|
784
|
+
readonly mainButtonState: actions_lib.Notifier<boolean>;
|
|
785
|
+
getMainButtonState(): boolean;
|
|
786
|
+
readonly _secondaryButtonState: Variable<boolean>;
|
|
787
|
+
readonly secondaryButtonState: actions_lib.Notifier<boolean>;
|
|
788
|
+
getSecondaryButtonState(): boolean;
|
|
789
|
+
constructor();
|
|
790
|
+
}
|
|
791
|
+
|
|
792
|
+
declare class MouseTargetFocusService {
|
|
793
|
+
readonly _onTargetFocus: Action<Vector>;
|
|
794
|
+
readonly onTargetFocus: actions_lib.Notifier<Vector>;
|
|
795
|
+
get focusedInLastFrame(): boolean;
|
|
796
|
+
get lastFocusedPosition(): Vector | undefined;
|
|
797
|
+
constructor(_mouseService: MouseService);
|
|
798
|
+
}
|
|
799
|
+
|
|
800
|
+
type PhysicsBodyGroup = string;
|
|
801
|
+
|
|
802
|
+
declare const SPEED_LIMIT = 10.8;
|
|
803
|
+
declare const ROTATIONAL_SPEED_LIMIT = 10.01;
|
|
804
|
+
interface PhysicsBodyDTO {
|
|
805
|
+
readonly entityID: number;
|
|
806
|
+
readonly classID: number;
|
|
807
|
+
readonly position: Vector;
|
|
808
|
+
readonly rotation: Radian;
|
|
809
|
+
readonly velocity: Vector;
|
|
810
|
+
readonly rotationalSpeed: number;
|
|
811
|
+
}
|
|
812
|
+
interface CollisionDetails {
|
|
813
|
+
readonly body: PhysicsBodyDTO;
|
|
814
|
+
readonly getPositionReletiveToObject: () => Vector;
|
|
815
|
+
readonly getPositionOnWorld: () => Vector;
|
|
816
|
+
readonly position: Vector;
|
|
817
|
+
readonly mass: number;
|
|
818
|
+
readonly area: number;
|
|
819
|
+
readonly normal: Vector;
|
|
820
|
+
}
|
|
821
|
+
interface CollisionReport {
|
|
822
|
+
readonly self: CollisionDetails;
|
|
823
|
+
readonly target: CollisionDetails;
|
|
824
|
+
}
|
|
825
|
+
declare enum PhysicsShapeType {
|
|
826
|
+
Point = 1,
|
|
827
|
+
Circle = 2,
|
|
828
|
+
Polygon = 3,
|
|
829
|
+
Rectangle = 4
|
|
830
|
+
}
|
|
831
|
+
type CircleShapeData = number;
|
|
832
|
+
type RectangleShapeData = Vector;
|
|
833
|
+
type PolygonShapeData = PolygonDefinition | undefined;
|
|
834
|
+
interface ShapeDefinition {
|
|
835
|
+
readonly materialName: string;
|
|
836
|
+
readonly group: PhysicsBodyGroup;
|
|
837
|
+
readonly shapeType: PhysicsShapeType;
|
|
838
|
+
readonly shapeData: PolygonShapeData | RectangleShapeData | CircleShapeData | undefined;
|
|
839
|
+
}
|
|
840
|
+
interface PhysicsEntityDefinition {
|
|
841
|
+
readonly shapeDefinition: ShapeDefinition;
|
|
842
|
+
readonly position: Vector;
|
|
843
|
+
readonly rotation: Radian;
|
|
844
|
+
readonly addInEmptySpace: boolean;
|
|
845
|
+
readonly includeOnPathfinding: boolean;
|
|
846
|
+
}
|
|
847
|
+
|
|
848
|
+
declare abstract class PhysicsEntity extends Entity {
|
|
849
|
+
static getFromP2BodyID(p2BodyID: number): PhysicsEntity | undefined;
|
|
850
|
+
static getFromP2BodyIDOrFail(p2BodyID: number): PhysicsEntity;
|
|
851
|
+
static getPhysicsInstanceOrFail(id: number): PhysicsEntity;
|
|
852
|
+
static getPhysicsEntities(): PhysicsEntity[];
|
|
853
|
+
readonly _onCollision: Action<readonly CollisionReport[]>;
|
|
854
|
+
readonly onCollision: actions_lib.Notifier<readonly CollisionReport[]>;
|
|
855
|
+
get area(): number;
|
|
856
|
+
get mass(): number;
|
|
857
|
+
get collisions(): readonly CollisionReport[];
|
|
858
|
+
readonly physicsWorldID: number;
|
|
859
|
+
readonly physicsBodyGroup: PhysicsBodyGroup;
|
|
860
|
+
readonly includeInPathfinding: boolean;
|
|
861
|
+
protected readonly type: 'dynamic' | 'static';
|
|
862
|
+
constructor(physicsWorldID: number, physicsEntityDefinition: PhysicsEntityDefinition, type: 'dynamic' | 'static');
|
|
863
|
+
abstract convertToDTO(): PhysicsBodyDTO;
|
|
864
|
+
destroy(): void;
|
|
865
|
+
canCollideWith(target: PhysicsEntity): boolean;
|
|
866
|
+
}
|
|
867
|
+
|
|
868
|
+
declare abstract class ImmovablePhysicsEntity extends PhysicsEntity {
|
|
869
|
+
readonly position: Vector;
|
|
870
|
+
readonly rotation: Radian;
|
|
871
|
+
constructor(physicsWorldID: number, physicsEntityDefinition: PhysicsEntityDefinition);
|
|
872
|
+
convertToDTO(): PhysicsBodyDTO;
|
|
873
|
+
}
|
|
874
|
+
|
|
875
|
+
declare abstract class MovableEntity extends Entity {
|
|
876
|
+
readonly position: Variable<Vector>;
|
|
877
|
+
readonly rotation: Variable<Radian>;
|
|
878
|
+
readonly velocity: Variable<Vector>;
|
|
879
|
+
readonly rotationalSpeed: Variable<number>;
|
|
880
|
+
constructor();
|
|
881
|
+
}
|
|
882
|
+
|
|
883
|
+
declare abstract class MovablePhysicsEntity extends PhysicsEntity {
|
|
884
|
+
readonly position: Variable<Vector>;
|
|
885
|
+
readonly rotation: Variable<Radian>;
|
|
886
|
+
readonly velocity: Variable<Vector>;
|
|
887
|
+
readonly rotationalSpeed: Variable<number>;
|
|
888
|
+
constructor(physicsWorldID: number, physicsEntityDefinition: PhysicsEntityDefinition);
|
|
889
|
+
convertToDTO(): PhysicsBodyDTO;
|
|
890
|
+
}
|
|
891
|
+
|
|
892
|
+
declare const BORDER_MATERIAL_NAME = "border";
|
|
893
|
+
interface MaterialDefinition {
|
|
894
|
+
readonly id: string;
|
|
895
|
+
readonly density: number;
|
|
896
|
+
readonly velocityDrag: number;
|
|
897
|
+
readonly rotationalDrag: number;
|
|
898
|
+
}
|
|
899
|
+
interface MaterialContactDefinition {
|
|
900
|
+
readonly materialA: string;
|
|
901
|
+
readonly materialB: string;
|
|
902
|
+
readonly friction: number;
|
|
903
|
+
readonly bounciness: number;
|
|
904
|
+
readonly stiffness: number;
|
|
905
|
+
}
|
|
906
|
+
interface BorderProperties {
|
|
907
|
+
readonly friction: number;
|
|
908
|
+
readonly bounciness: number;
|
|
909
|
+
readonly stiffness: number;
|
|
910
|
+
readonly borderBodyGroup: PhysicsBodyGroup;
|
|
911
|
+
}
|
|
912
|
+
|
|
913
|
+
type InteractingBodyGroups = readonly (readonly [PhysicsBodyGroup, PhysicsBodyGroup])[];
|
|
914
|
+
interface CreatePhysicsWorldRequestDTO {
|
|
915
|
+
readonly attachTo: number;
|
|
916
|
+
readonly mapSize: Vector;
|
|
917
|
+
readonly modifyUpdateCycle: boolean;
|
|
918
|
+
readonly borderProperties: BorderProperties;
|
|
919
|
+
readonly materialDefinitions: readonly MaterialDefinition[];
|
|
920
|
+
readonly materialContactDefinitions: readonly MaterialContactDefinition[];
|
|
921
|
+
readonly physicsBodyGroups: readonly PhysicsBodyGroup[];
|
|
922
|
+
readonly interactingBodyGroups: InteractingBodyGroups;
|
|
923
|
+
}
|
|
924
|
+
interface PhysicsExplosionOptions {
|
|
925
|
+
readonly testLayerID?: number;
|
|
926
|
+
readonly debugRayDuration?: number;
|
|
927
|
+
readonly hitOnlyClosest?: boolean;
|
|
928
|
+
}
|
|
929
|
+
interface HitTestOptions {
|
|
930
|
+
readonly overridePosition?: Vector;
|
|
931
|
+
readonly overrideRotation?: Radian;
|
|
932
|
+
readonly testLayerID?: number;
|
|
933
|
+
}
|
|
934
|
+
|
|
935
|
+
interface RayCast {
|
|
936
|
+
line: Line;
|
|
937
|
+
hits: RayCastHit[];
|
|
938
|
+
}
|
|
939
|
+
interface RayCastHit {
|
|
940
|
+
readonly body: p2.Body;
|
|
941
|
+
readonly hitPosition: () => Vector;
|
|
942
|
+
readonly hitDistance: () => number;
|
|
943
|
+
readonly isExternal: () => boolean;
|
|
944
|
+
readonly normal: Vector;
|
|
945
|
+
readonly fraction: number;
|
|
946
|
+
readonly line: Line;
|
|
947
|
+
}
|
|
948
|
+
interface ExplosionHit {
|
|
949
|
+
body: PhysicsBodyDTO;
|
|
950
|
+
isExternal: boolean;
|
|
951
|
+
normal: Vector;
|
|
952
|
+
fraction: number;
|
|
953
|
+
ratioOfHits: number;
|
|
954
|
+
raycastResults: readonly RayCastHit[];
|
|
955
|
+
getHitPosition: () => Vector;
|
|
956
|
+
getHitDistance: () => number;
|
|
957
|
+
}
|
|
958
|
+
interface MapSizeDTO {
|
|
959
|
+
readonly dimentions: Vector;
|
|
960
|
+
readonly center: Vector;
|
|
961
|
+
}
|
|
962
|
+
|
|
963
|
+
declare class PhysicsGateway {
|
|
964
|
+
createPhysicsWorld(request: CreatePhysicsWorldRequestDTO): number;
|
|
965
|
+
getMapSize(physicsWorldID: number): MapSizeDTO;
|
|
966
|
+
setPaused(pause: boolean, physicsWorldID: number): void;
|
|
967
|
+
hitTest(physicsEntityID: number, options?: HitTestOptions): boolean;
|
|
968
|
+
findPath(physicsWorldID: number, startingPosition: Vector, target: Vector | number, collidableWithGroup: PhysicsBodyGroup, neighborType: GridNeighborType): PathFinderResult;
|
|
969
|
+
findPathDirection(physicsWorldID: number, startingPosition: Vector, target: Vector | number, collidableWithGroup: PhysicsBodyGroup): Radian | undefined;
|
|
970
|
+
applyImpulse(physicsEntityID: number, hitPosition: Vector, hitDirection: Vector, severity: number): void;
|
|
971
|
+
createExplosion(physicsWorldID: number, explosionCenter: Vector, radius: number, physicsBodyGroup: PhysicsBodyGroup, severity: number, options?: PhysicsExplosionOptions): ExplosionHit[];
|
|
972
|
+
createElipticExplosion(physicsWorldID: number, explosionCenter: Vector, rotation: Radian, size: Vector, physicsBodyGroup: PhysicsBodyGroup, severity: number, options?: PhysicsExplosionOptions): ExplosionHit[];
|
|
973
|
+
printPathfindingTestGrid(physicsWorldID: number, testLayerID: number, target: Vector | number, physicsBodyGroup: PhysicsBodyGroup, area: Rectangle, gridCellSize?: number): void;
|
|
974
|
+
}
|
|
975
|
+
|
|
976
|
+
export { AnimationFlicker, AnimationInterpolationFunctions, type AnimationOptions, Animations, AnimationsCompletionHandlingType, Animator, type AnimatorAnimation, type AssetDefinition, BORDER_MATERIAL_NAME, BardLegendsHardReset, BlendMode, type BorderProperties, Camera, CameraGateway, type CircleShapeData, ClosestAvailableSpaceHelper, type CollisionDetails, type CollisionReport, Container, ContainerEventType, ControllerDecorator, type ControllerDecoratorMeta, ControllerLink, type CreateDashedLineOptions, type CreatePhysicsWorldRequestDTO, Cursor, DEFAULT_RESOLUTION, DeltaTime, DisplayObjectArray, type DisplayObjectArrayOptions, type DropShadowOptions, Entity, EntityDecorator, type ExplosionHit, FadeInContent, type FadeInContentOptions, FadeInStateAnimation, FocusingAnimation, Game, type GlowEffectOptions, type GlowOptions, type GlowingShapeDefinition, Graphics, type HitTestOptions, ImmovablePhysicsEntity, type InteractingBodyGroups, KeyboardService, type MapSizeDTO, type MaterialContactDefinition, type MaterialDefinition, Menu, MenuEntity, type MenuOptions, MouseService, MouseTargetFocusService, MouseWheelListenerUI, MovableEntity, MovablePhysicsEntity, type PartialTextOptions, PathFinder, type PathFinderResult, type PhysicsBodyDTO, PhysicsEntity, type PhysicsEntityDefinition, type PhysicsExplosionOptions, PhysicsGateway, PhysicsShapeType, Placeholder, type PolygonDefinition, type PolygonShapeData, PositionConversionHelper, ROTATIONAL_SPEED_LIMIT, type RayCast, type RayCastHit, ReAnimateHandlingType, type RectangleShapeData, RichText, type RichTextOptions, type RichTextRectangleCut, type RichTextStyles, SPEED_LIMIT, Scene, SceneDecorator, ScrollAreaUI, ScrollDirection, type ScrollInContentOptions, ScrollMaskUI, Service, ServiceDecorator, type SetParentOptions, type ShapeDefinition, SingletonEntity, SlideInContent, SlideInContentByIndex, SlideStateAnimation, SlideStateAnimationState, Sprite, type SpriteDefinition, StateAnimation, type StateAnimationOptions, Text, type TextAlignment, type TextOptions, UpdatableContainer, UpdateCycle, VectorFieldPathFinder, VectorSet, View, ViewDecorator, type ViewDecoratorMeta };
|