@wiredsnippets/wsproom 0.0.0-stage → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/COPYING +674 -0
- package/COPYING.LESSER +165 -0
- package/README.md +76 -2
- package/dist/__mocks__/setupTests.d.ts +0 -0
- package/dist/__mocks__/setupTests.js +34 -0
- package/dist/assets/IAssetBundle.d.ts +4 -0
- package/dist/assets/IAssetBundle.js +2 -0
- package/dist/assets/LegacyAssetBundle.d.ts +9 -0
- package/dist/assets/LegacyAssetBundle.js +29 -0
- package/dist/assets/WsproomAssetBundle.d.ts +18 -0
- package/dist/assets/WsproomAssetBundle.js +86 -0
- package/dist/data/XmlData.d.ts +6 -0
- package/dist/data/XmlData.js +15 -0
- package/dist/index.d.ts +45 -0
- package/dist/index.js +73 -0
- package/dist/interfaces/IAnimationTicker.d.ts +4 -0
- package/dist/interfaces/IAnimationTicker.js +2 -0
- package/dist/interfaces/IAvatarLoader.d.ts +12 -0
- package/dist/interfaces/IAvatarLoader.js +2 -0
- package/dist/interfaces/IConfiguration.d.ts +13 -0
- package/dist/interfaces/IConfiguration.js +2 -0
- package/dist/interfaces/IFurnitureData.d.ts +13 -0
- package/dist/interfaces/IFurnitureData.js +2 -0
- package/dist/interfaces/IFurnitureLoader.d.ts +13 -0
- package/dist/interfaces/IFurnitureLoader.js +2 -0
- package/dist/interfaces/IHitDetection.d.ts +0 -0
- package/dist/interfaces/IHitDetection.js +1 -0
- package/dist/interfaces/IRoomContext.d.ts +26 -0
- package/dist/interfaces/IRoomContext.js +2 -0
- package/dist/interfaces/IRoomGeometry.d.ts +6 -0
- package/dist/interfaces/IRoomGeometry.js +2 -0
- package/dist/interfaces/IRoomObject.d.ts +5 -0
- package/dist/interfaces/IRoomObject.js +2 -0
- package/dist/interfaces/IRoomObjectContainer.d.ts +5 -0
- package/dist/interfaces/IRoomObjectContainer.js +2 -0
- package/dist/interfaces/IRoomVisualization.d.ts +25 -0
- package/dist/interfaces/IRoomVisualization.js +2 -0
- package/dist/interfaces/ITextureable.d.ts +5 -0
- package/dist/interfaces/ITextureable.js +2 -0
- package/dist/interfaces/ITileMap.d.ts +5 -0
- package/dist/interfaces/ITileMap.js +2 -0
- package/dist/objects/RoomObject.d.ts +24 -0
- package/dist/objects/RoomObject.js +69 -0
- package/dist/objects/Wsproom.d.ts +22 -0
- package/dist/objects/Wsproom.js +86 -0
- package/dist/objects/animation/AnimationTicker.d.ts +13 -0
- package/dist/objects/animation/AnimationTicker.js +37 -0
- package/dist/objects/animation/ObjectAnimation.d.ts +36 -0
- package/dist/objects/animation/ObjectAnimation.js +93 -0
- package/dist/objects/avatar/Avatar.d.ts +244 -0
- package/dist/objects/avatar/Avatar.js +548 -0
- package/dist/objects/avatar/AvatarAssetLibraryCollection.d.ts +20 -0
- package/dist/objects/avatar/AvatarAssetLibraryCollection.js +70 -0
- package/dist/objects/avatar/AvatarEffectBundle.d.ts +15 -0
- package/dist/objects/avatar/AvatarEffectBundle.js +34 -0
- package/dist/objects/avatar/AvatarLoader.d.ts +33 -0
- package/dist/objects/avatar/AvatarLoader.js +218 -0
- package/dist/objects/avatar/BaseAvatar.d.ts +84 -0
- package/dist/objects/avatar/BaseAvatar.js +386 -0
- package/dist/objects/avatar/data/AvatarActionsData.d.ts +12 -0
- package/dist/objects/avatar/data/AvatarActionsData.js +84 -0
- package/dist/objects/avatar/data/AvatarAnimationData.d.ts +14 -0
- package/dist/objects/avatar/data/AvatarAnimationData.js +126 -0
- package/dist/objects/avatar/data/AvatarData.d.ts +6 -0
- package/dist/objects/avatar/data/AvatarData.js +15 -0
- package/dist/objects/avatar/data/AvatarEffectData.d.ts +31 -0
- package/dist/objects/avatar/data/AvatarEffectData.js +186 -0
- package/dist/objects/avatar/data/AvatarEffectMap.d.ts +9 -0
- package/dist/objects/avatar/data/AvatarEffectMap.js +38 -0
- package/dist/objects/avatar/data/AvatarGeometryData.d.ts +17 -0
- package/dist/objects/avatar/data/AvatarGeometryData.js +122 -0
- package/dist/objects/avatar/data/AvatarManifestData.d.ts +12 -0
- package/dist/objects/avatar/data/AvatarManifestData.js +55 -0
- package/dist/objects/avatar/data/AvatarOffsetsData.d.ts +10 -0
- package/dist/objects/avatar/data/AvatarOffsetsData.js +17 -0
- package/dist/objects/avatar/data/AvatarPartSetsData.d.ts +12 -0
- package/dist/objects/avatar/data/AvatarPartSetsData.js +38 -0
- package/dist/objects/avatar/data/FigureData.d.ts +14 -0
- package/dist/objects/avatar/data/FigureData.js +106 -0
- package/dist/objects/avatar/data/FigureMapData.d.ts +11 -0
- package/dist/objects/avatar/data/FigureMapData.js +47 -0
- package/dist/objects/avatar/data/ManifestLibrary.d.ts +12 -0
- package/dist/objects/avatar/data/ManifestLibrary.js +29 -0
- package/dist/objects/avatar/data/interfaces/IAvatarActionsData.d.ts +18 -0
- package/dist/objects/avatar/data/interfaces/IAvatarActionsData.js +2 -0
- package/dist/objects/avatar/data/interfaces/IAvatarAnimationData.d.ts +10 -0
- package/dist/objects/avatar/data/interfaces/IAvatarAnimationData.js +2 -0
- package/dist/objects/avatar/data/interfaces/IAvatarEffectBundle.d.ts +9 -0
- package/dist/objects/avatar/data/interfaces/IAvatarEffectBundle.js +2 -0
- package/dist/objects/avatar/data/interfaces/IAvatarEffectData.d.ts +49 -0
- package/dist/objects/avatar/data/interfaces/IAvatarEffectData.js +2 -0
- package/dist/objects/avatar/data/interfaces/IAvatarEffectMap.d.ts +9 -0
- package/dist/objects/avatar/data/interfaces/IAvatarEffectMap.js +2 -0
- package/dist/objects/avatar/data/interfaces/IAvatarGeometryData.d.ts +23 -0
- package/dist/objects/avatar/data/interfaces/IAvatarGeometryData.js +2 -0
- package/dist/objects/avatar/data/interfaces/IAvatarManifestData.d.ts +18 -0
- package/dist/objects/avatar/data/interfaces/IAvatarManifestData.js +2 -0
- package/dist/objects/avatar/data/interfaces/IAvatarOffsetsData.d.ts +6 -0
- package/dist/objects/avatar/data/interfaces/IAvatarOffsetsData.js +2 -0
- package/dist/objects/avatar/data/interfaces/IAvatarPartSetsData.d.ts +7 -0
- package/dist/objects/avatar/data/interfaces/IAvatarPartSetsData.js +2 -0
- package/dist/objects/avatar/data/interfaces/IFigureData.d.ts +11 -0
- package/dist/objects/avatar/data/interfaces/IFigureData.js +2 -0
- package/dist/objects/avatar/data/interfaces/IFigureMapData.d.ts +4 -0
- package/dist/objects/avatar/data/interfaces/IFigureMapData.js +2 -0
- package/dist/objects/avatar/data/interfaces/IManifestLibrary.d.ts +6 -0
- package/dist/objects/avatar/data/interfaces/IManifestLibrary.js +2 -0
- package/dist/objects/avatar/data/static/actions.xml.d.ts +1 -0
- package/dist/objects/avatar/data/static/actions.xml.js +4 -0
- package/dist/objects/avatar/data/static/animation.xml.d.ts +1 -0
- package/dist/objects/avatar/data/static/animation.xml.js +4 -0
- package/dist/objects/avatar/data/static/geometry.xml.d.ts +1 -0
- package/dist/objects/avatar/data/static/geometry.xml.js +4 -0
- package/dist/objects/avatar/data/static/partsets.xml.d.ts +1 -0
- package/dist/objects/avatar/data/static/partsets.xml.js +4 -0
- package/dist/objects/avatar/enum/AvatarAction.d.ts +29 -0
- package/dist/objects/avatar/enum/AvatarAction.js +33 -0
- package/dist/objects/avatar/enum/AvatarFigurePartType.d.ts +27 -0
- package/dist/objects/avatar/enum/AvatarFigurePartType.js +31 -0
- package/dist/objects/avatar/structure/AvatarAdditionPart.d.ts +32 -0
- package/dist/objects/avatar/structure/AvatarAdditionPart.js +136 -0
- package/dist/objects/avatar/structure/AvatarBodyPart.d.ts +30 -0
- package/dist/objects/avatar/structure/AvatarBodyPart.js +96 -0
- package/dist/objects/avatar/structure/AvatarBodyPartList.d.ts +36 -0
- package/dist/objects/avatar/structure/AvatarBodyPartList.js +91 -0
- package/dist/objects/avatar/structure/AvatarDrawDefinition.d.ts +39 -0
- package/dist/objects/avatar/structure/AvatarDrawDefinition.js +135 -0
- package/dist/objects/avatar/structure/AvatarEffectPart.d.ts +25 -0
- package/dist/objects/avatar/structure/AvatarEffectPart.js +118 -0
- package/dist/objects/avatar/structure/AvatarPart.d.ts +54 -0
- package/dist/objects/avatar/structure/AvatarPart.js +162 -0
- package/dist/objects/avatar/structure/AvatarPartList.d.ts +30 -0
- package/dist/objects/avatar/structure/AvatarPartList.js +80 -0
- package/dist/objects/avatar/structure/BodyPartDrawOrder.d.ts +3 -0
- package/dist/objects/avatar/structure/BodyPartDrawOrder.js +170 -0
- package/dist/objects/avatar/structure/interface/IAvatarDrawablePart.d.ts +4 -0
- package/dist/objects/avatar/structure/interface/IAvatarDrawablePart.js +2 -0
- package/dist/objects/avatar/structure/interface/IAvatarEffectPart.d.ts +7 -0
- package/dist/objects/avatar/structure/interface/IAvatarEffectPart.js +2 -0
- package/dist/objects/avatar/types/index.d.ts +43 -0
- package/dist/objects/avatar/types/index.js +2 -0
- package/dist/objects/avatar/util/createLookServer.d.ts +18 -0
- package/dist/objects/avatar/util/createLookServer.js +18 -0
- package/dist/objects/avatar/util/getAssetForFrame.d.ts +21 -0
- package/dist/objects/avatar/util/getAssetForFrame.js +42 -0
- package/dist/objects/avatar/util/getAssetFromPartMeta.d.ts +30 -0
- package/dist/objects/avatar/util/getAssetFromPartMeta.js +50 -0
- package/dist/objects/avatar/util/getAvatarDirection.d.ts +1 -0
- package/dist/objects/avatar/util/getAvatarDirection.js +18 -0
- package/dist/objects/avatar/util/getAvatarDrawDefinition.d.ts +22 -0
- package/dist/objects/avatar/util/getAvatarDrawDefinition.js +31 -0
- package/dist/objects/avatar/util/getDrawOrderForActions.d.ts +4 -0
- package/dist/objects/avatar/util/getDrawOrderForActions.js +22 -0
- package/dist/objects/avatar/util/getEffectSprite.d.ts +9 -0
- package/dist/objects/avatar/util/getEffectSprite.js +27 -0
- package/dist/objects/avatar/util/getFlippedMetaData.d.ts +36 -0
- package/dist/objects/avatar/util/getFlippedMetaData.js +95 -0
- package/dist/objects/avatar/util/getLibrariesForLook.d.ts +7 -0
- package/dist/objects/avatar/util/getLibrariesForLook.js +32 -0
- package/dist/objects/avatar/util/index.d.ts +1 -0
- package/dist/objects/avatar/util/index.js +17 -0
- package/dist/objects/avatar/util/parseLookString.d.ts +5 -0
- package/dist/objects/avatar/util/parseLookString.js +15 -0
- package/dist/objects/events/EventEmitter.d.ts +11 -0
- package/dist/objects/events/EventEmitter.js +31 -0
- package/dist/objects/events/EventManager.d.ts +27 -0
- package/dist/objects/events/EventManager.js +248 -0
- package/dist/objects/events/EventManagerContainer.d.ts +11 -0
- package/dist/objects/events/EventManagerContainer.js +36 -0
- package/dist/objects/events/EventManagerNode.d.ts +16 -0
- package/dist/objects/events/EventManagerNode.js +55 -0
- package/dist/objects/events/EventOverOutHandler.d.ts +24 -0
- package/dist/objects/events/EventOverOutHandler.js +90 -0
- package/dist/objects/events/interfaces/IEventGroup.d.ts +7 -0
- package/dist/objects/events/interfaces/IEventGroup.js +6 -0
- package/dist/objects/events/interfaces/IEventHandler.d.ts +9 -0
- package/dist/objects/events/interfaces/IEventHandler.js +2 -0
- package/dist/objects/events/interfaces/IEventHittable.d.ts +9 -0
- package/dist/objects/events/interfaces/IEventHittable.js +2 -0
- package/dist/objects/events/interfaces/IEventManager.d.ts +8 -0
- package/dist/objects/events/interfaces/IEventManager.js +2 -0
- package/dist/objects/events/interfaces/IEventManagerEvent.d.ts +11 -0
- package/dist/objects/events/interfaces/IEventManagerEvent.js +2 -0
- package/dist/objects/events/interfaces/IEventManagerNode.d.ts +3 -0
- package/dist/objects/events/interfaces/IEventManagerNode.js +2 -0
- package/dist/objects/events/interfaces/IEventTarget.d.ts +4 -0
- package/dist/objects/events/interfaces/IEventTarget.js +2 -0
- package/dist/objects/furniture/BaseFurniture.d.ts +152 -0
- package/dist/objects/furniture/BaseFurniture.js +519 -0
- package/dist/objects/furniture/FloorFurniture.d.ts +163 -0
- package/dist/objects/furniture/FloorFurniture.js +320 -0
- package/dist/objects/furniture/FurnitureData.d.ts +14 -0
- package/dist/objects/furniture/FurnitureData.js +73 -0
- package/dist/objects/furniture/FurnitureExtraData.d.ts +4 -0
- package/dist/objects/furniture/FurnitureExtraData.js +2 -0
- package/dist/objects/furniture/FurnitureFetchInfo.d.ts +5 -0
- package/dist/objects/furniture/FurnitureFetchInfo.js +2 -0
- package/dist/objects/furniture/FurnitureHelper.d.ts +17 -0
- package/dist/objects/furniture/FurnitureHelper.js +90 -0
- package/dist/objects/furniture/FurnitureLoader.d.ts +22 -0
- package/dist/objects/furniture/FurnitureLoader.js +85 -0
- package/dist/objects/furniture/FurnitureRoomVisualization.d.ts +10 -0
- package/dist/objects/furniture/FurnitureRoomVisualization.js +26 -0
- package/dist/objects/furniture/FurnitureSprite.d.ts +25 -0
- package/dist/objects/furniture/FurnitureSprite.js +69 -0
- package/dist/objects/furniture/FurnitureVisualizationView.d.ts +66 -0
- package/dist/objects/furniture/FurnitureVisualizationView.js +482 -0
- package/dist/objects/furniture/IFurniture.d.ts +26 -0
- package/dist/objects/furniture/IFurniture.js +2 -0
- package/dist/objects/furniture/IFurnitureAssetBundle.d.ts +12 -0
- package/dist/objects/furniture/IFurnitureAssetBundle.js +2 -0
- package/dist/objects/furniture/IFurnitureVisualization.d.ts +11 -0
- package/dist/objects/furniture/IFurnitureVisualization.js +2 -0
- package/dist/objects/furniture/IFurnitureVisualizationView.d.ts +63 -0
- package/dist/objects/furniture/IFurnitureVisualizationView.js +2 -0
- package/dist/objects/furniture/JsonFurnitureAssetBundle.d.ts +18 -0
- package/dist/objects/furniture/JsonFurnitureAssetBundle.js +89 -0
- package/dist/objects/furniture/WallFurniture.d.ts +90 -0
- package/dist/objects/furniture/WallFurniture.js +229 -0
- package/dist/objects/furniture/XmlFurnitureAssetBundle.d.ts +17 -0
- package/dist/objects/furniture/XmlFurnitureAssetBundle.js +35 -0
- package/dist/objects/furniture/data/FurnitureAssetsData.d.ts +11 -0
- package/dist/objects/furniture/data/FurnitureAssetsData.js +51 -0
- package/dist/objects/furniture/data/FurnitureAssetsJson.d.ts +4 -0
- package/dist/objects/furniture/data/FurnitureAssetsJson.js +2 -0
- package/dist/objects/furniture/data/FurnitureIndexData.d.ts +14 -0
- package/dist/objects/furniture/data/FurnitureIndexData.js +30 -0
- package/dist/objects/furniture/data/FurnitureIndexJson.d.ts +4 -0
- package/dist/objects/furniture/data/FurnitureIndexJson.js +2 -0
- package/dist/objects/furniture/data/FurnitureJson.d.ts +11 -0
- package/dist/objects/furniture/data/FurnitureJson.js +2 -0
- package/dist/objects/furniture/data/FurnitureLogicData.d.ts +10 -0
- package/dist/objects/furniture/data/FurnitureLogicData.js +43 -0
- package/dist/objects/furniture/data/FurnitureLogicJson.d.ts +3 -0
- package/dist/objects/furniture/data/FurnitureLogicJson.js +2 -0
- package/dist/objects/furniture/data/FurnitureVisualizationData.d.ts +26 -0
- package/dist/objects/furniture/data/FurnitureVisualizationData.js +281 -0
- package/dist/objects/furniture/data/FurnitureVisualizationJson.d.ts +37 -0
- package/dist/objects/furniture/data/FurnitureVisualizationJson.js +2 -0
- package/dist/objects/furniture/data/JsonFurnitureAssetsData.d.ts +8 -0
- package/dist/objects/furniture/data/JsonFurnitureAssetsData.js +16 -0
- package/dist/objects/furniture/data/JsonFurnitureLogicData.d.ts +7 -0
- package/dist/objects/furniture/data/JsonFurnitureLogicData.js +12 -0
- package/dist/objects/furniture/data/JsonFurnitureVisualizationData.d.ts +18 -0
- package/dist/objects/furniture/data/JsonFurnitureVisualizationData.js +95 -0
- package/dist/objects/furniture/data/interfaces/IFurnitureAssetsData.d.ts +12 -0
- package/dist/objects/furniture/data/interfaces/IFurnitureAssetsData.js +2 -0
- package/dist/objects/furniture/data/interfaces/IFurnitureIndexData.d.ts +4 -0
- package/dist/objects/furniture/data/interfaces/IFurnitureIndexData.js +2 -0
- package/dist/objects/furniture/data/interfaces/IFurnitureLogicData.d.ts +13 -0
- package/dist/objects/furniture/data/interfaces/IFurnitureLogicData.js +2 -0
- package/dist/objects/furniture/data/interfaces/IFurnitureVisualizationData.d.ts +37 -0
- package/dist/objects/furniture/data/interfaces/IFurnitureVisualizationData.js +2 -0
- package/dist/objects/furniture/filter/ActiveWiredFilter.d.ts +4 -0
- package/dist/objects/furniture/filter/ActiveWiredFilter.js +77 -0
- package/dist/objects/furniture/filter/HighlightFilter.d.ts +6 -0
- package/dist/objects/furniture/filter/HighlightFilter.js +93 -0
- package/dist/objects/furniture/filter/filterVertex.d.ts +1 -0
- package/dist/objects/furniture/filter/filterVertex.js +32 -0
- package/dist/objects/furniture/util/DrawDefinition.d.ts +18 -0
- package/dist/objects/furniture/util/DrawDefinition.js +2 -0
- package/dist/objects/furniture/util/IFurnitureEventHandlers.d.ts +9 -0
- package/dist/objects/furniture/util/IFurnitureEventHandlers.js +2 -0
- package/dist/objects/furniture/util/getDirectionForFurniture.d.ts +1 -0
- package/dist/objects/furniture/util/getDirectionForFurniture.js +18 -0
- package/dist/objects/furniture/util/getFurniDrawDefinition.d.ts +14 -0
- package/dist/objects/furniture/util/getFurniDrawDefinition.js +101 -0
- package/dist/objects/furniture/util/getFurnitureFetch.d.ts +3 -0
- package/dist/objects/furniture/util/getFurnitureFetch.js +14 -0
- package/dist/objects/furniture/util/index.d.ts +4 -0
- package/dist/objects/furniture/util/index.js +21 -0
- package/dist/objects/furniture/util/loadFurni.d.ts +20 -0
- package/dist/objects/furniture/util/loadFurni.js +49 -0
- package/dist/objects/furniture/util/visualization/VisualizationXml.d.ts +73 -0
- package/dist/objects/furniture/util/visualization/VisualizationXml.js +2 -0
- package/dist/objects/furniture/util/visualization/parseAnimations.d.ts +10 -0
- package/dist/objects/furniture/util/visualization/parseAnimations.js +35 -0
- package/dist/objects/furniture/util/visualization/parseColors.d.ts +2 -0
- package/dist/objects/furniture/util/visualization/parseColors.js +19 -0
- package/dist/objects/furniture/util/visualization/parseDirections.d.ts +5 -0
- package/dist/objects/furniture/util/visualization/parseDirections.js +27 -0
- package/dist/objects/furniture/util/visualization/parseLayers.d.ts +9 -0
- package/dist/objects/furniture/util/visualization/parseLayers.js +19 -0
- package/dist/objects/furniture/util/visualization/parseVisualization.d.ts +17 -0
- package/dist/objects/furniture/util/visualization/parseVisualization.js +44 -0
- package/dist/objects/furniture/visualization/AnimatedFurnitureVisualization.d.ts +40 -0
- package/dist/objects/furniture/visualization/AnimatedFurnitureVisualization.js +214 -0
- package/dist/objects/furniture/visualization/BasicFurnitureVisualization.d.ts +19 -0
- package/dist/objects/furniture/visualization/BasicFurnitureVisualization.js +54 -0
- package/dist/objects/furniture/visualization/FurnitureBottleVisualization.d.ts +17 -0
- package/dist/objects/furniture/visualization/FurnitureBottleVisualization.js +65 -0
- package/dist/objects/furniture/visualization/FurnitureGuildCustomizedVisualization.d.ts +28 -0
- package/dist/objects/furniture/visualization/FurnitureGuildCustomizedVisualization.js +87 -0
- package/dist/objects/furniture/visualization/FurnitureVisualization.d.ts +16 -0
- package/dist/objects/furniture/visualization/FurnitureVisualization.js +24 -0
- package/dist/objects/hitdetection/ClickHandler.d.ts +25 -0
- package/dist/objects/hitdetection/ClickHandler.js +79 -0
- package/dist/objects/hitdetection/HitSprite.d.ts +65 -0
- package/dist/objects/hitdetection/HitSprite.js +223 -0
- package/dist/objects/hitdetection/HitTexture.d.ts +21 -0
- package/dist/objects/hitdetection/HitTexture.js +153 -0
- package/dist/objects/interfaces/IMoveable.d.ts +4 -0
- package/dist/objects/interfaces/IMoveable.js +2 -0
- package/dist/objects/interfaces/IScreenPositioned.d.ts +6 -0
- package/dist/objects/interfaces/IScreenPositioned.js +2 -0
- package/dist/objects/room/ILandscapeContainer.d.ts +6 -0
- package/dist/objects/room/ILandscapeContainer.js +2 -0
- package/dist/objects/room/IRoomRectangle.d.ts +9 -0
- package/dist/objects/room/IRoomRectangle.js +2 -0
- package/dist/objects/room/ITileColorable.d.ts +7 -0
- package/dist/objects/room/ITileColorable.js +2 -0
- package/dist/objects/room/IWallColorable.d.ts +7 -0
- package/dist/objects/room/IWallColorable.js +2 -0
- package/dist/objects/room/Landscape.d.ts +92 -0
- package/dist/objects/room/Landscape.js +389 -0
- package/dist/objects/room/ParsedTileMap.d.ts +14 -0
- package/dist/objects/room/ParsedTileMap.js +26 -0
- package/dist/objects/room/Pathfinding.d.ts +31 -0
- package/dist/objects/room/Pathfinding.js +241 -0
- package/dist/objects/room/Room.d.ts +182 -0
- package/dist/objects/room/Room.js +394 -0
- package/dist/objects/room/RoomCamera.d.ts +56 -0
- package/dist/objects/room/RoomCamera.js +358 -0
- package/dist/objects/room/RoomLandscapeMaskSprite.d.ts +38 -0
- package/dist/objects/room/RoomLandscapeMaskSprite.js +100 -0
- package/dist/objects/room/RoomModelVisualization.d.ts +132 -0
- package/dist/objects/room/RoomModelVisualization.js +561 -0
- package/dist/objects/room/RoomObjectContainer.d.ts +12 -0
- package/dist/objects/room/RoomObjectContainer.js +35 -0
- package/dist/objects/room/TileMapEditorLayer.d.ts +44 -0
- package/dist/objects/room/TileMapEditorLayer.js +331 -0
- package/dist/objects/room/data/LandscapeData.d.ts +26 -0
- package/dist/objects/room/data/LandscapeData.js +132 -0
- package/dist/objects/room/matrixes.d.ts +9 -0
- package/dist/objects/room/matrixes.js +35 -0
- package/dist/objects/room/parts/IRoomPart.d.ts +4 -0
- package/dist/objects/room/parts/IRoomPart.js +2 -0
- package/dist/objects/room/parts/RoomPartData.d.ts +15 -0
- package/dist/objects/room/parts/RoomPartData.js +2 -0
- package/dist/objects/room/parts/Stair.d.ts +23 -0
- package/dist/objects/room/parts/Stair.js +127 -0
- package/dist/objects/room/parts/StairCorner.d.ts +22 -0
- package/dist/objects/room/parts/StairCorner.js +192 -0
- package/dist/objects/room/parts/Tile.d.ts +33 -0
- package/dist/objects/room/parts/Tile.js +138 -0
- package/dist/objects/room/parts/TileCursor.d.ts +43 -0
- package/dist/objects/room/parts/TileCursor.js +193 -0
- package/dist/objects/room/parts/WallLeft.d.ts +47 -0
- package/dist/objects/room/parts/WallLeft.js +179 -0
- package/dist/objects/room/parts/WallOuterCorner.d.ts +16 -0
- package/dist/objects/room/parts/WallOuterCorner.js +84 -0
- package/dist/objects/room/parts/WallRight.d.ts +5 -0
- package/dist/objects/room/parts/WallRight.js +18 -0
- package/dist/objects/room/util/LegacyWallGeometry.d.ts +33 -0
- package/dist/objects/room/util/LegacyWallGeometry.js +93 -0
- package/dist/objects/room/util/createPlaneMatrix.d.ts +26 -0
- package/dist/objects/room/util/createPlaneMatrix.js +63 -0
- package/dist/objects/room/util/getMaskId.d.ts +1 -0
- package/dist/objects/room/util/getMaskId.js +13 -0
- package/dist/objects/room/util/getPosition.d.ts +7 -0
- package/dist/objects/room/util/getPosition.js +14 -0
- package/dist/objects/room/util/getTileColors.d.ts +10 -0
- package/dist/objects/room/util/getTileColors.js +34 -0
- package/dist/objects/room/util/getTileMapBounds.d.ts +10 -0
- package/dist/objects/room/util/getTileMapBounds.js +40 -0
- package/dist/objects/room/util/getTilePosition.d.ts +2 -0
- package/dist/objects/room/util/getTilePosition.js +42 -0
- package/dist/objects/room/util/getTilePositionForTile.d.ts +11 -0
- package/dist/objects/room/util/getTilePositionForTile.js +11 -0
- package/dist/types/RoomPosition.d.ts +44 -0
- package/dist/types/RoomPosition.js +2 -0
- package/dist/types/TileType.d.ts +2 -0
- package/dist/types/TileType.js +2 -0
- package/dist/types/WallPosition.d.ts +23 -0
- package/dist/types/WallPosition.js +2 -0
- package/dist/types/types.d.ts +0 -0
- package/dist/types/types.js +1 -0
- package/dist/util/applyTextureProperties.d.ts +2 -0
- package/dist/util/applyTextureProperties.js +6 -0
- package/dist/util/associateBy.d.ts +1 -0
- package/dist/util/associateBy.js +11 -0
- package/dist/util/furnitureDataTransformers.d.ts +27 -0
- package/dist/util/furnitureDataTransformers.js +58 -0
- package/dist/util/getIntFromHex.d.ts +1 -0
- package/dist/util/getIntFromHex.js +6 -0
- package/dist/util/getNumberFromAttribute.d.ts +1 -0
- package/dist/util/getNumberFromAttribute.js +11 -0
- package/dist/util/getTileInfo.d.ts +31 -0
- package/dist/util/getTileInfo.js +107 -0
- package/dist/util/getZOrder.d.ts +1 -0
- package/dist/util/getZOrder.js +6 -0
- package/dist/util/isPointInside.d.ts +1 -0
- package/dist/util/isPointInside.js +18 -0
- package/dist/util/isSetEqual.d.ts +1 -0
- package/dist/util/isSetEqual.js +11 -0
- package/dist/util/isTile.d.ts +1 -0
- package/dist/util/isTile.js +5 -0
- package/dist/util/loadImageFromBlob.d.ts +1 -0
- package/dist/util/loadImageFromBlob.js +13 -0
- package/dist/util/loadImageFromUrl.d.ts +1 -0
- package/dist/util/loadImageFromUrl.js +14 -0
- package/dist/util/loadRoomTexture.d.ts +2 -0
- package/dist/util/loadRoomTexture.js +51 -0
- package/dist/util/mock.d.ts +1 -0
- package/dist/util/mock.js +6 -0
- package/dist/util/notNullOrUndefined.d.ts +1 -0
- package/dist/util/notNullOrUndefined.js +6 -0
- package/dist/util/parseTileMap.d.ts +49 -0
- package/dist/util/parseTileMap.js +188 -0
- package/dist/util/parseTileMapString.d.ts +2 -0
- package/dist/util/parseTileMapString.js +16 -0
- package/dist/util/tilemap/findEntranceTile.d.ts +5 -0
- package/dist/util/tilemap/findEntranceTile.js +24 -0
- package/dist/util/tilemap/getColumnWalls.d.ts +8 -0
- package/dist/util/tilemap/getColumnWalls.js +43 -0
- package/dist/util/tilemap/getRowWalls.d.ts +8 -0
- package/dist/util/tilemap/getRowWalls.js +43 -0
- package/dist/util/tilemap/hasWallTiles.d.ts +2 -0
- package/dist/util/tilemap/hasWallTiles.js +9 -0
- package/dist/util/tilemap/padTileMap.d.ts +6 -0
- package/dist/util/tilemap/padTileMap.js +24 -0
- package/dist/util/tilemap/traceWalls.d.ts +25 -0
- package/dist/util/tilemap/traceWalls.js +379 -0
- package/dist/util/tilemap/wallsFromContour.d.ts +20 -0
- package/dist/util/tilemap/wallsFromContour.js +48 -0
- package/dist/util/traverseDOMTree.d.ts +4 -0
- package/dist/util/traverseDOMTree.js +8 -0
- package/dist-esm/__mocks__/setupTests.js +34 -0
- package/dist-esm/assets/IAssetBundle.js +1 -0
- package/dist-esm/assets/LegacyAssetBundle.js +25 -0
- package/dist-esm/assets/WsproomAssetBundle.js +79 -0
- package/dist-esm/data/XmlData.js +11 -0
- package/dist-esm/index.js +33 -0
- package/dist-esm/interfaces/IAnimationTicker.js +1 -0
- package/dist-esm/interfaces/IAvatarLoader.js +1 -0
- package/dist-esm/interfaces/IConfiguration.js +1 -0
- package/dist-esm/interfaces/IFurnitureData.js +1 -0
- package/dist-esm/interfaces/IFurnitureLoader.js +1 -0
- package/dist-esm/interfaces/IHitDetection.js +1 -0
- package/dist-esm/interfaces/IRoomContext.js +1 -0
- package/dist-esm/interfaces/IRoomGeometry.js +1 -0
- package/dist-esm/interfaces/IRoomObject.js +1 -0
- package/dist-esm/interfaces/IRoomObjectContainer.js +1 -0
- package/dist-esm/interfaces/IRoomVisualization.js +1 -0
- package/dist-esm/interfaces/ITextureable.js +1 -0
- package/dist-esm/interfaces/ITileMap.js +1 -0
- package/dist-esm/objects/RoomObject.js +65 -0
- package/dist-esm/objects/Wsproom.js +49 -0
- package/dist-esm/objects/animation/AnimationTicker.js +33 -0
- package/dist-esm/objects/animation/ObjectAnimation.js +89 -0
- package/dist-esm/objects/avatar/Avatar.js +544 -0
- package/dist-esm/objects/avatar/AvatarAssetLibraryCollection.js +66 -0
- package/dist-esm/objects/avatar/AvatarEffectBundle.js +30 -0
- package/dist-esm/objects/avatar/AvatarLoader.js +211 -0
- package/dist-esm/objects/avatar/BaseAvatar.js +349 -0
- package/dist-esm/objects/avatar/data/AvatarActionsData.js +80 -0
- package/dist-esm/objects/avatar/data/AvatarAnimationData.js +122 -0
- package/dist-esm/objects/avatar/data/AvatarData.js +11 -0
- package/dist-esm/objects/avatar/data/AvatarEffectData.js +182 -0
- package/dist-esm/objects/avatar/data/AvatarEffectMap.js +34 -0
- package/dist-esm/objects/avatar/data/AvatarGeometryData.js +118 -0
- package/dist-esm/objects/avatar/data/AvatarManifestData.js +51 -0
- package/dist-esm/objects/avatar/data/AvatarOffsetsData.js +13 -0
- package/dist-esm/objects/avatar/data/AvatarPartSetsData.js +34 -0
- package/dist-esm/objects/avatar/data/FigureData.js +102 -0
- package/dist-esm/objects/avatar/data/FigureMapData.js +43 -0
- package/dist-esm/objects/avatar/data/ManifestLibrary.js +25 -0
- package/dist-esm/objects/avatar/data/interfaces/IAvatarActionsData.js +1 -0
- package/dist-esm/objects/avatar/data/interfaces/IAvatarAnimationData.js +1 -0
- package/dist-esm/objects/avatar/data/interfaces/IAvatarEffectBundle.js +1 -0
- package/dist-esm/objects/avatar/data/interfaces/IAvatarEffectData.js +1 -0
- package/dist-esm/objects/avatar/data/interfaces/IAvatarEffectMap.js +1 -0
- package/dist-esm/objects/avatar/data/interfaces/IAvatarGeometryData.js +1 -0
- package/dist-esm/objects/avatar/data/interfaces/IAvatarManifestData.js +1 -0
- package/dist-esm/objects/avatar/data/interfaces/IAvatarOffsetsData.js +1 -0
- package/dist-esm/objects/avatar/data/interfaces/IAvatarPartSetsData.js +1 -0
- package/dist-esm/objects/avatar/data/interfaces/IFigureData.js +1 -0
- package/dist-esm/objects/avatar/data/interfaces/IFigureMapData.js +1 -0
- package/dist-esm/objects/avatar/data/interfaces/IManifestLibrary.js +1 -0
- package/dist-esm/objects/avatar/data/static/actions.xml.js +1 -0
- package/dist-esm/objects/avatar/data/static/animation.xml.js +1 -0
- package/dist-esm/objects/avatar/data/static/geometry.xml.js +1 -0
- package/dist-esm/objects/avatar/data/static/partsets.xml.js +1 -0
- package/dist-esm/objects/avatar/enum/AvatarAction.js +30 -0
- package/dist-esm/objects/avatar/enum/AvatarFigurePartType.js +28 -0
- package/dist-esm/objects/avatar/structure/AvatarAdditionPart.js +132 -0
- package/dist-esm/objects/avatar/structure/AvatarBodyPart.js +92 -0
- package/dist-esm/objects/avatar/structure/AvatarBodyPartList.js +87 -0
- package/dist-esm/objects/avatar/structure/AvatarDrawDefinition.js +131 -0
- package/dist-esm/objects/avatar/structure/AvatarEffectPart.js +113 -0
- package/dist-esm/objects/avatar/structure/AvatarPart.js +158 -0
- package/dist-esm/objects/avatar/structure/AvatarPartList.js +76 -0
- package/dist-esm/objects/avatar/structure/BodyPartDrawOrder.js +166 -0
- package/dist-esm/objects/avatar/structure/interface/IAvatarDrawablePart.js +1 -0
- package/dist-esm/objects/avatar/structure/interface/IAvatarEffectPart.js +1 -0
- package/dist-esm/objects/avatar/types/index.js +1 -0
- package/dist-esm/objects/avatar/util/createLookServer.js +15 -0
- package/dist-esm/objects/avatar/util/getAssetForFrame.js +39 -0
- package/dist-esm/objects/avatar/util/getAssetFromPartMeta.js +46 -0
- package/dist-esm/objects/avatar/util/getAvatarDirection.js +15 -0
- package/dist-esm/objects/avatar/util/getAvatarDrawDefinition.js +27 -0
- package/dist-esm/objects/avatar/util/getDrawOrderForActions.js +19 -0
- package/dist-esm/objects/avatar/util/getEffectSprite.js +24 -0
- package/dist-esm/objects/avatar/util/getFlippedMetaData.js +89 -0
- package/dist-esm/objects/avatar/util/getLibrariesForLook.js +29 -0
- package/dist-esm/objects/avatar/util/index.js +1 -0
- package/dist-esm/objects/avatar/util/parseLookString.js +12 -0
- package/dist-esm/objects/events/EventEmitter.js +27 -0
- package/dist-esm/objects/events/EventManager.js +241 -0
- package/dist-esm/objects/events/EventManagerContainer.js +32 -0
- package/dist-esm/objects/events/EventManagerNode.js +51 -0
- package/dist-esm/objects/events/EventOverOutHandler.js +86 -0
- package/dist-esm/objects/events/interfaces/IEventGroup.js +3 -0
- package/dist-esm/objects/events/interfaces/IEventHandler.js +1 -0
- package/dist-esm/objects/events/interfaces/IEventHittable.js +1 -0
- package/dist-esm/objects/events/interfaces/IEventManager.js +1 -0
- package/dist-esm/objects/events/interfaces/IEventManagerEvent.js +1 -0
- package/dist-esm/objects/events/interfaces/IEventManagerNode.js +1 -0
- package/dist-esm/objects/events/interfaces/IEventTarget.js +1 -0
- package/dist-esm/objects/furniture/BaseFurniture.js +482 -0
- package/dist-esm/objects/furniture/FloorFurniture.js +316 -0
- package/dist-esm/objects/furniture/FurnitureData.js +69 -0
- package/dist-esm/objects/furniture/FurnitureExtraData.js +1 -0
- package/dist-esm/objects/furniture/FurnitureFetchInfo.js +1 -0
- package/dist-esm/objects/furniture/FurnitureHelper.js +53 -0
- package/dist-esm/objects/furniture/FurnitureLoader.js +81 -0
- package/dist-esm/objects/furniture/FurnitureRoomVisualization.js +22 -0
- package/dist-esm/objects/furniture/FurnitureSprite.js +65 -0
- package/dist-esm/objects/furniture/FurnitureVisualizationView.js +478 -0
- package/dist-esm/objects/furniture/IFurniture.js +1 -0
- package/dist-esm/objects/furniture/IFurnitureAssetBundle.js +1 -0
- package/dist-esm/objects/furniture/IFurnitureVisualization.js +1 -0
- package/dist-esm/objects/furniture/IFurnitureVisualizationView.js +1 -0
- package/dist-esm/objects/furniture/JsonFurnitureAssetBundle.js +52 -0
- package/dist-esm/objects/furniture/WallFurniture.js +225 -0
- package/dist-esm/objects/furniture/XmlFurnitureAssetBundle.js +31 -0
- package/dist-esm/objects/furniture/data/FurnitureAssetsData.js +47 -0
- package/dist-esm/objects/furniture/data/FurnitureAssetsJson.js +1 -0
- package/dist-esm/objects/furniture/data/FurnitureIndexData.js +26 -0
- package/dist-esm/objects/furniture/data/FurnitureIndexJson.js +1 -0
- package/dist-esm/objects/furniture/data/FurnitureJson.js +1 -0
- package/dist-esm/objects/furniture/data/FurnitureLogicData.js +39 -0
- package/dist-esm/objects/furniture/data/FurnitureLogicJson.js +1 -0
- package/dist-esm/objects/furniture/data/FurnitureVisualizationData.js +277 -0
- package/dist-esm/objects/furniture/data/FurnitureVisualizationJson.js +1 -0
- package/dist-esm/objects/furniture/data/JsonFurnitureAssetsData.js +12 -0
- package/dist-esm/objects/furniture/data/JsonFurnitureLogicData.js +8 -0
- package/dist-esm/objects/furniture/data/JsonFurnitureVisualizationData.js +91 -0
- package/dist-esm/objects/furniture/data/interfaces/IFurnitureAssetsData.js +1 -0
- package/dist-esm/objects/furniture/data/interfaces/IFurnitureIndexData.js +1 -0
- package/dist-esm/objects/furniture/data/interfaces/IFurnitureLogicData.js +1 -0
- package/dist-esm/objects/furniture/data/interfaces/IFurnitureVisualizationData.js +1 -0
- package/dist-esm/objects/furniture/filter/ActiveWiredFilter.js +40 -0
- package/dist-esm/objects/furniture/filter/HighlightFilter.js +56 -0
- package/dist-esm/objects/furniture/filter/filterVertex.js +29 -0
- package/dist-esm/objects/furniture/util/DrawDefinition.js +1 -0
- package/dist-esm/objects/furniture/util/IFurnitureEventHandlers.js +1 -0
- package/dist-esm/objects/furniture/util/getDirectionForFurniture.js +15 -0
- package/dist-esm/objects/furniture/util/getFurniDrawDefinition.js +98 -0
- package/dist-esm/objects/furniture/util/getFurnitureFetch.js +11 -0
- package/dist-esm/objects/furniture/util/index.js +4 -0
- package/dist-esm/objects/furniture/util/loadFurni.js +46 -0
- package/dist-esm/objects/furniture/util/visualization/VisualizationXml.js +1 -0
- package/dist-esm/objects/furniture/util/visualization/parseAnimations.js +32 -0
- package/dist-esm/objects/furniture/util/visualization/parseColors.js +16 -0
- package/dist-esm/objects/furniture/util/visualization/parseDirections.js +24 -0
- package/dist-esm/objects/furniture/util/visualization/parseLayers.js +16 -0
- package/dist-esm/objects/furniture/util/visualization/parseVisualization.js +41 -0
- package/dist-esm/objects/furniture/visualization/AnimatedFurnitureVisualization.js +210 -0
- package/dist-esm/objects/furniture/visualization/BasicFurnitureVisualization.js +50 -0
- package/dist-esm/objects/furniture/visualization/FurnitureBottleVisualization.js +61 -0
- package/dist-esm/objects/furniture/visualization/FurnitureGuildCustomizedVisualization.js +83 -0
- package/dist-esm/objects/furniture/visualization/FurnitureVisualization.js +20 -0
- package/dist-esm/objects/hitdetection/ClickHandler.js +75 -0
- package/dist-esm/objects/hitdetection/HitSprite.js +186 -0
- package/dist-esm/objects/hitdetection/HitTexture.js +116 -0
- package/dist-esm/objects/interfaces/IMoveable.js +1 -0
- package/dist-esm/objects/interfaces/IScreenPositioned.js +1 -0
- package/dist-esm/objects/room/ILandscapeContainer.js +1 -0
- package/dist-esm/objects/room/IRoomRectangle.js +1 -0
- package/dist-esm/objects/room/ITileColorable.js +1 -0
- package/dist-esm/objects/room/IWallColorable.js +1 -0
- package/dist-esm/objects/room/Landscape.js +349 -0
- package/dist-esm/objects/room/ParsedTileMap.js +22 -0
- package/dist-esm/objects/room/Pathfinding.js +204 -0
- package/dist-esm/objects/room/Room.js +357 -0
- package/dist-esm/objects/room/RoomCamera.js +321 -0
- package/dist-esm/objects/room/RoomLandscapeMaskSprite.js +63 -0
- package/dist-esm/objects/room/RoomModelVisualization.js +524 -0
- package/dist-esm/objects/room/RoomObjectContainer.js +31 -0
- package/dist-esm/objects/room/TileMapEditorLayer.js +294 -0
- package/dist-esm/objects/room/data/LandscapeData.js +128 -0
- package/dist-esm/objects/room/matrixes.js +30 -0
- package/dist-esm/objects/room/parts/IRoomPart.js +1 -0
- package/dist-esm/objects/room/parts/RoomPartData.js +1 -0
- package/dist-esm/objects/room/parts/Stair.js +90 -0
- package/dist-esm/objects/room/parts/StairCorner.js +155 -0
- package/dist-esm/objects/room/parts/Tile.js +101 -0
- package/dist-esm/objects/room/parts/TileCursor.js +156 -0
- package/dist-esm/objects/room/parts/WallLeft.js +142 -0
- package/dist-esm/objects/room/parts/WallOuterCorner.js +47 -0
- package/dist-esm/objects/room/parts/WallRight.js +14 -0
- package/dist-esm/objects/room/util/LegacyWallGeometry.js +89 -0
- package/dist-esm/objects/room/util/createPlaneMatrix.js +27 -0
- package/dist-esm/objects/room/util/getMaskId.js +10 -0
- package/dist-esm/objects/room/util/getPosition.js +11 -0
- package/dist-esm/objects/room/util/getTileColors.js +30 -0
- package/dist-esm/objects/room/util/getTileMapBounds.js +37 -0
- package/dist-esm/objects/room/util/getTilePosition.js +6 -0
- package/dist-esm/objects/room/util/getTilePositionForTile.js +8 -0
- package/dist-esm/types/RoomPosition.js +1 -0
- package/dist-esm/types/TileType.js +1 -0
- package/dist-esm/types/WallPosition.js +1 -0
- package/dist-esm/types/types.js +1 -0
- package/dist-esm/util/applyTextureProperties.js +3 -0
- package/dist-esm/util/associateBy.js +8 -0
- package/dist-esm/util/furnitureDataTransformers.js +53 -0
- package/dist-esm/util/getIntFromHex.js +3 -0
- package/dist-esm/util/getNumberFromAttribute.js +8 -0
- package/dist-esm/util/getTileInfo.js +103 -0
- package/dist-esm/util/getZOrder.js +3 -0
- package/dist-esm/util/isPointInside.js +15 -0
- package/dist-esm/util/isSetEqual.js +8 -0
- package/dist-esm/util/isTile.js +1 -0
- package/dist-esm/util/loadImageFromBlob.js +10 -0
- package/dist-esm/util/loadImageFromUrl.js +11 -0
- package/dist-esm/util/loadRoomTexture.js +15 -0
- package/dist-esm/util/mock.js +3 -0
- package/dist-esm/util/notNullOrUndefined.js +3 -0
- package/dist-esm/util/parseTileMap.js +185 -0
- package/dist-esm/util/parseTileMapString.js +13 -0
- package/dist-esm/util/tilemap/findEntranceTile.js +21 -0
- package/dist-esm/util/tilemap/getColumnWalls.js +40 -0
- package/dist-esm/util/tilemap/getRowWalls.js +40 -0
- package/dist-esm/util/tilemap/hasWallTiles.js +6 -0
- package/dist-esm/util/tilemap/padTileMap.js +21 -0
- package/dist-esm/util/tilemap/traceWalls.js +376 -0
- package/dist-esm/util/tilemap/wallsFromContour.js +45 -0
- package/dist-esm/util/traverseDOMTree.js +5 -0
- package/package.json +102 -3
package/COPYING.LESSER
ADDED
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
GNU LESSER GENERAL PUBLIC LICENSE
|
|
2
|
+
Version 3, 29 June 2007
|
|
3
|
+
|
|
4
|
+
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
|
5
|
+
Everyone is permitted to copy and distribute verbatim copies
|
|
6
|
+
of this license document, but changing it is not allowed.
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
This version of the GNU Lesser General Public License incorporates
|
|
10
|
+
the terms and conditions of version 3 of the GNU General Public
|
|
11
|
+
License, supplemented by the additional permissions listed below.
|
|
12
|
+
|
|
13
|
+
0. Additional Definitions.
|
|
14
|
+
|
|
15
|
+
As used herein, "this License" refers to version 3 of the GNU Lesser
|
|
16
|
+
General Public License, and the "GNU GPL" refers to version 3 of the GNU
|
|
17
|
+
General Public License.
|
|
18
|
+
|
|
19
|
+
"The Library" refers to a covered work governed by this License,
|
|
20
|
+
other than an Application or a Combined Work as defined below.
|
|
21
|
+
|
|
22
|
+
An "Application" is any work that makes use of an interface provided
|
|
23
|
+
by the Library, but which is not otherwise based on the Library.
|
|
24
|
+
Defining a subclass of a class defined by the Library is deemed a mode
|
|
25
|
+
of using an interface provided by the Library.
|
|
26
|
+
|
|
27
|
+
A "Combined Work" is a work produced by combining or linking an
|
|
28
|
+
Application with the Library. The particular version of the Library
|
|
29
|
+
with which the Combined Work was made is also called the "Linked
|
|
30
|
+
Version".
|
|
31
|
+
|
|
32
|
+
The "Minimal Corresponding Source" for a Combined Work means the
|
|
33
|
+
Corresponding Source for the Combined Work, excluding any source code
|
|
34
|
+
for portions of the Combined Work that, considered in isolation, are
|
|
35
|
+
based on the Application, and not on the Linked Version.
|
|
36
|
+
|
|
37
|
+
The "Corresponding Application Code" for a Combined Work means the
|
|
38
|
+
object code and/or source code for the Application, including any data
|
|
39
|
+
and utility programs needed for reproducing the Combined Work from the
|
|
40
|
+
Application, but excluding the System Libraries of the Combined Work.
|
|
41
|
+
|
|
42
|
+
1. Exception to Section 3 of the GNU GPL.
|
|
43
|
+
|
|
44
|
+
You may convey a covered work under sections 3 and 4 of this License
|
|
45
|
+
without being bound by section 3 of the GNU GPL.
|
|
46
|
+
|
|
47
|
+
2. Conveying Modified Versions.
|
|
48
|
+
|
|
49
|
+
If you modify a copy of the Library, and, in your modifications, a
|
|
50
|
+
facility refers to a function or data to be supplied by an Application
|
|
51
|
+
that uses the facility (other than as an argument passed when the
|
|
52
|
+
facility is invoked), then you may convey a copy of the modified
|
|
53
|
+
version:
|
|
54
|
+
|
|
55
|
+
a) under this License, provided that you make a good faith effort to
|
|
56
|
+
ensure that, in the event an Application does not supply the
|
|
57
|
+
function or data, the facility still operates, and performs
|
|
58
|
+
whatever part of its purpose remains meaningful, or
|
|
59
|
+
|
|
60
|
+
b) under the GNU GPL, with none of the additional permissions of
|
|
61
|
+
this License applicable to that copy.
|
|
62
|
+
|
|
63
|
+
3. Object Code Incorporating Material from Library Header Files.
|
|
64
|
+
|
|
65
|
+
The object code form of an Application may incorporate material from
|
|
66
|
+
a header file that is part of the Library. You may convey such object
|
|
67
|
+
code under terms of your choice, provided that, if the incorporated
|
|
68
|
+
material is not limited to numerical parameters, data structure
|
|
69
|
+
layouts and accessors, or small macros, inline functions and templates
|
|
70
|
+
(ten or fewer lines in length), you do both of the following:
|
|
71
|
+
|
|
72
|
+
a) Give prominent notice with each copy of the object code that the
|
|
73
|
+
Library is used in it and that the Library and its use are
|
|
74
|
+
covered by this License.
|
|
75
|
+
|
|
76
|
+
b) Accompany the object code with a copy of the GNU GPL and this license
|
|
77
|
+
document.
|
|
78
|
+
|
|
79
|
+
4. Combined Works.
|
|
80
|
+
|
|
81
|
+
You may convey a Combined Work under terms of your choice that,
|
|
82
|
+
taken together, effectively do not restrict modification of the
|
|
83
|
+
portions of the Library contained in the Combined Work and reverse
|
|
84
|
+
engineering for debugging such modifications, if you also do each of
|
|
85
|
+
the following:
|
|
86
|
+
|
|
87
|
+
a) Give prominent notice with each copy of the Combined Work that
|
|
88
|
+
the Library is used in it and that the Library and its use are
|
|
89
|
+
covered by this License.
|
|
90
|
+
|
|
91
|
+
b) Accompany the Combined Work with a copy of the GNU GPL and this license
|
|
92
|
+
document.
|
|
93
|
+
|
|
94
|
+
c) For a Combined Work that displays copyright notices during
|
|
95
|
+
execution, include the copyright notice for the Library among
|
|
96
|
+
these notices, as well as a reference directing the user to the
|
|
97
|
+
copies of the GNU GPL and this license document.
|
|
98
|
+
|
|
99
|
+
d) Do one of the following:
|
|
100
|
+
|
|
101
|
+
0) Convey the Minimal Corresponding Source under the terms of this
|
|
102
|
+
License, and the Corresponding Application Code in a form
|
|
103
|
+
suitable for, and under terms that permit, the user to
|
|
104
|
+
recombine or relink the Application with a modified version of
|
|
105
|
+
the Linked Version to produce a modified Combined Work, in the
|
|
106
|
+
manner specified by section 6 of the GNU GPL for conveying
|
|
107
|
+
Corresponding Source.
|
|
108
|
+
|
|
109
|
+
1) Use a suitable shared library mechanism for linking with the
|
|
110
|
+
Library. A suitable mechanism is one that (a) uses at run time
|
|
111
|
+
a copy of the Library already present on the user's computer
|
|
112
|
+
system, and (b) will operate properly with a modified version
|
|
113
|
+
of the Library that is interface-compatible with the Linked
|
|
114
|
+
Version.
|
|
115
|
+
|
|
116
|
+
e) Provide Installation Information, but only if you would otherwise
|
|
117
|
+
be required to provide such information under section 6 of the
|
|
118
|
+
GNU GPL, and only to the extent that such information is
|
|
119
|
+
necessary to install and execute a modified version of the
|
|
120
|
+
Combined Work produced by recombining or relinking the
|
|
121
|
+
Application with a modified version of the Linked Version. (If
|
|
122
|
+
you use option 4d0, the Installation Information must accompany
|
|
123
|
+
the Minimal Corresponding Source and Corresponding Application
|
|
124
|
+
Code. If you use option 4d1, you must provide the Installation
|
|
125
|
+
Information in the manner specified by section 6 of the GNU GPL
|
|
126
|
+
for conveying Corresponding Source.)
|
|
127
|
+
|
|
128
|
+
5. Combined Libraries.
|
|
129
|
+
|
|
130
|
+
You may place library facilities that are a work based on the
|
|
131
|
+
Library side by side in a single library together with other library
|
|
132
|
+
facilities that are not Applications and are not covered by this
|
|
133
|
+
License, and convey such a combined library under terms of your
|
|
134
|
+
choice, if you do both of the following:
|
|
135
|
+
|
|
136
|
+
a) Accompany the combined library with a copy of the same work based
|
|
137
|
+
on the Library, uncombined with any other library facilities,
|
|
138
|
+
conveyed under the terms of this License.
|
|
139
|
+
|
|
140
|
+
b) Give prominent notice with the combined library that part of it
|
|
141
|
+
is a work based on the Library, and explaining where to find the
|
|
142
|
+
accompanying uncombined form of the same work.
|
|
143
|
+
|
|
144
|
+
6. Revised Versions of the GNU Lesser General Public License.
|
|
145
|
+
|
|
146
|
+
The Free Software Foundation may publish revised and/or new versions
|
|
147
|
+
of the GNU Lesser General Public License from time to time. Such new
|
|
148
|
+
versions will be similar in spirit to the present version, but may
|
|
149
|
+
differ in detail to address new problems or concerns.
|
|
150
|
+
|
|
151
|
+
Each version is given a distinguishing version number. If the
|
|
152
|
+
Library as you received it specifies that a certain numbered version
|
|
153
|
+
of the GNU Lesser General Public License "or any later version"
|
|
154
|
+
applies to it, you have the option of following the terms and
|
|
155
|
+
conditions either of that published version or of any later version
|
|
156
|
+
published by the Free Software Foundation. If the Library as you
|
|
157
|
+
received it does not specify a version number of the GNU Lesser
|
|
158
|
+
General Public License, you may choose any version of the GNU Lesser
|
|
159
|
+
General Public License ever published by the Free Software Foundation.
|
|
160
|
+
|
|
161
|
+
If the Library as you received it specifies that a proxy can decide
|
|
162
|
+
whether future versions of the GNU Lesser General Public License shall
|
|
163
|
+
apply, that proxy's public statement of acceptance of any version is
|
|
164
|
+
permanent authorization for you to choose that version for the
|
|
165
|
+
Library.
|
package/README.md
CHANGED
|
@@ -1,3 +1,77 @@
|
|
|
1
|
-
#
|
|
1
|
+
# 🍄 wsproom
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
**A modern isometric room rendering engine, built on PixiJS v8.**
|
|
4
|
+
|
|
5
|
+
[](https://www.npmjs.com/package/@wiredsnippets/wsproom)
|
|
6
|
+
[](./COPYING.LESSER)
|
|
7
|
+
[](https://pixijs.com)
|
|
8
|
+
|
|
9
|
+
wsproom renders rooms, furniture, avatars and wall items in the browser.
|
|
10
|
+
|
|
11
|
+
## ✨ Features
|
|
12
|
+
|
|
13
|
+
- **PixiJS v8** rendering.
|
|
14
|
+
- **Nitro-accurate tilemaps**, with wall tracing, contour processing and door handling.
|
|
15
|
+
- **Room camera** with zoom, tweening and optional bounds clamping.
|
|
16
|
+
- **Furniture**: floor and wall items, altitude and movement, mask sprites, ink/blend modes,
|
|
17
|
+
z-index control, `setPosition`, `dimensions`, `validAnimations`.
|
|
18
|
+
- **Highlight and active-wired filters** for furniture.
|
|
19
|
+
- **Precise hit detection** that accounts for scale, with a drag threshold so drags don't count as clicks.
|
|
20
|
+
- **Avatars** with actions, effects and pathfinding.
|
|
21
|
+
|
|
22
|
+
## 📦 Install
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
pnpm add @wiredsnippets/wsproom pixi.js
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## 🚀 Quick start
|
|
29
|
+
|
|
30
|
+
```ts
|
|
31
|
+
import { Application } from "pixi.js";
|
|
32
|
+
import { Wsproom, Room, FloorFurniture, Avatar } from "@wiredsnippets/wsproom";
|
|
33
|
+
|
|
34
|
+
const app = new Application();
|
|
35
|
+
await app.init({ resizeTo: window });
|
|
36
|
+
document.body.appendChild(app.canvas);
|
|
37
|
+
|
|
38
|
+
const wsproom = Wsproom.create({ application: app, resourcePath: "./resources" });
|
|
39
|
+
|
|
40
|
+
const room = Room.create(wsproom, {
|
|
41
|
+
tilemap: `
|
|
42
|
+
xxxxx
|
|
43
|
+
x0000
|
|
44
|
+
x0000
|
|
45
|
+
x0000
|
|
46
|
+
`,
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
room.addRoomObject(
|
|
50
|
+
new FloorFurniture({ roomX: 1, roomY: 1, roomZ: 0, direction: 2, type: "club_sofa" })
|
|
51
|
+
);
|
|
52
|
+
room.addRoomObject(
|
|
53
|
+
new Avatar({ look: "hd-180-1.hr-100-61.ch-210-66.lg-270-82.sh-290-80", roomX: 2, roomY: 2, roomZ: 0, direction: 2 })
|
|
54
|
+
);
|
|
55
|
+
|
|
56
|
+
app.stage.addChild(room);
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
## 🧰 Dumping assets
|
|
60
|
+
|
|
61
|
+
Extract the resources wsproom needs from an external variables file:
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
npx wsproom dump --url https://example.com/gamedata/external_variables.txt --location ./resources
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
## 💜 Credits
|
|
68
|
+
|
|
69
|
+
wsproom is built on **[Shroom](https://github.com/jankuss/shroom)** by **[Jankuss](https://github.com/jankuss)**.
|
|
70
|
+
The core architecture and much of the codebase are Jankuss's work, and without it this project
|
|
71
|
+
wouldn't exist. Huge thanks, Jankuss. 🍄
|
|
72
|
+
|
|
73
|
+
Maintained by [WiredSnippets](https://github.com/WiredSnippets).
|
|
74
|
+
|
|
75
|
+
## 📄 License
|
|
76
|
+
|
|
77
|
+
[LGPL-3.0-or-later](./COPYING.LESSER), same as the original Shroom.
|
|
File without changes
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
global.Image = class {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.width = 0;
|
|
5
|
+
this.height = 0;
|
|
6
|
+
setTimeout(() => {
|
|
7
|
+
if (this.onload)
|
|
8
|
+
this.onload();
|
|
9
|
+
}, 0);
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
// Mock PIXI.Texture.from to avoid WebGL requirement in tests
|
|
13
|
+
jest.mock('pixi.js', () => {
|
|
14
|
+
const actual = jest.requireActual('pixi.js');
|
|
15
|
+
return {
|
|
16
|
+
...actual,
|
|
17
|
+
Texture: {
|
|
18
|
+
...actual.Texture,
|
|
19
|
+
from: (resource) => {
|
|
20
|
+
const source = {
|
|
21
|
+
resource,
|
|
22
|
+
resolution: 1,
|
|
23
|
+
pixelWidth: resource.width || 2,
|
|
24
|
+
pixelHeight: resource.height || 2,
|
|
25
|
+
scaleMode: "linear",
|
|
26
|
+
};
|
|
27
|
+
return {
|
|
28
|
+
source,
|
|
29
|
+
orig: { x: 0, y: 0 },
|
|
30
|
+
};
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
};
|
|
34
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IAssetBundle } from "./IAssetBundle";
|
|
2
|
+
export declare class LegacyAssetBundle implements IAssetBundle {
|
|
3
|
+
private _folderUrl;
|
|
4
|
+
private _blobs;
|
|
5
|
+
private _strings;
|
|
6
|
+
constructor(_folderUrl: string);
|
|
7
|
+
getBlob(name: string): Promise<Blob>;
|
|
8
|
+
getString(name: string): Promise<string>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LegacyAssetBundle = void 0;
|
|
4
|
+
class LegacyAssetBundle {
|
|
5
|
+
constructor(_folderUrl) {
|
|
6
|
+
this._folderUrl = _folderUrl;
|
|
7
|
+
this._blobs = new Map();
|
|
8
|
+
this._strings = new Map();
|
|
9
|
+
}
|
|
10
|
+
async getBlob(name) {
|
|
11
|
+
const current = this._blobs.get(name);
|
|
12
|
+
if (current != null)
|
|
13
|
+
return current;
|
|
14
|
+
const imageUrl = `${this._folderUrl}/${name}`;
|
|
15
|
+
const blob = fetch(imageUrl).then((response) => response.blob());
|
|
16
|
+
this._blobs.set(name, blob);
|
|
17
|
+
return blob;
|
|
18
|
+
}
|
|
19
|
+
async getString(name) {
|
|
20
|
+
const current = this._strings.get(name);
|
|
21
|
+
if (current != null)
|
|
22
|
+
return current;
|
|
23
|
+
const imageUrl = `${this._folderUrl}/${name}`;
|
|
24
|
+
const string = fetch(imageUrl).then((response) => response.text());
|
|
25
|
+
this._strings.set(name, string);
|
|
26
|
+
return string;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
exports.LegacyAssetBundle = LegacyAssetBundle;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { IAssetBundle } from "./IAssetBundle";
|
|
2
|
+
export declare class WsproomAssetBundle implements IAssetBundle {
|
|
3
|
+
static readonly VERSION = 1;
|
|
4
|
+
private _files;
|
|
5
|
+
private _blobs;
|
|
6
|
+
private _strings;
|
|
7
|
+
constructor(files?: {
|
|
8
|
+
fileName: string;
|
|
9
|
+
buffer: ArrayBuffer | Buffer;
|
|
10
|
+
}[]);
|
|
11
|
+
get files(): [string, ArrayBuffer | Buffer][];
|
|
12
|
+
static fromUrl(url: string): Promise<WsproomAssetBundle>;
|
|
13
|
+
static fromBuffer(buffer: ArrayBuffer | Buffer): WsproomAssetBundle;
|
|
14
|
+
addFile(fileName: string, buffer: ArrayBuffer | Buffer): void;
|
|
15
|
+
toBuffer(): Buffer;
|
|
16
|
+
getBlob(name: string): Promise<Blob>;
|
|
17
|
+
getString(name: string): Promise<string>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.WsproomAssetBundle = void 0;
|
|
7
|
+
const bytebuffer_1 = __importDefault(require("bytebuffer"));
|
|
8
|
+
class WsproomAssetBundle {
|
|
9
|
+
constructor(files = []) {
|
|
10
|
+
this._files = new Map();
|
|
11
|
+
this._blobs = new Map();
|
|
12
|
+
this._strings = new Map();
|
|
13
|
+
files.forEach((file) => this._files.set(file.fileName, file.buffer));
|
|
14
|
+
}
|
|
15
|
+
get files() {
|
|
16
|
+
return Array.from(this._files.entries());
|
|
17
|
+
}
|
|
18
|
+
static async fromUrl(url) {
|
|
19
|
+
const response = await fetch(url);
|
|
20
|
+
if (response.status >= 400)
|
|
21
|
+
throw new Error(`Failed to load: ${url} - ${response.status}`);
|
|
22
|
+
const buffer = await response.arrayBuffer();
|
|
23
|
+
return WsproomAssetBundle.fromBuffer(buffer);
|
|
24
|
+
}
|
|
25
|
+
static fromBuffer(buffer) {
|
|
26
|
+
const byteBuffer = bytebuffer_1.default.wrap(buffer);
|
|
27
|
+
const readFile = () => {
|
|
28
|
+
const fileNameLength = byteBuffer.readUint16();
|
|
29
|
+
const fileName = byteBuffer.readString(fileNameLength);
|
|
30
|
+
const fileLength = byteBuffer.readUint32();
|
|
31
|
+
const buffer = byteBuffer.readBytes(fileLength);
|
|
32
|
+
return {
|
|
33
|
+
fileName,
|
|
34
|
+
buffer: buffer.toArrayBuffer(),
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
const version = byteBuffer.readByte();
|
|
38
|
+
const fileCount = byteBuffer.readUint16();
|
|
39
|
+
const files = [];
|
|
40
|
+
for (let i = 0; i < fileCount; i++) {
|
|
41
|
+
const file = readFile();
|
|
42
|
+
files.push(file);
|
|
43
|
+
}
|
|
44
|
+
return new WsproomAssetBundle(files);
|
|
45
|
+
}
|
|
46
|
+
addFile(fileName, buffer) {
|
|
47
|
+
this._files.set(fileName, buffer);
|
|
48
|
+
}
|
|
49
|
+
toBuffer() {
|
|
50
|
+
const byteBuffer = new bytebuffer_1.default();
|
|
51
|
+
byteBuffer.writeByte(WsproomAssetBundle.VERSION);
|
|
52
|
+
byteBuffer.writeUint16(this._files.size);
|
|
53
|
+
this._files.forEach((buffer, key) => {
|
|
54
|
+
byteBuffer.writeUint16(key.length);
|
|
55
|
+
byteBuffer.writeString(key);
|
|
56
|
+
byteBuffer.writeUint32(buffer.byteLength);
|
|
57
|
+
byteBuffer.append(buffer);
|
|
58
|
+
});
|
|
59
|
+
return byteBuffer.flip().toBuffer();
|
|
60
|
+
}
|
|
61
|
+
async getBlob(name) {
|
|
62
|
+
const current = this._blobs.get(name);
|
|
63
|
+
if (current != null)
|
|
64
|
+
return current;
|
|
65
|
+
const buffer = this._files.get(name);
|
|
66
|
+
if (buffer == null)
|
|
67
|
+
throw new Error(`Couldn't find ${name}.`);
|
|
68
|
+
const blob = new Blob([buffer]);
|
|
69
|
+
this._blobs.set(name, blob);
|
|
70
|
+
return blob;
|
|
71
|
+
}
|
|
72
|
+
async getString(name) {
|
|
73
|
+
const current = this._strings.get(name);
|
|
74
|
+
if (current != null)
|
|
75
|
+
return current;
|
|
76
|
+
const buffer = this._files.get(name);
|
|
77
|
+
if (buffer == null)
|
|
78
|
+
throw new Error(`Couldn't find ${name}.`);
|
|
79
|
+
const encoder = new TextDecoder();
|
|
80
|
+
const string = encoder.decode(buffer);
|
|
81
|
+
this._strings.set(name, string);
|
|
82
|
+
return string;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
exports.WsproomAssetBundle = WsproomAssetBundle;
|
|
86
|
+
WsproomAssetBundle.VERSION = 1;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.XmlData = void 0;
|
|
4
|
+
class XmlData {
|
|
5
|
+
constructor(xml) {
|
|
6
|
+
this.document = new DOMParser().parseFromString(xml, "text/xml");
|
|
7
|
+
}
|
|
8
|
+
querySelectorAll(query) {
|
|
9
|
+
return Array.from(this.document.querySelectorAll(query));
|
|
10
|
+
}
|
|
11
|
+
querySelector(query) {
|
|
12
|
+
return this.document.querySelector(query);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.XmlData = XmlData;
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { IEventManagerEvent } from "./objects/events/interfaces/IEventManagerEvent";
|
|
2
|
+
export { RoomObject } from "./objects/RoomObject";
|
|
3
|
+
export { Avatar } from "./objects/avatar/Avatar";
|
|
4
|
+
export { FloorFurniture } from "./objects/furniture/FloorFurniture";
|
|
5
|
+
export { HighlightFilter } from "./objects/furniture/filter/HighlightFilter";
|
|
6
|
+
export { ActiveWiredFilter } from "./objects/furniture/filter/ActiveWiredFilter";
|
|
7
|
+
export { WallFurniture } from "./objects/furniture/WallFurniture";
|
|
8
|
+
export { Room } from "./objects/room/Room";
|
|
9
|
+
export { RoomCamera } from "./objects/room/RoomCamera";
|
|
10
|
+
export { Pathfinding } from "./objects/room/Pathfinding";
|
|
11
|
+
export { loadRoomTexture } from "./util/loadRoomTexture";
|
|
12
|
+
export { parseTileMapString } from "./util/parseTileMapString";
|
|
13
|
+
export { hasWallTiles } from "./util/tilemap/hasWallTiles";
|
|
14
|
+
export type { IFurnitureBehavior } from "./objects/furniture/IFurniture";
|
|
15
|
+
export type { IFurniture } from "./objects/furniture/IFurniture";
|
|
16
|
+
export type { IFurnitureExtended } from "./objects/furniture/IFurniture";
|
|
17
|
+
export type { FurnitureInfo } from "./interfaces/IFurnitureData";
|
|
18
|
+
export type { IFurnitureData } from "./interfaces/IFurnitureData";
|
|
19
|
+
export { FurnitureData } from "./objects/furniture/FurnitureData";
|
|
20
|
+
export { FurnitureHelper } from "./objects/furniture/FurnitureHelper";
|
|
21
|
+
export { Wsproom } from "./objects/Wsproom";
|
|
22
|
+
export { Landscape, getLandscapeItemPosition, } from "./objects/room/Landscape";
|
|
23
|
+
export type { LandscapeVisualization, LandscapeLayer, LandscapeAnimationItem, } from "./objects/room/Landscape";
|
|
24
|
+
export { AnimationTicker } from "./objects/animation/AnimationTicker";
|
|
25
|
+
export { FurnitureLoader } from "./objects/furniture/FurnitureLoader";
|
|
26
|
+
export { AvatarLoader } from "./objects/avatar/AvatarLoader";
|
|
27
|
+
export { AvatarAction } from "./objects/avatar/enum/AvatarAction";
|
|
28
|
+
export { FurnitureRoomVisualization } from "./objects/furniture/FurnitureRoomVisualization";
|
|
29
|
+
export { BaseFurniture } from "./objects/furniture/BaseFurniture";
|
|
30
|
+
export { BaseAvatar } from "./objects/avatar/BaseAvatar";
|
|
31
|
+
export { AnimatedFurnitureVisualization } from "./objects/furniture/visualization/AnimatedFurnitureVisualization";
|
|
32
|
+
export { FurnitureGuildCustomizedVisualization } from "./objects/furniture/visualization/FurnitureGuildCustomizedVisualization";
|
|
33
|
+
export { StaticFurnitureVisualization, BasicFurnitureVisualization, } from "./objects/furniture/visualization/BasicFurnitureVisualization";
|
|
34
|
+
export { FurnitureBottleVisualization } from "./objects/furniture/visualization/FurnitureBottleVisualization";
|
|
35
|
+
export { FurnitureVisualization } from "./objects/furniture/visualization/FurnitureVisualization";
|
|
36
|
+
export type { IFurnitureVisualization } from "./objects/furniture/IFurnitureVisualization";
|
|
37
|
+
export type { RoomPosition } from "./types/RoomPosition";
|
|
38
|
+
export type { WallPosition } from "./types/WallPosition";
|
|
39
|
+
export { WallLeft } from "./objects/room/parts/WallLeft";
|
|
40
|
+
export { WallRight } from "./objects/room/parts/WallRight";
|
|
41
|
+
export { RoomModelVisualization } from "./objects/room/RoomModelVisualization";
|
|
42
|
+
export { TileMapEditorLayer } from "./objects/room/TileMapEditorLayer";
|
|
43
|
+
export type { EditorPaintCallback } from "./objects/room/TileMapEditorLayer";
|
|
44
|
+
export { AVATAR, TILE_CURSOR, FURNITURE, } from "./objects/events/interfaces/IEventGroup";
|
|
45
|
+
export type HitEvent = IEventManagerEvent;
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FURNITURE = exports.TILE_CURSOR = exports.AVATAR = exports.TileMapEditorLayer = exports.RoomModelVisualization = exports.WallRight = exports.WallLeft = exports.FurnitureVisualization = exports.FurnitureBottleVisualization = exports.BasicFurnitureVisualization = exports.StaticFurnitureVisualization = exports.FurnitureGuildCustomizedVisualization = exports.AnimatedFurnitureVisualization = exports.BaseAvatar = exports.BaseFurniture = exports.FurnitureRoomVisualization = exports.AvatarAction = exports.AvatarLoader = exports.FurnitureLoader = exports.AnimationTicker = exports.getLandscapeItemPosition = exports.Landscape = exports.Wsproom = exports.FurnitureHelper = exports.FurnitureData = exports.hasWallTiles = exports.parseTileMapString = exports.loadRoomTexture = exports.Pathfinding = exports.RoomCamera = exports.Room = exports.WallFurniture = exports.ActiveWiredFilter = exports.HighlightFilter = exports.FloorFurniture = exports.Avatar = exports.RoomObject = void 0;
|
|
4
|
+
var RoomObject_1 = require("./objects/RoomObject");
|
|
5
|
+
Object.defineProperty(exports, "RoomObject", { enumerable: true, get: function () { return RoomObject_1.RoomObject; } });
|
|
6
|
+
var Avatar_1 = require("./objects/avatar/Avatar");
|
|
7
|
+
Object.defineProperty(exports, "Avatar", { enumerable: true, get: function () { return Avatar_1.Avatar; } });
|
|
8
|
+
var FloorFurniture_1 = require("./objects/furniture/FloorFurniture");
|
|
9
|
+
Object.defineProperty(exports, "FloorFurniture", { enumerable: true, get: function () { return FloorFurniture_1.FloorFurniture; } });
|
|
10
|
+
var HighlightFilter_1 = require("./objects/furniture/filter/HighlightFilter");
|
|
11
|
+
Object.defineProperty(exports, "HighlightFilter", { enumerable: true, get: function () { return HighlightFilter_1.HighlightFilter; } });
|
|
12
|
+
var ActiveWiredFilter_1 = require("./objects/furniture/filter/ActiveWiredFilter");
|
|
13
|
+
Object.defineProperty(exports, "ActiveWiredFilter", { enumerable: true, get: function () { return ActiveWiredFilter_1.ActiveWiredFilter; } });
|
|
14
|
+
var WallFurniture_1 = require("./objects/furniture/WallFurniture");
|
|
15
|
+
Object.defineProperty(exports, "WallFurniture", { enumerable: true, get: function () { return WallFurniture_1.WallFurniture; } });
|
|
16
|
+
var Room_1 = require("./objects/room/Room");
|
|
17
|
+
Object.defineProperty(exports, "Room", { enumerable: true, get: function () { return Room_1.Room; } });
|
|
18
|
+
var RoomCamera_1 = require("./objects/room/RoomCamera");
|
|
19
|
+
Object.defineProperty(exports, "RoomCamera", { enumerable: true, get: function () { return RoomCamera_1.RoomCamera; } });
|
|
20
|
+
var Pathfinding_1 = require("./objects/room/Pathfinding");
|
|
21
|
+
Object.defineProperty(exports, "Pathfinding", { enumerable: true, get: function () { return Pathfinding_1.Pathfinding; } });
|
|
22
|
+
var loadRoomTexture_1 = require("./util/loadRoomTexture");
|
|
23
|
+
Object.defineProperty(exports, "loadRoomTexture", { enumerable: true, get: function () { return loadRoomTexture_1.loadRoomTexture; } });
|
|
24
|
+
var parseTileMapString_1 = require("./util/parseTileMapString");
|
|
25
|
+
Object.defineProperty(exports, "parseTileMapString", { enumerable: true, get: function () { return parseTileMapString_1.parseTileMapString; } });
|
|
26
|
+
var hasWallTiles_1 = require("./util/tilemap/hasWallTiles");
|
|
27
|
+
Object.defineProperty(exports, "hasWallTiles", { enumerable: true, get: function () { return hasWallTiles_1.hasWallTiles; } });
|
|
28
|
+
var FurnitureData_1 = require("./objects/furniture/FurnitureData");
|
|
29
|
+
Object.defineProperty(exports, "FurnitureData", { enumerable: true, get: function () { return FurnitureData_1.FurnitureData; } });
|
|
30
|
+
var FurnitureHelper_1 = require("./objects/furniture/FurnitureHelper");
|
|
31
|
+
Object.defineProperty(exports, "FurnitureHelper", { enumerable: true, get: function () { return FurnitureHelper_1.FurnitureHelper; } });
|
|
32
|
+
var Wsproom_1 = require("./objects/Wsproom");
|
|
33
|
+
Object.defineProperty(exports, "Wsproom", { enumerable: true, get: function () { return Wsproom_1.Wsproom; } });
|
|
34
|
+
var Landscape_1 = require("./objects/room/Landscape");
|
|
35
|
+
Object.defineProperty(exports, "Landscape", { enumerable: true, get: function () { return Landscape_1.Landscape; } });
|
|
36
|
+
Object.defineProperty(exports, "getLandscapeItemPosition", { enumerable: true, get: function () { return Landscape_1.getLandscapeItemPosition; } });
|
|
37
|
+
var AnimationTicker_1 = require("./objects/animation/AnimationTicker");
|
|
38
|
+
Object.defineProperty(exports, "AnimationTicker", { enumerable: true, get: function () { return AnimationTicker_1.AnimationTicker; } });
|
|
39
|
+
var FurnitureLoader_1 = require("./objects/furniture/FurnitureLoader");
|
|
40
|
+
Object.defineProperty(exports, "FurnitureLoader", { enumerable: true, get: function () { return FurnitureLoader_1.FurnitureLoader; } });
|
|
41
|
+
var AvatarLoader_1 = require("./objects/avatar/AvatarLoader");
|
|
42
|
+
Object.defineProperty(exports, "AvatarLoader", { enumerable: true, get: function () { return AvatarLoader_1.AvatarLoader; } });
|
|
43
|
+
var AvatarAction_1 = require("./objects/avatar/enum/AvatarAction");
|
|
44
|
+
Object.defineProperty(exports, "AvatarAction", { enumerable: true, get: function () { return AvatarAction_1.AvatarAction; } });
|
|
45
|
+
var FurnitureRoomVisualization_1 = require("./objects/furniture/FurnitureRoomVisualization");
|
|
46
|
+
Object.defineProperty(exports, "FurnitureRoomVisualization", { enumerable: true, get: function () { return FurnitureRoomVisualization_1.FurnitureRoomVisualization; } });
|
|
47
|
+
var BaseFurniture_1 = require("./objects/furniture/BaseFurniture");
|
|
48
|
+
Object.defineProperty(exports, "BaseFurniture", { enumerable: true, get: function () { return BaseFurniture_1.BaseFurniture; } });
|
|
49
|
+
var BaseAvatar_1 = require("./objects/avatar/BaseAvatar");
|
|
50
|
+
Object.defineProperty(exports, "BaseAvatar", { enumerable: true, get: function () { return BaseAvatar_1.BaseAvatar; } });
|
|
51
|
+
var AnimatedFurnitureVisualization_1 = require("./objects/furniture/visualization/AnimatedFurnitureVisualization");
|
|
52
|
+
Object.defineProperty(exports, "AnimatedFurnitureVisualization", { enumerable: true, get: function () { return AnimatedFurnitureVisualization_1.AnimatedFurnitureVisualization; } });
|
|
53
|
+
var FurnitureGuildCustomizedVisualization_1 = require("./objects/furniture/visualization/FurnitureGuildCustomizedVisualization");
|
|
54
|
+
Object.defineProperty(exports, "FurnitureGuildCustomizedVisualization", { enumerable: true, get: function () { return FurnitureGuildCustomizedVisualization_1.FurnitureGuildCustomizedVisualization; } });
|
|
55
|
+
var BasicFurnitureVisualization_1 = require("./objects/furniture/visualization/BasicFurnitureVisualization");
|
|
56
|
+
Object.defineProperty(exports, "StaticFurnitureVisualization", { enumerable: true, get: function () { return BasicFurnitureVisualization_1.StaticFurnitureVisualization; } });
|
|
57
|
+
Object.defineProperty(exports, "BasicFurnitureVisualization", { enumerable: true, get: function () { return BasicFurnitureVisualization_1.BasicFurnitureVisualization; } });
|
|
58
|
+
var FurnitureBottleVisualization_1 = require("./objects/furniture/visualization/FurnitureBottleVisualization");
|
|
59
|
+
Object.defineProperty(exports, "FurnitureBottleVisualization", { enumerable: true, get: function () { return FurnitureBottleVisualization_1.FurnitureBottleVisualization; } });
|
|
60
|
+
var FurnitureVisualization_1 = require("./objects/furniture/visualization/FurnitureVisualization");
|
|
61
|
+
Object.defineProperty(exports, "FurnitureVisualization", { enumerable: true, get: function () { return FurnitureVisualization_1.FurnitureVisualization; } });
|
|
62
|
+
var WallLeft_1 = require("./objects/room/parts/WallLeft");
|
|
63
|
+
Object.defineProperty(exports, "WallLeft", { enumerable: true, get: function () { return WallLeft_1.WallLeft; } });
|
|
64
|
+
var WallRight_1 = require("./objects/room/parts/WallRight");
|
|
65
|
+
Object.defineProperty(exports, "WallRight", { enumerable: true, get: function () { return WallRight_1.WallRight; } });
|
|
66
|
+
var RoomModelVisualization_1 = require("./objects/room/RoomModelVisualization");
|
|
67
|
+
Object.defineProperty(exports, "RoomModelVisualization", { enumerable: true, get: function () { return RoomModelVisualization_1.RoomModelVisualization; } });
|
|
68
|
+
var TileMapEditorLayer_1 = require("./objects/room/TileMapEditorLayer");
|
|
69
|
+
Object.defineProperty(exports, "TileMapEditorLayer", { enumerable: true, get: function () { return TileMapEditorLayer_1.TileMapEditorLayer; } });
|
|
70
|
+
var IEventGroup_1 = require("./objects/events/interfaces/IEventGroup");
|
|
71
|
+
Object.defineProperty(exports, "AVATAR", { enumerable: true, get: function () { return IEventGroup_1.AVATAR; } });
|
|
72
|
+
Object.defineProperty(exports, "TILE_CURSOR", { enumerable: true, get: function () { return IEventGroup_1.TILE_CURSOR; } });
|
|
73
|
+
Object.defineProperty(exports, "FURNITURE", { enumerable: true, get: function () { return IEventGroup_1.FURNITURE; } });
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AvatarDrawDefinition } from "../objects/avatar/structure/AvatarDrawDefinition";
|
|
2
|
+
import { LookOptions } from "../objects/avatar/util/createLookServer";
|
|
3
|
+
import { HitTexture } from "../objects/hitdetection/HitTexture";
|
|
4
|
+
export interface IAvatarLoader {
|
|
5
|
+
getAvatarDrawDefinition(options: LookOptions & {
|
|
6
|
+
initial?: boolean;
|
|
7
|
+
}): Promise<AvatarLoaderResult>;
|
|
8
|
+
}
|
|
9
|
+
export type AvatarLoaderResult = {
|
|
10
|
+
getTexture(id: string): HitTexture;
|
|
11
|
+
getDrawDefinition(options: LookOptions): AvatarDrawDefinition;
|
|
12
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type * as PIXI from "pixi.js";
|
|
2
|
+
export interface IConfiguration {
|
|
3
|
+
placeholder?: PIXI.Texture;
|
|
4
|
+
tileColor?: {
|
|
5
|
+
floorColor?: string;
|
|
6
|
+
leftFade?: number;
|
|
7
|
+
rightFade?: number;
|
|
8
|
+
};
|
|
9
|
+
avatarMovementDuration?: number;
|
|
10
|
+
furnitureMovementDuration?: number;
|
|
11
|
+
highlightFilters?: Record<string, PIXI.Filter>;
|
|
12
|
+
activeWiredFilter?: PIXI.Filter;
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IFurniture } from "../objects/furniture/IFurniture";
|
|
2
|
+
import { furnitureDataTransformers } from "../util/furnitureDataTransformers";
|
|
3
|
+
export interface IFurnitureData {
|
|
4
|
+
getRevisionForType(type: string): Promise<number | undefined>;
|
|
5
|
+
getInfo(type: string): Promise<FurnitureInfo | undefined>;
|
|
6
|
+
getTypeById(id: FurnitureId, type: "wall" | "floor"): Promise<string | undefined>;
|
|
7
|
+
getInfoForFurniture(furniture: IFurniture): Promise<FurnitureInfo | undefined>;
|
|
8
|
+
getInfos(): Promise<[string, FurnitureInfo][]>;
|
|
9
|
+
}
|
|
10
|
+
export type FurnitureId = string | number;
|
|
11
|
+
export type FurnitureInfo = {
|
|
12
|
+
[key in keyof typeof furnitureDataTransformers]: ReturnType<typeof furnitureDataTransformers[key]>;
|
|
13
|
+
};
|