neos-script
Version:
[neos-script-sample](https://github.com/rheniumNV/neos-script-sample)
23 lines (22 loc) • 9.78 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.ItemShelf = void 0;
var jsx_runtime_1 = require("neos-script/jsx-runtime");
var core_1 = require("../../core");
function ItemShelf(props) {
var id = props.id, persistentId = props.persistentId, updateOrder = props.updateOrder, Enabled = props.Enabled, GrowDirection = props.GrowDirection, IgnoreGrabber = props.IgnoreGrabber, MinLength = props.MinLength, Width = props.Width, Thickness = props.Thickness, MaxItemSize = props.MaxItemSize, MaxPlaneDistance = props.MaxPlaneDistance, MaxHeightDistance = props.MaxHeightDistance, _targetLength = props._targetLength, _visual = props._visual, _content = props._content, _material = props._material, _visualOffset = props._visualOffset, _shelfMesh = props._shelfMesh, _collider = props._collider;
return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "FrooxEngine.ItemShelf", 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.Sync`1[FrooxEngine.ItemShelf+Direction]", name: "GrowDirection", id: typeof GrowDirection === "object" && "id" in GrowDirection ? GrowDirection === null || GrowDirection === void 0 ? void 0 : GrowDirection.id : undefined, value: typeof GrowDirection === "object" && "value" in GrowDirection ? GrowDirection === null || GrowDirection === void 0 ? void 0 : GrowDirection.value : GrowDirection, isRaw: typeof GrowDirection === "object" && "isRaw" in GrowDirection && GrowDirection.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.Grabber]", name: "IgnoreGrabber", id: typeof IgnoreGrabber === "object" && "id" in IgnoreGrabber ? IgnoreGrabber === null || IgnoreGrabber === void 0 ? void 0 : IgnoreGrabber.id : undefined, value: typeof IgnoreGrabber === "object" && "value" in IgnoreGrabber ? IgnoreGrabber === null || IgnoreGrabber === void 0 ? void 0 : IgnoreGrabber.value : IgnoreGrabber, isRaw: typeof IgnoreGrabber === "object" && "isRaw" in IgnoreGrabber && IgnoreGrabber.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "MinLength", id: typeof MinLength === "object" && "id" in MinLength ? MinLength === null || MinLength === void 0 ? void 0 : MinLength.id : undefined, value: typeof MinLength === "object" && "value" in MinLength ? MinLength === null || MinLength === void 0 ? void 0 : MinLength.value : MinLength, isRaw: typeof MinLength === "object" && "isRaw" in MinLength && MinLength.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "Width", id: typeof Width === "object" && "id" in Width ? Width === null || Width === void 0 ? void 0 : Width.id : undefined, value: typeof Width === "object" && "value" in Width ? Width === null || Width === void 0 ? void 0 : Width.value : Width, isRaw: typeof Width === "object" && "isRaw" in Width && Width.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "Thickness", id: typeof Thickness === "object" && "id" in Thickness ? Thickness === null || Thickness === void 0 ? void 0 : Thickness.id : undefined, value: typeof Thickness === "object" && "value" in Thickness ? Thickness === null || Thickness === void 0 ? void 0 : Thickness.value : Thickness, isRaw: typeof Thickness === "object" && "isRaw" in Thickness && Thickness.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "MaxItemSize", id: typeof MaxItemSize === "object" && "id" in MaxItemSize ? MaxItemSize === null || MaxItemSize === void 0 ? void 0 : MaxItemSize.id : undefined, value: typeof MaxItemSize === "object" && "value" in MaxItemSize ? MaxItemSize === null || MaxItemSize === void 0 ? void 0 : MaxItemSize.value : MaxItemSize, isRaw: typeof MaxItemSize === "object" && "isRaw" in MaxItemSize && MaxItemSize.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "MaxPlaneDistance", id: typeof MaxPlaneDistance === "object" && "id" in MaxPlaneDistance ? MaxPlaneDistance === null || MaxPlaneDistance === void 0 ? void 0 : MaxPlaneDistance.id : undefined, value: typeof MaxPlaneDistance === "object" && "value" in MaxPlaneDistance ? MaxPlaneDistance === null || MaxPlaneDistance === void 0 ? void 0 : MaxPlaneDistance.value : MaxPlaneDistance, isRaw: typeof MaxPlaneDistance === "object" && "isRaw" in MaxPlaneDistance && MaxPlaneDistance.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "MaxHeightDistance", id: typeof MaxHeightDistance === "object" && "id" in MaxHeightDistance ? MaxHeightDistance === null || MaxHeightDistance === void 0 ? void 0 : MaxHeightDistance.id : undefined, value: typeof MaxHeightDistance === "object" && "value" in MaxHeightDistance ? MaxHeightDistance === null || MaxHeightDistance === void 0 ? void 0 : MaxHeightDistance.value : MaxHeightDistance, isRaw: typeof MaxHeightDistance === "object" && "isRaw" in MaxHeightDistance && MaxHeightDistance.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "_targetLength", id: typeof _targetLength === "object" && "id" in _targetLength ? _targetLength === null || _targetLength === void 0 ? void 0 : _targetLength.id : undefined, value: typeof _targetLength === "object" && "value" in _targetLength ? _targetLength === null || _targetLength === void 0 ? void 0 : _targetLength.value : _targetLength, isRaw: typeof _targetLength === "object" && "isRaw" in _targetLength && _targetLength.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.Slot]", name: "_visual", id: typeof _visual === "object" && "id" in _visual ? _visual === null || _visual === void 0 ? void 0 : _visual.id : undefined, value: typeof _visual === "object" && "value" in _visual ? _visual === null || _visual === void 0 ? void 0 : _visual.value : _visual, isRaw: typeof _visual === "object" && "isRaw" in _visual && _visual.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.Slot]", name: "_content", id: typeof _content === "object" && "id" in _content ? _content === null || _content === void 0 ? void 0 : _content.id : undefined, value: typeof _content === "object" && "value" in _content ? _content === null || _content === void 0 ? void 0 : _content.value : _content, isRaw: typeof _content === "object" && "isRaw" in _content && _content.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.PBS_RimMetallic]", name: "_material", id: typeof _material === "object" && "id" in _material ? _material === null || _material === void 0 ? void 0 : _material.id : undefined, value: typeof _material === "object" && "value" in _material ? _material === null || _material === void 0 ? void 0 : _material.value : _material, isRaw: typeof _material === "object" && "isRaw" in _material && _material.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[BaseX.float3]", name: "_visualOffset", id: typeof _visualOffset === "object" && "id" in _visualOffset ? _visualOffset === null || _visualOffset === void 0 ? void 0 : _visualOffset.id : undefined, value: typeof _visualOffset === "object" && "value" in _visualOffset ? _visualOffset === null || _visualOffset === void 0 ? void 0 : _visualOffset.value : _visualOffset, isRaw: typeof _visualOffset === "object" && "isRaw" in _visualOffset && _visualOffset.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.DriveRef`1[FrooxEngine.BevelSoliStripeMesh]", name: "_shelfMesh", id: typeof _shelfMesh === "object" && "id" in _shelfMesh ? _shelfMesh === null || _shelfMesh === void 0 ? void 0 : _shelfMesh.id : undefined, value: typeof _shelfMesh === "object" && "value" in _shelfMesh ? _shelfMesh === null || _shelfMesh === void 0 ? void 0 : _shelfMesh.value : _shelfMesh, isRaw: typeof _shelfMesh === "object" && "isRaw" in _shelfMesh && _shelfMesh.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.DriveRef`1[FrooxEngine.BoxCollider]", name: "_collider", id: typeof _collider === "object" && "id" in _collider ? _collider === null || _collider === void 0 ? void 0 : _collider.id : undefined, value: typeof _collider === "object" && "value" in _collider ? _collider === null || _collider === void 0 ? void 0 : _collider.value : _collider, isRaw: typeof _collider === "object" && "isRaw" in _collider && _collider.isRaw ? true : undefined })] })));
}
exports.ItemShelf = ItemShelf;
;