UNPKG

neos-script

Version:

[neos-script-sample](https://github.com/rheniumNV/neos-script-sample)

23 lines (22 loc) 7.84 kB
"use strict"; 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.GrabWorldLocomotion = void 0; var jsx_runtime_1 = require("neos-script/jsx-runtime"); var core_1 = require("../../../core"); function GrabWorldLocomotion(props) { var id = props.id, persistentId = props.persistentId, updateOrder = props.updateOrder, Enabled = props.Enabled, Icon = props.Icon, Color = props.Color, _currentController = props._currentController, _lastDefaultIcon = props._lastDefaultIcon, _lastDefaultColor = props._lastDefaultColor, Turn = props.Turn, ActivationThreshold = props.ActivationThreshold, DeactivationThreshold = props.DeactivationThreshold, _visual = props._visual, _crossMesh = props._crossMesh, _material = props._material; return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "FrooxEngine.GrabWorldLocomotion", 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.SyncRef`1[FrooxEngine.IAssetProvider`1[FrooxEngine.ITexture2D]]", name: "Icon", id: typeof Icon === "object" && "id" in Icon ? Icon === null || Icon === void 0 ? void 0 : Icon.id : undefined, value: typeof Icon === "object" && "value" in Icon ? Icon === null || Icon === void 0 ? void 0 : Icon.value : Icon, isRaw: typeof Icon === "object" && "isRaw" in Icon && Icon.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.color]", name: "Color", id: typeof Color === "object" && "id" in Color ? Color === null || Color === void 0 ? void 0 : Color.id : undefined, value: typeof Color === "object" && "value" in Color ? Color === null || Color === void 0 ? void 0 : Color.value : Color, isRaw: typeof Color === "object" && "isRaw" in Color && Color.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.LocomotionController]", name: "_currentController", id: typeof _currentController === "object" && "id" in _currentController ? _currentController === null || _currentController === void 0 ? void 0 : _currentController.id : undefined, value: typeof _currentController === "object" && "value" in _currentController ? _currentController === null || _currentController === void 0 ? void 0 : _currentController.value : _currentController, isRaw: typeof _currentController === "object" && "isRaw" in _currentController && _currentController.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Uri]", name: "_lastDefaultIcon", id: typeof _lastDefaultIcon === "object" && "id" in _lastDefaultIcon ? _lastDefaultIcon === null || _lastDefaultIcon === void 0 ? void 0 : _lastDefaultIcon.id : undefined, value: typeof _lastDefaultIcon === "object" && "value" in _lastDefaultIcon ? _lastDefaultIcon === null || _lastDefaultIcon === void 0 ? void 0 : _lastDefaultIcon.value : _lastDefaultIcon, isRaw: typeof _lastDefaultIcon === "object" && "isRaw" in _lastDefaultIcon && _lastDefaultIcon.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Nullable`1[BaseX.color]]", name: "_lastDefaultColor", id: typeof _lastDefaultColor === "object" && "id" in _lastDefaultColor ? _lastDefaultColor === null || _lastDefaultColor === void 0 ? void 0 : _lastDefaultColor.id : undefined, value: typeof _lastDefaultColor === "object" && "value" in _lastDefaultColor ? _lastDefaultColor === null || _lastDefaultColor === void 0 ? void 0 : _lastDefaultColor.value : _lastDefaultColor, isRaw: typeof _lastDefaultColor === "object" && "isRaw" in _lastDefaultColor && _lastDefaultColor.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.TurnSubmodule", name: "Turn", id: typeof Turn === "object" && "id" in Turn ? Turn === null || Turn === void 0 ? void 0 : Turn.id : undefined, value: typeof Turn === "object" && "value" in Turn ? Turn === null || Turn === void 0 ? void 0 : Turn.value : Turn, isRaw: typeof Turn === "object" && "isRaw" in Turn && Turn.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "ActivationThreshold", id: typeof ActivationThreshold === "object" && "id" in ActivationThreshold ? ActivationThreshold === null || ActivationThreshold === void 0 ? void 0 : ActivationThreshold.id : undefined, value: typeof ActivationThreshold === "object" && "value" in ActivationThreshold ? ActivationThreshold === null || ActivationThreshold === void 0 ? void 0 : ActivationThreshold.value : ActivationThreshold, isRaw: typeof ActivationThreshold === "object" && "isRaw" in ActivationThreshold && ActivationThreshold.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "DeactivationThreshold", id: typeof DeactivationThreshold === "object" && "id" in DeactivationThreshold ? DeactivationThreshold === null || DeactivationThreshold === void 0 ? void 0 : DeactivationThreshold.id : undefined, value: typeof DeactivationThreshold === "object" && "value" in DeactivationThreshold ? DeactivationThreshold === null || DeactivationThreshold === void 0 ? void 0 : DeactivationThreshold.value : DeactivationThreshold, isRaw: typeof DeactivationThreshold === "object" && "isRaw" in DeactivationThreshold && DeactivationThreshold.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.CrossMesh]", name: "_crossMesh", id: typeof _crossMesh === "object" && "id" in _crossMesh ? _crossMesh === null || _crossMesh === void 0 ? void 0 : _crossMesh.id : undefined, value: typeof _crossMesh === "object" && "value" in _crossMesh ? _crossMesh === null || _crossMesh === void 0 ? void 0 : _crossMesh.value : _crossMesh, isRaw: typeof _crossMesh === "object" && "isRaw" in _crossMesh && _crossMesh.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 })] }))); } exports.GrabWorldLocomotion = GrabWorldLocomotion; ;