neos-script
Version:
[neos-script-sample](https://github.com/rheniumNV/neos-script-sample)
23 lines (22 loc) • 8.27 kB
JavaScript
;
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.SkinnedMeshRenderer = void 0;
var jsx_runtime_1 = require("neos-script/jsx-runtime");
var core_1 = require("../../core");
function SkinnedMeshRenderer(props) {
var id = props.id, persistentId = props.persistentId, updateOrder = props.updateOrder, Enabled = props.Enabled, Mesh = props.Mesh, Materials = props.Materials, MaterialPropertyBlocks = props.MaterialPropertyBlocks, ShadowCastMode = props.ShadowCastMode, MotionVectorMode = props.MotionVectorMode, SortingOrder = props.SortingOrder, BoundsComputeMethod = props.BoundsComputeMethod, ProxyBoundsSource = props.ProxyBoundsSource, ExplicitLocalBounds = props.ExplicitLocalBounds, Bones = props.Bones, BlendShapeWeights = props.BlendShapeWeights;
return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "FrooxEngine.SkinnedMeshRenderer", id: id, persistentId: persistentId, updateOrder: updateOrder }, { children: [(0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "Enabled", id: typeof Enabled === "object" && "id" in Enabled ? Enabled === null || Enabled === void 0 ? void 0 : Enabled.id : undefined, value: typeof Enabled === "object" && "value" in Enabled ? Enabled === null || Enabled === void 0 ? void 0 : Enabled.value : Enabled !== null && Enabled !== void 0 ? Enabled : true, isRaw: typeof Enabled === "object" && "isRaw" in Enabled && Enabled.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.AssetRef`1[FrooxEngine.Mesh]", name: "Mesh", id: typeof Mesh === "object" && "id" in Mesh ? Mesh === null || Mesh === void 0 ? void 0 : Mesh.id : undefined, value: typeof Mesh === "object" && "value" in Mesh ? Mesh === null || Mesh === void 0 ? void 0 : Mesh.value : Mesh, isRaw: typeof Mesh === "object" && "isRaw" in Mesh && Mesh.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncAssetList`1[FrooxEngine.Material]", name: "Materials", id: typeof Materials === "object" && "id" in Materials ? Materials === null || Materials === void 0 ? void 0 : Materials.id : undefined, value: typeof Materials === "object" && "value" in Materials ? Materials === null || Materials === void 0 ? void 0 : Materials.value : Materials, isRaw: typeof Materials === "object" && "isRaw" in Materials && Materials.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncAssetList`1[FrooxEngine.MaterialPropertyBlock]", name: "MaterialPropertyBlocks", id: typeof MaterialPropertyBlocks === "object" && "id" in MaterialPropertyBlocks ? MaterialPropertyBlocks === null || MaterialPropertyBlocks === void 0 ? void 0 : MaterialPropertyBlocks.id : undefined, value: typeof MaterialPropertyBlocks === "object" && "value" in MaterialPropertyBlocks ? MaterialPropertyBlocks === null || MaterialPropertyBlocks === void 0 ? void 0 : MaterialPropertyBlocks.value : MaterialPropertyBlocks, isRaw: typeof MaterialPropertyBlocks === "object" && "isRaw" in MaterialPropertyBlocks && MaterialPropertyBlocks.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[FrooxEngine.ShadowCastMode]", name: "ShadowCastMode", id: typeof ShadowCastMode === "object" && "id" in ShadowCastMode ? ShadowCastMode === null || ShadowCastMode === void 0 ? void 0 : ShadowCastMode.id : undefined, value: typeof ShadowCastMode === "object" && "value" in ShadowCastMode ? ShadowCastMode === null || ShadowCastMode === void 0 ? void 0 : ShadowCastMode.value : ShadowCastMode, isRaw: typeof ShadowCastMode === "object" && "isRaw" in ShadowCastMode && ShadowCastMode.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[FrooxEngine.MotionVectorMode]", name: "MotionVectorMode", id: typeof MotionVectorMode === "object" && "id" in MotionVectorMode ? MotionVectorMode === null || MotionVectorMode === void 0 ? void 0 : MotionVectorMode.id : undefined, value: typeof MotionVectorMode === "object" && "value" in MotionVectorMode ? MotionVectorMode === null || MotionVectorMode === void 0 ? void 0 : MotionVectorMode.value : MotionVectorMode, isRaw: typeof MotionVectorMode === "object" && "isRaw" in MotionVectorMode && MotionVectorMode.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Int32]", name: "SortingOrder", id: typeof SortingOrder === "object" && "id" in SortingOrder ? SortingOrder === null || SortingOrder === void 0 ? void 0 : SortingOrder.id : undefined, value: typeof SortingOrder === "object" && "value" in SortingOrder ? SortingOrder === null || SortingOrder === void 0 ? void 0 : SortingOrder.value : SortingOrder, isRaw: typeof SortingOrder === "object" && "isRaw" in SortingOrder && SortingOrder.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[FrooxEngine.SkinnedBounds]", name: "BoundsComputeMethod", id: typeof BoundsComputeMethod === "object" && "id" in BoundsComputeMethod ? BoundsComputeMethod === null || BoundsComputeMethod === void 0 ? void 0 : BoundsComputeMethod.id : undefined, value: typeof BoundsComputeMethod === "object" && "value" in BoundsComputeMethod ? BoundsComputeMethod === null || BoundsComputeMethod === void 0 ? void 0 : BoundsComputeMethod.value : BoundsComputeMethod, isRaw: typeof BoundsComputeMethod === "object" && "isRaw" in BoundsComputeMethod && BoundsComputeMethod.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.SkinnedMeshRenderer]", name: "ProxyBoundsSource", id: typeof ProxyBoundsSource === "object" && "id" in ProxyBoundsSource ? ProxyBoundsSource === null || ProxyBoundsSource === void 0 ? void 0 : ProxyBoundsSource.id : undefined, value: typeof ProxyBoundsSource === "object" && "value" in ProxyBoundsSource ? ProxyBoundsSource === null || ProxyBoundsSource === void 0 ? void 0 : ProxyBoundsSource.value : ProxyBoundsSource, isRaw: typeof ProxyBoundsSource === "object" && "isRaw" in ProxyBoundsSource && ProxyBoundsSource.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.BoundingBox]", name: "ExplicitLocalBounds", id: typeof ExplicitLocalBounds === "object" && "id" in ExplicitLocalBounds ? ExplicitLocalBounds === null || ExplicitLocalBounds === void 0 ? void 0 : ExplicitLocalBounds.id : undefined, value: typeof ExplicitLocalBounds === "object" && "value" in ExplicitLocalBounds ? ExplicitLocalBounds === null || ExplicitLocalBounds === void 0 ? void 0 : ExplicitLocalBounds.value : ExplicitLocalBounds, isRaw: typeof ExplicitLocalBounds === "object" && "isRaw" in ExplicitLocalBounds && ExplicitLocalBounds.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRefList`1[FrooxEngine.Slot]", name: "Bones", id: typeof Bones === "object" && "id" in Bones ? Bones === null || Bones === void 0 ? void 0 : Bones.id : undefined, value: typeof Bones === "object" && "value" in Bones ? Bones === null || Bones === void 0 ? void 0 : Bones.value : Bones, isRaw: typeof Bones === "object" && "isRaw" in Bones && Bones.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncFieldList`1[System.Single]", name: "BlendShapeWeights", id: typeof BlendShapeWeights === "object" && "id" in BlendShapeWeights ? BlendShapeWeights === null || BlendShapeWeights === void 0 ? void 0 : BlendShapeWeights.id : undefined, value: typeof BlendShapeWeights === "object" && "value" in BlendShapeWeights ? BlendShapeWeights === null || BlendShapeWeights === void 0 ? void 0 : BlendShapeWeights.value : BlendShapeWeights, isRaw: typeof BlendShapeWeights === "object" && "isRaw" in BlendShapeWeights && BlendShapeWeights.isRaw ? true : undefined })] })));
}
exports.SkinnedMeshRenderer = SkinnedMeshRenderer;
;