neos-script
Version:
[neos-script-sample](https://github.com/rheniumNV/neos-script-sample)
23 lines (22 loc) • 7.93 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.SlideLocomotion = void 0;
var jsx_runtime_1 = require("neos-script/jsx-runtime");
var core_1 = require("../../../core");
function SlideLocomotion(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, MaxSpeed = props.MaxSpeed, MinimumFlySpeedRatio = props.MinimumFlySpeedRatio, MaxSnapDistance = props.MaxSnapDistance, SnapCheckOffset = props.SnapCheckOffset, SnapMinObjectSize = props.SnapMinObjectSize;
return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "FrooxEngine.SlideLocomotion", 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: "MaxSpeed", id: typeof MaxSpeed === "object" && "id" in MaxSpeed ? MaxSpeed === null || MaxSpeed === void 0 ? void 0 : MaxSpeed.id : undefined, value: typeof MaxSpeed === "object" && "value" in MaxSpeed ? MaxSpeed === null || MaxSpeed === void 0 ? void 0 : MaxSpeed.value : MaxSpeed, isRaw: typeof MaxSpeed === "object" && "isRaw" in MaxSpeed && MaxSpeed.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "MinimumFlySpeedRatio", id: typeof MinimumFlySpeedRatio === "object" && "id" in MinimumFlySpeedRatio ? MinimumFlySpeedRatio === null || MinimumFlySpeedRatio === void 0 ? void 0 : MinimumFlySpeedRatio.id : undefined, value: typeof MinimumFlySpeedRatio === "object" && "value" in MinimumFlySpeedRatio ? MinimumFlySpeedRatio === null || MinimumFlySpeedRatio === void 0 ? void 0 : MinimumFlySpeedRatio.value : MinimumFlySpeedRatio, isRaw: typeof MinimumFlySpeedRatio === "object" && "isRaw" in MinimumFlySpeedRatio && MinimumFlySpeedRatio.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "MaxSnapDistance", id: typeof MaxSnapDistance === "object" && "id" in MaxSnapDistance ? MaxSnapDistance === null || MaxSnapDistance === void 0 ? void 0 : MaxSnapDistance.id : undefined, value: typeof MaxSnapDistance === "object" && "value" in MaxSnapDistance ? MaxSnapDistance === null || MaxSnapDistance === void 0 ? void 0 : MaxSnapDistance.value : MaxSnapDistance, isRaw: typeof MaxSnapDistance === "object" && "isRaw" in MaxSnapDistance && MaxSnapDistance.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "SnapCheckOffset", id: typeof SnapCheckOffset === "object" && "id" in SnapCheckOffset ? SnapCheckOffset === null || SnapCheckOffset === void 0 ? void 0 : SnapCheckOffset.id : undefined, value: typeof SnapCheckOffset === "object" && "value" in SnapCheckOffset ? SnapCheckOffset === null || SnapCheckOffset === void 0 ? void 0 : SnapCheckOffset.value : SnapCheckOffset, isRaw: typeof SnapCheckOffset === "object" && "isRaw" in SnapCheckOffset && SnapCheckOffset.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "SnapMinObjectSize", id: typeof SnapMinObjectSize === "object" && "id" in SnapMinObjectSize ? SnapMinObjectSize === null || SnapMinObjectSize === void 0 ? void 0 : SnapMinObjectSize.id : undefined, value: typeof SnapMinObjectSize === "object" && "value" in SnapMinObjectSize ? SnapMinObjectSize === null || SnapMinObjectSize === void 0 ? void 0 : SnapMinObjectSize.value : SnapMinObjectSize, isRaw: typeof SnapMinObjectSize === "object" && "isRaw" in SnapMinObjectSize && SnapMinObjectSize.isRaw ? true : undefined })] })));
}
exports.SlideLocomotion = SlideLocomotion;
;