neos-script
Version:
[neos-script-sample](https://github.com/rheniumNV/neos-script-sample)
23 lines (22 loc) • 15.5 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.TeleportLocomotion = void 0;
var jsx_runtime_1 = require("neos-script/jsx-runtime");
var core_1 = require("../../../core");
function TeleportLocomotion(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, BackstepDistance = props.BackstepDistance, ActivationTime = props.ActivationTime, 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, _pathVisual = props._pathVisual, _targetPointVisual = props._targetPointVisual, _characterController = props._characterController, _teleporter = props._teleporter;
return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "FrooxEngine.TeleportLocomotion", id: id, persistentId: persistentId, updateOrder: updateOrder, version: 1 }, { 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: "BackstepDistance", id: typeof BackstepDistance === "object" && "id" in BackstepDistance ? BackstepDistance === null || BackstepDistance === void 0 ? void 0 : BackstepDistance.id : undefined, value: typeof BackstepDistance === "object" && "value" in BackstepDistance ? BackstepDistance === null || BackstepDistance === void 0 ? void 0 : BackstepDistance.value : BackstepDistance, isRaw: typeof BackstepDistance === "object" && "isRaw" in BackstepDistance && BackstepDistance.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "ActivationTime", id: typeof ActivationTime === "object" && "id" in ActivationTime ? ActivationTime === null || ActivationTime === void 0 ? void 0 : ActivationTime.id : undefined, value: typeof ActivationTime === "object" && "value" in ActivationTime ? ActivationTime === null || ActivationTime === void 0 ? void 0 : ActivationTime.value : ActivationTime, isRaw: typeof ActivationTime === "object" && "isRaw" in ActivationTime && ActivationTime.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: "_pathVisual", id: typeof _pathVisual === "object" && "id" in _pathVisual ? _pathVisual === null || _pathVisual === void 0 ? void 0 : _pathVisual.id : undefined, value: typeof _pathVisual === "object" && "value" in _pathVisual ? _pathVisual === null || _pathVisual === void 0 ? void 0 : _pathVisual.value : _pathVisual, isRaw: typeof _pathVisual === "object" && "isRaw" in _pathVisual && _pathVisual.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.Slot]", name: "_targetPointVisual", id: typeof _targetPointVisual === "object" && "id" in _targetPointVisual ? _targetPointVisual === null || _targetPointVisual === void 0 ? void 0 : _targetPointVisual.id : undefined, value: typeof _targetPointVisual === "object" && "value" in _targetPointVisual ? _targetPointVisual === null || _targetPointVisual === void 0 ? void 0 : _targetPointVisual.value : _targetPointVisual, isRaw: typeof _targetPointVisual === "object" && "isRaw" in _targetPointVisual && _targetPointVisual.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.CharacterController]", name: "_characterController", id: typeof _characterController === "object" && "id" in _characterController ? _characterController === null || _characterController === void 0 ? void 0 : _characterController.id : undefined, value: typeof _characterController === "object" && "value" in _characterController ? _characterController === null || _characterController === void 0 ? void 0 : _characterController.value : _characterController, isRaw: typeof _characterController === "object" && "isRaw" in _characterController && _characterController.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.Teleporter]", name: "_teleporter", id: typeof _teleporter === "object" && "id" in _teleporter ? _teleporter === null || _teleporter === void 0 ? void 0 : _teleporter.id : undefined, value: typeof _teleporter === "object" && "value" in _teleporter ? _teleporter === null || _teleporter === void 0 ? void 0 : _teleporter.value : _teleporter, isRaw: typeof _teleporter === "object" && "isRaw" in _teleporter && _teleporter.isRaw ? true : undefined })] })));
}
exports.TeleportLocomotion = TeleportLocomotion;
;