@kvyverse/world-runtime 0.1.0 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +84 -59
- package/dist/{BallCollider-8ZrxReEd.js → BallCollider-3L5vOrcL.js} +2 -2
- package/dist/{CapsuleCollider-bynyf6Mc.js → CapsuleCollider-CBTsR-Ys.js} +2 -2
- package/dist/ChatModule-2tiWS_Yr.js +411 -0
- package/dist/{Collider-4_rCTHVA.js → Collider-CPUCG3RA.js} +2 -2
- package/dist/{ConeCollider-DtRZmgK8.js → ConeCollider-C3XU3Y9X.js} +2 -2
- package/dist/{ConvexMeshCollider-BSmDM4o3.js → ConvexMeshCollider-DzNV4HTO.js} +1 -1
- package/dist/{CuboidCollider-CJvq7--s.js → CuboidCollider-Dp1DZoFM.js} +1 -1
- package/dist/{CylinderCollider-CQPSh4tu.js → CylinderCollider-C0h_nhB5.js} +2 -2
- package/dist/{FpsCameraController-BE2EirRj.js → FpsCameraController-2GNWJM5D.js} +1 -1
- package/dist/RapierDebugRenderer-BQy_m-3C.js +73 -0
- package/dist/{RapierFpsPlayerController-VsNfQl6v.js → RapierFpsPlayerController-DthD8dw9.js} +5 -22
- package/dist/{RapierPhysics-C_3b7QOn.js → RapierPhysics-CU6X--c7.js} +34 -15
- package/dist/{Rigidbody-b7QNF4ev.js → Rigidbody-DLhN8ddv.js} +12 -1
- package/dist/World.d.ts +4 -2
- package/dist/WorldRuntime.d.ts +15 -5
- package/dist/addons/AddonsRuntime.d.ts +37 -0
- package/dist/addons/builtin-libs.d.ts +20 -0
- package/dist/addons/lib-registry.d.ts +60 -0
- package/dist/addons/required-libs.d.ts +9 -0
- package/dist/addons/types.d.ts +28 -0
- package/dist/behaviours/physics/BallCollider.d.ts +1 -1
- package/dist/behaviours/physics/CapsuleCollider.d.ts +1 -1
- package/dist/behaviours/physics/ConeCollider.d.ts +1 -1
- package/dist/behaviours/physics/ConvexMeshCollider.d.ts +1 -1
- package/dist/behaviours/physics/CuboidCollider.d.ts +1 -1
- package/dist/behaviours/physics/CylinderCollider.d.ts +1 -1
- package/dist/behaviours/physics/HalfspaceCollider.d.ts +1 -1
- package/dist/behaviours/physics/_required-patch.d.ts +10 -8
- package/dist/behaviours/registry.d.ts +9 -2
- package/dist/chat.module-descriptor-BTsep-Kq.js +107 -0
- package/dist/{get-scale-from-obj-QKv3Fig5.js → get-scale-from-obj-B7JlVPni.js} +1 -1
- package/dist/index.d.ts +26 -14
- package/dist/index.js +594 -202
- package/dist/lib-registry-D1VyVPBg.js +142 -0
- package/dist/modules/HtmlHudModule.d.ts +5 -1
- package/dist/modules/InputSystemModule.d.ts +14 -32
- package/dist/modules/chat/ChatDom.d.ts +100 -0
- package/dist/modules/chat/ChatModule.d.ts +36 -0
- package/dist/modules/chat/chat.module-descriptor.d.ts +43 -0
- package/dist/modules/contracts/addons.module-api.d.ts +15 -0
- package/dist/modules/contracts/chat.module-api.d.ts +52 -0
- package/dist/modules/contracts/controls.module-api.d.ts +58 -0
- package/dist/modules/contracts/html.module-api.d.ts +22 -2
- package/dist/modules/contracts/input.module-api.d.ts +11 -11
- package/dist/modules/contracts/module-events.d.ts +17 -0
- package/dist/modules/contracts/rapier.module-api.d.ts +13 -1
- package/dist/modules/controls/ControlsModule.d.ts +45 -0
- package/dist/modules/controls/KeyboardControlsDriver.d.ts +12 -0
- package/dist/modules/index.d.ts +30 -3
- package/dist/modules/optional-module-descriptor.d.ts +39 -0
- package/dist/modules/optional-modules.d.ts +11 -0
- package/dist/modules/physics/RapierDebugRenderer.d.ts +19 -0
- package/dist/{behaviours/physics/rapier-addon-core → modules/physics}/RapierPhysics.d.ts +13 -3
- package/dist/modules/physics/physics.module-descriptor.d.ts +16 -0
- package/dist/modules/registry.d.ts +7 -3
- package/dist/rendering/SceneBloom.d.ts +1 -1
- package/dist/rendering/renderer-apply.d.ts +1 -1
- package/dist/{settings → rendering}/types.d.ts +1 -12
- package/dist/types.d.ts +10 -3
- package/dist/utils/lazy.d.ts +7 -0
- package/dist/version.gen.d.ts +1 -1
- package/dist/world-stores.d.ts +39 -0
- package/package.json +10 -1
- package/dist/RapierDebugRenderer-sURZDLP4.js +0 -55
- package/dist/behaviours/physics/rapier-addon-core/RapierDebugRenderer.d.ts +0 -17
- package/dist/modules/contracts/rapierDebug.module-api.d.ts +0 -5
- package/dist/rolldown-runtime-D7D4PA-g.js +0 -13
- package/dist/settings/AddonsRuntime.d.ts +0 -19
- package/dist/settings/lib-loaders.d.ts +0 -7
- package/dist/settings/lib-registry.d.ts +0 -24
- package/dist/settings/module-registry.d.ts +0 -25
- /package/dist/{settings → addons}/externals.d.ts +0 -0
- /package/dist/behaviours/physics/{rapier-addon-core/Collider.d.ts → Collider.d.ts} +0 -0
- /package/dist/behaviours/physics/{rapier-addon-core/get-scale-from-obj.d.ts → get-scale-from-obj.d.ts} +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -4,6 +4,9 @@ export type { InstantiateOptions, PrefabFactory } from "./WorldRuntime";
|
|
|
4
4
|
export { setColor } from "./values";
|
|
5
5
|
export { RUNTIME_VERSION, WORLD_FORMAT_VERSION } from "./version";
|
|
6
6
|
export { WorldEvent } from "./world-events";
|
|
7
|
+
export { lazyProxy } from "./utils/lazy";
|
|
8
|
+
export { WorldStores } from "./world-stores";
|
|
9
|
+
export type { WorldStore } from "./world-stores";
|
|
7
10
|
export { createWorldModules, EnvModule, HtmlHudModule, InputSystemModule, isMobileDevice, SoundsModule, UtilsModule, } from "./modules";
|
|
8
11
|
export type { EnvMode, WorldModules } from "./modules";
|
|
9
12
|
export { DEFAULT_RESOURCE_IDS, DefaultResourceId, getDefaultResource, isDefaultResourceId, } from "./resources/default-resources";
|
|
@@ -19,30 +22,39 @@ export { AudioSource, createAudio } from "./resources/audio";
|
|
|
19
22
|
export { createVideo, VideoSource } from "./resources/video";
|
|
20
23
|
export { createFont, FontSource, fontFormatFromMime } from "./resources/font";
|
|
21
24
|
export { BUILTIN_BEHAVIOUR_LIST, BUILTIN_BEHAVIOURS, getBuiltinBehaviour, } from "./behaviours/registry";
|
|
22
|
-
export type { BuiltinBehaviour } from "./behaviours/registry";
|
|
23
|
-
export {
|
|
24
|
-
export { AddonsRuntime } from "./
|
|
25
|
+
export type { BuiltinBehaviour, RequiredPatch } from "./behaviours/registry";
|
|
26
|
+
export { rapierPhysicsPatch } from "./behaviours/physics/_required-patch";
|
|
27
|
+
export { AddonsRuntime } from "./addons/AddonsRuntime";
|
|
25
28
|
export { applyRendererConfig } from "./rendering/renderer-apply";
|
|
26
29
|
export { enableSceneEmissiveMrt, SceneBloom } from "./rendering/SceneBloom";
|
|
27
30
|
export { createTslNode, TslNode } from "./rendering/tsl-node";
|
|
28
31
|
export type { TslNodeBuilder } from "./rendering/tsl-node";
|
|
29
32
|
export { createUniformNode, isUniformType, UNIFORM_DEFAULTS, UNIFORM_TYPES, uniformType, } from "./rendering/tsl-uniforms";
|
|
30
33
|
export type { UniformType } from "./rendering/tsl-uniforms";
|
|
31
|
-
export { LIB_DESCRIPTORS, LIB_IDS, LIBS, LibId, libByRequireKey } from "./
|
|
32
|
-
export
|
|
33
|
-
export {
|
|
34
|
-
export {
|
|
34
|
+
export { BUILTIN_LIB_DESCRIPTORS, LIB_DESCRIPTORS, LIB_IDS, LIBS, LibId, OPTIONAL_LIB_DESCRIPTORS, OPTIONAL_LIB_IDS, libByRequireKey, } from "./addons/lib-registry";
|
|
35
|
+
export { collectRequiredLibs } from "./addons/required-libs";
|
|
36
|
+
export type { LibDescriptor } from "./addons/lib-registry";
|
|
37
|
+
export { OPTIONAL_MODULE_IDS, OptionalModuleId } from "./modules/optional-module-descriptor";
|
|
38
|
+
export { OPTIONAL_MODULES, getOptionalModuleDescriptor } from "./modules/optional-modules";
|
|
39
|
+
export { normalizePhysics, PHYSICS_ENGINES, } from "./modules/physics/physics.module-descriptor";
|
|
40
|
+
export { CHAT_INPUT_MODES, normalizeChat } from "./modules/chat/chat.module-descriptor";
|
|
41
|
+
export { EXTERNAL_TYPES } from "./addons/externals";
|
|
35
42
|
export { BLOOM_MODES, SHADOW_MAP_TYPES, TONE_MAPPING_NAMES, } from "./rendering/renderer-options";
|
|
36
43
|
export type { BloomModeName, ShadowMapTypeName, ToneMappingName, } from "./rendering/renderer-options";
|
|
37
|
-
export type { ExternalDescriptor, ExternalType } from "./
|
|
38
|
-
export type {
|
|
39
|
-
export type {
|
|
40
|
-
export {
|
|
44
|
+
export type { ExternalDescriptor, ExternalType } from "./addons/externals";
|
|
45
|
+
export type { ModuleJsonSchema, OptionalModuleDescriptor, } from "./modules/optional-module-descriptor";
|
|
46
|
+
export type { NormalizedPhysics, PhysicsConfig, PhysicsEngine, } from "./modules/physics/physics.module-descriptor";
|
|
47
|
+
export type { ChatConfig, ChatInputMode, NormalizedChat, } from "./modules/chat/chat.module-descriptor";
|
|
48
|
+
export type { AddonsConfig, PackageImport, WorldImports } from "./addons/types";
|
|
49
|
+
export type { BloomConfig, RendererConfig, RendererParams, } from "./rendering/types";
|
|
50
|
+
export { getHalfheightRadiusScale, getRadiusScale } from "./behaviours/physics/get-scale-from-obj";
|
|
51
|
+
export type { AddonsModuleApi } from "./modules/contracts/addons.module-api";
|
|
41
52
|
export type { EnvModuleApi } from "./modules/contracts/env.module-api";
|
|
42
53
|
export type { HtmlModuleApi } from "./modules/contracts/html.module-api";
|
|
43
|
-
export type {
|
|
44
|
-
export type {
|
|
45
|
-
export type {
|
|
54
|
+
export type { InputEvents, InputModuleApi } from "./modules/contracts/input.module-api";
|
|
55
|
+
export type { ControlsDriver, ControlsEvents, ControlsModuleApi, ControlsSource, ControlsState, } from "./modules/contracts/controls.module-api";
|
|
56
|
+
export type { ModuleEvents } from "./modules/contracts/module-events";
|
|
57
|
+
export type { RapierEvents, RapierJsModule, RapierModuleApi, } from "./modules/contracts/rapier.module-api";
|
|
46
58
|
export type { SoundsModuleApi } from "./modules/contracts/sounds.module-api";
|
|
47
59
|
export type { UtilsModuleApi } from "./modules/contracts/utils.module-api";
|
|
48
60
|
export type { AssetUrlTable, LoadWorldOptions, RuntimeApi, SceneBuildResult, ScriptModule, ScriptTable, WorldDefinition, WorldLoadProgress, } from "./types";
|