@mavonengine/core 0.0.2 → 0.0.3
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/package.json +3 -2
- package/vite.config.js +21 -0
- package/dist/BaseGame.cjs +0 -112
- package/dist/Camera.cjs +0 -52
- package/dist/Components/MinimapComponent.cjs +0 -92
- package/dist/Components/TrailComponent.cjs +0 -101
- package/dist/Editor/EditorHelper.cjs +0 -73
- package/dist/Editor/WithEditorHelper.cjs +0 -65
- package/dist/Game.cjs +0 -131
- package/dist/InputManager.cjs +0 -88
- package/dist/Networking/Client/NetworkManager.cjs +0 -94
- package/dist/Networking/Entities/Player.cjs +0 -47
- package/dist/Networking/NetworkedActor.cjs +0 -43
- package/dist/Networking/NetworkedEntity.cjs +0 -16
- package/dist/Networking/NetworkedEntityState.cjs +0 -44
- package/dist/Networking/NetworkedGameObject.cjs +0 -74
- package/dist/Networking/NetworkedLivingActor.cjs +0 -62
- package/dist/Networking/Server/Client.cjs +0 -37
- package/dist/Networking/Server/Commands.cjs +0 -32
- package/dist/Networking/Server/Server.cjs +0 -202
- package/dist/Networking/Server/Stats/BandwidthTracker.cjs +0 -45
- package/dist/Networking/Server/Stats/CpuTracker.cjs +0 -101
- package/dist/Networking/Server/World.cjs +0 -42
- package/dist/Networking/syncState.cjs +0 -51
- package/dist/Particles/Effects/Rain.cjs +0 -90
- package/dist/Particles/Effects/Smoke.cjs +0 -144
- package/dist/Particles/System/Emitter.cjs +0 -81
- package/dist/Particles/System/Particle.cjs +0 -49
- package/dist/Particles/System/ParticleEffect.cjs +0 -59
- package/dist/Particles/System/ParticlePreviewRegistry.cjs +0 -63
- package/dist/Particles/System/ParticleSystem.cjs +0 -61
- package/dist/Prefab/Grass/Grass.cjs +0 -214
- package/dist/Prefab/Grass/GrassAffectingEntity.cjs +0 -30
- package/dist/Prefab/Lights/index.cjs +0 -233
- package/dist/Prefab/Primitives/index.cjs +0 -300
- package/dist/Prefab/Water/Water.cjs +0 -234
- package/dist/Prefab/Water/WaterManager.cjs +0 -146
- package/dist/Renderer/AssetRenderer.cjs +0 -85
- package/dist/Renderer/PhysicsRenderer.cjs +0 -84
- package/dist/Renderer.cjs +0 -135
- package/dist/Types/Asset.cjs +0 -16
- package/dist/Types/Events.cjs +0 -16
- package/dist/Types/IEditor.cjs +0 -16
- package/dist/Utils/Debug.cjs +0 -47
- package/dist/Utils/EventEmitter.cjs +0 -58
- package/dist/Utils/Helpers.cjs +0 -33
- package/dist/Utils/LoadingScreen.cjs +0 -91
- package/dist/Utils/Logger.cjs +0 -60
- package/dist/Utils/Math.cjs +0 -35
- package/dist/Utils/Resources.cjs +0 -101
- package/dist/Utils/Sizes.cjs +0 -51
- package/dist/Utils/SkeletonAxesHelper.cjs +0 -60
- package/dist/World/Actor.cjs +0 -55
- package/dist/World/BaseChunkManager.cjs +0 -34
- package/dist/World/BaseWorld.cjs +0 -73
- package/dist/World/Chunk.cjs +0 -45
- package/dist/World/Entity/State.cjs +0 -52
- package/dist/World/Entity/interface/Damageable.cjs +0 -16
- package/dist/World/Entity/interface/LivingEntity.cjs +0 -16
- package/dist/World/Entity3D.cjs +0 -92
- package/dist/World/Environment.cjs +0 -59
- package/dist/World/GameObject.cjs +0 -59
- package/dist/World/GameObjectInterface.cjs +0 -16
- package/dist/World/LivingActor.cjs +0 -42
- package/dist/World/StateManager.cjs +0 -47
- package/dist/World/World.cjs +0 -58
- package/dist/browser/BaseGame.js +0 -10
- package/dist/browser/BaseGame.js.map +0 -1
- package/dist/browser/Camera.css +0 -51
- package/dist/browser/Camera.css.map +0 -1
- package/dist/browser/Camera.js +0 -18
- package/dist/browser/Camera.js.map +0 -1
- package/dist/browser/Components/MinimapComponent.css +0 -51
- package/dist/browser/Components/MinimapComponent.css.map +0 -1
- package/dist/browser/Components/MinimapComponent.js +0 -74
- package/dist/browser/Components/MinimapComponent.js.map +0 -1
- package/dist/browser/Components/TrailComponent.css +0 -51
- package/dist/browser/Components/TrailComponent.css.map +0 -1
- package/dist/browser/Components/TrailComponent.js +0 -94
- package/dist/browser/Components/TrailComponent.js.map +0 -1
- package/dist/browser/Editor/EditorHelper.css +0 -51
- package/dist/browser/Editor/EditorHelper.css.map +0 -1
- package/dist/browser/Editor/EditorHelper.js +0 -21
- package/dist/browser/Editor/EditorHelper.js.map +0 -1
- package/dist/browser/Editor/WithEditorHelper.css +0 -51
- package/dist/browser/Editor/WithEditorHelper.css.map +0 -1
- package/dist/browser/Editor/WithEditorHelper.js +0 -22
- package/dist/browser/Editor/WithEditorHelper.js.map +0 -1
- package/dist/browser/Game.css +0 -51
- package/dist/browser/Game.css.map +0 -1
- package/dist/browser/Game.js +0 -18
- package/dist/browser/Game.js.map +0 -1
- package/dist/browser/InputManager.css +0 -51
- package/dist/browser/InputManager.css.map +0 -1
- package/dist/browser/InputManager.js +0 -18
- package/dist/browser/InputManager.js.map +0 -1
- package/dist/browser/Networking/Client/NetworkManager.js +0 -73
- package/dist/browser/Networking/Client/NetworkManager.js.map +0 -1
- package/dist/browser/Networking/Entities/Player.js +0 -15
- package/dist/browser/Networking/Entities/Player.js.map +0 -1
- package/dist/browser/Networking/NetworkedActor.js +0 -24
- package/dist/browser/Networking/NetworkedActor.js.map +0 -1
- package/dist/browser/Networking/NetworkedEntity.js +0 -1
- package/dist/browser/Networking/NetworkedEntity.js.map +0 -1
- package/dist/browser/Networking/NetworkedEntityState.js +0 -20
- package/dist/browser/Networking/NetworkedEntityState.js.map +0 -1
- package/dist/browser/Networking/NetworkedGameObject.js +0 -12
- package/dist/browser/Networking/NetworkedGameObject.js.map +0 -1
- package/dist/browser/Networking/NetworkedLivingActor.js +0 -14
- package/dist/browser/Networking/NetworkedLivingActor.js.map +0 -1
- package/dist/browser/Networking/Server/Client.js +0 -8
- package/dist/browser/Networking/Server/Client.js.map +0 -1
- package/dist/browser/Networking/Server/Commands.js +0 -8
- package/dist/browser/Networking/Server/Commands.js.map +0 -1
- package/dist/browser/Networking/Server/Server.js +0 -194
- package/dist/browser/Networking/Server/Server.js.map +0 -1
- package/dist/browser/Networking/Server/Stats/BandwidthTracker.js +0 -8
- package/dist/browser/Networking/Server/Stats/BandwidthTracker.js.map +0 -1
- package/dist/browser/Networking/Server/Stats/CpuTracker.js +0 -8
- package/dist/browser/Networking/Server/Stats/CpuTracker.js.map +0 -1
- package/dist/browser/Networking/Server/World.js +0 -19
- package/dist/browser/Networking/Server/World.js.map +0 -1
- package/dist/browser/Networking/syncState.js +0 -31
- package/dist/browser/Networking/syncState.js.map +0 -1
- package/dist/browser/Particles/Effects/Rain.css +0 -51
- package/dist/browser/Particles/Effects/Rain.css.map +0 -1
- package/dist/browser/Particles/Effects/Rain.js +0 -88
- package/dist/browser/Particles/Effects/Rain.js.map +0 -1
- package/dist/browser/Particles/Effects/Smoke.css +0 -51
- package/dist/browser/Particles/Effects/Smoke.css.map +0 -1
- package/dist/browser/Particles/Effects/Smoke.js +0 -143
- package/dist/browser/Particles/Effects/Smoke.js.map +0 -1
- package/dist/browser/Particles/Shaders/LoadingScreen/Fragment.glsl +0 -6
- package/dist/browser/Particles/Shaders/LoadingScreen/Vertex.glsl +0 -3
- package/dist/browser/Particles/Shaders/Rain/Fragment.glsl +0 -4
- package/dist/browser/Particles/Shaders/Rain/Vertex.glsl +0 -23
- package/dist/browser/Particles/Shaders/Smoke/Fragment.glsl +0 -8
- package/dist/browser/Particles/Shaders/Smoke/Vertex.glsl +0 -25
- package/dist/browser/Particles/System/Emitter.css +0 -51
- package/dist/browser/Particles/System/Emitter.css.map +0 -1
- package/dist/browser/Particles/System/Emitter.js +0 -19
- package/dist/browser/Particles/System/Emitter.js.map +0 -1
- package/dist/browser/Particles/System/Particle.js +0 -10
- package/dist/browser/Particles/System/Particle.js.map +0 -1
- package/dist/browser/Particles/System/ParticleEffect.css +0 -51
- package/dist/browser/Particles/System/ParticleEffect.css.map +0 -1
- package/dist/browser/Particles/System/ParticleEffect.js +0 -23
- package/dist/browser/Particles/System/ParticleEffect.js.map +0 -1
- package/dist/browser/Particles/System/ParticlePreviewRegistry.js +0 -13
- package/dist/browser/Particles/System/ParticlePreviewRegistry.js.map +0 -1
- package/dist/browser/Particles/System/ParticleSystem.css +0 -51
- package/dist/browser/Particles/System/ParticleSystem.css.map +0 -1
- package/dist/browser/Particles/System/ParticleSystem.js +0 -18
- package/dist/browser/Particles/System/ParticleSystem.js.map +0 -1
- package/dist/browser/Prefab/Grass/Fragment.glsl +0 -11
- package/dist/browser/Prefab/Grass/Grass.css +0 -51
- package/dist/browser/Prefab/Grass/Grass.css.map +0 -1
- package/dist/browser/Prefab/Grass/Grass.js +0 -226
- package/dist/browser/Prefab/Grass/Grass.js.map +0 -1
- package/dist/browser/Prefab/Grass/GrassAffectingEntity.js +0 -10
- package/dist/browser/Prefab/Grass/GrassAffectingEntity.js.map +0 -1
- package/dist/browser/Prefab/Grass/Vertex.glsl +0 -102
- package/dist/browser/Prefab/Lights/index.css +0 -51
- package/dist/browser/Prefab/Lights/index.css.map +0 -1
- package/dist/browser/Prefab/Lights/index.js +0 -224
- package/dist/browser/Prefab/Lights/index.js.map +0 -1
- package/dist/browser/Prefab/Primitives/index.css +0 -51
- package/dist/browser/Prefab/Primitives/index.css.map +0 -1
- package/dist/browser/Prefab/Primitives/index.js +0 -296
- package/dist/browser/Prefab/Primitives/index.js.map +0 -1
- package/dist/browser/Prefab/Water/Fragment.glsl +0 -36
- package/dist/browser/Prefab/Water/Vertex.glsl +0 -60
- package/dist/browser/Prefab/Water/Water.css +0 -51
- package/dist/browser/Prefab/Water/Water.css.map +0 -1
- package/dist/browser/Prefab/Water/Water.js +0 -234
- package/dist/browser/Prefab/Water/Water.js.map +0 -1
- package/dist/browser/Prefab/Water/WaterManager.css +0 -51
- package/dist/browser/Prefab/Water/WaterManager.css.map +0 -1
- package/dist/browser/Prefab/Water/WaterManager.js +0 -19
- package/dist/browser/Prefab/Water/WaterManager.js.map +0 -1
- package/dist/browser/Renderer/AssetRenderer.css +0 -51
- package/dist/browser/Renderer/AssetRenderer.css.map +0 -1
- package/dist/browser/Renderer/AssetRenderer.js +0 -71
- package/dist/browser/Renderer/AssetRenderer.js.map +0 -1
- package/dist/browser/Renderer/PhysicsRenderer.css +0 -51
- package/dist/browser/Renderer/PhysicsRenderer.css.map +0 -1
- package/dist/browser/Renderer/PhysicsRenderer.js +0 -18
- package/dist/browser/Renderer/PhysicsRenderer.js.map +0 -1
- package/dist/browser/Renderer.css +0 -51
- package/dist/browser/Renderer.css.map +0 -1
- package/dist/browser/Renderer.js +0 -18
- package/dist/browser/Renderer.js.map +0 -1
- package/dist/browser/Shaders/Vertex/ClassicPerlin3DNoise.glsl +0 -84
- package/dist/browser/Types/Asset.js +0 -1
- package/dist/browser/Types/Asset.js.map +0 -1
- package/dist/browser/Types/Events.js +0 -1
- package/dist/browser/Types/Events.js.map +0 -1
- package/dist/browser/Types/IEditor.js +0 -1
- package/dist/browser/Types/IEditor.js.map +0 -1
- package/dist/browser/Utils/Debug.js +0 -9
- package/dist/browser/Utils/Debug.js.map +0 -1
- package/dist/browser/Utils/EventEmitter.js +0 -10
- package/dist/browser/Utils/EventEmitter.js.map +0 -1
- package/dist/browser/Utils/Helpers.js +0 -13
- package/dist/browser/Utils/Helpers.js.map +0 -1
- package/dist/browser/Utils/LoadingScreen.css +0 -51
- package/dist/browser/Utils/LoadingScreen.css.map +0 -1
- package/dist/browser/Utils/LoadingScreen.js +0 -18
- package/dist/browser/Utils/LoadingScreen.js.map +0 -1
- package/dist/browser/Utils/Logger.js +0 -8
- package/dist/browser/Utils/Logger.js.map +0 -1
- package/dist/browser/Utils/Math.js +0 -10
- package/dist/browser/Utils/Math.js.map +0 -1
- package/dist/browser/Utils/Resources.js +0 -9
- package/dist/browser/Utils/Resources.js.map +0 -1
- package/dist/browser/Utils/Sizes.js +0 -9
- package/dist/browser/Utils/Sizes.js.map +0 -1
- package/dist/browser/Utils/SkeletonAxesHelper.js +0 -8
- package/dist/browser/Utils/SkeletonAxesHelper.js.map +0 -1
- package/dist/browser/World/Actor.js +0 -11
- package/dist/browser/World/Actor.js.map +0 -1
- package/dist/browser/World/BaseChunkManager.js +0 -8
- package/dist/browser/World/BaseChunkManager.js.map +0 -1
- package/dist/browser/World/BaseWorld.js +0 -10
- package/dist/browser/World/BaseWorld.js.map +0 -1
- package/dist/browser/World/Chunk.js +0 -22
- package/dist/browser/World/Chunk.js.map +0 -1
- package/dist/browser/World/Entity/State.js +0 -8
- package/dist/browser/World/Entity/State.js.map +0 -1
- package/dist/browser/World/Entity/interface/Damageable.js +0 -1
- package/dist/browser/World/Entity/interface/Damageable.js.map +0 -1
- package/dist/browser/World/Entity/interface/LivingEntity.js +0 -1
- package/dist/browser/World/Entity/interface/LivingEntity.js.map +0 -1
- package/dist/browser/World/Entity3D.css +0 -51
- package/dist/browser/World/Entity3D.css.map +0 -1
- package/dist/browser/World/Entity3D.js +0 -21
- package/dist/browser/World/Entity3D.js.map +0 -1
- package/dist/browser/World/Environment.css +0 -51
- package/dist/browser/World/Environment.css.map +0 -1
- package/dist/browser/World/Environment.js +0 -18
- package/dist/browser/World/Environment.js.map +0 -1
- package/dist/browser/World/GameObject.js +0 -9
- package/dist/browser/World/GameObject.js.map +0 -1
- package/dist/browser/World/GameObjectInterface.js +0 -1
- package/dist/browser/World/GameObjectInterface.js.map +0 -1
- package/dist/browser/World/LivingActor.js +0 -12
- package/dist/browser/World/LivingActor.js.map +0 -1
- package/dist/browser/World/StateManager.js +0 -23
- package/dist/browser/World/StateManager.js.map +0 -1
- package/dist/browser/World/World.css +0 -51
- package/dist/browser/World/World.css.map +0 -1
- package/dist/browser/World/World.js +0 -18
- package/dist/browser/World/World.js.map +0 -1
- package/dist/browser/chunk-2D7GC2Z6.js +0 -17
- package/dist/browser/chunk-2D7GC2Z6.js.map +0 -1
- package/dist/browser/chunk-2UXBMKXV.js +0 -56
- package/dist/browser/chunk-2UXBMKXV.js.map +0 -1
- package/dist/browser/chunk-36BXDTHA.js +0 -35
- package/dist/browser/chunk-36BXDTHA.js.map +0 -1
- package/dist/browser/chunk-374CRENE.js +0 -56
- package/dist/browser/chunk-374CRENE.js.map +0 -1
- package/dist/browser/chunk-3KYMJLQ5.js +0 -46
- package/dist/browser/chunk-3KYMJLQ5.js.map +0 -1
- package/dist/browser/chunk-4I6AZDRZ.js +0 -14356
- package/dist/browser/chunk-4I6AZDRZ.js.map +0 -1
- package/dist/browser/chunk-5LZSI46V.js +0 -122
- package/dist/browser/chunk-5LZSI46V.js.map +0 -1
- package/dist/browser/chunk-6K25QHWN.js +0 -70
- package/dist/browser/chunk-6K25QHWN.js.map +0 -1
- package/dist/browser/chunk-72INBIW4.js +0 -122
- package/dist/browser/chunk-72INBIW4.js.map +0 -1
- package/dist/browser/chunk-7QLYKS4T.js +0 -77
- package/dist/browser/chunk-7QLYKS4T.js.map +0 -1
- package/dist/browser/chunk-7ZSIOAT6.js +0 -56
- package/dist/browser/chunk-7ZSIOAT6.js.map +0 -1
- package/dist/browser/chunk-A5XMBADG.js +0 -14356
- package/dist/browser/chunk-A5XMBADG.js.map +0 -1
- package/dist/browser/chunk-ANVCAFXE.js +0 -39
- package/dist/browser/chunk-ANVCAFXE.js.map +0 -1
- package/dist/browser/chunk-AYRIMARL.js +0 -56
- package/dist/browser/chunk-AYRIMARL.js.map +0 -1
- package/dist/browser/chunk-BTC6Q4AH.js +0 -39
- package/dist/browser/chunk-BTC6Q4AH.js.map +0 -1
- package/dist/browser/chunk-BZO35RV2.js +0 -135
- package/dist/browser/chunk-BZO35RV2.js.map +0 -1
- package/dist/browser/chunk-C6AZ3L5F.js +0 -70
- package/dist/browser/chunk-C6AZ3L5F.js.map +0 -1
- package/dist/browser/chunk-CZUIHQMY.js +0 -35
- package/dist/browser/chunk-CZUIHQMY.js.map +0 -1
- package/dist/browser/chunk-D6OGGUMR.js +0 -37
- package/dist/browser/chunk-D6OGGUMR.js.map +0 -1
- package/dist/browser/chunk-DDHAPXFM.js +0 -59
- package/dist/browser/chunk-DDHAPXFM.js.map +0 -1
- package/dist/browser/chunk-DXO5V45O.js +0 -122
- package/dist/browser/chunk-DXO5V45O.js.map +0 -1
- package/dist/browser/chunk-EAQXXB5M.js +0 -33
- package/dist/browser/chunk-EAQXXB5M.js.map +0 -1
- package/dist/browser/chunk-FEGN4PF3.js +0 -70
- package/dist/browser/chunk-FEGN4PF3.js.map +0 -1
- package/dist/browser/chunk-G3PMV62Z.js +0 -36
- package/dist/browser/chunk-G3PMV62Z.js.map +0 -1
- package/dist/browser/chunk-GDOID2XG.js +0 -43
- package/dist/browser/chunk-GDOID2XG.js.map +0 -1
- package/dist/browser/chunk-GQ7NSGUB.js +0 -37
- package/dist/browser/chunk-GQ7NSGUB.js.map +0 -1
- package/dist/browser/chunk-GQMXKH26.js +0 -20
- package/dist/browser/chunk-GQMXKH26.js.map +0 -1
- package/dist/browser/chunk-GTPU5BFU.js +0 -33
- package/dist/browser/chunk-GTPU5BFU.js.map +0 -1
- package/dist/browser/chunk-HKJQDU25.js +0 -74
- package/dist/browser/chunk-HKJQDU25.js.map +0 -1
- package/dist/browser/chunk-HQ264K3X.js +0 -20
- package/dist/browser/chunk-HQ264K3X.js.map +0 -1
- package/dist/browser/chunk-HU53VGSY.js +0 -37
- package/dist/browser/chunk-HU53VGSY.js.map +0 -1
- package/dist/browser/chunk-HYBS64DV.js +0 -13
- package/dist/browser/chunk-HYBS64DV.js.map +0 -1
- package/dist/browser/chunk-IEOCTIMD.js +0 -39
- package/dist/browser/chunk-IEOCTIMD.js.map +0 -1
- package/dist/browser/chunk-INBJUTI4.js +0 -51
- package/dist/browser/chunk-INBJUTI4.js.map +0 -1
- package/dist/browser/chunk-IRDAPFOT.js +0 -33
- package/dist/browser/chunk-IRDAPFOT.js.map +0 -1
- package/dist/browser/chunk-J3ORUAIB.js +0 -14356
- package/dist/browser/chunk-J3ORUAIB.js.map +0 -1
- package/dist/browser/chunk-J7UBIWHX.js +0 -27
- package/dist/browser/chunk-J7UBIWHX.js.map +0 -1
- package/dist/browser/chunk-JAQ4MYZU.js +0 -56
- package/dist/browser/chunk-JAQ4MYZU.js.map +0 -1
- package/dist/browser/chunk-JVAFQ3HV.js +0 -39
- package/dist/browser/chunk-JVAFQ3HV.js.map +0 -1
- package/dist/browser/chunk-K5X3CO2X.js +0 -33
- package/dist/browser/chunk-K5X3CO2X.js.map +0 -1
- package/dist/browser/chunk-K6YNA7KS.js +0 -59
- package/dist/browser/chunk-K6YNA7KS.js.map +0 -1
- package/dist/browser/chunk-KJJCXAUN.js +0 -33
- package/dist/browser/chunk-KJJCXAUN.js.map +0 -1
- package/dist/browser/chunk-KQWQS3PJ.js +0 -51
- package/dist/browser/chunk-KQWQS3PJ.js.map +0 -1
- package/dist/browser/chunk-KRACPY5Q.js +0 -14356
- package/dist/browser/chunk-KRACPY5Q.js.map +0 -1
- package/dist/browser/chunk-LLU7BAGD.js +0 -122
- package/dist/browser/chunk-LLU7BAGD.js.map +0 -1
- package/dist/browser/chunk-MAGAUADA.js +0 -33
- package/dist/browser/chunk-MAGAUADA.js.map +0 -1
- package/dist/browser/chunk-MSCP7BC3.js +0 -37
- package/dist/browser/chunk-MSCP7BC3.js.map +0 -1
- package/dist/browser/chunk-MSSBGJJT.js +0 -40
- package/dist/browser/chunk-MSSBGJJT.js.map +0 -1
- package/dist/browser/chunk-NGCKXPYU.js +0 -70
- package/dist/browser/chunk-NGCKXPYU.js.map +0 -1
- package/dist/browser/chunk-ORBRJSRE.js +0 -25
- package/dist/browser/chunk-ORBRJSRE.js.map +0 -1
- package/dist/browser/chunk-OVP75QOD.js +0 -15744
- package/dist/browser/chunk-OVP75QOD.js.map +0 -1
- package/dist/browser/chunk-PESPCN4F.js +0 -14356
- package/dist/browser/chunk-PESPCN4F.js.map +0 -1
- package/dist/browser/chunk-PMZKVZCW.js +0 -20
- package/dist/browser/chunk-PMZKVZCW.js.map +0 -1
- package/dist/browser/chunk-RZJPUR5S.js +0 -23
- package/dist/browser/chunk-RZJPUR5S.js.map +0 -1
- package/dist/browser/chunk-S7PIA5U4.js +0 -70
- package/dist/browser/chunk-S7PIA5U4.js.map +0 -1
- package/dist/browser/chunk-SOW4TZP2.js +0 -59
- package/dist/browser/chunk-SOW4TZP2.js.map +0 -1
- package/dist/browser/chunk-SR7IBOM4.js +0 -33
- package/dist/browser/chunk-SR7IBOM4.js.map +0 -1
- package/dist/browser/chunk-TCU5NEY6.js +0 -51
- package/dist/browser/chunk-TCU5NEY6.js.map +0 -1
- package/dist/browser/chunk-U7MSUO62.js +0 -11
- package/dist/browser/chunk-U7MSUO62.js.map +0 -1
- package/dist/browser/chunk-UA75LFFB.js +0 -39
- package/dist/browser/chunk-UA75LFFB.js.map +0 -1
- package/dist/browser/chunk-UK2P4JGN.js +0 -18
- package/dist/browser/chunk-UK2P4JGN.js.map +0 -1
- package/dist/browser/chunk-VU7FUAOS.js +0 -51
- package/dist/browser/chunk-VU7FUAOS.js.map +0 -1
- package/dist/browser/chunk-VWCQZXBU.js +0 -28
- package/dist/browser/chunk-VWCQZXBU.js.map +0 -1
- package/dist/browser/chunk-VZ3QIXWK.js +0 -43
- package/dist/browser/chunk-VZ3QIXWK.js.map +0 -1
- package/dist/browser/chunk-WXOHFWTK.js +0 -135
- package/dist/browser/chunk-WXOHFWTK.js.map +0 -1
- package/dist/browser/chunk-XLZIPQ5H.js +0 -122
- package/dist/browser/chunk-XLZIPQ5H.js.map +0 -1
- package/dist/browser/chunk-XYI6B5DC.js +0 -59
- package/dist/browser/chunk-XYI6B5DC.js.map +0 -1
- package/dist/browser/chunk-Y7C4YAUZ.js +0 -37
- package/dist/browser/chunk-Y7C4YAUZ.js.map +0 -1
- package/dist/browser/chunk-YN5JXQTD.js +0 -51
- package/dist/browser/chunk-YN5JXQTD.js.map +0 -1
- package/dist/browser/chunk-YSGEW6PQ.js +0 -59
- package/dist/browser/chunk-YSGEW6PQ.js.map +0 -1
- package/dist/browser/chunk-YUIIN7WJ.js +0 -37
- package/dist/browser/chunk-YUIIN7WJ.js.map +0 -1
- package/dist/browser/ui/ObjectLabel.css +0 -51
- package/dist/browser/ui/ObjectLabel.css.map +0 -1
- package/dist/browser/ui/ObjectLabel.js +0 -19
- package/dist/browser/ui/ObjectLabel.js.map +0 -1
- package/dist/browser/ui/UILabel.css +0 -51
- package/dist/browser/ui/UILabel.css.map +0 -1
- package/dist/browser/ui/UILabel.js +0 -20
- package/dist/browser/ui/UILabel.js.map +0 -1
- package/dist/cjs/BaseGame.cjs +0 -112
- package/dist/cjs/Camera.cjs +0 -52
- package/dist/cjs/Components/MinimapComponent.cjs +0 -92
- package/dist/cjs/Components/TrailComponent.cjs +0 -101
- package/dist/cjs/Editor/EditorHelper.cjs +0 -73
- package/dist/cjs/Editor/WithEditorHelper.cjs +0 -65
- package/dist/cjs/Game.cjs +0 -131
- package/dist/cjs/InputManager.cjs +0 -88
- package/dist/cjs/Networking/Client/NetworkManager.cjs +0 -94
- package/dist/cjs/Networking/Entities/Player.cjs +0 -47
- package/dist/cjs/Networking/NetworkedActor.cjs +0 -43
- package/dist/cjs/Networking/NetworkedEntity.cjs +0 -16
- package/dist/cjs/Networking/NetworkedEntityState.cjs +0 -44
- package/dist/cjs/Networking/NetworkedGameObject.cjs +0 -74
- package/dist/cjs/Networking/NetworkedLivingActor.cjs +0 -62
- package/dist/cjs/Networking/Server/Client.cjs +0 -37
- package/dist/cjs/Networking/Server/Commands.cjs +0 -32
- package/dist/cjs/Networking/Server/Server.cjs +0 -202
- package/dist/cjs/Networking/Server/Stats/BandwidthTracker.cjs +0 -45
- package/dist/cjs/Networking/Server/Stats/CpuTracker.cjs +0 -101
- package/dist/cjs/Networking/Server/World.cjs +0 -42
- package/dist/cjs/Networking/syncState.cjs +0 -51
- package/dist/cjs/Particles/Effects/Rain.cjs +0 -90
- package/dist/cjs/Particles/Effects/Smoke.cjs +0 -144
- package/dist/cjs/Particles/System/Emitter.cjs +0 -81
- package/dist/cjs/Particles/System/Particle.cjs +0 -49
- package/dist/cjs/Particles/System/ParticleEffect.cjs +0 -59
- package/dist/cjs/Particles/System/ParticlePreviewRegistry.cjs +0 -63
- package/dist/cjs/Particles/System/ParticleSystem.cjs +0 -61
- package/dist/cjs/Prefab/Grass/Grass.cjs +0 -214
- package/dist/cjs/Prefab/Grass/GrassAffectingEntity.cjs +0 -30
- package/dist/cjs/Prefab/Lights/index.cjs +0 -233
- package/dist/cjs/Prefab/Primitives/index.cjs +0 -300
- package/dist/cjs/Prefab/Water/Water.cjs +0 -234
- package/dist/cjs/Prefab/Water/WaterManager.cjs +0 -146
- package/dist/cjs/Renderer/AssetRenderer.cjs +0 -85
- package/dist/cjs/Renderer/PhysicsRenderer.cjs +0 -84
- package/dist/cjs/Renderer.cjs +0 -135
- package/dist/cjs/Types/Asset.cjs +0 -16
- package/dist/cjs/Types/Events.cjs +0 -16
- package/dist/cjs/Types/IEditor.cjs +0 -16
- package/dist/cjs/Utils/Debug.cjs +0 -47
- package/dist/cjs/Utils/EventEmitter.cjs +0 -58
- package/dist/cjs/Utils/Helpers.cjs +0 -33
- package/dist/cjs/Utils/LoadingScreen.cjs +0 -91
- package/dist/cjs/Utils/Logger.cjs +0 -60
- package/dist/cjs/Utils/Math.cjs +0 -35
- package/dist/cjs/Utils/Resources.cjs +0 -101
- package/dist/cjs/Utils/Sizes.cjs +0 -51
- package/dist/cjs/Utils/SkeletonAxesHelper.cjs +0 -60
- package/dist/cjs/World/Actor.cjs +0 -55
- package/dist/cjs/World/BaseChunkManager.cjs +0 -34
- package/dist/cjs/World/BaseWorld.cjs +0 -73
- package/dist/cjs/World/Chunk.cjs +0 -45
- package/dist/cjs/World/Entity/State.cjs +0 -52
- package/dist/cjs/World/Entity/interface/Damageable.cjs +0 -16
- package/dist/cjs/World/Entity/interface/LivingEntity.cjs +0 -16
- package/dist/cjs/World/Entity3D.cjs +0 -92
- package/dist/cjs/World/Environment.cjs +0 -59
- package/dist/cjs/World/GameObject.cjs +0 -59
- package/dist/cjs/World/GameObjectInterface.cjs +0 -16
- package/dist/cjs/World/LivingActor.cjs +0 -42
- package/dist/cjs/World/StateManager.cjs +0 -47
- package/dist/cjs/World/World.cjs +0 -58
- package/dist/cjs/types.d.cjs +0 -1
- package/dist/cjs/ui/ObjectLabel.cjs +0 -80
- package/dist/cjs/ui/UILabel.cjs +0 -57
- package/dist/node/BaseGame.js +0 -10
- package/dist/node/BaseGame.js.map +0 -1
- package/dist/node/Camera.css +0 -51
- package/dist/node/Camera.css.map +0 -1
- package/dist/node/Camera.js +0 -18
- package/dist/node/Camera.js.map +0 -1
- package/dist/node/Components/MinimapComponent.css +0 -51
- package/dist/node/Components/MinimapComponent.css.map +0 -1
- package/dist/node/Components/MinimapComponent.js +0 -74
- package/dist/node/Components/MinimapComponent.js.map +0 -1
- package/dist/node/Components/TrailComponent.css +0 -51
- package/dist/node/Components/TrailComponent.css.map +0 -1
- package/dist/node/Components/TrailComponent.js +0 -94
- package/dist/node/Components/TrailComponent.js.map +0 -1
- package/dist/node/Editor/EditorHelper.css +0 -51
- package/dist/node/Editor/EditorHelper.css.map +0 -1
- package/dist/node/Editor/EditorHelper.js +0 -21
- package/dist/node/Editor/EditorHelper.js.map +0 -1
- package/dist/node/Editor/WithEditorHelper.css +0 -51
- package/dist/node/Editor/WithEditorHelper.css.map +0 -1
- package/dist/node/Editor/WithEditorHelper.js +0 -22
- package/dist/node/Editor/WithEditorHelper.js.map +0 -1
- package/dist/node/Game.css +0 -51
- package/dist/node/Game.css.map +0 -1
- package/dist/node/Game.js +0 -18
- package/dist/node/Game.js.map +0 -1
- package/dist/node/InputManager.css +0 -51
- package/dist/node/InputManager.css.map +0 -1
- package/dist/node/InputManager.js +0 -18
- package/dist/node/InputManager.js.map +0 -1
- package/dist/node/Networking/Client/NetworkManager.js +0 -73
- package/dist/node/Networking/Client/NetworkManager.js.map +0 -1
- package/dist/node/Networking/Entities/Player.js +0 -15
- package/dist/node/Networking/Entities/Player.js.map +0 -1
- package/dist/node/Networking/NetworkedActor.js +0 -24
- package/dist/node/Networking/NetworkedActor.js.map +0 -1
- package/dist/node/Networking/NetworkedEntity.js +0 -1
- package/dist/node/Networking/NetworkedEntity.js.map +0 -1
- package/dist/node/Networking/NetworkedEntityState.js +0 -20
- package/dist/node/Networking/NetworkedEntityState.js.map +0 -1
- package/dist/node/Networking/NetworkedGameObject.js +0 -12
- package/dist/node/Networking/NetworkedGameObject.js.map +0 -1
- package/dist/node/Networking/NetworkedLivingActor.js +0 -14
- package/dist/node/Networking/NetworkedLivingActor.js.map +0 -1
- package/dist/node/Networking/Server/Client.js +0 -8
- package/dist/node/Networking/Server/Client.js.map +0 -1
- package/dist/node/Networking/Server/Commands.js +0 -8
- package/dist/node/Networking/Server/Commands.js.map +0 -1
- package/dist/node/Networking/Server/Server.js +0 -194
- package/dist/node/Networking/Server/Server.js.map +0 -1
- package/dist/node/Networking/Server/Stats/BandwidthTracker.js +0 -8
- package/dist/node/Networking/Server/Stats/BandwidthTracker.js.map +0 -1
- package/dist/node/Networking/Server/Stats/CpuTracker.js +0 -8
- package/dist/node/Networking/Server/Stats/CpuTracker.js.map +0 -1
- package/dist/node/Networking/Server/World.js +0 -19
- package/dist/node/Networking/Server/World.js.map +0 -1
- package/dist/node/Networking/syncState.js +0 -31
- package/dist/node/Networking/syncState.js.map +0 -1
- package/dist/node/Particles/Effects/Rain.css +0 -51
- package/dist/node/Particles/Effects/Rain.css.map +0 -1
- package/dist/node/Particles/Effects/Rain.js +0 -88
- package/dist/node/Particles/Effects/Rain.js.map +0 -1
- package/dist/node/Particles/Effects/Smoke.css +0 -51
- package/dist/node/Particles/Effects/Smoke.css.map +0 -1
- package/dist/node/Particles/Effects/Smoke.js +0 -143
- package/dist/node/Particles/Effects/Smoke.js.map +0 -1
- package/dist/node/Particles/System/Emitter.css +0 -51
- package/dist/node/Particles/System/Emitter.css.map +0 -1
- package/dist/node/Particles/System/Emitter.js +0 -19
- package/dist/node/Particles/System/Emitter.js.map +0 -1
- package/dist/node/Particles/System/Particle.js +0 -10
- package/dist/node/Particles/System/Particle.js.map +0 -1
- package/dist/node/Particles/System/ParticleEffect.css +0 -51
- package/dist/node/Particles/System/ParticleEffect.css.map +0 -1
- package/dist/node/Particles/System/ParticleEffect.js +0 -23
- package/dist/node/Particles/System/ParticleEffect.js.map +0 -1
- package/dist/node/Particles/System/ParticlePreviewRegistry.js +0 -13
- package/dist/node/Particles/System/ParticlePreviewRegistry.js.map +0 -1
- package/dist/node/Particles/System/ParticleSystem.css +0 -51
- package/dist/node/Particles/System/ParticleSystem.css.map +0 -1
- package/dist/node/Particles/System/ParticleSystem.js +0 -18
- package/dist/node/Particles/System/ParticleSystem.js.map +0 -1
- package/dist/node/Prefab/Grass/Grass.css +0 -51
- package/dist/node/Prefab/Grass/Grass.css.map +0 -1
- package/dist/node/Prefab/Grass/Grass.js +0 -226
- package/dist/node/Prefab/Grass/Grass.js.map +0 -1
- package/dist/node/Prefab/Grass/GrassAffectingEntity.js +0 -10
- package/dist/node/Prefab/Grass/GrassAffectingEntity.js.map +0 -1
- package/dist/node/Prefab/Lights/index.css +0 -51
- package/dist/node/Prefab/Lights/index.css.map +0 -1
- package/dist/node/Prefab/Lights/index.js +0 -224
- package/dist/node/Prefab/Lights/index.js.map +0 -1
- package/dist/node/Prefab/Primitives/index.css +0 -51
- package/dist/node/Prefab/Primitives/index.css.map +0 -1
- package/dist/node/Prefab/Primitives/index.js +0 -296
- package/dist/node/Prefab/Primitives/index.js.map +0 -1
- package/dist/node/Prefab/Water/Water.css +0 -51
- package/dist/node/Prefab/Water/Water.css.map +0 -1
- package/dist/node/Prefab/Water/Water.js +0 -234
- package/dist/node/Prefab/Water/Water.js.map +0 -1
- package/dist/node/Prefab/Water/WaterManager.css +0 -51
- package/dist/node/Prefab/Water/WaterManager.css.map +0 -1
- package/dist/node/Prefab/Water/WaterManager.js +0 -19
- package/dist/node/Prefab/Water/WaterManager.js.map +0 -1
- package/dist/node/Renderer/AssetRenderer.css +0 -51
- package/dist/node/Renderer/AssetRenderer.css.map +0 -1
- package/dist/node/Renderer/AssetRenderer.js +0 -71
- package/dist/node/Renderer/AssetRenderer.js.map +0 -1
- package/dist/node/Renderer/PhysicsRenderer.css +0 -51
- package/dist/node/Renderer/PhysicsRenderer.css.map +0 -1
- package/dist/node/Renderer/PhysicsRenderer.js +0 -18
- package/dist/node/Renderer/PhysicsRenderer.js.map +0 -1
- package/dist/node/Renderer.css +0 -51
- package/dist/node/Renderer.css.map +0 -1
- package/dist/node/Renderer.js +0 -18
- package/dist/node/Renderer.js.map +0 -1
- package/dist/node/Types/Asset.js +0 -1
- package/dist/node/Types/Asset.js.map +0 -1
- package/dist/node/Types/Events.js +0 -1
- package/dist/node/Types/Events.js.map +0 -1
- package/dist/node/Types/IEditor.js +0 -1
- package/dist/node/Types/IEditor.js.map +0 -1
- package/dist/node/Utils/Debug.js +0 -9
- package/dist/node/Utils/Debug.js.map +0 -1
- package/dist/node/Utils/EventEmitter.js +0 -10
- package/dist/node/Utils/EventEmitter.js.map +0 -1
- package/dist/node/Utils/Helpers.js +0 -13
- package/dist/node/Utils/Helpers.js.map +0 -1
- package/dist/node/Utils/LoadingScreen.css +0 -51
- package/dist/node/Utils/LoadingScreen.css.map +0 -1
- package/dist/node/Utils/LoadingScreen.js +0 -18
- package/dist/node/Utils/LoadingScreen.js.map +0 -1
- package/dist/node/Utils/Logger.js +0 -8
- package/dist/node/Utils/Logger.js.map +0 -1
- package/dist/node/Utils/Math.js +0 -10
- package/dist/node/Utils/Math.js.map +0 -1
- package/dist/node/Utils/Resources.js +0 -9
- package/dist/node/Utils/Resources.js.map +0 -1
- package/dist/node/Utils/Sizes.js +0 -9
- package/dist/node/Utils/Sizes.js.map +0 -1
- package/dist/node/Utils/SkeletonAxesHelper.js +0 -8
- package/dist/node/Utils/SkeletonAxesHelper.js.map +0 -1
- package/dist/node/World/Actor.js +0 -11
- package/dist/node/World/Actor.js.map +0 -1
- package/dist/node/World/BaseChunkManager.js +0 -8
- package/dist/node/World/BaseChunkManager.js.map +0 -1
- package/dist/node/World/BaseWorld.js +0 -10
- package/dist/node/World/BaseWorld.js.map +0 -1
- package/dist/node/World/Chunk.js +0 -22
- package/dist/node/World/Chunk.js.map +0 -1
- package/dist/node/World/Entity/State.js +0 -8
- package/dist/node/World/Entity/State.js.map +0 -1
- package/dist/node/World/Entity/interface/Damageable.js +0 -1
- package/dist/node/World/Entity/interface/Damageable.js.map +0 -1
- package/dist/node/World/Entity/interface/LivingEntity.js +0 -1
- package/dist/node/World/Entity/interface/LivingEntity.js.map +0 -1
- package/dist/node/World/Entity3D.css +0 -51
- package/dist/node/World/Entity3D.css.map +0 -1
- package/dist/node/World/Entity3D.js +0 -21
- package/dist/node/World/Entity3D.js.map +0 -1
- package/dist/node/World/Environment.css +0 -51
- package/dist/node/World/Environment.css.map +0 -1
- package/dist/node/World/Environment.js +0 -18
- package/dist/node/World/Environment.js.map +0 -1
- package/dist/node/World/GameObject.js +0 -9
- package/dist/node/World/GameObject.js.map +0 -1
- package/dist/node/World/GameObjectInterface.js +0 -1
- package/dist/node/World/GameObjectInterface.js.map +0 -1
- package/dist/node/World/LivingActor.js +0 -12
- package/dist/node/World/LivingActor.js.map +0 -1
- package/dist/node/World/StateManager.js +0 -23
- package/dist/node/World/StateManager.js.map +0 -1
- package/dist/node/World/World.css +0 -51
- package/dist/node/World/World.css.map +0 -1
- package/dist/node/World/World.js +0 -18
- package/dist/node/World/World.js.map +0 -1
- package/dist/node/chunk-2D7GC2Z6.js +0 -17
- package/dist/node/chunk-2D7GC2Z6.js.map +0 -1
- package/dist/node/chunk-36BXDTHA.js +0 -35
- package/dist/node/chunk-36BXDTHA.js.map +0 -1
- package/dist/node/chunk-3KYMJLQ5.js +0 -46
- package/dist/node/chunk-3KYMJLQ5.js.map +0 -1
- package/dist/node/chunk-56YEZTOR.js +0 -51
- package/dist/node/chunk-56YEZTOR.js.map +0 -1
- package/dist/node/chunk-665EGLMD.js +0 -20
- package/dist/node/chunk-665EGLMD.js.map +0 -1
- package/dist/node/chunk-7QLYKS4T.js +0 -77
- package/dist/node/chunk-7QLYKS4T.js.map +0 -1
- package/dist/node/chunk-A3EB5HP2.js +0 -59
- package/dist/node/chunk-A3EB5HP2.js.map +0 -1
- package/dist/node/chunk-ABRATJQQ.js +0 -56
- package/dist/node/chunk-ABRATJQQ.js.map +0 -1
- package/dist/node/chunk-ARZ4UYTY.js +0 -59
- package/dist/node/chunk-ARZ4UYTY.js.map +0 -1
- package/dist/node/chunk-BN6FIYXJ.js +0 -70
- package/dist/node/chunk-BN6FIYXJ.js.map +0 -1
- package/dist/node/chunk-BNMD73EG.js +0 -33
- package/dist/node/chunk-BNMD73EG.js.map +0 -1
- package/dist/node/chunk-BXWY2BKG.js +0 -122
- package/dist/node/chunk-BXWY2BKG.js.map +0 -1
- package/dist/node/chunk-CMCOFHDS.js +0 -14356
- package/dist/node/chunk-CMCOFHDS.js.map +0 -1
- package/dist/node/chunk-CZUIHQMY.js +0 -35
- package/dist/node/chunk-CZUIHQMY.js.map +0 -1
- package/dist/node/chunk-DA47ZKJK.js +0 -33
- package/dist/node/chunk-DA47ZKJK.js.map +0 -1
- package/dist/node/chunk-DOBGB35A.js +0 -122
- package/dist/node/chunk-DOBGB35A.js.map +0 -1
- package/dist/node/chunk-DVEU42K3.js +0 -59
- package/dist/node/chunk-DVEU42K3.js.map +0 -1
- package/dist/node/chunk-EYW5XGVO.js +0 -122
- package/dist/node/chunk-EYW5XGVO.js.map +0 -1
- package/dist/node/chunk-F6DU4VFH.js +0 -51
- package/dist/node/chunk-F6DU4VFH.js.map +0 -1
- package/dist/node/chunk-FKEQHNYZ.js +0 -37
- package/dist/node/chunk-FKEQHNYZ.js.map +0 -1
- package/dist/node/chunk-G3PMV62Z.js +0 -36
- package/dist/node/chunk-G3PMV62Z.js.map +0 -1
- package/dist/node/chunk-GDOID2XG.js +0 -43
- package/dist/node/chunk-GDOID2XG.js.map +0 -1
- package/dist/node/chunk-HKJQDU25.js +0 -74
- package/dist/node/chunk-HKJQDU25.js.map +0 -1
- package/dist/node/chunk-HU53VGSY.js +0 -37
- package/dist/node/chunk-HU53VGSY.js.map +0 -1
- package/dist/node/chunk-HWTEWVF5.js +0 -14356
- package/dist/node/chunk-HWTEWVF5.js.map +0 -1
- package/dist/node/chunk-HYBS64DV.js +0 -13
- package/dist/node/chunk-HYBS64DV.js.map +0 -1
- package/dist/node/chunk-IGUYMCHB.js +0 -135
- package/dist/node/chunk-IGUYMCHB.js.map +0 -1
- package/dist/node/chunk-IKQALMVH.js +0 -37
- package/dist/node/chunk-IKQALMVH.js.map +0 -1
- package/dist/node/chunk-J7UBIWHX.js +0 -27
- package/dist/node/chunk-J7UBIWHX.js.map +0 -1
- package/dist/node/chunk-JEWEYJ5N.js +0 -33
- package/dist/node/chunk-JEWEYJ5N.js.map +0 -1
- package/dist/node/chunk-JQEJEQFD.js +0 -122
- package/dist/node/chunk-JQEJEQFD.js.map +0 -1
- package/dist/node/chunk-JUTNFQ4M.js +0 -70
- package/dist/node/chunk-JUTNFQ4M.js.map +0 -1
- package/dist/node/chunk-KF7BK5K3.js +0 -135
- package/dist/node/chunk-KF7BK5K3.js.map +0 -1
- package/dist/node/chunk-KJJCXAUN.js +0 -33
- package/dist/node/chunk-KJJCXAUN.js.map +0 -1
- package/dist/node/chunk-KL7DL5UI.js +0 -135
- package/dist/node/chunk-KL7DL5UI.js.map +0 -1
- package/dist/node/chunk-L6YOBSGZ.js +0 -122
- package/dist/node/chunk-L6YOBSGZ.js.map +0 -1
- package/dist/node/chunk-LCQFGY4N.js +0 -70
- package/dist/node/chunk-LCQFGY4N.js.map +0 -1
- package/dist/node/chunk-MG3V6544.js +0 -39
- package/dist/node/chunk-MG3V6544.js.map +0 -1
- package/dist/node/chunk-MSSBGJJT.js +0 -40
- package/dist/node/chunk-MSSBGJJT.js.map +0 -1
- package/dist/node/chunk-NAPFSFNP.js +0 -14356
- package/dist/node/chunk-NAPFSFNP.js.map +0 -1
- package/dist/node/chunk-O6R263IC.js +0 -37
- package/dist/node/chunk-O6R263IC.js.map +0 -1
- package/dist/node/chunk-ORBRJSRE.js +0 -25
- package/dist/node/chunk-ORBRJSRE.js.map +0 -1
- package/dist/node/chunk-OVP75QOD.js +0 -15744
- package/dist/node/chunk-OVP75QOD.js.map +0 -1
- package/dist/node/chunk-OXQNULUL.js +0 -33
- package/dist/node/chunk-OXQNULUL.js.map +0 -1
- package/dist/node/chunk-P6KB6QQA.js +0 -59
- package/dist/node/chunk-P6KB6QQA.js.map +0 -1
- package/dist/node/chunk-PGFA4SIU.js +0 -20
- package/dist/node/chunk-PGFA4SIU.js.map +0 -1
- package/dist/node/chunk-PMZKVZCW.js +0 -20
- package/dist/node/chunk-PMZKVZCW.js.map +0 -1
- package/dist/node/chunk-PRTEU3OX.js +0 -56
- package/dist/node/chunk-PRTEU3OX.js.map +0 -1
- package/dist/node/chunk-R75XUIQX.js +0 -51
- package/dist/node/chunk-R75XUIQX.js.map +0 -1
- package/dist/node/chunk-RECAQ7AB.js +0 -39
- package/dist/node/chunk-RECAQ7AB.js.map +0 -1
- package/dist/node/chunk-RG7R7WF2.js +0 -56
- package/dist/node/chunk-RG7R7WF2.js.map +0 -1
- package/dist/node/chunk-RVYDJWA2.js +0 -56
- package/dist/node/chunk-RVYDJWA2.js.map +0 -1
- package/dist/node/chunk-RZJPUR5S.js +0 -23
- package/dist/node/chunk-RZJPUR5S.js.map +0 -1
- package/dist/node/chunk-TD2MVFAF.js +0 -14356
- package/dist/node/chunk-TD2MVFAF.js.map +0 -1
- package/dist/node/chunk-U7MSUO62.js +0 -11
- package/dist/node/chunk-U7MSUO62.js.map +0 -1
- package/dist/node/chunk-UCZNQSLE.js +0 -59
- package/dist/node/chunk-UCZNQSLE.js.map +0 -1
- package/dist/node/chunk-UF5EIM2X.js +0 -37
- package/dist/node/chunk-UF5EIM2X.js.map +0 -1
- package/dist/node/chunk-UK2P4JGN.js +0 -18
- package/dist/node/chunk-UK2P4JGN.js.map +0 -1
- package/dist/node/chunk-UPVPF3FB.js +0 -39
- package/dist/node/chunk-UPVPF3FB.js.map +0 -1
- package/dist/node/chunk-VKT4KUVH.js +0 -70
- package/dist/node/chunk-VKT4KUVH.js.map +0 -1
- package/dist/node/chunk-VVMVUIFH.js +0 -39
- package/dist/node/chunk-VVMVUIFH.js.map +0 -1
- package/dist/node/chunk-VW2HJI67.js +0 -39
- package/dist/node/chunk-VW2HJI67.js.map +0 -1
- package/dist/node/chunk-VWCQZXBU.js +0 -28
- package/dist/node/chunk-VWCQZXBU.js.map +0 -1
- package/dist/node/chunk-VYVDNYIE.js +0 -14356
- package/dist/node/chunk-VYVDNYIE.js.map +0 -1
- package/dist/node/chunk-VZ3QIXWK.js +0 -43
- package/dist/node/chunk-VZ3QIXWK.js.map +0 -1
- package/dist/node/chunk-W2GJBTWD.js +0 -37
- package/dist/node/chunk-W2GJBTWD.js.map +0 -1
- package/dist/node/chunk-WAEF3D5Y.js +0 -56
- package/dist/node/chunk-WAEF3D5Y.js.map +0 -1
- package/dist/node/chunk-XUIBVVM4.js +0 -33
- package/dist/node/chunk-XUIBVVM4.js.map +0 -1
- package/dist/node/chunk-YMAVMWJ7.js +0 -20
- package/dist/node/chunk-YMAVMWJ7.js.map +0 -1
- package/dist/node/chunk-Z36ELCPA.js +0 -51
- package/dist/node/chunk-Z36ELCPA.js.map +0 -1
- package/dist/node/chunk-ZA6ZEGAE.js +0 -33
- package/dist/node/chunk-ZA6ZEGAE.js.map +0 -1
- package/dist/node/chunk-ZC6HCA4W.js +0 -70
- package/dist/node/chunk-ZC6HCA4W.js.map +0 -1
- package/dist/node/chunk-ZGBQKFK7.js +0 -51
- package/dist/node/chunk-ZGBQKFK7.js.map +0 -1
- package/dist/node/ui/ObjectLabel.css +0 -51
- package/dist/node/ui/ObjectLabel.css.map +0 -1
- package/dist/node/ui/ObjectLabel.js +0 -19
- package/dist/node/ui/ObjectLabel.js.map +0 -1
- package/dist/node/ui/UILabel.css +0 -51
- package/dist/node/ui/UILabel.css.map +0 -1
- package/dist/node/ui/UILabel.js +0 -20
- package/dist/node/ui/UILabel.js.map +0 -1
- package/dist/types.d.cjs +0 -1
- package/dist/types.d.js +0 -0
- package/dist/ui/ObjectLabel.cjs +0 -80
- package/dist/ui/UILabel.cjs +0 -57
|
@@ -1,233 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(from))
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var Lights_exports = {};
|
|
30
|
-
__export(Lights_exports, {
|
|
31
|
-
AmbientLightPrimitive: () => AmbientLightPrimitive,
|
|
32
|
-
DirectionalLightPrimitive: () => DirectionalLightPrimitive,
|
|
33
|
-
DirectionalLightShadowPrimitive: () => DirectionalLightShadowPrimitive,
|
|
34
|
-
GridHelperPrimitive: () => GridHelperPrimitive,
|
|
35
|
-
HemisphereLightPrimitive: () => HemisphereLightPrimitive,
|
|
36
|
-
LIGHT_REGISTRY: () => LIGHT_REGISTRY,
|
|
37
|
-
LightPrimitive: () => LightPrimitive,
|
|
38
|
-
LightProbePrimitive: () => LightProbePrimitive,
|
|
39
|
-
PlaneHelperPrimitive: () => PlaneHelperPrimitive,
|
|
40
|
-
PointLightPrimitive: () => PointLightPrimitive,
|
|
41
|
-
PointLightShadowPrimitive: () => PointLightShadowPrimitive,
|
|
42
|
-
PolarGridHelperPrimitive: () => PolarGridHelperPrimitive,
|
|
43
|
-
RectAreaLightPrimitive: () => RectAreaLightPrimitive,
|
|
44
|
-
SCENE_HELPER_REGISTRY: () => SCENE_HELPER_REGISTRY,
|
|
45
|
-
SkeletonHelperPrimitive: () => SkeletonHelperPrimitive,
|
|
46
|
-
SpotLightPrimitive: () => SpotLightPrimitive,
|
|
47
|
-
SpotLightShadowPrimitive: () => SpotLightShadowPrimitive
|
|
48
|
-
});
|
|
49
|
-
module.exports = __toCommonJS(Lights_exports);
|
|
50
|
-
var import_three = require("three");
|
|
51
|
-
var import_WithEditorHelper = require("../../Editor/WithEditorHelper");
|
|
52
|
-
var import_Game = __toESM(require("../../Game"), 1);
|
|
53
|
-
var import_GameObject = __toESM(require("../../World/GameObject"), 1);
|
|
54
|
-
class LightPrimitive extends (0, import_WithEditorHelper.WithEditorHelper)(import_GameObject.default) {
|
|
55
|
-
constructor(position, light, label) {
|
|
56
|
-
super(void 0, position);
|
|
57
|
-
this.instance = light;
|
|
58
|
-
this.instance.position.copy(position);
|
|
59
|
-
import_Game.default.instance().scene.add(this.instance);
|
|
60
|
-
this.registerEditorHelper(position, label, {
|
|
61
|
-
onMove: (delta) => this.instance.position.add(delta),
|
|
62
|
-
properties: [
|
|
63
|
-
{ type: "color", label: "color", getValue: () => `#${this.instance.color.getHexString()}`, setValue: (v) => this.instance.color.set(v) },
|
|
64
|
-
{ type: "slider", label: "intensity", min: 0, max: 10, step: 0.01, getValue: () => this.instance.intensity, setValue: (v) => this.instance.intensity = v },
|
|
65
|
-
{ type: "checkbox", label: "castShadow", getValue: () => this.instance.castShadow, setValue: (v) => this.instance.castShadow = v }
|
|
66
|
-
]
|
|
67
|
-
});
|
|
68
|
-
this.tagWithHelper(this.instance);
|
|
69
|
-
}
|
|
70
|
-
addLightHelper(helper) {
|
|
71
|
-
const editor = import_Game.default.instance().editor;
|
|
72
|
-
if (!editor)
|
|
73
|
-
return;
|
|
74
|
-
this.lightHelper = helper;
|
|
75
|
-
import_Game.default.instance().scene.add(helper);
|
|
76
|
-
editor.addLightHelper(helper);
|
|
77
|
-
}
|
|
78
|
-
update(_delta) {
|
|
79
|
-
this.lightHelper?.update();
|
|
80
|
-
}
|
|
81
|
-
destroy() {
|
|
82
|
-
if (this.lightHelper) {
|
|
83
|
-
import_Game.default.instance().editor?.removeLightHelper(this.lightHelper);
|
|
84
|
-
import_Game.default.instance().scene.remove(this.lightHelper);
|
|
85
|
-
this.lightHelper = void 0;
|
|
86
|
-
}
|
|
87
|
-
import_Game.default.instance().scene.remove(this.instance);
|
|
88
|
-
super.destroy();
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
class AmbientLightPrimitive extends LightPrimitive {
|
|
92
|
-
constructor(position) {
|
|
93
|
-
super(position, new import_three.AmbientLight(16777215, 1), "AmbientLight");
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
class DirectionalLightPrimitive extends LightPrimitive {
|
|
97
|
-
constructor(position) {
|
|
98
|
-
super(position, new import_three.DirectionalLight(16777215, 1), "DirectionalLight");
|
|
99
|
-
this.addLightHelper(new import_three.DirectionalLightHelper(this.instance));
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
class DirectionalLightShadowPrimitive extends LightPrimitive {
|
|
103
|
-
constructor(position) {
|
|
104
|
-
const light = new import_three.DirectionalLight(16777215, 1);
|
|
105
|
-
light.castShadow = true;
|
|
106
|
-
super(position, light, "DirectionalLightShadow");
|
|
107
|
-
this.addLightHelper(new import_three.DirectionalLightHelper(this.instance));
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
class HemisphereLightPrimitive extends LightPrimitive {
|
|
111
|
-
constructor(position) {
|
|
112
|
-
super(position, new import_three.HemisphereLight(16777215, 4473924, 1), "HemisphereLight");
|
|
113
|
-
this.addLightHelper(new import_three.HemisphereLightHelper(this.instance, 1));
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
class LightProbePrimitive extends LightPrimitive {
|
|
117
|
-
constructor(position) {
|
|
118
|
-
super(position, new import_three.LightProbe(), "LightProbe");
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
class PointLightPrimitive extends LightPrimitive {
|
|
122
|
-
constructor(position) {
|
|
123
|
-
super(position, new import_three.PointLight(16777215, 1), "PointLight");
|
|
124
|
-
this.addLightHelper(new import_three.PointLightHelper(this.instance));
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
class PointLightShadowPrimitive extends LightPrimitive {
|
|
128
|
-
constructor(position) {
|
|
129
|
-
const light = new import_three.PointLight(16777215, 1);
|
|
130
|
-
light.castShadow = true;
|
|
131
|
-
super(position, light, "PointLightShadow");
|
|
132
|
-
this.addLightHelper(new import_three.PointLightHelper(this.instance));
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
class RectAreaLightPrimitive extends LightPrimitive {
|
|
136
|
-
constructor(position) {
|
|
137
|
-
super(position, new import_three.RectAreaLight(16777215, 1, 4, 4), "RectAreaLight");
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
class SpotLightPrimitive extends LightPrimitive {
|
|
141
|
-
constructor(position) {
|
|
142
|
-
super(position, new import_three.SpotLight(16777215, 1), "SpotLight");
|
|
143
|
-
this.addLightHelper(new import_three.SpotLightHelper(this.instance));
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
class SpotLightShadowPrimitive extends LightPrimitive {
|
|
147
|
-
constructor(position) {
|
|
148
|
-
const light = new import_three.SpotLight(16777215, 1);
|
|
149
|
-
light.castShadow = true;
|
|
150
|
-
super(position, light, "SpotLightShadow");
|
|
151
|
-
this.addLightHelper(new import_three.SpotLightHelper(this.instance));
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
class SceneHelperPrimitive extends (0, import_WithEditorHelper.WithEditorHelper)(import_GameObject.default) {
|
|
155
|
-
constructor(position, helper, label) {
|
|
156
|
-
super(void 0, position);
|
|
157
|
-
this.helper = helper;
|
|
158
|
-
this.helper.position.copy(position);
|
|
159
|
-
import_Game.default.instance().scene.add(this.helper);
|
|
160
|
-
this.registerEditorHelper(position, label, {
|
|
161
|
-
onMove: (delta) => this.helper.position.add(delta)
|
|
162
|
-
});
|
|
163
|
-
this.tagWithHelper(this.helper);
|
|
164
|
-
import_Game.default.instance().editor?.addLightHelper(this.helper);
|
|
165
|
-
}
|
|
166
|
-
update(_delta) {
|
|
167
|
-
}
|
|
168
|
-
destroy() {
|
|
169
|
-
import_Game.default.instance().editor?.removeLightHelper(this.helper);
|
|
170
|
-
import_Game.default.instance().scene.remove(this.helper);
|
|
171
|
-
super.destroy();
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
class GridHelperPrimitive extends SceneHelperPrimitive {
|
|
175
|
-
constructor(position) {
|
|
176
|
-
super(position, new import_three.GridHelper(10, 10), "GridHelper");
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
class PolarGridHelperPrimitive extends SceneHelperPrimitive {
|
|
180
|
-
constructor(position) {
|
|
181
|
-
super(position, new import_three.PolarGridHelper(10, 16), "PolarGridHelper");
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
class PlaneHelperPrimitive extends SceneHelperPrimitive {
|
|
185
|
-
constructor(position) {
|
|
186
|
-
super(position, new import_three.PlaneHelper(new import_three.Plane(new import_three.Vector3(0, 1, 0), -position.y), 10), "PlaneHelper");
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
class SkeletonHelperPrimitive extends SceneHelperPrimitive {
|
|
190
|
-
constructor(position) {
|
|
191
|
-
const root = new import_three.Object3D();
|
|
192
|
-
root.position.copy(position);
|
|
193
|
-
super(position, new import_three.SkeletonHelper(root), "SkeletonHelper");
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
const LIGHT_REGISTRY = {
|
|
197
|
-
AmbientLight: AmbientLightPrimitive,
|
|
198
|
-
DirectionalLight: DirectionalLightPrimitive,
|
|
199
|
-
DirectionalLightShadow: DirectionalLightShadowPrimitive,
|
|
200
|
-
HemisphereLight: HemisphereLightPrimitive,
|
|
201
|
-
LightProbe: LightProbePrimitive,
|
|
202
|
-
PointLight: PointLightPrimitive,
|
|
203
|
-
PointLightShadow: PointLightShadowPrimitive,
|
|
204
|
-
RectAreaLight: RectAreaLightPrimitive,
|
|
205
|
-
SpotLight: SpotLightPrimitive,
|
|
206
|
-
SpotLightShadow: SpotLightShadowPrimitive
|
|
207
|
-
};
|
|
208
|
-
const SCENE_HELPER_REGISTRY = {
|
|
209
|
-
GridHelper: GridHelperPrimitive,
|
|
210
|
-
PolarGridHelper: PolarGridHelperPrimitive,
|
|
211
|
-
PlaneHelper: PlaneHelperPrimitive,
|
|
212
|
-
SkeletonHelper: SkeletonHelperPrimitive
|
|
213
|
-
};
|
|
214
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
215
|
-
0 && (module.exports = {
|
|
216
|
-
AmbientLightPrimitive,
|
|
217
|
-
DirectionalLightPrimitive,
|
|
218
|
-
DirectionalLightShadowPrimitive,
|
|
219
|
-
GridHelperPrimitive,
|
|
220
|
-
HemisphereLightPrimitive,
|
|
221
|
-
LIGHT_REGISTRY,
|
|
222
|
-
LightPrimitive,
|
|
223
|
-
LightProbePrimitive,
|
|
224
|
-
PlaneHelperPrimitive,
|
|
225
|
-
PointLightPrimitive,
|
|
226
|
-
PointLightShadowPrimitive,
|
|
227
|
-
PolarGridHelperPrimitive,
|
|
228
|
-
RectAreaLightPrimitive,
|
|
229
|
-
SCENE_HELPER_REGISTRY,
|
|
230
|
-
SkeletonHelperPrimitive,
|
|
231
|
-
SpotLightPrimitive,
|
|
232
|
-
SpotLightShadowPrimitive
|
|
233
|
-
});
|
|
@@ -1,300 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(from))
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var Primitives_exports = {};
|
|
30
|
-
__export(Primitives_exports, {
|
|
31
|
-
BoxPrimitive: () => BoxPrimitive,
|
|
32
|
-
CapsulePrimitive: () => CapsulePrimitive,
|
|
33
|
-
CirclePrimitive: () => CirclePrimitive,
|
|
34
|
-
ConePrimitive: () => ConePrimitive,
|
|
35
|
-
CylinderPrimitive: () => CylinderPrimitive,
|
|
36
|
-
DodecahedronPrimitive: () => DodecahedronPrimitive,
|
|
37
|
-
EdgesPrimitive: () => EdgesPrimitive,
|
|
38
|
-
ExtrudePrimitive: () => ExtrudePrimitive,
|
|
39
|
-
IcosahedronPrimitive: () => IcosahedronPrimitive,
|
|
40
|
-
LathePrimitive: () => LathePrimitive,
|
|
41
|
-
OctahedronPrimitive: () => OctahedronPrimitive,
|
|
42
|
-
PRIMITIVE_REGISTRY: () => PRIMITIVE_REGISTRY,
|
|
43
|
-
PlanePrimitive: () => PlanePrimitive,
|
|
44
|
-
PolyhedronPrimitive: () => PolyhedronPrimitive,
|
|
45
|
-
Primitive: () => Primitive,
|
|
46
|
-
RingPrimitive: () => RingPrimitive,
|
|
47
|
-
ShapePrimitive: () => ShapePrimitive,
|
|
48
|
-
SpherePrimitive: () => SpherePrimitive,
|
|
49
|
-
TetrahedronPrimitive: () => TetrahedronPrimitive,
|
|
50
|
-
TorusKnotPrimitive: () => TorusKnotPrimitive,
|
|
51
|
-
TorusPrimitive: () => TorusPrimitive,
|
|
52
|
-
TubePrimitive: () => TubePrimitive,
|
|
53
|
-
WireframePrimitive: () => WireframePrimitive
|
|
54
|
-
});
|
|
55
|
-
module.exports = __toCommonJS(Primitives_exports);
|
|
56
|
-
var import_three = require("three");
|
|
57
|
-
var import_WithEditorHelper = require("../../Editor/WithEditorHelper");
|
|
58
|
-
var import_Game = __toESM(require("../../Game"), 1);
|
|
59
|
-
var import_GameObject = __toESM(require("../../World/GameObject"), 1);
|
|
60
|
-
class Primitive extends (0, import_WithEditorHelper.WithEditorHelper)(import_GameObject.default) {
|
|
61
|
-
constructor(position, object, label) {
|
|
62
|
-
super(void 0, position);
|
|
63
|
-
this.instance = object;
|
|
64
|
-
this.instance.position.copy(position);
|
|
65
|
-
import_Game.default.instance().scene.add(this.instance);
|
|
66
|
-
const isMeshStd = this.instance instanceof import_three.Mesh && this.instance.material instanceof import_three.MeshStandardMaterial;
|
|
67
|
-
const mat = isMeshStd ? this.instance.material : null;
|
|
68
|
-
this.registerEditorHelper(position, label, {
|
|
69
|
-
onMove: (delta) => this.instance.position.add(delta),
|
|
70
|
-
properties: mat ? [
|
|
71
|
-
{ type: "color", label: "color", getValue: () => `#${mat.color.getHexString()}`, setValue: (v) => mat.color.set(v) },
|
|
72
|
-
{
|
|
73
|
-
type: "checkbox",
|
|
74
|
-
label: "wireframe",
|
|
75
|
-
getValue: () => mat.wireframe,
|
|
76
|
-
setValue: (v) => {
|
|
77
|
-
mat.wireframe = v;
|
|
78
|
-
mat.needsUpdate = true;
|
|
79
|
-
}
|
|
80
|
-
},
|
|
81
|
-
{ type: "slider", label: "roughness", min: 0, max: 1, step: 0.01, getValue: () => mat.roughness, setValue: (v) => {
|
|
82
|
-
mat.roughness = v;
|
|
83
|
-
} },
|
|
84
|
-
{ type: "slider", label: "metalness", min: 0, max: 1, step: 0.01, getValue: () => mat.metalness, setValue: (v) => {
|
|
85
|
-
mat.metalness = v;
|
|
86
|
-
} }
|
|
87
|
-
] : []
|
|
88
|
-
});
|
|
89
|
-
this.tagWithHelper(this.instance);
|
|
90
|
-
}
|
|
91
|
-
setReceiveShadow(value) {
|
|
92
|
-
if (this.instance instanceof import_three.Mesh) {
|
|
93
|
-
this.instance.receiveShadow = value;
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
setCastShadow(value) {
|
|
97
|
-
if (this.instance instanceof import_three.Mesh) {
|
|
98
|
-
this.instance.castShadow = value;
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
update(_delta) {
|
|
102
|
-
}
|
|
103
|
-
destroy() {
|
|
104
|
-
const asRenderable = this.instance;
|
|
105
|
-
asRenderable.geometry?.dispose();
|
|
106
|
-
if (Array.isArray(asRenderable.material)) {
|
|
107
|
-
asRenderable.material.forEach((m) => m.dispose());
|
|
108
|
-
} else {
|
|
109
|
-
asRenderable.material?.dispose();
|
|
110
|
-
}
|
|
111
|
-
import_Game.default.instance().scene.remove(this.instance);
|
|
112
|
-
super.destroy();
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
function mesh(geometry) {
|
|
116
|
-
return new import_three.Mesh(geometry, new import_three.MeshStandardMaterial({ color: 8947848 }));
|
|
117
|
-
}
|
|
118
|
-
function lines(geometry) {
|
|
119
|
-
return new import_three.LineSegments(geometry, new import_three.LineBasicMaterial({ color: 4890367 }));
|
|
120
|
-
}
|
|
121
|
-
class BoxPrimitive extends Primitive {
|
|
122
|
-
constructor(position) {
|
|
123
|
-
super(position, mesh(new import_three.BoxGeometry()), "Box");
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
class CapsulePrimitive extends Primitive {
|
|
127
|
-
constructor(position) {
|
|
128
|
-
super(position, mesh(new import_three.CapsuleGeometry()), "Capsule");
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
class CirclePrimitive extends Primitive {
|
|
132
|
-
constructor(position) {
|
|
133
|
-
super(position, mesh(new import_three.CircleGeometry()), "Circle");
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
class ConePrimitive extends Primitive {
|
|
137
|
-
constructor(position) {
|
|
138
|
-
super(position, mesh(new import_three.ConeGeometry()), "Cone");
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
class CylinderPrimitive extends Primitive {
|
|
142
|
-
constructor(position) {
|
|
143
|
-
super(position, mesh(new import_three.CylinderGeometry()), "Cylinder");
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
class DodecahedronPrimitive extends Primitive {
|
|
147
|
-
constructor(position) {
|
|
148
|
-
super(position, mesh(new import_three.DodecahedronGeometry()), "Dodecahedron");
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
class EdgesPrimitive extends Primitive {
|
|
152
|
-
constructor(position) {
|
|
153
|
-
super(position, lines(new import_three.EdgesGeometry(new import_three.BoxGeometry())), "Edges");
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
class ExtrudePrimitive extends Primitive {
|
|
157
|
-
constructor(position) {
|
|
158
|
-
const shape = new import_three.Shape();
|
|
159
|
-
shape.moveTo(0, 0);
|
|
160
|
-
shape.lineTo(0, 1);
|
|
161
|
-
shape.lineTo(1, 1);
|
|
162
|
-
shape.lineTo(1, 0);
|
|
163
|
-
shape.closePath();
|
|
164
|
-
super(position, mesh(new import_three.ExtrudeGeometry(shape, { depth: 0.5, bevelEnabled: false })), "Extrude");
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
class IcosahedronPrimitive extends Primitive {
|
|
168
|
-
constructor(position) {
|
|
169
|
-
super(position, mesh(new import_three.IcosahedronGeometry()), "Icosahedron");
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
class LathePrimitive extends Primitive {
|
|
173
|
-
constructor(position) {
|
|
174
|
-
const points = [];
|
|
175
|
-
for (let i = 0; i <= 10; i++) {
|
|
176
|
-
points.push(new import_three.Vector2(Math.sin(i * 0.2) * 0.5 + 0.3, i * 0.1));
|
|
177
|
-
}
|
|
178
|
-
super(position, mesh(new import_three.LatheGeometry(points, 12)), "Lathe");
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
class OctahedronPrimitive extends Primitive {
|
|
182
|
-
constructor(position) {
|
|
183
|
-
super(position, mesh(new import_three.OctahedronGeometry()), "Octahedron");
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
class PlanePrimitive extends Primitive {
|
|
187
|
-
constructor(position, width = 1, height = 1) {
|
|
188
|
-
const geometry = new import_three.PlaneGeometry(width, height);
|
|
189
|
-
geometry.rotateX(-Math.PI / 2);
|
|
190
|
-
super(position, mesh(geometry), "Plane");
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
class PolyhedronPrimitive extends Primitive {
|
|
194
|
-
constructor(position) {
|
|
195
|
-
const vertices = [1, 1, 1, -1, -1, 1, -1, 1, -1, 1, -1, -1];
|
|
196
|
-
const indices = [2, 1, 0, 0, 3, 2, 1, 3, 0, 2, 3, 1];
|
|
197
|
-
super(position, mesh(new import_three.PolyhedronGeometry(vertices, indices, 0.8, 2)), "Polyhedron");
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
class RingPrimitive extends Primitive {
|
|
201
|
-
constructor(position) {
|
|
202
|
-
super(position, mesh(new import_three.RingGeometry(0.5, 1)), "Ring");
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
class ShapePrimitive extends Primitive {
|
|
206
|
-
constructor(position) {
|
|
207
|
-
const shape = new import_three.Shape();
|
|
208
|
-
shape.moveTo(0, 0);
|
|
209
|
-
shape.lineTo(0, 1);
|
|
210
|
-
shape.lineTo(1, 1);
|
|
211
|
-
shape.lineTo(1, 0);
|
|
212
|
-
shape.closePath();
|
|
213
|
-
super(position, mesh(new import_three.ShapeGeometry(shape)), "Shape");
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
class SpherePrimitive extends Primitive {
|
|
217
|
-
constructor(position) {
|
|
218
|
-
super(position, mesh(new import_three.SphereGeometry()), "Sphere");
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
class TetrahedronPrimitive extends Primitive {
|
|
222
|
-
constructor(position) {
|
|
223
|
-
super(position, mesh(new import_three.TetrahedronGeometry()), "Tetrahedron");
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
class TorusPrimitive extends Primitive {
|
|
227
|
-
constructor(position) {
|
|
228
|
-
super(position, mesh(new import_three.TorusGeometry()), "Torus");
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
class TorusKnotPrimitive extends Primitive {
|
|
232
|
-
constructor(position) {
|
|
233
|
-
super(position, mesh(new import_three.TorusKnotGeometry()), "TorusKnot");
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
class TubePrimitive extends Primitive {
|
|
237
|
-
constructor(position) {
|
|
238
|
-
const path = new import_three.CatmullRomCurve3([
|
|
239
|
-
new import_three.Vector3(-1, 0, 0),
|
|
240
|
-
new import_three.Vector3(-0.5, 0.5, 0),
|
|
241
|
-
new import_three.Vector3(0.5, -0.5, 0),
|
|
242
|
-
new import_three.Vector3(1, 0, 0)
|
|
243
|
-
]);
|
|
244
|
-
super(position, mesh(new import_three.TubeGeometry(path, 20, 0.2, 8, false)), "Tube");
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
class WireframePrimitive extends Primitive {
|
|
248
|
-
constructor(position) {
|
|
249
|
-
super(position, lines(new import_three.WireframeGeometry(new import_three.BoxGeometry())), "Wireframe");
|
|
250
|
-
}
|
|
251
|
-
}
|
|
252
|
-
const PRIMITIVE_REGISTRY = {
|
|
253
|
-
Box: BoxPrimitive,
|
|
254
|
-
Capsule: CapsulePrimitive,
|
|
255
|
-
Circle: CirclePrimitive,
|
|
256
|
-
Cone: ConePrimitive,
|
|
257
|
-
Cylinder: CylinderPrimitive,
|
|
258
|
-
Dodecahedron: DodecahedronPrimitive,
|
|
259
|
-
Edges: EdgesPrimitive,
|
|
260
|
-
Extrude: ExtrudePrimitive,
|
|
261
|
-
Icosahedron: IcosahedronPrimitive,
|
|
262
|
-
Lathe: LathePrimitive,
|
|
263
|
-
Octahedron: OctahedronPrimitive,
|
|
264
|
-
Plane: PlanePrimitive,
|
|
265
|
-
Polyhedron: PolyhedronPrimitive,
|
|
266
|
-
Ring: RingPrimitive,
|
|
267
|
-
Shape: ShapePrimitive,
|
|
268
|
-
Sphere: SpherePrimitive,
|
|
269
|
-
Tetrahedron: TetrahedronPrimitive,
|
|
270
|
-
Torus: TorusPrimitive,
|
|
271
|
-
TorusKnot: TorusKnotPrimitive,
|
|
272
|
-
Tube: TubePrimitive,
|
|
273
|
-
Wireframe: WireframePrimitive
|
|
274
|
-
};
|
|
275
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
276
|
-
0 && (module.exports = {
|
|
277
|
-
BoxPrimitive,
|
|
278
|
-
CapsulePrimitive,
|
|
279
|
-
CirclePrimitive,
|
|
280
|
-
ConePrimitive,
|
|
281
|
-
CylinderPrimitive,
|
|
282
|
-
DodecahedronPrimitive,
|
|
283
|
-
EdgesPrimitive,
|
|
284
|
-
ExtrudePrimitive,
|
|
285
|
-
IcosahedronPrimitive,
|
|
286
|
-
LathePrimitive,
|
|
287
|
-
OctahedronPrimitive,
|
|
288
|
-
PRIMITIVE_REGISTRY,
|
|
289
|
-
PlanePrimitive,
|
|
290
|
-
PolyhedronPrimitive,
|
|
291
|
-
Primitive,
|
|
292
|
-
RingPrimitive,
|
|
293
|
-
ShapePrimitive,
|
|
294
|
-
SpherePrimitive,
|
|
295
|
-
TetrahedronPrimitive,
|
|
296
|
-
TorusKnotPrimitive,
|
|
297
|
-
TorusPrimitive,
|
|
298
|
-
TubePrimitive,
|
|
299
|
-
WireframePrimitive
|
|
300
|
-
});
|