UNPKG

neos-script

Version:

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

23 lines (22 loc) 10.4 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.Teleporter = void 0; var jsx_runtime_1 = require("neos-script/jsx-runtime"); var core_1 = require("../../core"); function Teleporter(props) { var id = props.id, persistentId = props.persistentId, updateOrder = props.updateOrder, Enabled = props.Enabled, UserRoot = props.UserRoot, ShowLerp = props.ShowLerp, HeightInputMax = props.HeightInputMax, HeightInputMin = props.HeightInputMin, InitialForceMin = props.InitialForceMin, InitialForceMax = props.InitialForceMax, RangeExp = props.RangeExp, StepUnit = props.StepUnit, Drag = props.Drag, MaxSmallObjectSize = props.MaxSmallObjectSize, WallDistance = props.WallDistance, _pathMesh = props._pathMesh, _pathMaterial = props._pathMaterial, _pathRenderer = props._pathRenderer, _targetPoint = props._targetPoint, _active = props._active; return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "FrooxEngine.Teleporter", 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.UserRoot]", name: "UserRoot", id: typeof UserRoot === "object" && "id" in UserRoot ? UserRoot === null || UserRoot === void 0 ? void 0 : UserRoot.id : undefined, value: typeof UserRoot === "object" && "value" in UserRoot ? UserRoot === null || UserRoot === void 0 ? void 0 : UserRoot.value : UserRoot, isRaw: typeof UserRoot === "object" && "isRaw" in UserRoot && UserRoot.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "ShowLerp", id: typeof ShowLerp === "object" && "id" in ShowLerp ? ShowLerp === null || ShowLerp === void 0 ? void 0 : ShowLerp.id : undefined, value: typeof ShowLerp === "object" && "value" in ShowLerp ? ShowLerp === null || ShowLerp === void 0 ? void 0 : ShowLerp.value : ShowLerp, isRaw: typeof ShowLerp === "object" && "isRaw" in ShowLerp && ShowLerp.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "HeightInputMax", id: typeof HeightInputMax === "object" && "id" in HeightInputMax ? HeightInputMax === null || HeightInputMax === void 0 ? void 0 : HeightInputMax.id : undefined, value: typeof HeightInputMax === "object" && "value" in HeightInputMax ? HeightInputMax === null || HeightInputMax === void 0 ? void 0 : HeightInputMax.value : HeightInputMax, isRaw: typeof HeightInputMax === "object" && "isRaw" in HeightInputMax && HeightInputMax.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "HeightInputMin", id: typeof HeightInputMin === "object" && "id" in HeightInputMin ? HeightInputMin === null || HeightInputMin === void 0 ? void 0 : HeightInputMin.id : undefined, value: typeof HeightInputMin === "object" && "value" in HeightInputMin ? HeightInputMin === null || HeightInputMin === void 0 ? void 0 : HeightInputMin.value : HeightInputMin, isRaw: typeof HeightInputMin === "object" && "isRaw" in HeightInputMin && HeightInputMin.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "InitialForceMin", id: typeof InitialForceMin === "object" && "id" in InitialForceMin ? InitialForceMin === null || InitialForceMin === void 0 ? void 0 : InitialForceMin.id : undefined, value: typeof InitialForceMin === "object" && "value" in InitialForceMin ? InitialForceMin === null || InitialForceMin === void 0 ? void 0 : InitialForceMin.value : InitialForceMin, isRaw: typeof InitialForceMin === "object" && "isRaw" in InitialForceMin && InitialForceMin.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "InitialForceMax", id: typeof InitialForceMax === "object" && "id" in InitialForceMax ? InitialForceMax === null || InitialForceMax === void 0 ? void 0 : InitialForceMax.id : undefined, value: typeof InitialForceMax === "object" && "value" in InitialForceMax ? InitialForceMax === null || InitialForceMax === void 0 ? void 0 : InitialForceMax.value : InitialForceMax, isRaw: typeof InitialForceMax === "object" && "isRaw" in InitialForceMax && InitialForceMax.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "RangeExp", id: typeof RangeExp === "object" && "id" in RangeExp ? RangeExp === null || RangeExp === void 0 ? void 0 : RangeExp.id : undefined, value: typeof RangeExp === "object" && "value" in RangeExp ? RangeExp === null || RangeExp === void 0 ? void 0 : RangeExp.value : RangeExp, isRaw: typeof RangeExp === "object" && "isRaw" in RangeExp && RangeExp.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "StepUnit", id: typeof StepUnit === "object" && "id" in StepUnit ? StepUnit === null || StepUnit === void 0 ? void 0 : StepUnit.id : undefined, value: typeof StepUnit === "object" && "value" in StepUnit ? StepUnit === null || StepUnit === void 0 ? void 0 : StepUnit.value : StepUnit, isRaw: typeof StepUnit === "object" && "isRaw" in StepUnit && StepUnit.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "Drag", id: typeof Drag === "object" && "id" in Drag ? Drag === null || Drag === void 0 ? void 0 : Drag.id : undefined, value: typeof Drag === "object" && "value" in Drag ? Drag === null || Drag === void 0 ? void 0 : Drag.value : Drag, isRaw: typeof Drag === "object" && "isRaw" in Drag && Drag.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "MaxSmallObjectSize", id: typeof MaxSmallObjectSize === "object" && "id" in MaxSmallObjectSize ? MaxSmallObjectSize === null || MaxSmallObjectSize === void 0 ? void 0 : MaxSmallObjectSize.id : undefined, value: typeof MaxSmallObjectSize === "object" && "value" in MaxSmallObjectSize ? MaxSmallObjectSize === null || MaxSmallObjectSize === void 0 ? void 0 : MaxSmallObjectSize.value : MaxSmallObjectSize, isRaw: typeof MaxSmallObjectSize === "object" && "isRaw" in MaxSmallObjectSize && MaxSmallObjectSize.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "WallDistance", id: typeof WallDistance === "object" && "id" in WallDistance ? WallDistance === null || WallDistance === void 0 ? void 0 : WallDistance.id : undefined, value: typeof WallDistance === "object" && "value" in WallDistance ? WallDistance === null || WallDistance === void 0 ? void 0 : WallDistance.value : WallDistance, isRaw: typeof WallDistance === "object" && "isRaw" in WallDistance && WallDistance.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.BallisticPathMesh]", name: "_pathMesh", id: typeof _pathMesh === "object" && "id" in _pathMesh ? _pathMesh === null || _pathMesh === void 0 ? void 0 : _pathMesh.id : undefined, value: typeof _pathMesh === "object" && "value" in _pathMesh ? _pathMesh === null || _pathMesh === void 0 ? void 0 : _pathMesh.value : _pathMesh, isRaw: typeof _pathMesh === "object" && "isRaw" in _pathMesh && _pathMesh.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.PBS_RimMetallic]", name: "_pathMaterial", id: typeof _pathMaterial === "object" && "id" in _pathMaterial ? _pathMaterial === null || _pathMaterial === void 0 ? void 0 : _pathMaterial.id : undefined, value: typeof _pathMaterial === "object" && "value" in _pathMaterial ? _pathMaterial === null || _pathMaterial === void 0 ? void 0 : _pathMaterial.value : _pathMaterial, isRaw: typeof _pathMaterial === "object" && "isRaw" in _pathMaterial && _pathMaterial.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.MeshRenderer]", name: "_pathRenderer", id: typeof _pathRenderer === "object" && "id" in _pathRenderer ? _pathRenderer === null || _pathRenderer === void 0 ? void 0 : _pathRenderer.id : undefined, value: typeof _pathRenderer === "object" && "value" in _pathRenderer ? _pathRenderer === null || _pathRenderer === void 0 ? void 0 : _pathRenderer.value : _pathRenderer, isRaw: typeof _pathRenderer === "object" && "isRaw" in _pathRenderer && _pathRenderer.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.Slot]", name: "_targetPoint", id: typeof _targetPoint === "object" && "id" in _targetPoint ? _targetPoint === null || _targetPoint === void 0 ? void 0 : _targetPoint.id : undefined, value: typeof _targetPoint === "object" && "value" in _targetPoint ? _targetPoint === null || _targetPoint === void 0 ? void 0 : _targetPoint.value : _targetPoint, isRaw: typeof _targetPoint === "object" && "isRaw" in _targetPoint && _targetPoint.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "_active", id: typeof _active === "object" && "id" in _active ? _active === null || _active === void 0 ? void 0 : _active.id : undefined, value: typeof _active === "object" && "value" in _active ? _active === null || _active === void 0 ? void 0 : _active.value : _active, isRaw: typeof _active === "object" && "isRaw" in _active && _active.isRaw ? true : undefined })] }))); } exports.Teleporter = Teleporter; ;