UNPKG

neos-script

Version:

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

23 lines (22 loc) 6.64 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.LookAtUser = void 0; var jsx_runtime_1 = require("neos-script/jsx-runtime"); var core_1 = require("../../../core"); function LookAtUser(props) { var id = props.id, persistentId = props.persistentId, updateOrder = props.updateOrder, Enabled = props.Enabled, TargetUser = props.TargetUser, TargetAtLocalUser = props.TargetAtLocalUser, SourcePositionOffset = props.SourcePositionOffset, Invert = props.Invert, RotationOffset = props.RotationOffset, PositionSource = props.PositionSource, AroundAxis = props.AroundAxis, Axis = props.Axis, _rotationDrive = props._rotationDrive; return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "FrooxEngine.LookAtUser", 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.User]", name: "TargetUser", id: typeof TargetUser === "object" && "id" in TargetUser ? TargetUser === null || TargetUser === void 0 ? void 0 : TargetUser.id : undefined, value: typeof TargetUser === "object" && "value" in TargetUser ? TargetUser === null || TargetUser === void 0 ? void 0 : TargetUser.value : TargetUser, isRaw: typeof TargetUser === "object" && "isRaw" in TargetUser && TargetUser.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "TargetAtLocalUser", id: typeof TargetAtLocalUser === "object" && "id" in TargetAtLocalUser ? TargetAtLocalUser === null || TargetAtLocalUser === void 0 ? void 0 : TargetAtLocalUser.id : undefined, value: typeof TargetAtLocalUser === "object" && "value" in TargetAtLocalUser ? TargetAtLocalUser === null || TargetAtLocalUser === void 0 ? void 0 : TargetAtLocalUser.value : TargetAtLocalUser, isRaw: typeof TargetAtLocalUser === "object" && "isRaw" in TargetAtLocalUser && TargetAtLocalUser.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.float3]", name: "SourcePositionOffset", id: typeof SourcePositionOffset === "object" && "id" in SourcePositionOffset ? SourcePositionOffset === null || SourcePositionOffset === void 0 ? void 0 : SourcePositionOffset.id : undefined, value: typeof SourcePositionOffset === "object" && "value" in SourcePositionOffset ? SourcePositionOffset === null || SourcePositionOffset === void 0 ? void 0 : SourcePositionOffset.value : SourcePositionOffset, isRaw: typeof SourcePositionOffset === "object" && "isRaw" in SourcePositionOffset && SourcePositionOffset.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "Invert", id: typeof Invert === "object" && "id" in Invert ? Invert === null || Invert === void 0 ? void 0 : Invert.id : undefined, value: typeof Invert === "object" && "value" in Invert ? Invert === null || Invert === void 0 ? void 0 : Invert.value : Invert, isRaw: typeof Invert === "object" && "isRaw" in Invert && Invert.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.floatQ]", name: "RotationOffset", id: typeof RotationOffset === "object" && "id" in RotationOffset ? RotationOffset === null || RotationOffset === void 0 ? void 0 : RotationOffset.id : undefined, value: typeof RotationOffset === "object" && "value" in RotationOffset ? RotationOffset === null || RotationOffset === void 0 ? void 0 : RotationOffset.value : RotationOffset, isRaw: typeof RotationOffset === "object" && "isRaw" in RotationOffset && RotationOffset.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[FrooxEngine.LookAtUser+UserNode]", name: "PositionSource", id: typeof PositionSource === "object" && "id" in PositionSource ? PositionSource === null || PositionSource === void 0 ? void 0 : PositionSource.id : undefined, value: typeof PositionSource === "object" && "value" in PositionSource ? PositionSource === null || PositionSource === void 0 ? void 0 : PositionSource.value : PositionSource, isRaw: typeof PositionSource === "object" && "isRaw" in PositionSource && PositionSource.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "AroundAxis", id: typeof AroundAxis === "object" && "id" in AroundAxis ? AroundAxis === null || AroundAxis === void 0 ? void 0 : AroundAxis.id : undefined, value: typeof AroundAxis === "object" && "value" in AroundAxis ? AroundAxis === null || AroundAxis === void 0 ? void 0 : AroundAxis.value : AroundAxis, isRaw: typeof AroundAxis === "object" && "isRaw" in AroundAxis && AroundAxis.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.float3]", name: "Axis", id: typeof Axis === "object" && "id" in Axis ? Axis === null || Axis === void 0 ? void 0 : Axis.id : undefined, value: typeof Axis === "object" && "value" in Axis ? Axis === null || Axis === void 0 ? void 0 : Axis.value : Axis, isRaw: typeof Axis === "object" && "isRaw" in Axis && Axis.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[BaseX.floatQ]", name: "_rotationDrive", id: typeof _rotationDrive === "object" && "id" in _rotationDrive ? _rotationDrive === null || _rotationDrive === void 0 ? void 0 : _rotationDrive.id : undefined, value: typeof _rotationDrive === "object" && "value" in _rotationDrive ? _rotationDrive === null || _rotationDrive === void 0 ? void 0 : _rotationDrive.value : _rotationDrive, isRaw: typeof _rotationDrive === "object" && "isRaw" in _rotationDrive && _rotationDrive.isRaw ? true : undefined })] }))); } exports.LookAtUser = LookAtUser; ;