rhodonite 0.4.2 → 0.5.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/VERSION-FILE +2 -2
- package/dist/esm/effekseer/EffekseerComponent.d.ts +52 -45
- package/dist/esm/effekseer/main.d.ts +6 -6
- package/dist/esm/foundation/cameras/AbstractCameraController.d.ts +14 -14
- package/dist/esm/foundation/cameras/ICameraController.d.ts +9 -9
- package/dist/esm/foundation/cameras/OrbitCameraController.d.ts +128 -123
- package/dist/esm/foundation/cameras/WalkThroughCameraController.d.ts +75 -75
- package/dist/esm/foundation/components/AnimationComponent.d.ts +81 -94
- package/dist/esm/foundation/components/BlendShapeComponent.d.ts +14 -14
- package/dist/esm/foundation/components/CameraComponent.d.ts +116 -116
- package/dist/esm/foundation/components/CameraControllerComponent.d.ts +16 -16
- package/dist/esm/foundation/components/LightComponent.d.ts +28 -28
- package/dist/esm/foundation/components/MeshComponent.d.ts +50 -50
- package/dist/esm/foundation/components/MeshRendererComponent.d.ts +57 -57
- package/dist/esm/foundation/components/PhysicsComponent.d.ts +12 -12
- package/dist/esm/foundation/components/SceneGraphComponent.d.ts +114 -81
- package/dist/esm/foundation/components/SkeletalComponent.d.ts +50 -50
- package/dist/esm/foundation/components/TransformComponent.d.ts +91 -91
- package/dist/esm/foundation/components/WellKnownComponentTIDs.d.ts +16 -16
- package/dist/esm/foundation/core/Component.d.ts +216 -216
- package/dist/esm/foundation/core/ComponentRepository.d.ts +59 -59
- package/dist/esm/foundation/core/Config.d.ts +20 -19
- package/dist/esm/foundation/core/Entity.d.ts +84 -84
- package/dist/esm/foundation/core/EntityRepository.d.ts +62 -62
- package/dist/esm/foundation/core/GlobalDataRepository.d.ts +32 -31
- package/dist/esm/foundation/core/MemoryManager.d.ts +29 -29
- package/dist/esm/foundation/core/RnObject.d.ts +96 -96
- package/dist/esm/foundation/definitions/AlphaMode.d.ts +15 -15
- package/dist/esm/foundation/definitions/AnimationAttribute.d.ts +13 -13
- package/dist/esm/foundation/definitions/AnimationInterpolation.d.ts +12 -12
- package/dist/esm/foundation/definitions/BasisCompressionType.d.ts +26 -26
- package/dist/esm/foundation/definitions/BoneDataType.d.ts +13 -13
- package/dist/esm/foundation/definitions/BufferUse.d.ts +13 -13
- package/dist/esm/foundation/definitions/CameraControllerType.d.ts +11 -11
- package/dist/esm/foundation/definitions/CameraType.d.ts +12 -12
- package/dist/esm/foundation/definitions/ComponentType.d.ts +32 -32
- package/dist/esm/foundation/definitions/CompositionType.d.ts +39 -38
- package/dist/esm/foundation/definitions/CompressionTextureType.d.ts +48 -48
- package/dist/esm/foundation/definitions/FileType.d.ts +17 -17
- package/dist/esm/foundation/definitions/GpuState.d.ts +10 -10
- package/dist/esm/foundation/definitions/HdriFormat.d.ts +10 -10
- package/dist/esm/foundation/definitions/LightType.d.ts +13 -13
- package/dist/esm/foundation/definitions/PixelFormat.d.ts +10 -10
- package/dist/esm/foundation/definitions/PrimitiveMode.d.ts +15 -15
- package/dist/esm/foundation/definitions/ProcessApproach.d.ts +19 -19
- package/dist/esm/foundation/definitions/ProcessStage.d.ts +18 -18
- package/dist/esm/foundation/definitions/RenderBufferTarget.d.ts +27 -27
- package/dist/esm/foundation/definitions/ShaderNode.d.ts +11 -11
- package/dist/esm/foundation/definitions/ShaderSemantics.d.ts +119 -119
- package/dist/esm/foundation/definitions/ShaderType.d.ts +13 -13
- package/dist/esm/foundation/definitions/ShaderVariableType.d.ts +11 -11
- package/dist/esm/foundation/definitions/ShaderVariableUpdateInterval.d.ts +12 -12
- package/dist/esm/foundation/definitions/ShadingModel.d.ts +12 -12
- package/dist/esm/foundation/definitions/ShadowMap.d.ts +11 -11
- package/dist/esm/foundation/definitions/TextureParameter.d.ts +37 -37
- package/dist/esm/foundation/definitions/VertexAttribute.d.ts +38 -38
- package/dist/esm/foundation/definitions/visibility.d.ts +12 -12
- package/dist/esm/foundation/enhanced_js_objects/Array.d.ts +15 -15
- package/dist/esm/foundation/exporter/Gltf2Exporter.d.ts +27 -22
- package/dist/esm/foundation/geometry/Frustum.d.ts +37 -37
- package/dist/esm/foundation/geometry/Mesh.d.ts +148 -124
- package/dist/esm/foundation/geometry/Plane.d.ts +30 -26
- package/dist/esm/foundation/geometry/Primitive.d.ts +78 -78
- package/dist/esm/foundation/geometry/Sphere.d.ts +12 -12
- package/dist/esm/foundation/gizmos/AABBGizmo.d.ts +29 -10
- package/dist/esm/foundation/gizmos/Gizmo.d.ts +39 -16
- package/dist/esm/foundation/gizmos/LocatorGizmo.d.ts +28 -0
- package/dist/esm/foundation/helpers/EntityHelper.d.ts +11 -11
- package/dist/esm/foundation/helpers/MaterialHelper.d.ts +173 -167
- package/dist/esm/foundation/helpers/MeshHelper.d.ts +4 -4
- package/dist/esm/foundation/helpers/RenderableHelper.d.ts +18 -18
- package/dist/esm/foundation/importer/AnimationAssigner.d.ts +16 -16
- package/dist/esm/foundation/importer/DrcPointCloudImporter.d.ts +69 -69
- package/dist/esm/foundation/importer/FormatDetector.d.ts +5 -5
- package/dist/esm/foundation/importer/Gltf1Importer.d.ts +45 -45
- package/dist/esm/foundation/importer/Gltf2Importer.d.ts +46 -46
- package/dist/esm/foundation/importer/GltfImporter.d.ts +57 -57
- package/dist/esm/foundation/importer/ILoaderExtension.d.ts +11 -11
- package/dist/esm/foundation/importer/ModelConverter.d.ts +78 -78
- package/dist/esm/foundation/importer/RhodoniteImportExtension.d.ts +9 -9
- package/dist/esm/foundation/importer/VRMImporter.d.ts +15 -15
- package/dist/esm/foundation/materials/core/AbstractMaterialNode.d.ts +124 -124
- package/dist/esm/foundation/materials/core/AbstractShaderNode.d.ts +33 -33
- package/dist/esm/foundation/materials/core/Material.d.ts +181 -149
- package/dist/esm/foundation/materials/core/ShaderGraphResolver.d.ts +16 -16
- package/dist/esm/foundation/materials/core/ShaderityUtility.d.ts +30 -32
- package/dist/esm/foundation/materials/nodes/AddShaderNode.d.ts +6 -6
- package/dist/esm/foundation/materials/nodes/AttributeNormalShaderNode.d.ts +4 -4
- package/dist/esm/foundation/materials/nodes/AttributePositionShaderNode.d.ts +4 -4
- package/dist/esm/foundation/materials/nodes/BlockBeginShaderNode.d.ts +9 -9
- package/dist/esm/foundation/materials/nodes/BlockEndShaderNode.d.ts +7 -7
- package/dist/esm/foundation/materials/nodes/ConstantVariableShaderNode.d.ts +7 -7
- package/dist/esm/foundation/materials/nodes/DotProductShaderNode.d.ts +6 -6
- package/dist/esm/foundation/materials/nodes/GreaterShaderNode.d.ts +6 -6
- package/dist/esm/foundation/materials/nodes/IfStatementShaderNode.d.ts +4 -4
- package/dist/esm/foundation/materials/nodes/MultiplyShaderNode.d.ts +6 -6
- package/dist/esm/foundation/materials/nodes/NormalMatrixShaderNode.d.ts +4 -4
- package/dist/esm/foundation/materials/nodes/NormalizeShaderNode.d.ts +6 -6
- package/dist/esm/foundation/materials/nodes/OutColorShaderNode.d.ts +4 -4
- package/dist/esm/foundation/materials/nodes/OutPositionShaderNode.d.ts +4 -4
- package/dist/esm/foundation/materials/nodes/ProjectionMatrixShaderNode.d.ts +4 -4
- package/dist/esm/foundation/materials/nodes/ScalarToVector4ShaderNode.d.ts +4 -4
- package/dist/esm/foundation/materials/nodes/TextureFetchMaterialNode.d.ts +6 -6
- package/dist/esm/foundation/materials/nodes/UniformDataShaderNode.d.ts +8 -8
- package/dist/esm/foundation/materials/nodes/VaryingInVariableShaderNode.d.ts +7 -7
- package/dist/esm/foundation/materials/nodes/VaryingOutVariableShaderNode.d.ts +7 -7
- package/dist/esm/foundation/materials/nodes/Vector3AndScalarToVector4ShaderNode.d.ts +4 -4
- package/dist/esm/foundation/materials/nodes/ViewMatrixShaderNode.d.ts +4 -4
- package/dist/esm/foundation/materials/nodes/WireframeMaterialNode.d.ts +4 -4
- package/dist/esm/foundation/materials/nodes/WorldMatrixShaderNode.d.ts +4 -4
- package/dist/esm/foundation/materials/singles/ClassicShadingSingleMaterialNode.d.ts +16 -16
- package/dist/esm/foundation/materials/singles/ColorGradingUsingLUTsSingleMaterialNode.d.ts +16 -16
- package/dist/esm/foundation/materials/singles/CustomSingleMaterialNode.d.ts +30 -31
- package/dist/esm/foundation/materials/singles/DepthEncodeSingleMaterialNode.d.ts +20 -20
- package/dist/esm/foundation/materials/singles/DetectHighLuminanceSingleMaterialNode.d.ts +16 -16
- package/dist/esm/foundation/materials/singles/EntityUIDOutputSingleMaterialNode.d.ts +11 -11
- package/dist/esm/foundation/materials/singles/EnvConstantSingleMaterialNode.d.ts +14 -14
- package/dist/esm/foundation/materials/singles/FXAA3QualitySingleMaterialNode.d.ts +11 -11
- package/dist/esm/foundation/materials/singles/FurnaceTestSingleMaterialNode.d.ts +17 -17
- package/dist/esm/foundation/materials/singles/GammaCorrectionSingleMaterialNode.d.ts +11 -11
- package/dist/esm/foundation/materials/singles/GaussianBlurForEncodedDepthSingleMaterialNode.d.ts +27 -27
- package/dist/esm/foundation/materials/singles/GaussianBlurSingleMaterialNode.d.ts +27 -27
- package/dist/esm/foundation/materials/singles/MToonSingleMaterialNode.d.ts +52 -52
- package/dist/esm/foundation/materials/singles/MatCapSingleMaterialNode.d.ts +14 -14
- package/dist/esm/foundation/materials/singles/PbrExtendedShadingSingleMaterialNode.d.ts +29 -29
- package/dist/esm/foundation/materials/singles/PbrShadingSingleMaterialNode.d.ts +36 -36
- package/dist/esm/foundation/materials/singles/ShaderitySingleMaterialNode.d.ts +17 -0
- package/dist/esm/foundation/materials/singles/ShadowMapDecodeClassicSingleMaterialNode.d.ts +41 -41
- package/dist/esm/foundation/materials/singles/SkinPbrShadingSingleMaterialNode.d.ts +26 -26
- package/dist/esm/foundation/materials/singles/SynthesizeHDRSingleMaterialNode.d.ts +39 -39
- package/dist/esm/foundation/materials/singles/VarianceShadowMapDecodeClassicSingleMaterialNode.d.ts +52 -52
- package/dist/esm/foundation/math/AABB.d.ts +34 -34
- package/dist/esm/foundation/math/AbstractMathNumber.d.ts +6 -6
- package/dist/esm/foundation/math/AbstractMatrix.d.ts +14 -14
- package/dist/esm/foundation/math/AbstractQuaternion.d.ts +25 -25
- package/dist/esm/foundation/math/AbstractVector.d.ts +21 -21
- package/dist/esm/foundation/math/ColorRgb.d.ts +26 -27
- package/dist/esm/foundation/math/ColorRgba.d.ts +25 -25
- package/dist/esm/foundation/math/IColor.d.ts +64 -64
- package/dist/esm/foundation/math/IMathNumber.d.ts +3 -3
- package/dist/esm/foundation/math/IMatrix.d.ts +226 -226
- package/dist/esm/foundation/math/IQuaternion.d.ts +64 -64
- package/dist/esm/foundation/math/IVector.d.ts +209 -209
- package/dist/esm/foundation/math/IdentityMatrix33.d.ts +40 -40
- package/dist/esm/foundation/math/IdentityMatrix44.d.ts +45 -45
- package/dist/esm/foundation/math/ImageUtil.d.ts +19 -19
- package/dist/esm/foundation/math/LogQuaternion.d.ts +12 -12
- package/dist/esm/foundation/math/MathClassUtil.d.ts +37 -37
- package/dist/esm/foundation/math/MathUtil.d.ts +55 -55
- package/dist/esm/foundation/math/Matrix22.d.ts +69 -69
- package/dist/esm/foundation/math/Matrix33.d.ts +86 -86
- package/dist/esm/foundation/math/Matrix44.d.ts +122 -122
- package/dist/esm/foundation/math/MutableColorRgb.d.ts +32 -33
- package/dist/esm/foundation/math/MutableColorRgba.d.ts +33 -33
- package/dist/esm/foundation/math/MutableMatrix22.d.ts +80 -80
- package/dist/esm/foundation/math/MutableMatrix33.d.ts +110 -110
- package/dist/esm/foundation/math/MutableMatrix44.d.ts +149 -149
- package/dist/esm/foundation/math/MutableQuaternion.d.ts +48 -48
- package/dist/esm/foundation/math/MutableScalar.d.ts +34 -34
- package/dist/esm/foundation/math/MutableVector2.d.ts +80 -75
- package/dist/esm/foundation/math/MutableVector3.d.ts +98 -94
- package/dist/esm/foundation/math/MutableVector4.d.ts +87 -85
- package/dist/esm/foundation/math/Quaternion.d.ts +53 -51
- package/dist/esm/foundation/math/Scalar.d.ts +40 -36
- package/dist/esm/foundation/math/Vector2.d.ts +140 -126
- package/dist/esm/foundation/math/Vector3.d.ts +166 -150
- package/dist/esm/foundation/math/Vector4.d.ts +146 -146
- package/dist/esm/foundation/math/VectorN.d.ts +5 -5
- package/dist/esm/foundation/math/raw/raw_extension.d.ts +59 -23
- package/dist/esm/foundation/memory/Accessor.d.ts +182 -182
- package/dist/esm/foundation/memory/Buffer.d.ts +37 -37
- package/dist/esm/foundation/memory/BufferView.d.ts +60 -60
- package/dist/esm/foundation/misc/Cache.d.ts +19 -0
- package/dist/esm/foundation/misc/DataUtil.d.ts +42 -38
- package/dist/esm/foundation/misc/EnumIO.d.ts +33 -33
- package/dist/esm/foundation/misc/Is.d.ts +26 -26
- package/dist/esm/foundation/misc/ManualCache.d.ts +30 -0
- package/dist/esm/foundation/misc/MiscUtil.d.ts +37 -30
- package/dist/esm/foundation/misc/Option.d.ts +72 -72
- package/dist/esm/foundation/misc/Result.d.ts +40 -40
- package/dist/esm/foundation/misc/RnPromise.d.ts +27 -27
- package/dist/esm/foundation/misc/Time.d.ts +16 -16
- package/dist/esm/foundation/physics/PhysicsStrategy.d.ts +2 -2
- package/dist/esm/foundation/physics/SphereCollider.d.ts +5 -5
- package/dist/esm/foundation/physics/VRMColliderGroup.d.ts +6 -6
- package/dist/esm/foundation/physics/VRMSpringBoneGroup.d.ts +14 -14
- package/dist/esm/foundation/physics/VRMSpringBonePhysicsStrategy.d.ts +39 -39
- package/dist/esm/foundation/renderer/CGAPIResourceRepository.d.ts +5 -5
- package/dist/esm/foundation/renderer/Expression.d.ts +21 -21
- package/dist/esm/foundation/renderer/FrameBuffer.d.ts +32 -32
- package/dist/esm/foundation/renderer/RenderPass.d.ts +113 -115
- package/dist/esm/foundation/system/EventPubSub.d.ts +19 -19
- package/dist/esm/foundation/system/ModuleManager.d.ts +10 -10
- package/dist/esm/foundation/system/System.d.ts +23 -23
- package/dist/esm/foundation/system/SystemState.d.ts +4 -4
- package/dist/esm/foundation/textures/AbstractTexture.d.ts +60 -60
- package/dist/esm/foundation/textures/CubeTexture.d.ts +33 -33
- package/dist/esm/foundation/textures/IRenderable.d.ts +10 -10
- package/dist/esm/foundation/textures/RenderBuffer.d.ts +23 -23
- package/dist/esm/foundation/textures/RenderTargetTexture.d.ts +39 -39
- package/dist/esm/foundation/textures/Texture.d.ts +90 -90
- package/dist/esm/foundation/textures/TextureDataFloat.d.ts +20 -18
- package/dist/esm/foundation/textures/VideoTexture.d.ts +63 -63
- package/dist/esm/index.d.ts +927 -917
- package/dist/esm/index.js +44596 -41597
- package/dist/esm/pbr/main.d.ts +5 -5
- package/dist/esm/sparkgear/SparkGearComponent.d.ts +54 -54
- package/dist/esm/sparkgear/main.d.ts +6 -6
- package/dist/esm/types/BasisTexture.d.ts +23 -23
- package/dist/esm/types/CommonTypes.d.ts +33 -29
- package/dist/esm/types/KTX2Texture.d.ts +67 -67
- package/dist/esm/types/RnM2.d.ts +329 -329
- package/dist/esm/types/TypeConverter.d.ts +1 -1
- package/dist/esm/types/TypeGenerators.d.ts +4 -4
- package/dist/esm/types/VRM.d.ts +160 -160
- package/dist/esm/types/glTF.d.ts +387 -385
- package/dist/esm/types/glTF1.d.ts +88 -88
- package/dist/esm/types/glTF2.d.ts +391 -338
- package/dist/esm/webgl/WebGLContextWrapper.d.ts +99 -99
- package/dist/esm/webgl/WebGLExtendedTypes.d.ts +14 -9
- package/dist/esm/webgl/WebGLExtension.d.ts +24 -24
- package/dist/esm/webgl/WebGLResourceRepository.d.ts +351 -221
- package/dist/esm/webgl/WebGLStrategy.d.ts +27 -22
- package/dist/esm/webgl/WebGLStrategyCommonMethod.d.ts +54 -30
- package/dist/esm/webgl/WebGLStrategyFastest.d.ts +54 -51
- package/dist/esm/webgl/WebGLStrategyUniform.d.ts +44 -40
- package/dist/esm/webgl/getRenderingStrategy.d.ts +4 -4
- package/dist/esm/webgl/main.d.ts +17 -17
- package/dist/esm/webgl/shaders/GLSLShader.d.ts +48 -48
- package/dist/esm/webgl/shaders/nodes/BlockBeginShader.d.ts +16 -16
- package/dist/esm/webgl/shaders/nodes/BlockEndShader.d.ts +16 -16
- package/dist/esm/webgl/shaders/nodes/ClassicShadingShader.d.ts +17 -17
- package/dist/esm/webgl/shaders/nodes/ConstantVariableShader.d.ts +18 -18
- package/dist/esm/webgl/shaders/nodes/EndShader.d.ts +17 -17
- package/dist/esm/webgl/shaders/nodes/IfStatementShader.d.ts +12 -12
- package/dist/esm/webgl/shaders/nodes/TextureFetchShader.d.ts +18 -18
- package/dist/esm/webgl/shaders/nodes/UniformDataShader.d.ts +20 -20
- package/dist/esm/webgl/shaders/nodes/VaryingVariableShader.d.ts +18 -18
- package/dist/esm/webgl/textureLoader/KTX2TextureLoader.d.ts +21 -21
- package/dist/esm/xr/WebVRSystem.d.ts +55 -55
- package/dist/esm/xr/WebXRInput.d.ts +18 -18
- package/dist/esm/xr/WebXRSystem.d.ts +136 -136
- package/dist/esm/xr/main.d.ts +8 -8
- package/package.json +5 -7
- package/dist/VERSION-FILE +0 -2
- package/dist/esm/foundation/components/MeshComponent.test.d.ts +0 -1
- package/dist/esm/foundation/components/SceneGraphComponent.test.d.ts +0 -1
- package/dist/esm/foundation/components/TransformComponent.test.d.ts +0 -1
- package/dist/esm/foundation/core/Entity.test.d.ts +0 -1
- package/dist/esm/foundation/core/EntityRepository.test.d.ts +0 -1
- package/dist/esm/foundation/core/RnObject.test.d.ts +0 -1
- package/dist/esm/foundation/definitions/ShaderVariableTyoe.d.ts +0 -11
- package/dist/esm/foundation/enhanced_js_objects/Array.test.d.ts +0 -5
- package/dist/esm/foundation/geometry/Mesh.test.d.ts +0 -1
- package/dist/esm/foundation/importer/VRizeGltfLoaderExtension.d.ts +0 -21
- package/dist/esm/foundation/materials/core/Material.test.d.ts +0 -1
- package/dist/esm/foundation/materials/core/ShaderityUtility.test.d.ts +0 -1
- package/dist/esm/foundation/materials/nodes/AddShaderNode.test.d.ts +0 -1
- package/dist/esm/foundation/materials/nodes/ConstantVariableShaderNode.test.d.ts +0 -1
- package/dist/esm/foundation/materials/nodes/ScalarToVector4ShaderNode.test.d.ts +0 -1
- package/dist/esm/foundation/materials/nodes/VaryingVariableShaderNode.test.d.ts +0 -1
- package/dist/esm/foundation/materials/singles/VRizeClassicShadingSingleMaterialNode.d.ts +0 -24
- package/dist/esm/foundation/materials/singles/VRizePbrShadingSingleMaterialNode.d.ts +0 -28
- package/dist/esm/foundation/math/AABB.test.d.ts +0 -1
- package/dist/esm/foundation/math/IdentityMatrix33.test.d.ts +0 -1
- package/dist/esm/foundation/math/IdentityMatrix44.test.d.ts +0 -1
- package/dist/esm/foundation/math/Matrix44.test.d.ts +0 -1
- package/dist/esm/foundation/math/MutableMatrix44..test.d.ts +0 -1
- package/dist/esm/foundation/math/MutableVector4.test.d.ts +0 -1
- package/dist/esm/foundation/math/Vector4.test.d.ts +0 -1
- package/dist/esm/foundation/memory/Accessor.test.d.ts +0 -1
- package/dist/esm/foundation/memory/Buffer.test.d.ts +0 -1
- package/dist/esm/foundation/memory/BufferView.test.d.ts +0 -1
- package/dist/esm/foundation/misc/Is.test.d.ts +0 -1
- package/dist/esm/foundation/misc/Option.test.d.ts +0 -1
- package/dist/esm/foundation/misc/Result.test.d.ts +0 -1
- package/dist/esm/foundation/misc/RnPromise.test.d.ts +0 -1
- package/dist/esm/foundation/renderer/RenderPass.test.d.ts +0 -1
- package/dist/esm/foundation/system/EventPubSub.test.d.ts +0 -1
- package/dist/esm/rhodonite-xr.d.ts +0 -8
- package/dist/esm/types/Option.d.ts +0 -68
- package/dist/esm/types/Option.test.d.ts +0 -1
- package/dist/esm/types/Result.d.ts +0 -32
- package/dist/esm/webgl/WebGLResourceRepository.test.d.ts +0 -1
|
@@ -1,84 +1,84 @@
|
|
|
1
|
-
import TransformComponent from '../components/TransformComponent';
|
|
2
|
-
import SceneGraphComponent from '../components/SceneGraphComponent';
|
|
3
|
-
import Component from './Component';
|
|
4
|
-
import RnObject from './RnObject';
|
|
5
|
-
import { ComponentTID, EntityUID } from '../../types/CommonTypes';
|
|
6
|
-
import SkeletalComponent from '../components/SkeletalComponent';
|
|
7
|
-
import MeshComponent from '../components/MeshComponent';
|
|
8
|
-
import MeshRendererComponent from '../components/MeshRendererComponent';
|
|
9
|
-
import CameraComponent from '../components/CameraComponent';
|
|
10
|
-
import BlendShapeComponent from '../components/BlendShapeComponent';
|
|
11
|
-
import PhysicsComponent from '../components/PhysicsComponent';
|
|
12
|
-
import CameraControllerComponent from '../components/CameraControllerComponent';
|
|
13
|
-
import LightComponent from '../components/LightComponent';
|
|
14
|
-
/**
|
|
15
|
-
* The Rhodonite Entity Class which are an entities that exists in space.
|
|
16
|
-
* Entities can acquire various functions by having components on themselves.
|
|
17
|
-
*/
|
|
18
|
-
export default class Entity extends RnObject {
|
|
19
|
-
private readonly __entity_uid;
|
|
20
|
-
static readonly invalidEntityUID = -1;
|
|
21
|
-
private __isAlive;
|
|
22
|
-
private static __instance;
|
|
23
|
-
private __components;
|
|
24
|
-
private __transformComponent?;
|
|
25
|
-
private __sceneGraphComponent?;
|
|
26
|
-
private __skeletalComponent?;
|
|
27
|
-
private __meshComponent?;
|
|
28
|
-
private __meshRendererComponent?;
|
|
29
|
-
private __cameraComponent?;
|
|
30
|
-
private __cameraControllerComponent?;
|
|
31
|
-
private __blendShapeComponent?;
|
|
32
|
-
private __physicsComponent?;
|
|
33
|
-
private __lightComponent?;
|
|
34
|
-
/**
|
|
35
|
-
* The constructor of the Entity class.
|
|
36
|
-
* When creating an Entity, use the createEntity method of the EntityRepository class
|
|
37
|
-
* instead of directly calling this constructor.
|
|
38
|
-
* @param entityUID The unique ID of the entity
|
|
39
|
-
* @param isAlive Whether this entity alive or not
|
|
40
|
-
* @param entityComponent The instance of EntityComponent (Dependency Injection)
|
|
41
|
-
*/
|
|
42
|
-
constructor(entityUID: EntityUID, isAlive: Boolean);
|
|
43
|
-
/**
|
|
44
|
-
* Get Unique ID of the entity.
|
|
45
|
-
*/
|
|
46
|
-
get entityUID(): number;
|
|
47
|
-
/**
|
|
48
|
-
* @private
|
|
49
|
-
* Sets a component to this entity.
|
|
50
|
-
* @param component The component to set.
|
|
51
|
-
*/
|
|
52
|
-
_setComponent(component: Component): void;
|
|
53
|
-
/**
|
|
54
|
-
* Get the component of the specified type that the entity has
|
|
55
|
-
* @param componentType
|
|
56
|
-
*/
|
|
57
|
-
getComponent(componentType: typeof Component): Component | null;
|
|
58
|
-
/**
|
|
59
|
-
* Gets the component corresponding to the ComponentTID.
|
|
60
|
-
* @param componentTID The ComponentTID to get the component.
|
|
61
|
-
*/
|
|
62
|
-
getComponentByComponentTID(componentTID: ComponentTID): Component | null;
|
|
63
|
-
/**
|
|
64
|
-
* Get the TransformComponent of the entity.
|
|
65
|
-
* It's a shortcut method of getComponent(TransformComponent).
|
|
66
|
-
*/
|
|
67
|
-
getTransform(): TransformComponent;
|
|
68
|
-
/**
|
|
69
|
-
* Get the SceneGraphComponent of the entity.
|
|
70
|
-
* It's a shortcut method of getComponent(SceneGraphComponent).
|
|
71
|
-
*/
|
|
72
|
-
getSceneGraph(): SceneGraphComponent;
|
|
73
|
-
getSkeletal(): SkeletalComponent;
|
|
74
|
-
getMesh(): MeshComponent;
|
|
75
|
-
getMeshRenderer(): MeshRendererComponent;
|
|
76
|
-
getCamera(): CameraComponent;
|
|
77
|
-
getCameraController(): CameraControllerComponent;
|
|
78
|
-
getBlendShape(): BlendShapeComponent;
|
|
79
|
-
getPhysics(): PhysicsComponent;
|
|
80
|
-
getLight(): LightComponent;
|
|
81
|
-
get worldMatrixInner(): import("../math/MutableMatrix44").default | undefined;
|
|
82
|
-
get worldMatrix(): import("../math/MutableMatrix44").default | undefined;
|
|
83
|
-
getChildByName(name: string): Entity | undefined;
|
|
84
|
-
}
|
|
1
|
+
import TransformComponent from '../components/TransformComponent';
|
|
2
|
+
import SceneGraphComponent from '../components/SceneGraphComponent';
|
|
3
|
+
import Component from './Component';
|
|
4
|
+
import RnObject from './RnObject';
|
|
5
|
+
import { ComponentTID, EntityUID } from '../../types/CommonTypes';
|
|
6
|
+
import SkeletalComponent from '../components/SkeletalComponent';
|
|
7
|
+
import MeshComponent from '../components/MeshComponent';
|
|
8
|
+
import MeshRendererComponent from '../components/MeshRendererComponent';
|
|
9
|
+
import CameraComponent from '../components/CameraComponent';
|
|
10
|
+
import BlendShapeComponent from '../components/BlendShapeComponent';
|
|
11
|
+
import PhysicsComponent from '../components/PhysicsComponent';
|
|
12
|
+
import CameraControllerComponent from '../components/CameraControllerComponent';
|
|
13
|
+
import LightComponent from '../components/LightComponent';
|
|
14
|
+
/**
|
|
15
|
+
* The Rhodonite Entity Class which are an entities that exists in space.
|
|
16
|
+
* Entities can acquire various functions by having components on themselves.
|
|
17
|
+
*/
|
|
18
|
+
export default class Entity extends RnObject {
|
|
19
|
+
private readonly __entity_uid;
|
|
20
|
+
static readonly invalidEntityUID = -1;
|
|
21
|
+
private __isAlive;
|
|
22
|
+
private static __instance;
|
|
23
|
+
private __components;
|
|
24
|
+
private __transformComponent?;
|
|
25
|
+
private __sceneGraphComponent?;
|
|
26
|
+
private __skeletalComponent?;
|
|
27
|
+
private __meshComponent?;
|
|
28
|
+
private __meshRendererComponent?;
|
|
29
|
+
private __cameraComponent?;
|
|
30
|
+
private __cameraControllerComponent?;
|
|
31
|
+
private __blendShapeComponent?;
|
|
32
|
+
private __physicsComponent?;
|
|
33
|
+
private __lightComponent?;
|
|
34
|
+
/**
|
|
35
|
+
* The constructor of the Entity class.
|
|
36
|
+
* When creating an Entity, use the createEntity method of the EntityRepository class
|
|
37
|
+
* instead of directly calling this constructor.
|
|
38
|
+
* @param entityUID The unique ID of the entity
|
|
39
|
+
* @param isAlive Whether this entity alive or not
|
|
40
|
+
* @param entityComponent The instance of EntityComponent (Dependency Injection)
|
|
41
|
+
*/
|
|
42
|
+
constructor(entityUID: EntityUID, isAlive: Boolean);
|
|
43
|
+
/**
|
|
44
|
+
* Get Unique ID of the entity.
|
|
45
|
+
*/
|
|
46
|
+
get entityUID(): number;
|
|
47
|
+
/**
|
|
48
|
+
* @private
|
|
49
|
+
* Sets a component to this entity.
|
|
50
|
+
* @param component The component to set.
|
|
51
|
+
*/
|
|
52
|
+
_setComponent(component: Component): void;
|
|
53
|
+
/**
|
|
54
|
+
* Get the component of the specified type that the entity has
|
|
55
|
+
* @param componentType
|
|
56
|
+
*/
|
|
57
|
+
getComponent(componentType: typeof Component): Component | null;
|
|
58
|
+
/**
|
|
59
|
+
* Gets the component corresponding to the ComponentTID.
|
|
60
|
+
* @param componentTID The ComponentTID to get the component.
|
|
61
|
+
*/
|
|
62
|
+
getComponentByComponentTID(componentTID: ComponentTID): Component | null;
|
|
63
|
+
/**
|
|
64
|
+
* Get the TransformComponent of the entity.
|
|
65
|
+
* It's a shortcut method of getComponent(TransformComponent).
|
|
66
|
+
*/
|
|
67
|
+
getTransform(): TransformComponent;
|
|
68
|
+
/**
|
|
69
|
+
* Get the SceneGraphComponent of the entity.
|
|
70
|
+
* It's a shortcut method of getComponent(SceneGraphComponent).
|
|
71
|
+
*/
|
|
72
|
+
getSceneGraph(): SceneGraphComponent;
|
|
73
|
+
getSkeletal(): SkeletalComponent;
|
|
74
|
+
getMesh(): MeshComponent;
|
|
75
|
+
getMeshRenderer(): MeshRendererComponent;
|
|
76
|
+
getCamera(): CameraComponent;
|
|
77
|
+
getCameraController(): CameraControllerComponent;
|
|
78
|
+
getBlendShape(): BlendShapeComponent;
|
|
79
|
+
getPhysics(): PhysicsComponent;
|
|
80
|
+
getLight(): LightComponent;
|
|
81
|
+
get worldMatrixInner(): import("../math/MutableMatrix44").default | undefined;
|
|
82
|
+
get worldMatrix(): import("../math/MutableMatrix44").default | undefined;
|
|
83
|
+
getChildByName(name: string): Entity | undefined;
|
|
84
|
+
}
|
|
@@ -1,62 +1,62 @@
|
|
|
1
|
-
import Entity from './Entity';
|
|
2
|
-
import Component from './Component';
|
|
3
|
-
import { RnTags, EntityUID, ComponentTID } from '../../types/CommonTypes';
|
|
4
|
-
/**
|
|
5
|
-
* The class that generates and manages entities.
|
|
6
|
-
*/
|
|
7
|
-
export default class EntityRepository {
|
|
8
|
-
private __entity_uid_count;
|
|
9
|
-
private __entities;
|
|
10
|
-
private static __instance;
|
|
11
|
-
private __componentRepository;
|
|
12
|
-
_components: Array<Map<ComponentTID, Component>>;
|
|
13
|
-
private constructor();
|
|
14
|
-
static getInstance(): EntityRepository;
|
|
15
|
-
/**
|
|
16
|
-
* Creates an entity which has the given types of the components
|
|
17
|
-
* @param componentClasses The class objects of the components.
|
|
18
|
-
*/
|
|
19
|
-
createEntity(componentClasses: Array<typeof Component>): Entity;
|
|
20
|
-
/**
|
|
21
|
-
* Add components to the entity.
|
|
22
|
-
* @param componentClasses The class objects to set to the entity.
|
|
23
|
-
* @param entityUid The entityUID of the entity.
|
|
24
|
-
*/
|
|
25
|
-
addComponentsToEntity(componentClasses: Array<typeof Component>, entityUid: EntityUID): Entity;
|
|
26
|
-
/**
|
|
27
|
-
* Remove components from the entity.
|
|
28
|
-
* @param componentClasses The class object of the components to remove.
|
|
29
|
-
* @param entityUid The entityUID of the entity.
|
|
30
|
-
*/
|
|
31
|
-
removeComponentsFromEntity(componentClasses: Array<typeof Component>, entityUid: EntityUID): Entity;
|
|
32
|
-
/**
|
|
33
|
-
* Gets the entity corresponding to the entityUID.
|
|
34
|
-
* @param entityUid The entityUID of the entity.
|
|
35
|
-
*/
|
|
36
|
-
getEntity(entityUid: EntityUID): Entity;
|
|
37
|
-
/**
|
|
38
|
-
* Gets the specified component from the entity.
|
|
39
|
-
* @param entityUid The entity to get the component from.
|
|
40
|
-
* @param componentType The class object of the component to get.
|
|
41
|
-
*/
|
|
42
|
-
getComponentOfEntity(entityUid: EntityUID, componentType: typeof Component): Component | null;
|
|
43
|
-
/**
|
|
44
|
-
* Search entities by the given tags.
|
|
45
|
-
* @param tags The tags to search
|
|
46
|
-
*/
|
|
47
|
-
searchByTags(tags: RnTags): Entity[];
|
|
48
|
-
/**
|
|
49
|
-
* Gets entity by the unique name.
|
|
50
|
-
* @param uniqueName The unique name of the entity.
|
|
51
|
-
*/
|
|
52
|
-
getEntityByUniqueName(uniqueName: string): Entity | undefined;
|
|
53
|
-
/**
|
|
54
|
-
* @private
|
|
55
|
-
* Gets all entities.
|
|
56
|
-
*/
|
|
57
|
-
_getEntities(): Entity[];
|
|
58
|
-
/**
|
|
59
|
-
* Gets the number of all entities.
|
|
60
|
-
*/
|
|
61
|
-
getEntitiesNumber(): number;
|
|
62
|
-
}
|
|
1
|
+
import Entity from './Entity';
|
|
2
|
+
import Component from './Component';
|
|
3
|
+
import { RnTags, EntityUID, ComponentTID } from '../../types/CommonTypes';
|
|
4
|
+
/**
|
|
5
|
+
* The class that generates and manages entities.
|
|
6
|
+
*/
|
|
7
|
+
export default class EntityRepository {
|
|
8
|
+
private __entity_uid_count;
|
|
9
|
+
private __entities;
|
|
10
|
+
private static __instance;
|
|
11
|
+
private __componentRepository;
|
|
12
|
+
_components: Array<Map<ComponentTID, Component>>;
|
|
13
|
+
private constructor();
|
|
14
|
+
static getInstance(): EntityRepository;
|
|
15
|
+
/**
|
|
16
|
+
* Creates an entity which has the given types of the components
|
|
17
|
+
* @param componentClasses The class objects of the components.
|
|
18
|
+
*/
|
|
19
|
+
createEntity(componentClasses: Array<typeof Component>): Entity;
|
|
20
|
+
/**
|
|
21
|
+
* Add components to the entity.
|
|
22
|
+
* @param componentClasses The class objects to set to the entity.
|
|
23
|
+
* @param entityUid The entityUID of the entity.
|
|
24
|
+
*/
|
|
25
|
+
addComponentsToEntity(componentClasses: Array<typeof Component>, entityUid: EntityUID): Entity;
|
|
26
|
+
/**
|
|
27
|
+
* Remove components from the entity.
|
|
28
|
+
* @param componentClasses The class object of the components to remove.
|
|
29
|
+
* @param entityUid The entityUID of the entity.
|
|
30
|
+
*/
|
|
31
|
+
removeComponentsFromEntity(componentClasses: Array<typeof Component>, entityUid: EntityUID): Entity;
|
|
32
|
+
/**
|
|
33
|
+
* Gets the entity corresponding to the entityUID.
|
|
34
|
+
* @param entityUid The entityUID of the entity.
|
|
35
|
+
*/
|
|
36
|
+
getEntity(entityUid: EntityUID): Entity;
|
|
37
|
+
/**
|
|
38
|
+
* Gets the specified component from the entity.
|
|
39
|
+
* @param entityUid The entity to get the component from.
|
|
40
|
+
* @param componentType The class object of the component to get.
|
|
41
|
+
*/
|
|
42
|
+
getComponentOfEntity(entityUid: EntityUID, componentType: typeof Component): Component | null;
|
|
43
|
+
/**
|
|
44
|
+
* Search entities by the given tags.
|
|
45
|
+
* @param tags The tags to search
|
|
46
|
+
*/
|
|
47
|
+
searchByTags(tags: RnTags): Entity[];
|
|
48
|
+
/**
|
|
49
|
+
* Gets entity by the unique name.
|
|
50
|
+
* @param uniqueName The unique name of the entity.
|
|
51
|
+
*/
|
|
52
|
+
getEntityByUniqueName(uniqueName: string): Entity | undefined;
|
|
53
|
+
/**
|
|
54
|
+
* @private
|
|
55
|
+
* Gets all entities.
|
|
56
|
+
*/
|
|
57
|
+
_getEntities(): Entity[];
|
|
58
|
+
/**
|
|
59
|
+
* Gets the number of all entities.
|
|
60
|
+
*/
|
|
61
|
+
getEntitiesNumber(): number;
|
|
62
|
+
}
|
|
@@ -1,31 +1,32 @@
|
|
|
1
|
-
import { ShaderSemanticsInfo, ShaderSemanticsEnum, getShaderPropertyFunc } from '../definitions/ShaderSemantics';
|
|
2
|
-
import { Count, Index, CGAPIResourceHandle, IndexOf16Bytes } from '../../types/CommonTypes';
|
|
3
|
-
import Accessor from '../memory/Accessor';
|
|
4
|
-
import { ProcessApproachEnum } from '
|
|
5
|
-
declare type GlobalPropertyStruct = {
|
|
6
|
-
shaderSemanticsInfo: ShaderSemanticsInfo;
|
|
7
|
-
values: any[];
|
|
8
|
-
maxCount: Count;
|
|
9
|
-
accessor: Accessor;
|
|
10
|
-
};
|
|
11
|
-
/**
|
|
12
|
-
* The class which manages global data.
|
|
13
|
-
*/
|
|
14
|
-
export default class GlobalDataRepository {
|
|
15
|
-
private static __instance;
|
|
16
|
-
private __fields;
|
|
17
|
-
private constructor();
|
|
18
|
-
initialize(approach: ProcessApproachEnum): void;
|
|
19
|
-
static getInstance(): GlobalDataRepository;
|
|
20
|
-
registerProperty(semanticInfo: ShaderSemanticsInfo, maxCount: Count): void;
|
|
21
|
-
takeOne(shaderSemantic: ShaderSemanticsEnum, arrayIndex?: Index): any;
|
|
22
|
-
setValue(shaderSemantic: ShaderSemanticsEnum, countIndex: Index, value: any, arrayIndex?: Index): void;
|
|
23
|
-
getValue(shaderSemantic: ShaderSemanticsEnum, countIndex: Index, arrayIndex?: Index): any;
|
|
24
|
-
getGlobalPropertyStruct(propertyIndex: Index): GlobalPropertyStruct | undefined;
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
1
|
+
import { ShaderSemanticsInfo, ShaderSemanticsEnum, getShaderPropertyFunc } from '../definitions/ShaderSemantics';
|
|
2
|
+
import { Count, Index, CGAPIResourceHandle, IndexOf16Bytes } from '../../types/CommonTypes';
|
|
3
|
+
import Accessor from '../memory/Accessor';
|
|
4
|
+
import { ProcessApproachEnum } from '../../foundation/definitions/ProcessApproach';
|
|
5
|
+
declare type GlobalPropertyStruct = {
|
|
6
|
+
shaderSemanticsInfo: ShaderSemanticsInfo;
|
|
7
|
+
values: any[];
|
|
8
|
+
maxCount: Count;
|
|
9
|
+
accessor: Accessor;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* The class which manages global data.
|
|
13
|
+
*/
|
|
14
|
+
export default class GlobalDataRepository {
|
|
15
|
+
private static __instance;
|
|
16
|
+
private __fields;
|
|
17
|
+
private constructor();
|
|
18
|
+
initialize(approach: ProcessApproachEnum): void;
|
|
19
|
+
static getInstance(): GlobalDataRepository;
|
|
20
|
+
registerProperty(semanticInfo: ShaderSemanticsInfo, maxCount: Count): void;
|
|
21
|
+
takeOne(shaderSemantic: ShaderSemanticsEnum, arrayIndex?: Index): any;
|
|
22
|
+
setValue(shaderSemantic: ShaderSemanticsEnum, countIndex: Index, value: any, arrayIndex?: Index): void;
|
|
23
|
+
getValue(shaderSemantic: ShaderSemanticsEnum, countIndex: Index, arrayIndex?: Index): any;
|
|
24
|
+
getGlobalPropertyStruct(propertyIndex: Index): GlobalPropertyStruct | undefined;
|
|
25
|
+
getGlobalProperties(): GlobalPropertyStruct[];
|
|
26
|
+
setUniformLocationsForUniformModeOnly(shaderProgramUid: CGAPIResourceHandle): void;
|
|
27
|
+
setUniformValues(shaderProgram: WebGLProgram): void;
|
|
28
|
+
getLocationOffsetOfProperty(propertyIndex: Index): IndexOf16Bytes;
|
|
29
|
+
getCurrentDataNumberOfTheProperty(propertyIndex: Index): number;
|
|
30
|
+
addPropertiesStr(vertexPropertiesStr: string, pixelPropertiesStr: string, propertySetter: getShaderPropertyFunc, isWebGL2: boolean): string[];
|
|
31
|
+
}
|
|
32
|
+
export {};
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import Buffer from '../memory/Buffer';
|
|
2
|
-
import { BufferUseEnum } from '../definitions/BufferUse';
|
|
3
|
-
import { Size, Byte } from '../../types/CommonTypes';
|
|
4
|
-
import RnObject from './RnObject';
|
|
5
|
-
/**
|
|
6
|
-
* Usage
|
|
7
|
-
* const mm = MemoryManager.getInstance();
|
|
8
|
-
* this.translate = new Vector3(
|
|
9
|
-
* mm.assignMem(componentUID, propertyId, entityUID, isRendered)
|
|
10
|
-
* );
|
|
11
|
-
*/
|
|
12
|
-
export default class MemoryManager {
|
|
13
|
-
private static __instance;
|
|
14
|
-
private __buffers;
|
|
15
|
-
private __buffersOnDemand;
|
|
16
|
-
private __memorySizeRatios;
|
|
17
|
-
private constructor();
|
|
18
|
-
static createInstanceIfNotCreated(cpuGeneric: number, gpuInstanceData: number, gpuVertexData: number): MemoryManager;
|
|
19
|
-
private __makeMultipleOf4byteSize;
|
|
20
|
-
static getInstance(): MemoryManager;
|
|
21
|
-
private __createBuffer;
|
|
22
|
-
getBuffer(bufferUse: BufferUseEnum): Buffer | undefined;
|
|
23
|
-
createOrGetBuffer(bufferUse: BufferUseEnum): Buffer;
|
|
24
|
-
createBufferOnDemand(size: Byte, object: RnObject, byteAlign: Byte): Buffer;
|
|
25
|
-
getBufferOnDemand(object: RnObject): Buffer | undefined;
|
|
26
|
-
static get bufferWidthLength(): Size;
|
|
27
|
-
static get bufferHeightLength(): Size;
|
|
28
|
-
printMemoryUsage(): void;
|
|
29
|
-
}
|
|
1
|
+
import Buffer from '../memory/Buffer';
|
|
2
|
+
import { BufferUseEnum } from '../definitions/BufferUse';
|
|
3
|
+
import { Size, Byte } from '../../types/CommonTypes';
|
|
4
|
+
import RnObject from './RnObject';
|
|
5
|
+
/**
|
|
6
|
+
* Usage
|
|
7
|
+
* const mm = MemoryManager.getInstance();
|
|
8
|
+
* this.translate = new Vector3(
|
|
9
|
+
* mm.assignMem(componentUID, propertyId, entityUID, isRendered)
|
|
10
|
+
* );
|
|
11
|
+
*/
|
|
12
|
+
export default class MemoryManager {
|
|
13
|
+
private static __instance;
|
|
14
|
+
private __buffers;
|
|
15
|
+
private __buffersOnDemand;
|
|
16
|
+
private __memorySizeRatios;
|
|
17
|
+
private constructor();
|
|
18
|
+
static createInstanceIfNotCreated(cpuGeneric: number, gpuInstanceData: number, gpuVertexData: number): MemoryManager;
|
|
19
|
+
private __makeMultipleOf4byteSize;
|
|
20
|
+
static getInstance(): MemoryManager;
|
|
21
|
+
private __createBuffer;
|
|
22
|
+
getBuffer(bufferUse: BufferUseEnum): Buffer | undefined;
|
|
23
|
+
createOrGetBuffer(bufferUse: BufferUseEnum): Buffer;
|
|
24
|
+
createBufferOnDemand(size: Byte, object: RnObject, byteAlign: Byte): Buffer;
|
|
25
|
+
getBufferOnDemand(object: RnObject): Buffer | undefined;
|
|
26
|
+
static get bufferWidthLength(): Size;
|
|
27
|
+
static get bufferHeightLength(): Size;
|
|
28
|
+
printMemoryUsage(): void;
|
|
29
|
+
}
|
|
@@ -1,96 +1,96 @@
|
|
|
1
|
-
import { RnTags, ObjectUID } from '../../types/CommonTypes';
|
|
2
|
-
export declare type Tag = {
|
|
3
|
-
tag: string;
|
|
4
|
-
value: any;
|
|
5
|
-
};
|
|
6
|
-
/**
|
|
7
|
-
* The root class of the objects in Rhodonite
|
|
8
|
-
*/
|
|
9
|
-
export default class RnObject {
|
|
10
|
-
static readonly InvalidObjectUID = -1;
|
|
11
|
-
static currentMaxObjectCount: number;
|
|
12
|
-
private static __uniqueNames;
|
|
13
|
-
private static __objectsByNameMap;
|
|
14
|
-
private static __objects;
|
|
15
|
-
private readonly __objectUid;
|
|
16
|
-
private __uniqueName;
|
|
17
|
-
private __tags;
|
|
18
|
-
private __combinedTagString;
|
|
19
|
-
constructor();
|
|
20
|
-
static searchByTag(tag: string, value: string): RnObject | undefined;
|
|
21
|
-
/**
|
|
22
|
-
* Gets the objectUID of the object.
|
|
23
|
-
*/
|
|
24
|
-
get objectUID(): ObjectUID;
|
|
25
|
-
/**
|
|
26
|
-
* Gets the object by corresponding to the objectUID.
|
|
27
|
-
* @param objectUid The objectUID of the object.
|
|
28
|
-
*/
|
|
29
|
-
static getRnObject(objectUid: ObjectUID): RnObject;
|
|
30
|
-
/**
|
|
31
|
-
* Gets the object by the unique name.
|
|
32
|
-
* @param uniqueName The unique name of the object.
|
|
33
|
-
*/
|
|
34
|
-
static getRnObjectByName(uniqueName: string): RnObject | undefined;
|
|
35
|
-
/**
|
|
36
|
-
* Try to set a unique name of the entity.
|
|
37
|
-
* @param name
|
|
38
|
-
* @param toAddNameIfConflict If true, force to add name string to the current unique name string. If false, give up to change name.
|
|
39
|
-
*/
|
|
40
|
-
tryToSetUniqueName(name: string, toAddNameIfConflict: boolean): boolean;
|
|
41
|
-
/**
|
|
42
|
-
* Validate the string of tags.
|
|
43
|
-
* @param val The string to be validated
|
|
44
|
-
*/
|
|
45
|
-
validateTagString(val: string): boolean;
|
|
46
|
-
/**
|
|
47
|
-
* Tries to set tag (name and value).
|
|
48
|
-
* @param tagName The tag name.
|
|
49
|
-
* @param tagValue Tha value of the tag.
|
|
50
|
-
*/
|
|
51
|
-
tryToSetTag(tag: Tag): boolean;
|
|
52
|
-
/**
|
|
53
|
-
* Gets the value of the tag.
|
|
54
|
-
* @param tagName The tag name.
|
|
55
|
-
*/
|
|
56
|
-
getTagValue(tagName: string): any;
|
|
57
|
-
/**
|
|
58
|
-
* Gets the tag object.
|
|
59
|
-
* @param tagName The tag name.
|
|
60
|
-
*/
|
|
61
|
-
getTag(tagName: string): Tag;
|
|
62
|
-
/**
|
|
63
|
-
* Gets the boolean value whether this object has the tag or not.
|
|
64
|
-
* @param tagName The tag name.
|
|
65
|
-
*/
|
|
66
|
-
hasTag(tagName: string): boolean;
|
|
67
|
-
/**
|
|
68
|
-
* Remove the tag.
|
|
69
|
-
* @param tagName The tag name.
|
|
70
|
-
*/
|
|
71
|
-
removeTag(tagName: string): void;
|
|
72
|
-
/**
|
|
73
|
-
* Confirms the matching of the tag name and tag value.
|
|
74
|
-
* @param tagName The tag name.
|
|
75
|
-
* @param tagValue The tag value.
|
|
76
|
-
*/
|
|
77
|
-
matchTag(tagName: string, tagValue: string): boolean;
|
|
78
|
-
/**
|
|
79
|
-
* Confirm that this object's tags includes given an array of string.
|
|
80
|
-
* @param stringArray an array of string.
|
|
81
|
-
*/
|
|
82
|
-
matchTagsAsFreeStrings(stringArray: string[]): boolean;
|
|
83
|
-
/**
|
|
84
|
-
* Confirm that this object's tags includes given set of tags.
|
|
85
|
-
* @param tags The set of tags.
|
|
86
|
-
*/
|
|
87
|
-
matchTags(tags: RnTags): boolean;
|
|
88
|
-
/**
|
|
89
|
-
* Get the unique name of the entity.
|
|
90
|
-
*/
|
|
91
|
-
get uniqueName(): string;
|
|
92
|
-
/**
|
|
93
|
-
* @private
|
|
94
|
-
*/
|
|
95
|
-
static _reset(): void;
|
|
96
|
-
}
|
|
1
|
+
import { RnTags, ObjectUID } from '../../types/CommonTypes';
|
|
2
|
+
export declare type Tag = {
|
|
3
|
+
tag: string;
|
|
4
|
+
value: any;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* The root class of the objects in Rhodonite
|
|
8
|
+
*/
|
|
9
|
+
export default class RnObject {
|
|
10
|
+
static readonly InvalidObjectUID = -1;
|
|
11
|
+
static currentMaxObjectCount: number;
|
|
12
|
+
private static __uniqueNames;
|
|
13
|
+
private static __objectsByNameMap;
|
|
14
|
+
private static __objects;
|
|
15
|
+
private readonly __objectUid;
|
|
16
|
+
private __uniqueName;
|
|
17
|
+
private __tags;
|
|
18
|
+
private __combinedTagString;
|
|
19
|
+
constructor();
|
|
20
|
+
static searchByTag(tag: string, value: string): RnObject | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* Gets the objectUID of the object.
|
|
23
|
+
*/
|
|
24
|
+
get objectUID(): ObjectUID;
|
|
25
|
+
/**
|
|
26
|
+
* Gets the object by corresponding to the objectUID.
|
|
27
|
+
* @param objectUid The objectUID of the object.
|
|
28
|
+
*/
|
|
29
|
+
static getRnObject(objectUid: ObjectUID): RnObject;
|
|
30
|
+
/**
|
|
31
|
+
* Gets the object by the unique name.
|
|
32
|
+
* @param uniqueName The unique name of the object.
|
|
33
|
+
*/
|
|
34
|
+
static getRnObjectByName(uniqueName: string): RnObject | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* Try to set a unique name of the entity.
|
|
37
|
+
* @param name
|
|
38
|
+
* @param toAddNameIfConflict If true, force to add name string to the current unique name string. If false, give up to change name.
|
|
39
|
+
*/
|
|
40
|
+
tryToSetUniqueName(name: string, toAddNameIfConflict: boolean): boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Validate the string of tags.
|
|
43
|
+
* @param val The string to be validated
|
|
44
|
+
*/
|
|
45
|
+
validateTagString(val: string): boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Tries to set tag (name and value).
|
|
48
|
+
* @param tagName The tag name.
|
|
49
|
+
* @param tagValue Tha value of the tag.
|
|
50
|
+
*/
|
|
51
|
+
tryToSetTag(tag: Tag): boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Gets the value of the tag.
|
|
54
|
+
* @param tagName The tag name.
|
|
55
|
+
*/
|
|
56
|
+
getTagValue(tagName: string): any;
|
|
57
|
+
/**
|
|
58
|
+
* Gets the tag object.
|
|
59
|
+
* @param tagName The tag name.
|
|
60
|
+
*/
|
|
61
|
+
getTag(tagName: string): Tag;
|
|
62
|
+
/**
|
|
63
|
+
* Gets the boolean value whether this object has the tag or not.
|
|
64
|
+
* @param tagName The tag name.
|
|
65
|
+
*/
|
|
66
|
+
hasTag(tagName: string): boolean;
|
|
67
|
+
/**
|
|
68
|
+
* Remove the tag.
|
|
69
|
+
* @param tagName The tag name.
|
|
70
|
+
*/
|
|
71
|
+
removeTag(tagName: string): void;
|
|
72
|
+
/**
|
|
73
|
+
* Confirms the matching of the tag name and tag value.
|
|
74
|
+
* @param tagName The tag name.
|
|
75
|
+
* @param tagValue The tag value.
|
|
76
|
+
*/
|
|
77
|
+
matchTag(tagName: string, tagValue: string): boolean;
|
|
78
|
+
/**
|
|
79
|
+
* Confirm that this object's tags includes given an array of string.
|
|
80
|
+
* @param stringArray an array of string.
|
|
81
|
+
*/
|
|
82
|
+
matchTagsAsFreeStrings(stringArray: string[]): boolean;
|
|
83
|
+
/**
|
|
84
|
+
* Confirm that this object's tags includes given set of tags.
|
|
85
|
+
* @param tags The set of tags.
|
|
86
|
+
*/
|
|
87
|
+
matchTags(tags: RnTags): boolean;
|
|
88
|
+
/**
|
|
89
|
+
* Get the unique name of the entity.
|
|
90
|
+
*/
|
|
91
|
+
get uniqueName(): string;
|
|
92
|
+
/**
|
|
93
|
+
* @private
|
|
94
|
+
*/
|
|
95
|
+
static _reset(): void;
|
|
96
|
+
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { EnumIO } from '../misc/EnumIO';
|
|
2
|
-
export declare type AlphaModeEnum = EnumIO;
|
|
3
|
-
declare function from(index: number): AlphaModeEnum | undefined;
|
|
4
|
-
declare function fromString(str: string): AlphaModeEnum | undefined;
|
|
5
|
-
declare function fromGlTFString(str: string): AlphaModeEnum | undefined;
|
|
6
|
-
export declare const AlphaMode: Readonly<{
|
|
7
|
-
Opaque: EnumIO;
|
|
8
|
-
Mask: EnumIO;
|
|
9
|
-
Translucent: EnumIO;
|
|
10
|
-
Additive: EnumIO;
|
|
11
|
-
from: typeof from;
|
|
12
|
-
fromString: typeof fromString;
|
|
13
|
-
fromGlTFString: typeof fromGlTFString;
|
|
14
|
-
}>;
|
|
15
|
-
export {};
|
|
1
|
+
import { EnumIO } from '../misc/EnumIO';
|
|
2
|
+
export declare type AlphaModeEnum = EnumIO;
|
|
3
|
+
declare function from(index: number): AlphaModeEnum | undefined;
|
|
4
|
+
declare function fromString(str: string): AlphaModeEnum | undefined;
|
|
5
|
+
declare function fromGlTFString(str: string): AlphaModeEnum | undefined;
|
|
6
|
+
export declare const AlphaMode: Readonly<{
|
|
7
|
+
Opaque: EnumIO;
|
|
8
|
+
Mask: EnumIO;
|
|
9
|
+
Translucent: EnumIO;
|
|
10
|
+
Additive: EnumIO;
|
|
11
|
+
from: typeof from;
|
|
12
|
+
fromString: typeof fromString;
|
|
13
|
+
fromGlTFString: typeof fromGlTFString;
|
|
14
|
+
}>;
|
|
15
|
+
export {};
|